:root {
  --bg: #0b1220;
  --bg-soft: #0f1728;
  --bg-card: #111c30;
  --bg-code: #080e1a;
  --border: #1f2c44;
  --border-strong: #2b3c5c;
  --text: #e8eefc;
  --text-dim: #9fb0cc;
  --text-faint: #6d7f9f;
  --accent: #22d3ee;
  --accent-strong: #0ea5c9;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --amber: #f59e0b;
  --green: #34d399;
  --red: #f87171;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(2, 6, 16, 0.45);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow { width: min(820px, calc(100% - 48px)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
}

.brand-mark { color: var(--accent); }
.brand-dot { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 22px;
  margin-inline: auto;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06232d;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(34, 211, 238, 0.38); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(17, 28, 48, 0.6);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-light {
  background: #fff;
  color: #07101f;
}
.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(700px 420px at 8% 10%, rgba(99, 102, 241, 0.12), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(100deg, var(--accent), #7dd3fc 45%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  color: var(--text-dim);
  font-size: 1.14rem;
  max-width: 32em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 0;
}

.hero-stats dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 1.02rem;
}

.hero-code {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-code);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: var(--red); }
.dot-y { background: var(--amber); }
.dot-g { background: var(--green); }

.window-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #c7d7f2;
}

code { font-family: var(--font-mono); }

.hero-code .str, .demo-output .str { color: #7ee7a8; }
.hero-code .key, .demo-output .key { color: #7dd3fc; }
.hero-code .num, .demo-output .num { color: #fbbf77; }
.hero-code .null, .demo-output .null { color: #8b9cbd; font-style: italic; }

/* Sections */
.section { padding: 96px 0; }
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-sub { margin: 0; color: var(--text-dim); font-size: 1.06rem; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent-strong);
  transform: translateY(-3px);
}

.card-icon { font-size: 1.7rem; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }
.card code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.86em;
}

/* Coverage */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.coverage-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}

.coverage-card.live { border-color: rgba(52, 211, 153, 0.45); }
.coverage-card .flag { font-size: 2.1rem; line-height: 1; }
.coverage-card h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.status { margin: 0 0 14px; color: var(--text-faint); font-size: 0.9rem; }
.coverage-card .text-link { margin-top: auto; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 6px;
}
.badge-live { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.badge-soon { background: rgba(245, 158, 11, 0.14); color: var(--amber); }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip-row span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-dim);
}

.text-link { color: var(--accent); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.early-access-note { margin: 30px 0 0; color: var(--text-dim); font-size: 0.95rem; }

/* Demo */
.demo-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
}

.demo-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }
.field input, .field select {
  background: var(--bg-code);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.98rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.demo-hint { margin: 0; color: var(--text-faint); font-size: 0.8rem; text-align: center; }

.demo-output {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-code);
  overflow: hidden;
  min-height: 420px;
}

/* Code tabs */
.code-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab.active {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--accent);
}

.code-pane {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-code);
  overflow: hidden;
}
.code-pane pre { display: none; }
.code-pane pre.active { display: block; }

.subheading { margin: 56px 0 20px; font-size: 1.3rem; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-card);
}

.schema-table th {
  text-align: left;
  padding: 14px 18px;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.schema-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schema-table tr:last-child td { border-bottom: 0; }
.schema-table code {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.86em;
}

.table-note { color: var(--text-dim); font-size: 0.92rem; margin-top: 18px; }
.table-note code { color: var(--accent); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.price-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 28px 24px;
}

.price-card.featured {
  border-color: var(--accent-strong);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card) 55%);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.12);
}
.price-card.featured > .badge { position: absolute; top: -11px; left: 24px; }
.price-card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: 0.04em; }
.price-desc { margin: 0 0 18px; color: var(--text-dim); font-size: 0.92rem; min-height: 2.8em; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { color: var(--text-dim); font-size: 0.92rem; padding-left: 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-cta { margin: 34px 0 0; text-align: center; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 0;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 650;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 0.96rem;
}
.faq-list code { color: var(--accent); }

/* CTA */
.cta-section { padding-bottom: 110px; }
.cta-box {
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(34, 211, 238, 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-card), var(--bg-soft));
}
.cta-box h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-box p { margin: 0 auto 30px; color: var(--text-dim); max-width: 34em; }
.cta-box .hero-actions { justify-content: center; margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}

.footer-tag { color: var(--text-dim); font-size: 0.94rem; margin-top: 16px; }
.footer-grid h4 {
  margin: 0 0 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.footer-grid a { display: block; color: var(--text-dim); padding: 5px 0; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .pulse-dot { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-code { transform: none; }
  .feature-grid, .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta { margin-left: 0; }
  .hide-sm { display: none; }
  .section { padding: 68px 0; }
  .hero { padding: 60px 0 68px; }
  .feature-grid, .coverage-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .cta-box { padding: 44px 24px; }
}
