/* ==========================================================================
   Insight Ranking — style.css
   Data-forward category intelligence publisher. Dark Slate + Violet.
   JetBrains Mono headings / Inter body. 4px radius. Dashboard-inspired.
   Bloomberg meets niche industry publication.
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* Primary (Dark Slate) */
  --primary-900: hsl(210, 25%, 10%);
  --primary-800: hsl(210, 25%, 15%);
  --primary-700: hsl(210, 25%, 20%);
  --primary-600: hsl(210, 25%, 25%);
  --primary-500: hsl(210, 25%, 32%);
  --primary-400: hsl(210, 22%, 42%);
  --primary-300: hsl(210, 18%, 55%);
  --primary-200: hsl(210, 15%, 70%);
  --primary-100: hsl(210, 12%, 85%);

  /* Accent (Violet) */
  --accent-700: hsl(265, 60%, 35%);
  --accent-600: hsl(265, 60%, 45%);
  --accent-500: hsl(265, 60%, 55%);
  --accent-400: hsl(265, 55%, 62%);
  --accent-300: hsl(265, 50%, 72%);
  --accent-200: hsl(265, 45%, 82%);
  --accent-100: hsl(265, 40%, 92%);
  --accent-50:  hsl(265, 35%, 96%);

  /* Grey (Cool) */
  --grey-900: hsl(210, 12%, 13%);
  --grey-800: hsl(210, 12%, 22%);
  --grey-700: hsl(210, 10%, 33%);
  --grey-600: hsl(210, 10%, 45%);
  --grey-500: hsl(210, 10%, 55%);
  --grey-400: hsl(210, 10%, 66%);
  --grey-300: hsl(210, 12%, 78%);
  --grey-200: hsl(210, 12%, 88%);
  --grey-100: hsl(210, 12%, 96%);
  --grey-50:  hsl(210, 12%, 98%);

  /* Warning / Alert */
  --color-warning: hsl(35, 90%, 55%);
  --color-warning-dim: hsl(35, 70%, 40%);

  /* Semantic */
  --color-bg:         #ffffff;
  --color-bg-alt:     var(--grey-100);
  --color-text:       var(--grey-900);
  --color-text-muted: var(--grey-600);
  --color-border:     var(--grey-300);
  --color-error:      hsl(0, 70%, 55%);
  --color-error-bg:   hsl(0, 70%, 97%);
  --color-success:    hsl(145, 50%, 38%);

  /* Type Scale (1.25 ratio, 18px base) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3rem;      /* 48px */

  /* Spacing Scale (8px grid) */
  --space-1:  0.5rem;    /* 8px */
  --space-2:  1rem;      /* 16px */
  --space-3:  1.5rem;    /* 24px */
  --space-4:  2rem;      /* 32px */
  --space-5:  2.5rem;    /* 40px */
  --space-6:  3rem;      /* 48px */
  --space-7:  3.5rem;    /* 56px */
  --space-8:  4rem;      /* 64px */
  --space-10: 5rem;      /* 80px */
  --space-12: 6rem;      /* 96px */

  /* Layout */
  --max-width:   1100px;
  --content-max: 65ch;
  --radius:      4px;
}

/* ---------- Keyframe Animations ---------- */
@keyframes pulseVioletGlow {
  0%, 100% {
    box-shadow:
      inset 3px 0 0 var(--accent-500),
      0 0 12px hsla(265, 60%, 55%, 0.15),
      0 0 30px hsla(265, 60%, 55%, 0.05);
  }
  50% {
    box-shadow:
      inset 3px 0 0 var(--accent-400),
      0 0 20px hsla(265, 60%, 55%, 0.3),
      0 0 50px hsla(265, 60%, 55%, 0.1);
  }
}

