/* ============================================
   MindGuardian — Design System & Styles
   Fonts: Outfit (headlines) + system (body fallback)
   Palette: Warm cream bg, coral accent, mint secondary
   ============================================ */

/* ----- CUSTOM PROPERTIES ----- */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F1EE;
  --charcoal: #1a1a1a;
  --charcoal-60: #1a1a1a99;
  --charcoal-20: #1a1a1a33;
  --charcoal-10: #1a1a1a1a;
  --charcoal-05: #1a1a1a0d;
  --white: #ffffff;
  --accent: #3B82F6;
  --accent-soft: #3B82F618;
  --mint: #2DD4A8;
  --mint-soft: #2DD4A814;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --radius-full: 9999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-soft: 0 20px 40px -15px rgba(0,0,0,0.06);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px -8px rgba(0,0,0,0.06);
  --shadow-elevated: 0 4px 12px rgba(0,0,0,0.05), 0 20px 48px -12px rgba(0,0,0,0.08);
  --nav-height: 4rem;
  --section-gap: clamp(6rem, 10vw, 10rem);
  --container-max: 1200px;
}

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

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

/* ----- UTILITIES ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--charcoal-60);
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 1rem;
}

.section-body {
  font-size: 1.125rem;
  color: var(--charcoal-60);
  line-height: 1.7;
  max-width: 55ch;
  margin-top: 1.25rem;
}

.eyebrow-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
}


/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(4px);
  transition:
    opacity 0.8s var(--ease-spring),
    transform 0.8s var(--ease-spring),
    filter 0.8s var(--ease-spring);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* ============================================
   FLOATING GLASS NAV
   ============================================ */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  pointer-events: none;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 32px rgba(0,0,0,0.06);
  pointer-events: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: auto;
}

.nav-logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal-60);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-spring);
}

.nav-link:hover {
  color: var(--charcoal);
  background: var(--charcoal-05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--charcoal);
  color: var(--white);
  transition: all 0.5s var(--ease-spring);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #2d2d2d;
  transform: scale(1.02);
}

.nav-cta:active {
  transform: scale(0.98);
}

.nav-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.4s var(--ease-spring);
}

.nav-cta:hover .nav-cta-arrow {
  background: rgba(255,255,255,0.25);
  transform: translate(1px, -1px);
}

.hamburger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.hamburger-line {
  position: absolute;
  width: 1.125rem;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: all 0.4s var(--ease-spring);
}

.hamburger-line--top {
  transform: translateY(-3.5px);
}

.hamburger-line--bottom {
  transform: translateY(3.5px);
}

.hamburger.active .hamburger-line--top {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-line--bottom {
  transform: rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-spring);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-link {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.5s var(--ease-spring),
    transform 0.5s var(--ease-spring);
  transition-delay: var(--delay, 0s);
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-link--cta {
  color: var(--accent);
}


/* ============================================
   HERO — CENTERED with VIDEO BACKGROUND
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inward radial mask — fades the video to the site background from all edges */
.hero-video-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 70% 65% at 50% 50%,
      transparent 0%,
      transparent 25%,
      rgba(250, 250, 248, 0.3) 45%,
      rgba(250, 250, 248, 0.7) 60%,
      rgba(250, 250, 248, 0.92) 75%,
      var(--bg) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 7rem 1.5rem 4rem;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--charcoal);
}

.hero-headline-accent {
  color: var(--accent);
  display: block;
  margin-top: 0.1em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.7;
  max-width: 52ch;
  margin: 1.5rem auto 0;
  text-shadow: 0 0 12px var(--bg), 0 0 24px var(--bg), 0 0 40px var(--bg);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--charcoal-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 2rem;
  background: var(--charcoal-20);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.5s var(--ease-spring);
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}

.btn-primary:hover {
  background: #2d2d2d;
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

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

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal-20);
}

.btn-ghost:hover {
  border-color: var(--charcoal);
  background: var(--charcoal-05);
}

.btn-ghost:active {
  transform: scale(0.98);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.4s var(--ease-spring);
}

.btn-primary:hover .btn-icon {
  background: rgba(255,255,255,0.25);
  transform: translate(2px, -2px);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1.125rem 2.25rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}


/* ============================================
   PROBLEM SECTION
   ============================================ */
.section-problem {
  background: var(--bg);
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card {
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--charcoal-10);
  box-shadow: var(--shadow-soft);
  transition: all 0.5s var(--ease-spring);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.stat-card--accent {
  background: var(--charcoal);
  color: var(--white);
  border-color: transparent;
}

.stat-card--accent .stat-label {
  color: rgba(255,255,255,0.6);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--charcoal-60);
  line-height: 1.5;
}


/* ============================================
   FEATURES BENTO GRID
   ============================================ */
.section-features {
  background: var(--bg-alt);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  grid-column: span 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.5s var(--ease-spring);
}

.bento-card:hover {
  transform: translateY(-3px);
}

.bento-card--large {
  grid-column: span 6;
  grid-row: span 2;
}

.bento-card--wide {
  grid-column: span 8;
}

