:root {
  --indigo: #5B6ABF;
  --indigo-deep: #3E4B9E;
  --indigo-tint: #E7EAF8;
  --indigo-soft: #C4CAEE;
  --ink: #15182A;
  --ink-2: #2B2F46;
  --muted: #5F6479;
  --paper: #F7F7FB;
  --card: #FFFFFF;
  --line: #E1E3EE;
  --green: #3BA55D;
  --green-tint: #E3F4E8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21,24,42,.06), 0 12px 32px -12px rgba(21,24,42,.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --indigo: #8C98E0;
    --indigo-deep: #A9B3EC;
    --indigo-tint: #252A4A;
    --indigo-soft: #3A4272;
    --ink: #F0F1F7;
    --ink-2: #D5D8E6;
    --muted: #9599B0;
    --paper: #12141F;
    --card: #1A1D2C;
    --line: #2A2E42;
    --green: #5CC07A;
    --green-tint: #1C3326;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .85em; background: var(--indigo-tint); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
table { border-collapse: collapse; width: 100%; }
main > section, footer, .nav { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main > section { padding-top: 96px; padding-bottom: 32px; }

.mark { width: 22px; height: 22px; fill: var(--indigo); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav nav a { color: var(--ink-2); }
.nav nav a:hover { color: var(--indigo-deep); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 12px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600; font-size: 16px; line-height: 1.2;
  box-shadow: 0 1px 2px rgba(21,24,42,.05);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn small { display: block; font-weight: 500; font-size: 12.5px; opacity: .7; margin-top: 3px; }
.btn-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #12141F; } }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 10px; background: var(--indigo); border-color: var(--indigo); color: #fff !important; }
@media (prefers-color-scheme: dark) { .btn-small { color: #12141F !important; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--indigo-deep); background: var(--indigo-tint); padding: 6px 12px 6px 10px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.kicker { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--indigo); margin-bottom: 12px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 18px; }
.fineprint { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 80px !important; padding-bottom: 48px !important; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 20px 0 22px; letter-spacing: -.03em; }
.lede { font-size: 19px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 14px; }

.hero-visual { position: relative; }
.window { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-bar i:first-child { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: auto; margin-right: auto; }
.window-body { padding: 28px 28px 40px; font-size: 18px; line-height: 1.6; min-height: 150px; }
.typed { color: var(--ink-2); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--indigo); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ptt { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; background: var(--ink); color: var(--paper); padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .ptt { background: var(--indigo-tint); color: var(--ink); border: 1px solid var(--line); } }
.key { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%); color: #fff; font-size: 22px; font-weight: 600; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); animation: press 2.4s ease-in-out infinite; }
.key small { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
@keyframes press { 0%,15% { transform: translateY(0); } 25%,75% { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); } 85%,100% { transform: translateY(0); } }
.wave { display: flex; align-items: center; gap: 4px; height: 36px; }
.wave i { width: 4px; border-radius: 2px; background: var(--indigo); height: 8px; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { animation-delay: 0s; } .wave i:nth-child(2) { animation-delay: .12s; } .wave i:nth-child(3) { animation-delay: .24s; } .wave i:nth-child(4) { animation-delay: .36s; } .wave i:nth-child(5) { animation-delay: .48s; } .wave i:nth-child(6) { animation-delay: .6s; } .wave i:nth-child(7) { animation-delay: .72s; }
@keyframes wave { 0%,100% { height: 8px; } 50% { height: 32px; } }
.latency { display: flex; flex-direction: column; line-height: 1.1; }
.latency strong { font-size: 18px; letter-spacing: -.02em; }
.latency small { font-size: 11px; opacity: .7; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 72px !important; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.stats strong { display: block; font-size: 34px; letter-spacing: -.03em; color: var(--indigo-deep); line-height: 1; margin-bottom: 8px; }
.stats span { font-size: 14px; color: var(--muted); }

/* Compare */
.compare { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare table { font-size: 16px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding-top: 20px; padding-bottom: 14px; }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 24%; }
.compare .us { background: var(--indigo-tint); color: var(--ink); }
.compare thead .us { color: var(--indigo-deep); display: flex; align-items: center; gap: 8px; }
.compare td b { color: var(--indigo-deep); }
.compare tbody td:not(.us) { color: var(--muted); }
.mark-inline { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--indigo); }

/* Models */
.families { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-bottom: 28px; }
.family { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.family.featured { border-color: var(--indigo-soft); background: linear-gradient(180deg, var(--indigo-tint) 0%, var(--card) 60%); }
.family h3 { font-size: 26px; margin-top: 12px; }
.family > p { color: var(--muted); }
.license { font-size: 14px; color: var(--muted); margin-top: 6px !important; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--indigo-tint); color: var(--indigo-deep); }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-beta { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border: 1px solid var(--indigo-soft); }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.beta-tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: var(--indigo-tint); color: var(--indigo-deep); margin-left: 6px; vertical-align: 2px; }
.btn-primary .beta-tag { background: rgba(255,255,255,.22); color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.langs li { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--card); }

.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.model-table { font-size: 15px; min-width: 720px; }
.model-table th, .model-table td { padding: 13px 18px; text-align: left; white-space: nowrap; border-top: 1px solid var(--line); }
.model-table thead th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.model-table td:first-child { color: var(--ink-2); }
.model-table tr.hl td { background: color-mix(in srgb, var(--indigo-tint) 55%, transparent); }
.model-table .free { color: var(--green); font-weight: 700; }
.tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--indigo-deep); background: var(--indigo-tint); padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.caption { font-size: 13px; color: var(--muted); padding: 14px 18px; border-top: 1px solid var(--line); white-space: normal; }

/* How */
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 700; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .num { color: #12141F; } }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.features h4 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.features p { color: var(--muted); font-size: 15px; }

/* Download */
.download { padding-bottom: 80px !important; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card h3 { font-size: 26px; }
.card .meta { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.card .btn { width: 100%; justify-content: center; }
.install { margin: 22px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.install li { margin-bottom: 8px; }
.install b { color: var(--ink-2); }

footer { padding: 32px 24px 48px !important; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: 14px; color: var(--muted); }
footer p { max-width: 640px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { margin-bottom: 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .families, .cards, .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav nav a:not(.btn) { display: none; }
  .compare th, .compare td { padding: 14px 14px; font-size: 15px; }
  .compare tbody th { width: 30%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  main > section { padding-top: 72px; }
  .stats, .features { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .ptt { gap: 12px; padding: 10px 14px 10px 10px; }
  .wave { display: none; }
}
