:root {
  --bg: #070b14;
  --bg-2: #0a0f1e;
  --surface: #0d1526;
  --surface-2: #101a30;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef8;
  --muted: #a0b0c4;
  --faint: #7a8ba3;
  --accent: #00e68a;
  --accent-2: #38bdf8;
  --accent-soft: rgba(0, 230, 138, 0.12);
  --accent-glow: rgba(0, 230, 138, 0.35);
  --danger: #ff6b6b;
  --ok: #00e68a;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 60px rgba(2, 6, 17, 0.55);
  --glow: 0 0 0 1px rgba(0, 230, 138, 0.25), 0 0 40px rgba(0, 230, 138, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { max-width: 780px; }

::selection { background: rgba(0, 230, 138, 0.25); color: #fff; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 200;
  background: var(--accent); color: #04120b; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 8px; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-name { font-size: 1.05rem; color: var(--text); white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  display: block; padding: 0.5rem 0.85rem;
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 40px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(90deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2dd4a8 100%);
  color: #04120b;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost {
  background: rgba(148, 163, 184, 0.07); color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.14); border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.9;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, transparent 0%, var(--bg) 100%);
  opacity: 0.75;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 230, 138, 0.25);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 900;
  margin-bottom: 1.2rem;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, #38bdf8 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted);
  max-width: 620px; margin-bottom: 2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.hero-points li {
  position: relative; padding-left: 1.4rem;
  color: var(--muted); font-size: 0.9rem;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 0.85rem; height: 0.85rem;
  background: var(--accent); border-radius: 2px; opacity: 0.9;
  clip-path: polygon(14% 48%, 38% 72%, 86% 12%, 100% 26%, 40% 96%, 0 62%);
}

/* ---------- Ticker ---------- */

.ticker {
  border-block: 1px solid var(--border);
  background: rgba(13, 21, 38, 0.7);
  overflow: hidden; white-space: nowrap;
}
@media (max-width: 720px) {
  .ticker { white-space: normal; }
  .ticker-track { flex-wrap: wrap; justify-content: center; gap: 0.2rem 0; }
  .chip { padding: 0.15rem 1rem; }
}
.ticker-track { display: inline-flex; gap: 0; padding: 0.65rem 0; animation: ticker 36s linear infinite; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0 1.6rem; font-size: 0.82rem; color: var(--muted);
}
.chip b {
  font-size: 0.62rem; letter-spacing: 0.12em; color: var(--accent);
  border: 1px solid rgba(0, 230, 138, 0.35); border-radius: 4px; padding: 0.05rem 0.35rem;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */

.stats { background: var(--bg-2); border-block: 1px solid var(--border); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 2.6rem 0;
}
.stat { text-align: center; padding: 0.5rem; }
.stat-value {
  display: block; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #9be8c8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #fff;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.15; max-width: 720px; margin-bottom: 0.9rem;
}
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; }

.grid { display: grid; gap: 1.25rem; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps-grid--4 { grid-template-columns: repeat(4, 1fr); }
.proof-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d; will-change: transform;
}
.card:hover {
  border-color: rgba(0, 230, 138, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 230, 138, 0.15), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 230, 138, 0.07);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(0, 230, 138, 0.3);
  color: var(--accent); margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Steps ---------- */

