:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef1f7;
  --text: #111521;
  --muted: #5d6575;
  --line: #dbe0ea;
  --accent: #4f46e5;
  --accent-strong: #3730a3;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 21, 33, 0.12);
  --font-stack: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090d;
    --surface: #141821;
    --surface-strong: #1e2430;
    --text: #f8f7ff;
    --muted: #b8becc;
    --line: rgba(248, 247, 255, 0.14);
    --accent: #8b7cff;
    --accent-strong: #b86cff;
    --accent-soft: rgba(139, 124, 255, 0.16);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-stack);
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 6%, var(--accent-soft), transparent 28rem),
    linear-gradient(180deg, var(--surface-strong), var(--bg) 26rem);
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.7rem, 8vw, 5.8rem); line-height: 0.95; letter-spacing: 0; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: 0; }
h3 { margin-bottom: 0.55rem; font-size: 1.15rem; }
p { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--surface);
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, main, .footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 900; }

.nav-menu { display: flex; align-items: center; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.nav-menu a { color: var(--muted); font-weight: 750; }
.nav-menu a:hover { color: var(--text); }

.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-weight: 900;
  cursor: pointer;
}
.button:hover { color: white; background: var(--accent-strong); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button-secondary:hover { color: var(--text); background: var(--surface); }
.button-small { min-height: 38px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 3.4rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-text { max-width: 680px; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }

.hero-preview {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: var(--shadow);
}
.hero-preview figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.9rem; }

.proof-strip, .feature-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-strip { margin-bottom: 5rem; }
.proof-strip div, .card, .price-card, .contact-band, .accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.proof-strip div { padding: 1rem; }
.proof-strip strong { display: block; margin-bottom: 0.2rem; }
.proof-strip span { color: var(--muted); }

.section { margin-bottom: 5rem; }
.section-heading { max-width: 760px; margin-bottom: 1.5rem; }
.card, .price-card { padding: 1.35rem; }
.card-number { display: inline-flex; margin-bottom: 2.6rem; color: var(--accent-strong); font-family: var(--font-mono); font-weight: 900; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2rem; align-items: start; }
.steps { display: grid; gap: 1rem; }
.steps article { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.steps span { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; font-weight: 900; }
.steps h3 { grid-column: 2; margin-bottom: 0.25rem; }
.steps p { grid-column: 2; margin-bottom: 0; }

.pricing-grid { align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 0.8rem; }
.price-card p { margin-bottom: 0; }
.price { color: var(--text); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.price-card .button { margin-top: auto; width: 100%; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: var(--shadow); }
.badge { width: fit-content; padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.78rem; font-weight: 900; }

.accordion { display: grid; gap: 0.75rem; }
.accordion summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 850; }
.accordion p { padding: 0 1.2rem 1rem; margin: 0; }

.contact-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: 1.4rem; align-items: center; padding: 1.5rem; }
.signup-form { display: flex; gap: 0.7rem; }
.signup-form input[type="email"] { min-width: 0; flex: 1; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 3rem; color: var(--muted); }
.footer p { margin: 0; }

.modal-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.68); }
.modal-overlay[hidden] { display: none; }
.modal { width: min(520px, 100%); padding: 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.modal-close { float: right; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.toast-container { position: fixed; left: 50%; bottom: 1rem; z-index: 30; transform: translateX(-50%); }
.toast { padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; padding: 0.7rem; }
  .nav-menu { position: fixed; inset: 76px 1rem auto; z-index: 12; display: none; flex-direction: column; align-items: stretch; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .nav-menu.is-open { display: flex; }
  .hero, .split, .contact-band { grid-template-columns: 1fr; }
  .proof-strip, .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .signup-form { flex-direction: column; }
  .signup-form input[type="email"] { min-height: 46px; }
}