@keyframes urgencyPulse {
  0%, 100% {
    text-shadow: 0 0 8px hsla(265, 60%, 80%, 0.4);
  }
  50% {
    text-shadow: 0 0 20px hsla(265, 60%, 80%, 0.8), 0 0 40px hsla(265, 60%, 70%, 0.3);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes staggerRow {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- Scroll Reveal Classes ---------- */
.reveal {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for table rows and cards */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-600);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-700);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
  margin-bottom: var(--space-3);
}

h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

p {
  max-width: var(--content-max);
  margin-bottom: var(--space-2);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-10) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

/* ---------- Gradient Dividers ---------- */
.gradient-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--accent-500) 50%, transparent);
  opacity: 0.3;
  margin: 0;
}

/* ---------- Navigation / Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: hsla(210, 25%, 12%, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(265, 60%, 55%, 0.12);
  padding: var(--space-2) 0;
}

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

.site-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--text-lg);
  color: #ffffff;
  letter-spacing: -0.03em;
}

.site-logo .logo-accent {
  color: var(--accent-400);
}

.header-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  background-color: var(--accent-500);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.header-cta:hover {
  background-color: var(--accent-600);
  color: #ffffff;
  box-shadow: 0 0 16px hsla(265, 60%, 55%, 0.35);
}

/* ---------- Data Hero ---------- */
.index-hero {
  position: relative;
  padding-top: calc(var(--space-12) + 60px); /* offset for fixed header */
  padding-bottom: var(--space-8);
  background-color: var(--primary-800);
  color: #ffffff;
  overflow: hidden;
}

/* Ambient violet radial glows */
.index-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, hsla(265, 60%, 50%, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.index-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse, hsla(265, 60%, 45%, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Dot-grid overlay on hero */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, hsla(265, 40%, 70%, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.index-hero > .container {
  position: relative;
  z-index: 1;
}

.index-hero h1 {
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3);
}

.hero-subheadline {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-6);
  color: var(--grey-300);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* Ranking Table in Hero */
.ranking-table-wrapper {
  max-width: 860px;
  margin: 0 auto var(--space-4);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 40px hsla(265, 60%, 50%, 0.08),
    0 0 80px hsla(265, 60%, 45%, 0.04);
  border: 1px solid hsla(265, 60%, 55%, 0.15);
  position: relative;
}

.ranking-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-hint {
  display: none;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--grey-400);
  margin-bottom: var(--space-1);
  font-family: 'JetBrains Mono', monospace;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 580px;
}

.ranking-table thead {
  background-color: var(--primary-900);
}

.ranking-table th {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-400);
  padding: var(--space-2) var(--space-2);
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent-600);
}

.ranking-table td {
  padding: var(--space-2) var(--space-2);
  border-bottom: 1px solid hsla(210, 25%, 25%, 0.5);
  color: var(--grey-200);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ranking-table tbody tr {
  background-color: var(--primary-800);
  transition: background-color 0.12s ease;
}

.ranking-table tbody tr:nth-child(even) {
  background-color: hsl(210, 25%, 16%);
}

.ranking-table tbody tr:hover {
  background-color: hsla(265, 40%, 40%, 0.08);
}

.ranking-table .rank-cell {
  font-weight: 700;
  color: var(--accent-400);
  text-align: center;
  width: 60px;
  font-size: 1rem;
}

.ranking-table .score-cell {
  font-weight: 700;
  font-size: 1rem;
}

.ranking-table .check-cell {
  color: var(--color-success);
  text-align: center;
}

/* Your Store row — pulsing violet glow */
.ranking-table .your-store-row {
  background-color: hsla(265, 60%, 55%, 0.12);
  animation: pulseVioletGlow 3s ease-in-out infinite;
  border: none;
}

.ranking-table .your-store-row:hover {
  background-color: hsla(265, 60%, 55%, 0.2);
}

.ranking-table .your-store-row td {
  color: var(--accent-300);
  font-weight: 700;
  border-bottom-color: hsla(265, 50%, 50%, 0.2);
}

.ranking-table .your-store-row .score-cell,
.ranking-table .your-store-row .check-cell,
.ranking-table .your-store-row .rank-cell {
  color: var(--accent-400);
}

.ranking-table .ellipsis-row td {
  color: var(--grey-500);
  text-align: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
}

.hero-table-note {
  text-align: center;
  max-width: 550px;
  margin: var(--space-3) auto 0;
  color: var(--grey-300);
  font-size: var(--text-sm);
  font-style: italic;
}

.hero-cta-wrapper {
  text-align: center;
  margin-top: var(--space-5);
}


/* Data Annotation — code-editor feel */
.data-annotation {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--grey-500);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--primary-700);
  letter-spacing: 0.04em;
  font-style: normal;
  background-color: hsla(210, 25%, 10%, 0.3);
  border-radius: var(--radius);
}

