:root {
  --bg: #05080f;
  --bg2: #080d17;
  --panel: #0b1220;
  --line: rgba(148, 184, 255, 0.14);
  --text: #eef3fb;
  --muted: #93a1b8;
  --cyan: #38bdf8;
  --teal: #2dd4bf;
  --green: #34d399;
  --blue: #3b82f6;
  --radius: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1100px 500px at 70% -80px, rgba(56, 189, 248, 0.09), transparent 60%),
    radial-gradient(900px 500px at 15% 10%, rgba(45, 212, 191, 0.06), transparent 60%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
code { background: rgba(56, 189, 248, 0.1); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 0.86em; }
pre { background: #070c16; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 0.85rem; }
pre code { background: none; border: none; padding: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--cyan); color: #04121c; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 50; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(5, 8, 15, 0.78); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand-mark { color: var(--teal); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.brand-tld { color: var(--teal); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 650; border-radius: 10px; padding: 13px 26px; font-size: 1rem; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--cyan), var(--teal)); color: #04121c; box-shadow: 0 8px 28px rgba(45, 212, 191, 0.25); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 72px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; color: var(--teal); background: rgba(45, 212, 191, 0.07); margin: 0 0 22px; }
.pulse { 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 { 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 { font-size: clamp(3rem, 6.5vw, 4.9rem); line-height: 1.02; margin: 0 0 18px; letter-spacing: -0.02em; }
.lede { font-size: 1.22rem; color: #cdd8ea; margin: 0 0 16px; max-width: 34ch; }
.hero-note { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); border-left: 3px solid var(--teal); padding-left: 14px; margin: 0 0 30px; max-width: 44ch; }
.code-chip { color: var(--teal); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; font-family: ui-monospace, monospace; font-size: 0.85rem; white-space: nowrap; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; margin: 0; padding: 0; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.hero-stats dd { margin: 0; font-weight: 750; font-size: 1.1rem; }

/* Hero visual */
.hero-visual { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #0a111f, #060b14); padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; }
.pipe-stage { border: 1px solid var(--line); border-radius: 12px; background: #080e1a; padding: 16px 18px; display: grid; gap: 12px; }
.pipe-stage.filter { border-color: rgba(45, 212, 191, 0.45); background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(5, 8, 15, 0)); justify-items: center; text-align: center; }
.pipe-stage.verified { border-color: rgba(52, 211, 153, 0.45); }
.pipe-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.noise { display: grid; gap: 9px; }
.noise i { display: block; height: 9px; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, rgba(248, 113, 113, 0.55), rgba(251, 191, 36, 0.35)); }
.noise.clean i { background: linear-gradient(90deg, var(--green), #16a34a); }
.pipe-count { font-weight: 750; font-size: 0.95rem; }
.pipe-count.high { color: #fca5a5; }
.pipe-count.low { color: var(--green); }

.pipe-link { display: flex; justify-content: center; padding: 3px 0; }
.pipe-link span { width: 2px; height: 34px; background-image: linear-gradient(180deg, var(--teal) 55%, transparent 45%); background-size: 2px 10px; animation: flowDown 1.1s linear infinite; opacity: 0.85; }
@keyframes flowDown { to { background-position: 0 10px; } }
.shield { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--teal); color: var(--teal); background: rgba(45, 212, 191, 0.08); box-shadow: 0 0 26px rgba(45, 212, 191, 0.3); animation: shieldPulse 2.4s ease-in-out infinite; }
@keyframes shieldPulse { 50% { box-shadow: 0 0 42px rgba(45, 212, 191, 0.55); } }
@media (prefers-reduced-motion: reduce) {
  .shield, .pipe-link span, .pulse { animation: none; }
}
.fig-caption { color: var(--muted); font-size: 0.8rem; margin: 14px 2px 0; }

/* Pillars */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 18, 32, 0.7); overflow: hidden; }
.pillars li { padding: 20px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.pillars li:first-child { border-left: none; }
.pillars b { color: var(--cyan); font-size: 0.95rem; }
.pillars span { color: var(--muted); font-size: 0.85rem; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--teal); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; margin: 0 0 12px; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 14px; max-width: 24ch; }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0 0 40px; }

.steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); position: relative; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #04121c; font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin: 0 0 8px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.terminal { border: 1px solid var(--line); border-radius: 12px; background: #070c16; padding: 16px 20px; color: var(--teal); font-family: ui-monospace, SFMono-Regular, monospace; }
.terminal .prompt { color: var(--cyan); font-weight: 700; margin-right: 10px; }
.swarm-banner { margin: 0 0 36px; border: 1px solid rgba(45, 212, 191, 0.4); border-radius: var(--radius); padding: 26px 28px; background: linear-gradient(180deg, rgba(45, 212, 191, 0.07), rgba(5, 8, 15, 0)); }
.swarm-banner h3 { margin: 0 0 8px; font-size: 1.2rem; }
.swarm-banner p { margin: 0; color: var(--muted); max-width: 70ch; }
.swarm-banner strong { color: var(--text); }

/* Calculator */
.calc { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 34px; max-width: 860px; }
.calc-field { display: grid; gap: 10px; margin-bottom: 26px; }
.calc-field span { color: var(--muted); font-size: 0.95rem; }
.calc-field input { background: #070c16; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 14px 18px; font-size: 1.4rem; font-weight: 700; max-width: 260px; }
.calc-field input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #080e1a; text-align: center; }
.calc-card small { color: var(--text); font-size: 0.92rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.calc-card strong { display: block; font-size: 2.1rem; color: var(--green); margin: 6px 0 2px; }
.calc-card span { color: var(--muted); font-size: 0.85rem; }
.calc-card.highlight { border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 0 30px rgba(52, 211, 153, 0.12); }
.calc-note { color: var(--muted); margin: 22px 0 0; }
.calc-note strong { color: var(--text); }

/* Setup */
.setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.req-note { border: 1px solid rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.07); border-radius: 12px; padding: 14px 20px; margin: 0 0 26px; max-width: 860px; }
.req-note strong { color: #fcd34d; }
.setup-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--panel); }
.setup-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.setup-card p { color: var(--muted); font-size: 0.95rem; }
.tabs { display: flex; gap: 8px; margin: 14px 0; }
.tabs [role="tab"] { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 0.9rem; }
.tabs [role="tab"][aria-selected="true"] { color: #04121c; background: linear-gradient(90deg, var(--cyan), var(--teal)); border-color: transparent; font-weight: 700; }
.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kv li { display: grid; gap: 4px; font-size: 0.92rem; }
.kv span { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; }

/* Offer */
.offer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; color: #cdd8ea; }
.ticks li::marker { content: ""; }
.offer-card { border: 1px solid rgba(52, 211, 153, 0.4); border-radius: 18px; padding: 32px; background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(5, 8, 15, 0)); text-align: center; }
.offer-card small { letter-spacing: 0.12em; color: var(--teal); font-size: 0.75rem; }
.offer-card strong { display: block; font-size: 3.4rem; margin: 4px 0; }
.offer-card > span { color: var(--muted); }
.offer-card ol { text-align: left; color: var(--muted); margin: 22px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.95rem; }

/* FAQ */
.faq-wrap { max-width: 780px; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; font-size: 1.02rem; }
details p { color: var(--muted); margin: 12px 0 4px; }
.fine-print { font-size: 0.82rem; color: var(--muted); max-width: 62ch; margin: 18px 0 0; }
.fine-print strong { color: var(--text); }
.why-free { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: var(--panel); }
.why-free h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--teal); }
.why-free p { margin: 0; color: var(--muted); }
.why-free strong { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--teal); }

/* Access gate */
body.gated { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(5, 8, 15, 0.9); backdrop-filter: blur(14px); }
.gate[hidden] { display: none; }
.gate-card { width: 100%; max-width: 400px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 36px 32px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.gate-brand { justify-content: center; margin: 0 0 18px; }
.gate-card h2 { margin: 0 0 8px; font-size: 1.5rem; }
.gate-card .muted { margin: 0 0 22px; font-size: 0.95rem; }
#gate-form { display: grid; gap: 12px; }
#gate-input { background: #070c16; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 13px 16px; font-size: 1rem; text-align: center; width: 100%; }
#gate-input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
#gate-form .btn { width: 100%; border: none; cursor: pointer; }
.gate-error { color: #fca5a5; font-size: 0.9rem; margin: 14px 0 0; }

@media (max-width: 920px) {
  .hero-grid, .offer-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li:nth-child(3) { border-left: none; }
  .pillars li { border-top: 1px solid var(--line); }
  .pillars li:nth-child(-n+2) { border-top: none; }
  .steps, .setup-grid, .calc-results { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero { padding-top: 48px; }
  .section { padding: 60px 0; }
}