.bento-card-inner {
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;

  /* Double-bezel inner highlight */
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.bento-card-visual {
  flex: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

.bento-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-desc {
  font-size: 0.875rem;
  color: var(--charcoal-60);
  line-height: 1.6;
  margin-top: 0.375rem;
}

/* Feature animations */
.shield-anim {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-svg {
  width: 100px;
  height: 120px;
}

.shield-path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: shieldDraw 3s var(--ease-spring) forwards infinite;
}

.shield-path-inner {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: shieldDraw 3s var(--ease-spring) 0.3s forwards infinite;
}

.shield-core {
  animation: pulse 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes shieldDraw {
  0% { stroke-dashoffset: 340; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.timer-anim {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-svg {
  width: 80px;
  height: 80px;
}

.timer-progress {
  animation: timerFill 4s var(--ease-spring) infinite;
  transform: rotate(-90deg);
  transform-origin: center;
}

@keyframes timerFill {
  0% { stroke-dashoffset: 188.5; }
  50% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 188.5; }
}

.detox-anim {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detox-wave {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  opacity: 0;
  animation: detoxRipple 3s ease-out infinite;
}

.detox-wave--2 {
  animation-delay: 0.6s;
}

.detox-wave--3 {
  animation-delay: 1.2s;
}

@keyframes detoxRipple {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.filter-anim {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 2rem 1rem;
}

.filter-bar {
  width: 12px;
  border-radius: 6px;
  background: var(--charcoal-20);
  transition: height 0.5s var(--ease-spring);
  animation: barBounce 2s var(--ease-spring) infinite;
}

.filter-bar--1 { height: 40%; animation-delay: 0s; background: var(--accent); }
.filter-bar--2 { height: 65%; animation-delay: 0.15s; background: var(--charcoal-20); }
.filter-bar--3 { height: 85%; animation-delay: 0.3s; background: var(--mint); }
.filter-bar--4 { height: 50%; animation-delay: 0.45s; background: var(--charcoal-20); }
.filter-bar--5 { height: 30%; animation-delay: 0.6s; background: var(--accent); }

@keyframes barBounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.score-anim {
  width: 100%;
  padding: 1rem 2rem;
}

.score-bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--charcoal-10);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  width: 68%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mint), var(--accent));
  animation: scorePulse 3s ease-in-out infinite;
}

@keyframes scorePulse {
  0%, 100% { width: 60%; }
  50% { width: 78%; }
}

.score-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.score-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--charcoal-20);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.score-label--active {
  color: var(--accent);
  font-weight: 700;
}


/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--charcoal-10);
  box-shadow: var(--shadow-card);
  transition: all 0.5s var(--ease-spring);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--charcoal-10);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--charcoal-60);
  line-height: 1.6;
}

.step-line {
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 1.5px;
  background: var(--charcoal-20);
}

.step-card:last-child .step-line {
  display: none;
}


/* ============================================
   STORIES / TESTIMONIALS
   ============================================ */
.section-stories {
  background: var(--bg-alt);
}

.stories-cascade {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.story-card {
  border-radius: var(--radius-xl);
  transition: all 0.5s var(--ease-spring);
}

.story-card:hover {
  transform: translateY(-2px);
}

.story-card--featured {
  grid-row: span 2;
}

.story-card-inner {
  height: 100%;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--charcoal-10);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.story-card--featured .story-card-inner {
  background: var(--charcoal);
  color: var(--white);
  border-color: transparent;
}

.story-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

.story-card--featured .story-quote {
  font-size: 1.25rem;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.story-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.story-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.story-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.story-handle {
  font-size: 0.75rem;
  color: var(--charcoal-60);
}

.story-card--featured .story-handle {
  color: rgba(255,255,255,0.5);
}


/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: var(--radius-xl);
  transition: all 0.5s var(--ease-spring);
}

.pricing-card:hover {
  transform: translateY(-3px);
}

/* Double-Bezel outer shell */
.pricing-shell {
  padding: 6px;
  border-radius: calc(var(--radius-xl) + 6px);
  background: var(--charcoal-05);
  border: 1px solid var(--charcoal-10);
}

.pricing-shell--primary {
  background: linear-gradient(135deg, var(--accent), #d4403c);
  border-color: transparent;
}

.pricing-inner {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal-60);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.9375rem;
  color: var(--charcoal-60);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--charcoal-60);
  line-height: 1.4;
}

.pricing-feature svg {
  flex-shrink: 0;
}


/* ============================================
   FINAL CTA
   ============================================ */
.section-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(6rem, 12vw, 12rem) 0;
}

.cta-mesh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(45, 212, 168, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(232, 96, 76, 0.06) 0%, transparent 50%);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

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

.cta-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.cta-sub {
  font-size: 1.125rem;
  color: var(--charcoal-60);
  max-width: 48ch;
  margin: 1.5rem auto 0;
  line-height: 1.7;
}

.cta-actions {
  margin-top: 2.5rem;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer .nav-logo {
  color: var(--white);
}

.footer .nav-logo-icon {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s var(--ease-spring);
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s var(--ease-spring);
}

.footer-social:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}


/* ============================================
   RESPONSIVE — Aggressive Mobile Collapse
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 5rem;
  }

  /* Nav */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-content {
    padding: 8rem 1rem 3rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-stat-divider {
    width: 2rem;
    height: 1px;
  }

  /* Problem */
  .problem-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--large,
  .bento-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-line {
    display: none;
  }

  /* Stories */
  .stories-cascade {
    grid-template-columns: 1fr;
  }

  .story-card--featured {
    grid-row: span 1;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

  .section-headline {
    font-size: 1.875rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
