:root {
  --bg: #071018;
  --bg-soft: #0b1622;
  --panel: rgba(15, 28, 41, .78);
  --panel-2: rgba(11, 23, 34, .94);
  --text: #edf6fb;
  --muted: #91a8b8;
  --line: rgba(154, 190, 211, .16);
  --accent: #59e3c2;
  --accent-2: #70a7ff;
  --accent-3: #b78cff;
  --danger: #ff8c8c;
  --shadow: 0 28px 70px rgba(0,0,0,.32);
  --radius: 20px;
  --max: 1180px;
}

[data-theme="light"] {
  --bg: #eef5f8;
  --bg-soft: #e6eff3;
  --panel: rgba(255,255,255,.82);
  --panel-2: rgba(255,255,255,.96);
  --text: #102331;
  --muted: #5d7280;
  --line: rgba(20,55,75,.13);
  --shadow: 0 28px 70px rgba(50,80,100,.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(89,227,194,.12), transparent 28rem),
    radial-gradient(circle at 90% 15%, rgba(112,167,255,.13), transparent 30rem),
    var(--bg);
  min-height: 100vh;
  transition: background .25s ease, color .25s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 80%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; }
.logo {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #061118;
  box-shadow: 0 8px 24px rgba(89,227,194,.2);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a, .theme-toggle {
  color: var(--muted); padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active, .theme-toggle:hover { color: var(--text); background: rgba(128,170,195,.09); }
.mobile-toggle { display: none; }

.hero { padding: 86px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 54px; align-items: center; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); line-height: .94; max-width: 900px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); line-height: 1.02; }
h3 { font-size: 1.25rem; }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.12rem; line-height: 1.75; max-width: 720px; margin: 28px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 17px; border-radius: 12px; border: 1px solid var(--line); font-weight: 750; transition: .2s ease; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #93f0d9); color: #05150f; border-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.14); }

.hero-console { position: relative; padding: 1px; border-radius: 24px; background: linear-gradient(145deg, rgba(89,227,194,.55), rgba(112,167,255,.15), rgba(183,140,255,.4)); box-shadow: var(--shadow); }
.console-inner { background: var(--panel-2); border-radius: 23px; overflow: hidden; }
.console-top { display: flex; gap: 7px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .45; }
.console-code { padding: 24px; min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.8; color: #b5c8d4; }
.console-code .prompt { color: var(--accent); }.console-code .value { color: #ffd493; }.console-code .key { color: #8fbaff; }
.blink { display: inline-block; width: 8px; height: 1.15em; vertical-align: -.2em; background: var(--accent); animation: blink 1.05s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-head p, .lead { color: var(--muted); line-height: 1.7; max-width: 680px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 14px 45px rgba(0,0,0,.08); transition: transform .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.card p { color: var(--muted); line-height: 1.65; }
.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(89,227,194,.09); border: 1px solid rgba(89,227,194,.18); color: var(--accent); font-weight: 900; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { padding: 7px 9px; border-radius: 999px; background: rgba(128,170,195,.08); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.stat { padding: 20px; border-radius: 17px; background: rgba(128,170,195,.06); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -.04em; }.stat span { color: var(--muted); font-size: .88rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(128,170,195,.055); }
td { font-size: .94rem; } tr:last-child td { border-bottom: 0; }
.score { font-variant-numeric: tabular-nums; font-weight: 800; }

.page-hero { padding: 66px 0 32px; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.filter { border: 1px solid var(--line); background: rgba(128,170,195,.06); color: var(--muted); border-radius: 999px; padding: 9px 12px; cursor: pointer; }
.filter.active, .filter:hover { background: rgba(89,227,194,.12); color: var(--text); border-color: rgba(89,227,194,.28); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-card[hidden] { display: none; }
.model-title { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.badge { font-size: .74rem; color: var(--accent); border: 1px solid rgba(89,227,194,.24); background: rgba(89,227,194,.07); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.spec { background: rgba(128,170,195,.055); border: 1px solid var(--line); padding: 11px; border-radius: 12px; }
.spec b { display: block; font-size: .82rem; }.spec span { color: var(--muted); font-size: .78rem; }

.chart { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 210px 1fr 54px; gap: 14px; align-items: center; }
.bar-track { height: 10px; background: rgba(128,170,195,.1); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.note { margin-top: 16px; padding: 14px 16px; color: var(--muted); border-left: 3px solid var(--accent); background: rgba(89,227,194,.055); border-radius: 0 12px 12px 0; line-height: 1.6; }

.timeline { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.step-num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #061118; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.step p { color: var(--muted); margin-top: 7px; line-height: 1.65; }
code.inline { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; color: var(--accent); background: rgba(89,227,194,.07); border: 1px solid rgba(89,227,194,.15); padding: 2px 6px; border-radius: 6px; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero-grid, .grid-3, .model-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 28px; }.hero h1 { font-size: clamp(3rem, 10vw, 5rem); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .mobile-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 72px; left: 16px; right: 16px; display: none; padding: 12px; flex-direction: column; align-items: stretch; background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { padding-top: 52px; }.hero-grid, .grid-3, .grid-2, .model-grid { grid-template-columns: 1fr; }
  .hero-console { margin-top: 10px; }.section-head { align-items: start; flex-direction: column; }
  .bar-row { grid-template-columns: 1fr; gap: 7px; }.bar-row .score { justify-self: start; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) { .stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
