:root {
  --bg: #f7fafd;
  --bg-soft: #eaf3fa;
  --card: #ffffff;
  --text: #0b2239;
  --muted: #4a6378;
  --line: #d6e4ef;
  --accent: #0696d7;
  --accent-strong: #0479b0;
  --accent-soft: rgba(6, 150, 215, 0.1);
  --cam: #f08c00;
  --shadow: 0 1px 2px rgba(11, 34, 57, 0.06), 0 8px 24px rgba(11, 34, 57, 0.06);
  --radius: 14px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #102435;
    --card: #142231;
    --text: #f0f6fc;
    --muted: #9fb3c8;
    --line: #22384c;
    --accent: #3fb4ec;
    --accent-strong: #7fd3f7;
    --accent-soft: rgba(63, 180, 236, 0.12);
    --cam: #ffa94d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang { font-size: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.lang:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }

/* hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 18px; max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 720px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line); color: var(--text); background: var(--card);
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #06131e; } }
.btn svg { width: 18px; height: 18px; flex: none; }
.meta { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta span::before { content: "✓"; color: var(--accent); margin-right: 6px; font-weight: 700; }
.hero-art {
  margin-top: 40px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-art img { display: block; width: 100%; height: auto; }
.hero-video video, .demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0e1319; }
.demo-video { margin-top: 28px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 14px; }
.section-lead { color: var(--muted); max-width: 700px; margin: 0 0 36px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding: 24px 24px 24px 76px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 22px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--accent);
  border: 2px solid var(--accent);
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* chat examples */
.chat { display: grid; gap: 14px; max-width: 760px; }
.bubble {
  justify-self: start; max-width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px;
  padding: 14px 18px; box-shadow: var(--shadow);
}
.bubble:nth-child(even) { justify-self: end; border-radius: 16px 16px 4px 16px; }
.bubble code, .card code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.chat-note { margin-top: 24px; color: var(--muted); }

/* safety list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { padding-left: 34px; position: relative; color: var(--muted); }
.checks li strong { color: var(--text); display: block; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230696D7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* download band */
.band {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px;
}
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; opacity: 0.9; }
.band .btn { background: #fff; color: #06324a; border-color: #fff; }
@media (prefers-color-scheme: dark) { .band { color: #06131e; } .band h2 { color: #06131e; } }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
footer small { display: block; max-width: 900px; line-height: 1.5; }

@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  section { padding: 48px 0; }
  .band { padding: 28px; }
  .wrap { padding: 0 16px; }
}

/* new features showcase */
:root {
  --pipe: #b7cde0;
  --pipe-hi: #e6f0f8;
  --fbx: #2b8a3e;
  --ds: #6741d9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pipe: #2c4861;
    --pipe-hi: #4b7090;
    --fbx: #51cf66;
    --ds: #9775fa;
  }
}
.tone-cam { --tone: var(--cam); }
.tone-fbx { --tone: var(--fbx); }
.tone-ds { --tone: var(--ds); }

.showcase { display: grid; gap: 28px; }
.feature {
  --tone-soft: color-mix(in srgb, var(--tone) 13%, transparent);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 44px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px; box-shadow: var(--shadow);
}
.feature::before {
  content: ""; position: absolute; inset: auto -120px -160px auto; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--tone-soft), transparent);
  pointer-events: none;
}
.feature:nth-child(even) .feature-art { order: 2; }
.feature-art {
  position: relative; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--tone-soft), transparent 60%), var(--bg);
}
.feature-body { position: relative; }
.feature-body h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin: 12px 0 10px; letter-spacing: -0.01em; }
.feature-body > p { margin: 0 0 16px; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--tone); background: var(--tone-soft); padding: 4px 11px; border-radius: 999px;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--tone); transform: rotate(45deg) scale(0.8);
}
.ticks code, .feature-body code { font-family: var(--mono); font-size: 0.86em; background: var(--tone-soft); padding: 1px 6px; border-radius: 6px; }
.prompt {
  margin: 0; padding: 14px 18px; border-radius: 14px; border-left: 4px solid var(--tone);
  background: var(--bg-soft); font-size: 16px;
}
.prompt span { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tone); margin-bottom: 2px; }

/* illustrations */
.art { display: block; width: 100%; height: auto; }
.art text { font-family: var(--font); font-size: 12px; fill: var(--muted); }
.art .t-strong { fill: var(--text); font-weight: 600; }
.art .t-mono { font-family: var(--mono); font-size: 11px; fill: var(--text); }
.art .t-tone { fill: var(--tone); font-weight: 600; }
.art .t-off { fill: var(--muted); opacity: 0.6; text-decoration: line-through; }
.art-grid { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0.55; }
.art-pipe { fill: none; stroke: var(--pipe); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.art-pipe-hi { fill: none; stroke: var(--pipe-hi); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.art-panel { fill: var(--card); stroke: var(--line); stroke-width: 1.2; }
.art-tone { fill: var(--tone); }
.art-tone-soft { fill: var(--tone-soft); }
.art-line { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 2 4; opacity: 0.7; }
.art-flow { fill: none; stroke: var(--tone); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 7 7; animation: art-flow 1.1s linear infinite; }
.art-path { fill: none; stroke: var(--tone); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 7; animation: art-flow 1.6s linear infinite; }
.art-ring { fill: var(--card); stroke: var(--tone); stroke-width: 2.5; }
.art-inst { fill: var(--card); stroke: var(--text); stroke-width: 1.6; }
.art-scene-sky { fill: var(--tone-soft); }
.art-scene-ground { fill: color-mix(in srgb, var(--tone) 30%, var(--card)); }
.art-scene-block { fill: var(--card); stroke: var(--tone); stroke-width: 1.6; }
.art-pulse { transform-box: fill-box; transform-origin: center; animation: art-pulse 2.4s ease-in-out infinite; }
@keyframes art-flow { to { stroke-dashoffset: -28; } }
@keyframes art-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .art-flow, .art-path, .art-pulse { animation: none; }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 22px; }
  .feature:nth-child(even) .feature-art { order: 0; }
}
footer small + small { margin-top: 8px; }
