/* ============================================
   RMN DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* --- Typography --- */
  --font-headline: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Headline Accent (same as --blue) --- */
  --accent-highlight: #1B92BE;

  /* --- Base Colors --- */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F8F8F8;
  --border-color: rgba(229, 231, 235, 0.45);
  --border-solid: #E5E7EB;

  /* --- Text --- */
  --text-primary: #0A0A0A;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-inverse: #FFFFFF;
  --text-inverse-secondary: rgba(255, 255, 255, 0.6);

  /* --- Primary Accents — Blue, Coral, Navy only --- */
  --blue: #1B92BE;
  --blue-dark: #157A9F;
  --blue-light: rgba(27, 146, 190, 0.1);
  --blue-medium: rgba(27, 146, 190, 0.18);

  --coral: #F472B6;
  --coral-dark: #E05A9E;
  --coral-light: rgba(244, 114, 182, 0.12);
  --blush: rgba(251, 191, 210, 0.3);
  --blush-strong: rgba(251, 168, 196, 0.25);

  --navy: #0F172A;
  --navy-light: #1E293B;

  /* --- Stage Colors --- */
  --stage-1: #60A5FA;
  --stage-2: #2DD4BF;
  --stage-3: #FBBF24;
  --stage-4: #34D399;
  --stage-1-bg: rgba(96, 165, 250, 0.12);
  --stage-1-solid: #EFF6FF;
  --stage-2-bg: rgba(45, 212, 191, 0.12);
  --stage-2-solid: #ECFDF5;
  --stage-3-bg: rgba(251, 191, 36, 0.12);
  --stage-3-solid: #FFFBEB;
  --stage-4-bg: rgba(52, 211, 153, 0.12);
  --stage-4-solid: #ECFDF5;

  /* --- Atmospheric Gradients (E5 bold washes) --- */
  --atmosphere-blush: rgba(251, 168, 196, 0.35);
  --atmosphere-blush-mid: rgba(244, 114, 182, 0.2);
  --atmosphere-blue-accent: rgba(27, 146, 190, 0.12);
  --atmosphere-blue: rgba(96, 165, 250, 0.18);
  --atmosphere-purple: rgba(167, 139, 250, 0.2);
  --atmosphere-lavender: rgba(196, 181, 253, 0.25);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(255, 255, 255, 0.1) inset;
  --shadow-score: 0 4px 20px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.04);

  /* --- Spacing --- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* --- Radius --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s var(--ease-in-out);
  --transition-base: 0.2s var(--ease-in-out);
  --transition-slow: 0.4s var(--ease-out);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
.h1-hero {
  font-family: var(--font-headline);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}
.h1-hero strong, .h1-hero b {
  font-weight: 800;
}
.h1-hero em, .h1-hero .accent {
  font-style: italic;
  color: var(--accent-highlight);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95em;
}

h2, .h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
h2 em, .h2 em {
  font-style: italic;
  color: var(--accent-highlight);
  font-family: var(--font-body);
  font-weight: 600;
}

h3, .h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.body-base {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

.caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* E5-style pill label */
.mono-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.mono-data {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 90% 50%, rgba(196, 181, 253, 0.12), transparent),
    radial-gradient(ellipse 50% 50% at 10% 50%, rgba(251, 168, 196, 0.08), transparent),
    var(--light-gray);
}

/* ============================================
   BACKGROUNDS & ATMOSPHERE (E5 Style)
   ============================================ */
/* E5-style bold atmospheric washes — visible, sweeping, dramatic */
.bg-warm {
  background:
    radial-gradient(ellipse 75% 70% at 85% 15%, rgba(251, 168, 196, 0.35), transparent),
    radial-gradient(ellipse 65% 65% at 10% 85%, rgba(167, 139, 250, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(96, 165, 250, 0.12), transparent),
    var(--white);
}

.bg-warm-strong {
  background:
    radial-gradient(ellipse 80% 80% at 90% 10%, rgba(251, 168, 196, 0.4), transparent),
    radial-gradient(ellipse 70% 70% at 5% 90%, rgba(167, 139, 250, 0.3), transparent),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(96, 165, 250, 0.12), transparent),
    var(--white);
}

.bg-blush-blue {
  background:
    radial-gradient(ellipse 80% 90% at 95% 0%, rgba(251, 168, 196, 0.45), transparent),
    radial-gradient(ellipse 70% 70% at 0% 100%, rgba(167, 139, 250, 0.25), transparent),
    radial-gradient(ellipse 40% 40% at 40% 40%, rgba(96, 165, 250, 0.08), transparent),
    var(--white);
}

