/* ===== Design Tokens ===== */
:root {
  /* Palette — warm neutrals with restrained accents */
  --color-ink: #1a1a2e;
  --color-body: #6b6b7b;
  --color-muted: #9a9aab;
  --color-accent: #0066cc;
  --color-accent-dark: #004d99;
  --color-accent-subtle: rgba(0,102,204,0.08);
  --color-purple: #7c3aed;
  --color-purple-subtle: rgba(124,58,237,0.07);
  --color-green: #00a86b;
  --color-orange: #e65100;
  --color-bg: #FAFAF8;
  --color-bg-elevated: #ffffff;
  --color-bg-tinted: #F3F2EF;
  --color-border: rgba(0,0,0,0.06);
  --color-border-strong: rgba(0,0,0,0.1);

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 1.0625rem;
  --line-height-body: 1.65;

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 720px;
  --section-padding: 120px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: var(--line-height-body);
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 24px; }

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.5px;
}
.logo span { color: var(--color-accent); }

nav { display: flex; align-items: center; gap: 32px; }
nav a {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
nav a:hover { color: var(--color-ink); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-ink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-ink);
  color: #fff;
}
.btn-primary:hover {
  background: #2a2a3e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
}
.btn-ghost:hover {
  border-color: var(--color-ink);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--color-ink);
}
.btn-white:hover {
  background: #f5f5f5;
  color: var(--color-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--color-purple-subtle);
  color: var(--color-purple);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-platforms {
  color: var(--color-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-platforms span {
  margin: 0 6px;
  opacity: 0.4;
}

/* Hero illustration */
.hero-demo {
  max-width: 380px;
  margin: 56px auto 0;
  position: relative;
}

.hero-illustration {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

/* ===== Section Defaults ===== */
section { padding: var(--section-padding) 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-body);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 64px;
}

/* ===== Stats Section ===== */
.stats-section {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.stat:nth-child(1) .stat-number { color: var(--color-purple); }
.stat:nth-child(2) .stat-number { color: var(--color-accent); }
.stat:nth-child(3) .stat-number { color: var(--color-ink); }
.stat:nth-child(4) .stat-number { color: var(--color-green); }

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-body);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

.stats-insight {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 40px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stats-insight p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-body);
}

.stats-insight strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* ===== Steps ===== */
.steps-section {
  background: var(--color-bg-tinted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  position: relative;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9375rem;
  color: var(--color-body);
  line-height: 1.65;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrap svg { width: 24px; height: 24px; }

.icon-purple { background: var(--color-purple-subtle); }
.icon-blue { background: var(--color-accent-subtle); }
.icon-green { background: rgba(0,168,107,0.08); }
.icon-orange { background: rgba(230,81,0,0.07); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-body);
  line-height: 1.65;
}

.feature-score {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

/* ===== Audience ===== */
.audience-section {
  background: var(--color-bg-tinted);
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.audience-list li {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--color-body);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.audience-list li:hover {
  border-color: var(--color-border-strong);
  color: var(--color-ink);
}

/* ===== CTA ===== */
.cta-section {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,102,204,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  position: relative;
}

.cta-section .btn { position: relative; }

.cta-email {
  margin-top: 20px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  position: relative;
}
.cta-email a { color: rgba(255,255,255,0.65); text-decoration: underline; }
.cta-email a:hover { color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.45);
  padding: 48px 0;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .logo { color: #fff; font-size: 1.2rem; }
.footer-brand .logo span { color: rgba(109,179,242,0.8); }
.footer-brand p { margin-top: 8px; max-width: 280px; line-height: 1.6; }

.footer-links { display: flex; gap: 56px; }
.footer-links h4 {
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.45); }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.8125rem;
}

/* ===== Legal Pages ===== */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; color: var(--color-ink); font-weight: 700; }
.legal .last-updated { color: var(--color-muted); margin-bottom: 40px; font-size: 0.9375rem; }
.legal h2 { font-size: 1.25rem; margin-top: 40px; margin-bottom: 12px; color: var(--color-ink); font-weight: 600; }
.legal p, .legal li { color: var(--color-body); margin-bottom: 12px; font-size: 0.9375rem; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal a { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --section-padding: 80px; }

  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-demo { max-width: 280px; margin-top: 40px; }
  .hero-platforms { font-size: 0.75rem; }

  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 48px; }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .stat-number { font-size: 2.25rem; }
  .stats-insight { padding: 24px; }

  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }

  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  }

  .nav-toggle { display: block; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }

  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .stat-number { font-size: 2.5rem; }

  .cta-section h2 { font-size: 1.75rem; }
}