/* Data annotation on dark sections */
.index-hero .data-annotation {
  background-color: hsla(210, 25%, 8%, 0.5);
  border-top-color: hsla(265, 60%, 55%, 0.1);
}

.stakes-section + .methodology-section .data-annotation,
.methodology-section .data-annotation {
  background-color: hsla(210, 12%, 92%, 0.6);
  border-top-color: var(--grey-200);
  color: var(--grey-500);
}

.about-section .data-annotation {
  background-color: hsla(210, 12%, 90%, 0.5);
  border-top-color: var(--grey-200);
  color: var(--grey-400);
}

/* ---------- Stakes Section ---------- */
.stakes-section {
  position: relative;
  padding: var(--space-8) 0;
  background-color: hsl(210, 28%, 8%);
  color: var(--grey-200);
  overflow: hidden;
}

/* Different glow position than hero (visual variety) */
.stakes-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, hsla(265, 55%, 40%, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.stakes-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stakes-inner p {
  max-width: none;
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

/* "bottom 50%" alert highlight */
.stakes-alert-text {
  background: linear-gradient(90deg, hsla(0, 70%, 50%, 0.08), hsla(35, 90%, 55%, 0.08));
  border-left: 3px solid var(--color-warning);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: left;
}

.stakes-kicker {
  color: #ffffff;
  font-weight: 600;
  font-size: var(--text-xl);
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: #ffffff;
  background-color: var(--accent-500);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary:hover {
  background-color: var(--accent-600);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px hsla(265, 60%, 55%, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-500);
  background-color: transparent;
  border: 2px solid var(--accent-500);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--accent-500);
  color: #ffffff;
  box-shadow: 0 0 16px hsla(265, 60%, 55%, 0.25);
}

.reassurance-text {
  display: block;
  text-align: center;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* In hero (light text) */
.index-hero .reassurance-text {
  color: var(--grey-400);
}

/* ---------- Methodology Section (Dark, Dashboard-style) ---------- */
.methodology-section {
  padding: var(--space-10) 0;
  background-color: var(--primary-800);
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow */
.methodology-section::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, hsla(265, 55%, 45%, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.methodology-section h2 {
  text-align: center;
  margin-bottom: var(--space-2);
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.methodology-intro {
  text-align: center;
  max-width: var(--content-max);
  margin: 0 auto var(--space-6);
  color: var(--grey-400);
  position: relative;
  z-index: 1;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.methodology-card {
  background-color: hsl(210, 25%, 13%);
  border: 1px solid hsla(255, 30%, 80%, 0.06);
  border-radius: 6px;
  padding: var(--space-4) var(--space-3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.methodology-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px hsla(265, 60%, 55%, 0.06);
  transform: translateY(-4px);
  border-color: hsla(265, 50%, 60%, 0.15);
}

.score-dimension-weight {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--accent-400);
  margin-bottom: var(--space-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px hsla(265, 60%, 55%, 0.2);
}

.score-dimension-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--grey-100);
  margin-bottom: var(--space-1);
}

.methodology-card p {
  font-size: var(--text-sm);
  color: var(--grey-400);
  line-height: 1.55;
  max-width: none;
  margin-bottom: 0;
}

.card-consequence {
  margin-top: var(--space-2) !important;
  padding-top: var(--space-2);
  border-top: 1px solid hsla(255, 20%, 50%, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs) !important;
  color: var(--color-warning) !important;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0;
}

.methodology-footer {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--grey-400);
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 1;
}

/* ---------- Testimonial Block (Dark context) ---------- */
.testimonial-block {
  max-width: 640px;
  margin: var(--space-6) auto 0;
  padding: var(--space-4);
  background-color: hsla(210, 25%, 10%, 0.5);
  border-left: 3px solid var(--accent-500);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--grey-200);
  line-height: 1.7;
  max-width: none;
  margin-bottom: var(--space-2);
  font-style: normal;
}

.testimonial-cite {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  color: var(--grey-500);
  font-style: normal;
}

/* Data annotation within methodology (dark bg) */
.methodology-section .data-annotation {
  background-color: hsla(210, 25%, 8%, 0.5);
  border-top-color: hsla(265, 60%, 55%, 0.1);
  color: var(--grey-500);
  position: relative;
  z-index: 1;
}

/* ---------- About Section (Light — contrast break) ---------- */
.about-section {
  padding: var(--space-10) 0;
  background-color: var(--grey-50);
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
}

.about-section h2 {
  margin-bottom: var(--space-4);
  color: var(--primary-800);
}

.about-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
}

.about-text p {
  margin-bottom: var(--space-3);
}

/* Lead magnet section removed — consolidated into final CTA */

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-2);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form-row .form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-600);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px hsla(265, 60%, 55%, 0.2), 0 0 16px hsla(265, 60%, 55%, 0.1);
}