.step {
  position: relative; padding: 1.8rem 1.5rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 10px;
  font-weight: 900; font-size: 1.05rem; color: #04120a;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Demo ---------- */

.demo-shell {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 24px 80px rgba(2, 6, 17, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.demo-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.demo-title { font-weight: 700; font-size: 0.95rem; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.demo-legend { margin-left: auto; display: flex; gap: 1rem; }
.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch-a { background: var(--accent); }
.swatch-b { background: #38bdf8; }

.demo-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.kpi {
  background: rgba(148, 163, 184, 0.06); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.7rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kpi-value { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.kpi-value.up { color: var(--accent); }
.kpi-value.flag {
  font-size: 0.85rem; letter-spacing: 0.08em;
  color: #ffb454; border: 1px solid rgba(255, 180, 84, 0.4);
  padding: 0.05rem 0.5rem; border-radius: 6px; align-self: flex-start; margin-top: 0.2rem;
}
#demo-chart { width: 100%; height: 260px; border-radius: 12px; }
.demo-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--faint); }

/* ---------- Proof ---------- */

.proof-grid { grid-template-columns: repeat(3, 1fr); }
.quote-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.quote-card:hover { transform: translateY(-4px); border-color: rgba(0, 230, 138, 0.3); }
.stars { color: #ffb454; letter-spacing: 0.2em; font-size: 0.85rem; }
.quote-card blockquote { font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.quote-card figcaption { font-size: 0.82rem; color: var(--muted); margin-top: auto; }

/* ---------- Pricing ---------- */

.billing-toggle {
  display: inline-flex; gap: 0.3rem; padding: 0.3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 2rem;
}
.seg-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1.1rem; border-radius: 9px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.seg-btn.is-active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 230, 138, 0.35); }
.save-chip {
  font-size: 0.68rem; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(0, 230, 138, 0.4); border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.pricing-grid { align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card.featured {
  border-color: rgba(0, 230, 138, 0.45);
  background: linear-gradient(180deg, rgba(0, 230, 138, 0.07), var(--surface) 45%);
  box-shadow: 0 0 0 1px rgba(0, 230, 138, 0.2), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  color: #04120a; font-size: 0.72rem; font-weight: 800;
  padding: 0.25rem 0.8rem; border-radius: 999px; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.price-tier { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.1rem; }
.price { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.3rem; }
.price-amount { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; }
.price-cycle { color: var(--muted); font-size: 0.85rem; }
.price-list { display: grid; gap: 0.6rem; margin-bottom: 1.6rem; flex: 1; }
.price-list li {
  position: relative; padding-left: 1.5rem;
  font-size: 0.9rem; color: var(--muted);
}
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 0.95rem; height: 0.95rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-note { text-align: center; color: var(--faint); font-size: 0.85rem; margin-top: 1.8rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open { border-color: rgba(0, 230, 138, 0.35); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; text-align: left;
  font-weight: 700; font-size: 0.98rem; color: var(--text);
  border-radius: 12px;
}
.faq-icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--accent); border-radius: 2px;
  transition: transform 0.3s ease;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-points { display: grid; gap: 0.7rem; margin: 1rem 0 1.6rem; }
.contact-points li {
  position: relative; padding-left: 1.7rem; color: var(--muted); font-size: 0.95rem;
}
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1rem; height: 1rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.contact-mail { font-size: 0.95rem; color: var(--muted); }
.contact-mail a { color: var(--accent); font-weight: 700; }
.contact-mail a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  display: grid; gap: 1rem;
}
.form-hint { font-size: 0.8rem; color: var(--faint); border-left: 2px solid var(--accent); padding-left: 0.7rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field .optional { color: var(--faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 0.75rem 0.9rem; font: inherit; font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 230, 138, 0.15);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field-error { font-size: 0.78rem; color: var(--danger); min-height: 1em; }
.form-status { font-size: 0.88rem; color: var(--accent); min-height: 1.2em; }
.form-status.error { color: var(--danger); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 0.9rem; max-width: 30ch; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--faint); margin-bottom: 0.3rem;
}
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 1.4rem;
  font-size: 0.8rem; color: var(--faint);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }
.reveal[data-delay="5"] { --d: 5; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

.nav-cta-row { display: none; }

@media (max-width: 960px) {
  .features-grid, .steps-grid, .proof-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid--single { grid-template-columns: minmax(0, 560px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid--4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { gap: 0.6rem; }
  .nav .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; gap: 0.2rem;
    background: rgba(10, 15, 30, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    z-index: -1;
    overflow-y: auto;
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.3s;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 0.85rem 0.9rem;
    font-size: 1.05rem; border-radius: 10px;
  }
  .nav-links a:hover { background: rgba(148, 163, 184, 0.08); }
  .nav-links .nav-cta-row {
    display: flex; gap: 0.75rem; margin-top: 1rem;
    padding-top: 1rem; border-top: 1px solid var(--border);
  }
  .nav-links .nav-cta-row .btn { flex: 1; }
  .site-header.nav-open .nav-links { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
  .nav-actions { gap: 0.5rem; margin-left: auto; }
  .nav-actions .btn { display: none; }
  .features-grid, .steps-grid, .proof-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid--single { grid-template-columns: minmax(0, 100%); }
  .demo-kpis { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .league-grid { grid-template-columns: 1fr; }
  .shots { gap: 2.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .billing-toggle { width: 100%; }
  .billing-toggle .seg-btn { flex: 1; justify-content: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .ticker { white-space: normal; overflow-x: auto; }
}

/* ---------- Subpages (privacy / terms) ---------- */

.page { padding: calc(var(--nav-h) + 3.5rem) 0 4.5rem; }
.page h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.4rem;
}
.page-meta { color: var(--faint); font-size: 0.88rem; margin-bottom: 1.1rem; }
.legal h2 {
  font-size: 1.15rem; letter-spacing: -0.01em;
  margin: 2rem 0 0.5rem; color: var(--text);
}
.legal p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.legal a { color: var(--accent); }
.page-back { margin-top: 2.5rem; }

/* ---------- Launch pricing card (SIS-104) ---------- */

.pricing-grid--single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.price-card.featured:hover { border-color: rgba(0, 230, 138, 0.6); }
.subscribe-status { color: var(--accent); font-size: 0.88rem; min-height: 1.2em; margin-top: 0.8rem; text-align: center; }
.subscribe-terms { color: var(--faint); font-size: 0.78rem; margin-top: 1rem; line-height: 1.6; text-align: center; }
.subscribe-terms a { color: var(--muted); text-decoration: underline; }
.subscribe-terms a:hover { color: var(--accent); }
.pricing-note a { color: var(--muted); text-decoration: underline; }
.pricing-note a:hover { color: var(--accent); }

/* ---------- Product screenshots (SIS-107.3) ---------- */

.shots { display: grid; gap: 2rem; }
.shot { margin: 0; }
.shot-frame {
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 24px 80px rgba(2, 6, 17, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.shot-frame img { width: 100%; height: auto; border-radius: 10px; }
.shot figcaption {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin-top: 1rem; text-align: center;
}
.shot figcaption strong { font-size: 0.98rem; }
.shot figcaption span { color: var(--muted); font-size: 0.88rem; }
.shot-desktop { grid-column: 1 / -1; }
.shot-mobile { justify-self: center; width: min(340px, 100%); }

/* ---------- Supported sports (SIS-107.3) ---------- */

.league-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-bottom: 1.6rem;
}
@media (max-width: 960px) {
  .league-grid { grid-template-columns: 1fr; }
}
.league-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.league-card:hover {
  border-color: rgba(0, 230, 138, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 230, 138, 0.15), 0 18px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}
.league-badge {
  display: inline-block;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 230, 138, 0.3);
  border-radius: 8px; padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
}
.league-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.league-card p { color: var(--muted); font-size: 0.92rem; }
.league-note {
  color: var(--muted); font-size: 0.92rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px dashed var(--border-strong); border-radius: 12px;
  padding: 1rem 1.3rem;
}

/* ---------- Print ---------- */

@media print {
  .site-header, .ticker, #hero-canvas, #demo-chart, .contact-form, .site-footer .social-row { display: none; }
  body { background: #fff; color: #111; }
}
