:root {
  --ink: #f2f3ef;
  --muted: #9a9d96;
  --faint: #656861;
  --bg: #0b0c0e;
  --line: rgba(255, 255, 255, 0.1);
  --lime: #b8f36b;
  --display: 'Arial Narrow', 'Avenir Next Condensed', 'PingFang SC', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1100px 720px at 12% -12%, rgba(184, 243, 107, 0.07), transparent 62%);
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.94;
}
h1 em, h2 em { color: var(--lime); font-style: normal; }
.section-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  width: min(1280px, calc(100% - 64px));
  height: 84px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 27px; height: 27px; flex: none; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.12; }
.brand-copy b { font-size: 17px; font-weight: 700; }
.brand-copy small { color: #8e9189; font-size: 10px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.brand-flow { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; color: var(--muted); font-size: 12px; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-button {
  margin-left: 12px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-button span { margin-left: 8px; }
.nav-button:hover { background: var(--lime); color: #132009; border-color: var(--lime); }

/* ---------- hero ---------- */
.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: 40px;
  padding: 86px 0 100px;
}
.hero h1 { font-size: clamp(56px, 6.2vw, 88px); margin-bottom: 26px; }
.hero-slogan { margin: 0 0 17px; color: #b9bcb4; font-size: 14px; letter-spacing: 0.04em; }
.hero-lede { max-width: 430px; margin: 0 0 34px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-lede strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 13px 19px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.button span { margin-left: 10px; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--lime); color: #132009; }
.button-primary:hover { box-shadow: 0 12px 36px rgba(184, 243, 107, 0.18); }
.button-ghost { color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0; padding: 8px 0; }
.button-ghost:hover { color: var(--ink); }

.hero-visual { position: relative; }
.hero-glow {
  position: absolute;
  inset: 6% 0 -8%;
  background: radial-gradient(ellipse at 50% 50%, rgba(184, 243, 107, 0.16), transparent 66%);
  filter: blur(70px);
}
.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.58);
  transform: rotate(-1.1deg);
  transition: transform 0.5s ease;
}
.hero-visual:hover img { transform: rotate(0deg) scale(1.01); }

/* ---------- one-line capabilities ---------- */
.capabilities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #aeb1a9;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- live canvas ---------- */
.canvas-section { padding: 120px 0 120px; scroll-margin-top: 24px; }
.canvas-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.canvas-head h2 { font-size: clamp(44px, 5vw, 76px); margin: 0; }
.canvas-open {
  padding-bottom: 6px;
  color: var(--lime);
  font-size: 12px;
  border-bottom: 1px solid rgba(184, 243, 107, 0.42);
  white-space: nowrap;
}
.canvas-open span { margin-left: 7px; }
.canvas-frame {
  position: relative;
  width: min(1500px, calc(100vw - 48px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b0c0e;
  box-shadow: 0 50px 130px rgba(0, 0, 0, 0.48);
}
#demo-app { display: block; width: 100%; height: clamp(620px, 62vw, 840px); border: 0; background: #0b0c0e; }
.canvas-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(11, 12, 14, 0.62), rgba(11, 12, 14, 0.94)),
    url('assets/hero.png') center top / cover no-repeat;
  transition: opacity 0.4s ease;
}
.canvas-loader.hidden { opacity: 0; pointer-events: none; }
.canvas-loader span {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(184, 243, 107, 0.2);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.canvas-hint {
  position: absolute;
  left: 50%;
  bottom: 15px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.7);
  color: #b9bcb4;
  font-size: 10px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.canvas-poster { display: none; }

/* ---------- features ---------- */
.features { padding: 120px 0 128px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.features-lead { max-width: 860px; margin-bottom: 84px; }
.features-lead h2 { font-size: clamp(42px, 5vw, 74px); margin: 0; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 90px; }
.feature-list article { padding: 28px 0 46px; border-top: 1px solid var(--line); }
.feature-list h3 { margin: 0 0 12px; font-size: 23px; font-weight: 500; letter-spacing: -0.02em; }
.feature-list p { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------- closing ---------- */
.closing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding: 142px 0 150px;
  border-top: 1px solid var(--line);
}
.closing h2 { font-size: clamp(42px, 5vw, 76px); margin: 0; }
.closing .actions { flex-direction: column; align-items: flex-start; gap: 18px; }

/* ---------- footer ---------- */
.site-footer {
  min-height: 122px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 22px; margin-left: auto; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-header { height: 72px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 48px; padding: 62px 0 76px; }
  .hero h1 { font-size: clamp(54px, 12vw, 82px); }
  .hero-slogan { font-size: 13px; }
  .hero-lede { font-size: 14px; }
  .hero-lede strong { font-size: 17px; }
  .capabilities { flex-wrap: wrap; justify-content: flex-start; gap: 10px 28px; }
  .canvas-section { padding: 92px 0 108px; }
  .canvas-head { display: block; }
  .canvas-head h2 { font-size: clamp(42px, 8vw, 62px); margin-bottom: 20px; }
  .canvas-frame { width: calc(100vw - 24px); border-radius: 14px; }
  #demo-app, .canvas-loader, .canvas-hint { display: none; }
  .canvas-poster { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0c0e; }
  .canvas-poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0.9; }
  .canvas-poster span {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--lime);
    color: #132009;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  }
  .canvas-poster span i { font-style: normal; font-weight: 500; opacity: 0.68; font-size: 10px; }
  .features { padding: 96px 0 104px; }
  .features-lead { margin-bottom: 54px; }
  .feature-list { grid-template-columns: 1fr; column-gap: 0; }
  .feature-list article { padding-bottom: 34px; }
  .closing { display: block; padding: 96px 0 104px; }
  .closing h2 { margin-bottom: 32px; }
  .closing .actions { flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .site-footer { flex-wrap: wrap; padding: 26px 0; }
  .site-footer p { order: 3; width: 100%; }
  .site-footer div { margin-left: 0; }
}

@media (max-width: 560px) {
  .section-shell, .site-header { width: calc(100% - 32px); }
  .brand-copy b { font-size: 16px; }
  .brand-copy small { font-size: 8px; }
  .nav-button { padding: 8px 12px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 52px; }
  .actions { gap: 18px; }
  .capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12px; }
  .canvas-poster { aspect-ratio: 4 / 3; }
  .canvas-poster span { bottom: 12px; padding: 10px 14px; }
  .features-lead h2, .closing h2 { font-size: 40px; }
  .site-footer { gap: 16px; }
}
