:root {
  --bg: #ffffff; --bg-alt: #f6f8fb; --ink: #0f172a; --ink-2: #334155; --muted: #64748b;
  --line: #e2e8f0; --brand: #2563eb; --brand-ink: #1d4ed8; --brand-soft: #eff4ff; --navy: #0f172a;
  --ok: #16a34a; --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px -16px rgba(15,23,42,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.hero-grid > *, .how-grid > *, .feature-grid > *, .plans > * { min-width: 0; }
body { overflow-x: hidden; }
.container.narrow { max-width: 820px; }

/* nav */
.nav-wrap { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.links { display: flex; gap: 28px; }
.links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .link { color: var(--ink-2); font-weight: 500; font-size: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.3); }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn.full { width: 100%; }
.btn.inverse { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.inverse:hover { background: rgba(255,255,255,.08); }

/* hero */
.hero { padding: 88px 0 64px; background: radial-gradient(900px 420px at 85% -10%, #dbeafe 0%, rgba(219,234,254,0) 60%), linear-gradient(#fff, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #dbe5ff; padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
h1 { font-size: 54px; font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 19px; color: var(--ink-2); margin: 22px 0 30px; max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.checks { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--muted); }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 7px; }

/* hero visual */
.hero-visual { position: relative; display: grid; gap: 16px; }
.call-card, .event-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.call-card { padding: 22px; }
.call-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); }
.name { font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ok); background: #ecfdf5; border: 1px solid #bbf7d0; padding: 4px 10px; border-radius: 999px; }
.meter { margin-top: 20px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.meter-time { font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 14px; }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.meter-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: #e2e8f0; margin: 12px 0 10px; overflow: hidden; }
.fill { width: 33%; height: 100%; background: linear-gradient(90deg, var(--brand), #60a5fa); border-radius: 999px; animation: grow 6s ease-in-out infinite alternate; }
@keyframes grow { from { width: 30% } to { width: 42% } }
.meter-note { font-size: 12px; color: var(--muted); }
.call-actions { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.ic { width: 44px; height: 44px; border-radius: 50%; background: #f1f5f9; border: 1px solid var(--line); display: grid; place-items: center; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: #475569; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.end { background: #ef4444; border-color: #ef4444; }
.ic.end svg { stroke: #fff; fill: #fff; }
.event-card { padding: 16px 18px; margin-left: 48px; }
.event-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.event-card pre { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); padding: 22px 0; }
.trust-label { text-align: center; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.trust-row { display: flex; justify-content: center; gap: 12px 36px; flex-wrap: wrap; font-weight: 700; color: #475569; font-size: 15px; letter-spacing: -.01em; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
h2 { font-size: 38px; font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 17px; margin-top: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.feature-grid article:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { font-size: 17px; margin-bottom: 8px; }
.feature-grid p { font-size: 14.5px; color: var(--ink-2); }

/* how */
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.steps code { background: #e2e8f0; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.code-card { background: var(--navy); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.code-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-tabs span { font-size: 12.5px; font-weight: 600; color: #94a3b8; padding: 6px 12px; border-radius: 8px; }
.code-tabs .on { color: #fff; background: rgba(255,255,255,.1); }
.code-card pre { margin: 0; padding: 20px 22px; color: #e2e8f0; font-size: 13.5px; line-height: 1.65; overflow-x: auto; }
.code-card .c { color: #64748b; } .code-card .k { color: #93c5fd; } .code-card .s { color: #a5f3fc; }

/* architecture */
.arch { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.arch svg { width: 100%; height: auto; display: block; font-family: Inter, system-ui, sans-serif; }
.arch .box rect { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 1.5; }
.arch .box.main > rect { fill: #eff4ff; stroke: #93c5fd; }
.arch .inner { fill: #fff; stroke: #bfdbfe; stroke-width: 1; }
.arch .t0 { font-size: 18px; font-weight: 800; fill: var(--brand-ink); }
.arch .t1 { font-size: 15px; font-weight: 700; fill: var(--ink); }
.arch .t2 { font-size: 12.5px; fill: var(--ink-2); }
.arch .t3 { font-size: 12px; font-weight: 700; fill: var(--muted); letter-spacing: .08em; }
.arch .edge path { fill: none; stroke: #94a3b8; stroke-width: 1.6; }
.arch .edge text { font-size: 11.5px; fill: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.metrics li { text-align: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metrics b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.metrics span { font-size: 13.5px; color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.plan-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.plan ul { flex: 1; margin-bottom: 22px; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); padding: 0 0 18px; font-size: 15.5px; max-width: 720px; }

/* final */
.final { background: var(--navy); color: #fff; padding: 88px 0; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #cbd5e1; font-size: 17px; margin: 14px auto 30px; max-width: 560px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-tag { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 300px; }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
footer .foot-grid a:not(.brand) { display: block; color: var(--ink-2); font-size: 15px; padding: 4px 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* responsive */
@media (max-width: 1000px) {
  .feature-grid, .plans, .metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  h1 { font-size: 44px; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .nav-cta .link { display: none; }
  .hero { padding: 48px 0 40px; }
  h1 { font-size: 36px; } h2 { font-size: 29px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .feature-grid, .plans, .metrics { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .event-card { margin-left: 0; }
  .meter-time { font-size: 36px; }
  .container { padding: 0 16px; }
}