/* Transition band — fades to lavender at bottom (E5 section transitions) */
.bg-fade-lavender {
  background:
    linear-gradient(to bottom, transparent 60%, rgba(196, 181, 253, 0.15) 100%),
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(251, 168, 196, 0.3), transparent),
    radial-gradient(ellipse 60% 60% at 15% 70%, rgba(167, 139, 250, 0.2), transparent),
    var(--white);
}

/* Graph paper grid — prominent, visible, engineering aesthetic */
.bg-graph-grid {
  position: relative;
}
.bg-graph-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, black 25%, transparent 75%);
}
/* Finer sub-grid overlay */
.bg-graph-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 75% at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at center, black 20%, transparent 70%);
}

/* Graph grid for content sections — still clearly visible */
.bg-graph-light {
  position: relative;
}
.bg-graph-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 20%, transparent 70%);
}
/* Sub-grid for light variant */
.bg-graph-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 15%, transparent 65%);
}

/* Graph grid on dark backgrounds — white lines */
.bg-graph-dark {
  position: relative;
}
.bg-graph-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 20%, transparent 70%);
}
.bg-graph-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 15%, transparent 65%);
}

/* Ultra dramatic gradient — one big statement section */
.bg-dramatic {
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(251, 168, 196, 0.55), transparent),
    radial-gradient(ellipse 80% 80% at 0% 100%, rgba(167, 139, 250, 0.45), transparent),
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(96, 165, 250, 0.2), transparent),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(27, 146, 190, 0.12), transparent),
    var(--white);
}

.bg-dark {
  background: var(--navy);
  color: var(--text-inverse);
}

/* ============================================
   GLASSMORPHISM CARDS (E5 Style)
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-glass);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card-solid {
  background: var(--white);
  backdrop-filter: none;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}
.card-icon-blue { background: var(--blue-light); color: var(--blue); }
.card-icon-stage1 { background: var(--stage-1-bg); color: var(--stage-1); }
.card-icon-stage2 { background: var(--stage-2-bg); color: var(--stage-2); }
.card-icon-stage3 { background: var(--stage-3-bg); color: var(--stage-3); }
.card-icon-stage4 { background: var(--stage-4-bg); color: var(--stage-4); }

.card h3 { margin-bottom: var(--space-sm); }
.card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* ============================================
   SCORE CARDS (E5 Style — bold metric blocks)
   ============================================ */
