/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #07111a;
  color: #e4edf4;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0.25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07111a;
  --bg-mid: #0a1825;
  --bg-alt: #0d1e2e;
  --text: #e4edf4;
  --text-dim: #b8cad8;
  --muted: #6b8ea6;
  --rule: #152333;
  --rule-strong: #1e3347;
  --accent: #3ecfcf;
  --accent-soft: rgba(62, 207, 207, 0.12);
  --accent-glow: rgba(62, 207, 207, 0.28);
  --max: 1100px;
  --pad-x: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 9vw, 136px);
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-top: 1px solid var(--rule);
  position: relative;
}
.section-alt { background: var(--bg-alt); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--accent); color: #031213; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; z-index: 9999; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 26, 0.8);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-icon {
  width: 28px; height: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.topnav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s;
}
.topnav a:hover { color: var(--text); }
.topnav .cta-nav {
  background: var(--accent);
  color: #031213;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.15s;
}
.topnav .cta-nav:hover { opacity: 0.85; color: #031213; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(62,207,207,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 820px;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.55;
  margin: 0 0 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #031213;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid var(--rule-strong);
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }
.hero-footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.hero-stat { }
.hero-stat-number {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Pain section ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.pain-card {
  background: var(--bg-mid);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 28px 32px;
}
.pain-icon {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1;
}
.pain-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.pain-card p {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ---------- How it works ---------- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 660px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 52px;
  line-height: 1.55;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.step {
  position: relative;
  padding-left: 56px;
}
.step-num {
  position: absolute;
  left: 0; top: 2px;
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.step h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Demo section ---------- */
.demo-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 112px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(62,207,207,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.demo-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.demo-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.demo-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 auto 40px;
  max-width: 500px;
}
.demo-number {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 20px 36px;
  margin-bottom: 20px;
}
.demo-phone-icon {
  color: var(--accent);
  font-size: 22px;
}
.demo-number-text {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.demo-fine {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin: 28px auto 0;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
  text-align: left;
  position: relative;
  z-index: 1;
}
.demo-card {
  background: var(--bg-mid);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.demo-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.demo-card-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(62,207,207,0.08) 0%, var(--bg-mid) 60%);
}
.demo-card-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.demo-card-headline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.demo-card-sub {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}
.demo-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background 0.15s;
}
.demo-card-cta:hover { background: var(--accent-glow); }
.demo-card-icon {
  display: inline-flex;
  color: var(--accent);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.pricing-card {
  background: var(--bg-mid);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: var(--rule-strong); }
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(62,207,207,0.07) 0%, var(--bg-mid) 60%);
}
.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #031213;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.pricing-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 20px;
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--sans);
}
.pricing-tagline {
  font-size: 14px;
  color: var(--text-dim);
  margin: 12px 0 28px;
}
.pricing-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 0 24px;
}
.pricing-features {
  list-style: none;
  padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-cta {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
}
.pricing-cta-filled {
  background: var(--accent);
  color: #031213;
}
.pricing-cta-filled:hover { opacity: 0.88; }
.pricing-cta-outline {
  border: 1px solid var(--rule-strong);
  color: var(--text-dim);
}
.pricing-cta-outline:hover { border-color: var(--muted); color: var(--text); }
.pricing-note {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Add-ons ---------- */
.addons {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.addons-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 28px;
}
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.addon-card {
  background: var(--bg-mid);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.addon-card:hover { border-color: var(--rule-strong); }
.addon-icon {
  color: var(--accent);
  margin-bottom: 4px;
}
.addon-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.addon-price {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.addon-price span {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--sans);
}
.addon-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin: 4px 0 0;
}
.addons-note {
  margin: 24px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 600px;
}

/* ---------- CTA section ---------- */
.cta-section {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
}
.cta-section .section-headline { margin: 0 auto 16px; }
.cta-section .section-sub { margin: 0 auto 40px; }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-copy a { color: var(--text-dim); transition: color 0.15s; }
.footer-copy a:hover { color: var(--text); }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-dim); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .topnav { display: none; }
  .hero-stat-row { gap: 24px; }
  .demo-number { padding: 16px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
