*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #09090d;
  --bg2:      #111118;
  --bg3:      #1a1a24;
  --border:   #2a2a38;
  --green:    #00e87a;
  --green-dim:#00b860;
  --text:     #e8e8f0;
  --muted:    #888899;
  --code-bg:  #0d0d16;
  --radius:   10px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,13,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.nav-logo span { color: var(--green); font-weight: 400; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: .9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn { display: inline-block; padding: .5rem 1.25rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--green); color: #000; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  max-width: 820px; margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.hero-mascot {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,232,122,.1); border: 1px solid rgba(0,232,122,.25);
  color: var(--green); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 99px; margin-bottom: 1.5rem;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.25rem; }
h1 em { color: var(--green); font-style: normal; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 2.5rem; }

/* ── Demo box ────────────────────────────────────────────────────────────── */
.demo-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: visible; position: relative;
  max-width: 620px; margin: 0 auto 1rem; text-align: left;
}
.demo-inner { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; }
.demo-icon { color: var(--muted); flex-shrink: 0; }
#demo-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1rem; caret-color: var(--green);
}
#demo-input::placeholder { color: #555566; }
.demo-spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--green); border-radius: 50%; animation: spin .6s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-spinner.active { display: block; }

#demo-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; z-index: 50;
  display: none;
}
#demo-results.open { display: block; }
.demo-result {
  padding: .75rem 1.1rem; cursor: pointer;
  border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: .15rem;
  transition: background .1s;
}
.demo-result:last-child { border-bottom: none; }
.demo-result:hover { background: var(--bg3); }
.demo-result-addr { font-size: .95rem; }
.demo-result-meta { font-size: .78rem; color: var(--muted); }
.demo-empty { padding: .9rem 1.1rem; color: var(--muted); font-size: .9rem; }
.demo-note { text-align: center; font-size: .78rem; color: #444455; }

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.stats {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  padding: 2.5rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 3rem 0 0;
}
.stat-val { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.stat-val span { color: var(--green); }
.stat-lbl { font-size: .8rem; color: var(--muted); margin-top: .15rem; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { max-width: 1060px; margin: 0 auto; padding: 5rem 2rem; }
section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; }
section .sub { color: var(--muted); font-size: 1rem; max-width: 520px; margin-bottom: 3rem; }

/* ── Features grid ───────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.feature {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.feature-icon { color: var(--green); margin-bottom: 1rem; display: flex; }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; align-items: start; }
.plan {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.plan.popular { border-color: var(--green); position: relative; }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #000; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .75rem; border-radius: 99px;
}
.plan-name { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-price { font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; margin: .25rem 0; }
.plan-price sub { font-size: .9rem; font-weight: 400; color: var(--muted); vertical-align: baseline; }
.plan-limit { font-size: .82rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: .45rem; font-size: .85rem; }
.plan-features li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.plan-features li.no::before { content: "✗ "; color: #444455; }
.plan-features li.no { color: var(--muted); }
.plan .btn { margin-top: 1.5rem; text-align: center; width: 100%; }

.annual-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.25rem; }
.annual-note strong { color: var(--green); }

/* ── Code / quickstart ───────────────────────────────────────────────────── */
.code-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.code-tab {
  padding: .6rem 1.25rem; font-size: .82rem; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; border-top: none; border-left: none; border-right: none;
  transition: color .15s;
}
.code-tab.active { color: var(--green); border-bottom-color: var(--green); }
.code-panel { display: none; }
.code-panel.active { display: block; }
pre {
  background: var(--code-bg); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.5rem; overflow-x: auto; font-size: .83rem;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  line-height: 1.7; color: #c5c5d8;
}
.hl-green { color: var(--green); }
.hl-str   { color: #f8b878; }
.hl-key   { color: #88aaff; }
.hl-com   { color: #555566; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { padding: 1.1rem 1.25rem; font-weight: 600; font-size: .95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; color: var(--green); font-size: 1.2rem; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 1.25rem 1.1rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── CTA banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,232,122,.08), rgba(0,232,122,.03));
  border: 1px solid rgba(0,232,122,.2);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3.5rem 2rem; text-align: center;
  max-width: 1060px; margin: 0 auto;
}
.cta-mascot { color: var(--green); display: flex; justify-content: center; margin-bottom: 1.25rem; }
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p { color: var(--muted); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem; margin-top: 5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  max-width: 1060px; margin: 5rem auto 0;
}
.footer-left { font-size: .85rem; color: var(--muted); }
.footer-right { display: flex; gap: 1.5rem; }
.footer-right a { font-size: .85rem; color: var(--muted); }
.footer-right a:hover { color: var(--text); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links .hide-mobile { display: none; }
  .hero { padding: 3rem 1rem 2rem; }
  .stats { gap: 1.5rem; }
  section { padding: 3rem 1rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