.score-card {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-score);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.score-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.score-card-blue {
  background: linear-gradient(135deg, #1B92BE, #157A9F);
  color: white;
}
.score-card-coral {
  background: linear-gradient(135deg, #F472B6, #E879A8);
  color: white;
}
.score-card-navy {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: white;
}
.score-card-light {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Decorative glow on score cards */
.score-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 80%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.score-value {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.score-card-light .score-value {
  color: var(--blue);
}
.score-suffix {
  font-size: 0.5em;
  font-weight: 500;
  opacity: 0.7;
}
.score-label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: var(--space-xs);
}
.score-card-light .score-label {
  color: var(--text-secondary);
}
.score-sublabel {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

/* Score card badge/tag (E5 "Turn Key" style) */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  margin-top: var(--space-md);
}
.score-card-light .score-badge {
  background: var(--blue-light);
  color: var(--blue);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

/* Score card comparison row */
.score-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}
.score-vs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   MOTION — SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Flow line animations */
@keyframes flowDash {
  to { stroke-dashoffset: 0; }
}
@keyframes flowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.flow-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: flowDash 2s var(--ease-out) forwards;
}

/* ============================================
   1. NAVIGATION BAR
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-lg);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-banner {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 9px 0;
  text-align: center;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
}
.nav-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.nav-banner-tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  color: #E040A0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(224, 64, 160, 0.15);
  padding: 3px 8px;
  border-radius: 9999px;
}
.nav-banner a {
  color: #E040A0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-banner a:hover {
  color: #E040A0;
}
.nav-dropdown { position: relative; }
.nav-dropdown > span {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: default;
}
.nav-dropdown:hover > span { color: var(--text-primary); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  min-width: 160px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.nav-dropdown-menu a:hover { color: var(--text-primary); background: var(--light-gray); }
.nav-dropdown-menu a.active { color: var(--blue); font-weight: 600; }
.resources-strip {
  padding: var(--space-3xl) 0;
  background: var(--navy);
}
.resources-strip-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.resources-strip-header span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.resources-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.resources-strip-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.resources-strip-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.resources-strip-card img {
  width: 100%;
  display: block;
}
.resources-strip-card-body {
  padding: var(--space-lg);
}
.resources-strip-card-type {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--accent-highlight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
.resources-strip-card-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin-bottom: var(--space-md);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

/* ============================================
   7. CTA BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2), 0 4px 14px rgba(15, 23, 42, 0.15);
}
.btn-primary:hover {
  background: #1E293B;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.25), 0 8px 22px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 2px rgba(27, 146, 190, 0.2), 0 4px 14px rgba(27, 146, 190, 0.18);
}
.btn-blue:hover {
  background: var(--blue-dark);
  box-shadow: 0 2px 4px rgba(27, 146, 190, 0.25), 0 8px 22px rgba(27, 146, 190, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-solid);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--light-gray);
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 14px 32px;
}
.btn-sm {
  font-size: 0.8125rem;
  padding: 7px 16px;
}
.btn-dark {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
/* Arrow icon for CTA */
.btn .arrow {
  transition: transform var(--transition-fast);
  font-size: 1.1em;
}
.btn:hover .arrow {
  transform: translateX(2px);
}

/* ============================================
   2. HERO SECTION
   ============================================ */
.hero {
  padding: calc(64px + 36px + var(--space-5xl)) 0 var(--space-5xl);
  min-height: 94vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-label {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title { margin-bottom: var(--space-lg); }
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* ============================================
   3. SECTION HEADER
   ============================================ */
.section-header {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}
.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header .mono-label {
  margin-bottom: var(--space-md);
  display: block;
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   5. STAGE INDICATOR
   ============================================ */
.stage-indicator {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  position: relative;
  padding: var(--space-xl) 0;
}
.stage-indicator::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 48px;
  right: 48px;
  height: 3px;
  background: var(--border-solid);
  border-radius: 2px;
}
.stage-item {
  text-align: center;
  position: relative;
}
.stage-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stage-item:nth-child(1) .stage-dot { background: var(--stage-1); }
.stage-item:nth-child(2) .stage-dot { background: var(--stage-2); }
.stage-item:nth-child(3) .stage-dot { background: var(--stage-3); color: var(--text-primary); }
.stage-item:nth-child(4) .stage-dot { background: var(--stage-4); }

.stage-name {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.stage-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Animated progress */
.stage-indicator-animated .stage-progress {
  position: absolute;
  top: 40px;
  left: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--stage-1), var(--stage-2), var(--stage-3), var(--stage-4));
  width: 0;
  transition: width 1.8s var(--ease-out);
  z-index: 0;
  border-radius: 2px;
}
.stage-indicator-animated.visible .stage-progress {
  width: calc(100% - 96px);
}

/* ============================================
   6. METRIC DISPLAY
   ============================================ */
.metric {
  text-align: center;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.metric-value .metric-suffix {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--text-secondary);
}
.metric-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.metric-sublabel {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-2xl);
}

.bg-dark .metric-value { color: var(--text-inverse); }
.bg-dark .metric-label { color: var(--text-inverse-secondary); }

/* ============================================
   8. TESTIMONIAL / QUOTE BLOCK
   ============================================ */
.quote-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-headline);
  font-size: 4rem;
  font-weight: 200;
  line-height: 1;
  color: var(--blue);
  opacity: 0.6;
  margin-bottom: var(--space-md);
}
.quote-text {
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  margin-bottom: var(--space-xl);
}
.quote-text em {
  color: var(--accent-highlight);
  font-family: var(--font-body);
  font-weight: 600;
}
.quote-attribution {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-inverse-secondary);
}
.quote-attribution strong {
  color: var(--text-inverse);
  font-weight: 600;
}

/* ============================================
   9. FEATURE ROW
   ============================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-text .mono-label {
  margin-bottom: var(--space-md);
  display: block;
}
.feature-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.feature-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.feature-visual {
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 80% 80% at 85% 15%, rgba(251, 168, 196, 0.3), transparent),
    radial-gradient(ellipse 70% 70% at 10% 85%, rgba(167, 139, 250, 0.22), transparent),
    var(--light-gray);
  border: 1px solid var(--border-color);
}

.feature-visual-inner {
  padding: var(--space-xl);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Data bars */
.data-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.data-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.data-bar-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}
.data-bar-track {
  flex: 1;
  height: 32px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(4px);
}
.data-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 1.4s var(--ease-out);
  width: 0;
}
.data-bar-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 40px;
  flex-shrink: 0;
}

/* Mini flow */
.flow-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.flow-node {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: white;
}
.flow-arrow {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* ============================================
   KEY FINDING TAG (E5 Style callout)
   ============================================ */
.finding-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  color: var(--blue);
}
.finding-tag-coral {
  background: var(--coral-light);
  color: var(--coral);
}
.finding-tag-blue {
  background: var(--blue-light);
  color: var(--blue);
}
.finding-tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .stage-indicator {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .stage-indicator::before { display: none; }
  .hero { min-height: auto; padding-top: calc(64px + 36px + var(--space-3xl)); }
  .score-comparison { grid-template-columns: 1fr; }
  .score-vs { text-align: center; }
  .score-grid { grid-template-columns: 1fr 1fr; }
}