/* Dark-themed inputs */
.form-input-dark {
  background-color: var(--primary-700);
  border-color: var(--primary-600);
  color: #ffffff;
}

.form-input-dark::placeholder {
  color: var(--grey-500);
}

.form-input-dark:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px hsla(265, 60%, 55%, 0.25), 0 0 20px hsla(265, 60%, 55%, 0.12);
  background-color: var(--primary-600);
}

.form-container {
  max-width: 480px;
  margin: 0 auto;
}

.form-container-sm {
  max-width: 400px;
  margin: 0 auto;
}

.form-label-dark {
  color: var(--grey-400);
}

.btn-subscribe-dark {
  color: #fff;
  border-color: var(--grey-400);
  width: 100%;
}

.form-input.input-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px hsla(0, 70%, 55%, 0.1);
}

.form-error-msg {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: 0.25rem;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.form-submit .btn-primary {
  width: 100%;
  text-align: center;
}

.form-success {
  display: none;
  padding: var(--space-4);
  background-color: hsla(145, 40%, 30%, 0.2);
  border: 1px solid hsla(145, 40%, 50%, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

.form-success.visible {
  display: block;
}

.form-success p {
  color: hsl(145, 50%, 65%);
  font-weight: 500;
  max-width: none;
  margin-bottom: 0;
}

/* ---------- Urgency Banner ---------- */
.urgency-banner {
  background: linear-gradient(135deg, var(--accent-700), var(--accent-600), var(--accent-500));
  padding: var(--space-3) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on urgency banner */
.urgency-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsla(265, 60%, 80%, 0.08) 30%,
    hsla(265, 60%, 80%, 0.15) 50%,
    hsla(265, 60%, 80%, 0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.urgency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.urgency-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-700);
  background-color: #ffffff;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  line-height: 1;
}

.urgency-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--text-base);
  color: #ffffff;
  letter-spacing: -0.01em;
  animation: urgencyPulse 2.5s ease-in-out infinite;
}

/* ---------- Final CTA Section ---------- */
.final-cta-section {
  padding: var(--space-12) 0;
  background-color: var(--primary-800);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Subtle glow */
.final-cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, hsla(265, 55%, 50%, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-section > .container {
  position: relative;
  z-index: 1;
}

.final-cta-section h2 {
  color: #ffffff;
  margin-bottom: var(--space-5);
}

.loss-language {
  color: var(--grey-300);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-4);
  max-width: 500px;
}

.final-cta-section .reassurance-text {
  color: var(--grey-400);
}

.subscribe-fallback {
  text-align: center;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  max-width: none;
}

.subscribe-fallback a {
  color: var(--grey-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.subscribe-fallback a:hover {
  color: #ffffff;
}

.subscribe-inline {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--primary-700);
}

.subscribe-inline .form-input::placeholder {
  color: var(--grey-500);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-6) 0;
  background-color: hsl(210, 28%, 7%);
  border-top: 1px solid hsla(265, 60%, 55%, 0.08);
  color: var(--grey-400);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--grey-200);
  margin-bottom: var(--space-1);
}

.footer-contact p {
  margin-bottom: 0.25rem;
  max-width: none;
}

.footer-contact a {
  color: var(--grey-400);
  transition: color 0.15s ease;
}

.footer-contact a:hover {
  color: var(--accent-400);
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  margin-bottom: 0.25rem;
  max-width: none;
}

.footer-legal a {
  color: var(--grey-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--accent-400);
}

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: var(--primary-700);
  padding: 0.625rem var(--space-2);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: var(--max-width);
  margin: 0 auto;
}

