/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2d42;
  --crimson: #c0392b;
  --crimson-light: #e74c3c;
  --bg: #f4f3ef;
  --bg-warm: #ede9e0;
  --fg: #0d1b2a;
  --fg-muted: #4a5a6b;
  --fg-light: #7a8a9b;
  --white: #ffffff;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  margin-bottom: 2rem;
}
.eyebrow-tag {
  display: inline-block;
  background: rgba(192, 57, 43, 0.2);
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: #f4a59a;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
}
.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 16ch;
  line-height: 1.1;
}
.hero-headline em {
  color: var(--crimson-light);
  font-style: italic;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2.5rem;
}
.stat {
  padding-right: 2.5rem;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  max-width: 14ch;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  margin-right: 2.5rem;
  align-self: center;
}

/* ===== PROBLEM ===== */
.problem {
  background: var(--bg-warm);
  padding: 6rem 2rem;
  border-top: 1px solid rgba(13,27,42,0.06);
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.problem-headline {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.35;
  color: var(--navy);
}
.problem-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  border-left: 3px solid var(--crimson);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.problem-quote cite {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: normal;
  display: block;
  padding-left: 1.5rem;
}

/* ===== FEATURES ===== */
.features {
  background: var(--white);
  padding: 7rem 2rem;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 3.5rem;
  max-width: 20ch;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  padding: 2rem;
  border: 1px solid rgba(13,27,42,0.08);
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(13,27,42,0.1);
}
.feature-icon {
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== WORKFLOW ===== */
.workflow {
  background: var(--navy);
  color: var(--white);
  padding: 7rem 2rem;
}
.workflow-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.workflow-headline {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 3.5rem;
}
.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 2rem;
}
.step {
  flex: 1;
  min-width: 180px;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(192, 57, 43, 0.4);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.step-arrow {
  align-self: center;
  padding: 0 1.5rem;
  opacity: 0.5;
}

/* ===== A/B TESTING ===== */
.abtesting {
  background: var(--bg-warm);
  padding: 7rem 2rem;
  border-top: 1px solid rgba(13,27,42,0.06);
}
.abtesting-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.abtesting-visual {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}
.ab-variant {
  flex: 1;
  background: var(--white);
  border: 1px solid rgba(13,27,42,0.1);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.variant-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.variant-caption {
  font-size: 0.85rem;
  color: var(--fg);
  line-height: 1.5;
  font-style: italic;
  flex: 1;
}
.variant-bar {
  height: 4px;
  background: var(--crimson);
  border-radius: 2px;
  opacity: 0.4;
}
.variant-b .variant-bar { opacity: 1; background: var(--crimson); }
.variant-result {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.variant-result.winner { color: var(--crimson); }
.winner-tag {
  display: inline-block;
  background: var(--crimson);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.ab-vs {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg-light);
  align-self: center;
}
.abtesting-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}
.abtesting-text p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ===== CLOSING ===== */
.closing {
  background: var(--crimson);
  color: var(--white);
  padding: 7rem 2rem;
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.closing p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}
.footer-copy {
  font-size: 0.78rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .problem-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .abtesting-inner { grid-template-columns: 1fr; }
  .abtesting-visual { flex-direction: column; }
  .ab-vs { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .stat-divider { display: none; }
  .stat { padding-right: 0; padding-bottom: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-steps { flex-direction: column; }
  .step-arrow { display: none; }
  .nav-tagline { display: none; }
  .footer-inner { flex-direction: column; gap: 0.75rem; }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: var(--crimson); color: white; }
