:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --ink: #0f172a;
  --muted: #55607a;
  --line: #dfe4ee;
  --brand: #1d4ed8;
  --brand-ink: #ffffff;
  --brand-soft: #e8eefd;
  --ok: #0f7a4d;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #111831;
    --ink: #eef2fb;
    --muted: #a3aec6;
    --line: #26304d;
    --brand: #6d93ff;
    --brand-ink: #0b1020;
    --brand-soft: #1a2547;
    --ok: #4fd39a;
    --card: #141c36;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--ink); }
.nav nav { display: flex; gap: 22px; flex: 1; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 15px; border: 1px solid var(--brand); white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.btn.lg { padding: 13px 22px; font-size: 16px; }

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(900px 420px at 85% 0%, var(--brand-soft), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h2 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h2.sub { margin-top: 64px; font-size: 24px; }
h3 { margin: 0 0 8px; font-size: 18px; }
.lead { margin: 0 0 28px; font-size: 19px; color: var(--muted); max-width: 56ch; }
.intro { margin: 0 0 32px; color: var(--muted); max-width: 72ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

.chat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chat-head span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.chat-head b { margin-left: 8px; font-weight: 600; }
.msg { padding: 11px 14px; border-radius: 14px; font-size: 15px; max-width: 92%; }
.msg.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }
.src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.src span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.typing { display: flex; gap: 5px; padding: 15px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } html { scroll-behavior: auto; } }

/* Fact band */
.band { border-block: 1px solid var(--line); background: var(--bg-alt); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.facts b { display: block; font-size: 17px; }
.facts span { color: var(--muted); font-size: 14px; }

/* Sections */
.sec { padding: 84px 0; }
.sec.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.card, .model, .plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); }
.list { margin: 16px 0 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 6px 0 6px 26px; font-size: 15px; }
.list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.chips-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.chips-title { margin: 0 0 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: var(--bg); }
.note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.conn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.conn-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.conn-item span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.conn-item.live span { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

.model h3 { font-size: 22px; }
.model-sub, .plan-sub { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan .list { flex: 1; margin-bottom: 22px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.price { margin: 6px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.price span { color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
th, td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--bg-alt); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

.cta p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .hero-in, .split { grid-template-columns: 1fr; gap: 36px; }
  .grid3, .conn { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid3, .grid2, .conn, .facts { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; }
  .hero { padding: 48px 0; }
  .nav-cta .ghost { display: none; }
}

/* Legal pages */
.legal h1 { font-size: 36px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