.sticky-cta .btn-primary {
  flex: 1;
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: var(--text-sm);
}

.sticky-cta-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: var(--grey-400);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.sticky-cta-close:hover {
  color: #ffffff;
}

/* ---------- Privacy Page Styles ---------- */
.privacy-page {
  padding-top: calc(var(--space-10) + 60px);
  padding-bottom: var(--space-10);
}

.privacy-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.privacy-page .last-updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: var(--space-6);
}

.privacy-page h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.privacy-page p,
.privacy-page li {
  max-width: var(--content-max);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.privacy-page ul {
  padding-left: var(--space-3);
  margin-bottom: var(--space-3);
}

.privacy-page li {
  margin-bottom: var(--space-1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---------- Tablet (768px - 1100px) ---------- */
@media (max-width: 1100px) {
  .container {
    padding: 0 var(--space-3);
  }

  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile (< 768px) ---------- */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  .section {
    padding: var(--space-8) 0;
  }

  /* Header */
  .header-cta {
    font-size: var(--text-xs);
    padding: 0.4rem 0.75rem;
  }

  /* Hero */
  .index-hero {
    padding-top: calc(var(--space-8) + 56px);
    padding-bottom: var(--space-6);
  }

  .index-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subheadline {
    font-size: var(--text-base);
  }

  /* Dot grid smaller on mobile */
  .hero-dot-grid {
    background-size: 20px 20px;
  }

  /* Table: horizontal scroll on mobile */
  .scroll-hint {
    display: block;
  }

  .ranking-table-wrapper {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .ranking-table-scroll {
    position: relative;
  }

  /* Fade indicator on right edge */
  .ranking-table-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--primary-800));
    pointer-events: none;
    z-index: 1;
  }

  .ranking-table .rank-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: inherit;
  }

  /* Methodology */
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .methodology-card {
    padding: var(--space-3) var(--space-3);
  }

  .score-dimension-weight {
    font-size: var(--text-2xl);
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Buttons — full width on mobile */
  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-legal {
    text-align: left;
  }

  /* Sticky CTA — show on mobile */
  .sticky-cta {
    display: block;
  }

  /* Privacy page */
  .privacy-page {
    padding-top: calc(var(--space-8) + 56px);
  }

  .privacy-page h1 {
    font-size: var(--text-2xl);
  }
}

/* ---------- Small Mobile (< 480px) ---------- */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: var(--text-lg);
  }

  .index-hero h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: var(--space-6) 0;
  }

  .container {
    padding: 0 var(--space-2);
  }

  .ranking-table th,
  .ranking-table td {
    padding: 0.625rem 0.5rem;
    font-size: var(--text-xs);
  }

  .methodology-card {
    padding: var(--space-2);
  }

  .score-dimension-weight {
    font-size: var(--text-xl);
  }
}
