/* ═══════════════════════════════════════════════════════════
   THE PHOENIX PROJECT — Marketing Website
   Premium dark theme with gold accents
   Desktop-first responsive design
   ═══════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary: #1A1A1A;
  --bg-secondary: #111111;
  --bg-elevated: #222222;
  --bg-card: #1E1E1E;
  --bg-card-hover: #252525;

  /* Accent Colors */
  --gold: #FFD700;
  --gold-hover: #FFC000;
  --gold-glow: rgba(255, 215, 0, 0.12);
  --gold-border: rgba(255, 215, 0, 0.25);
  --orange: #E8480C;
  --orange-glow: rgba(232, 72, 12, 0.12);
  --purple: #6B2FA8;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-muted: #888888;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
  --section-padding: 120px 0;

  /* Radii */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 24px rgba(255, 215, 0, 0.12);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  color: var(--text-secondary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: rgba(255, 215, 0, 0.25);
  color: var(--text-primary);
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 0, 0.22); }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}

.section-subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-subtitle strong {
  color: var(--text-primary);
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.section-cta-inline {
  text-align: center;
  margin-top: 56px;
}

.section-cta-inline p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: var(--gold);
  color: #1A1A1A;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-card);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold-border);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-xl {
  padding: 20px 52px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.btn-full {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  /* Always have a slight dark backdrop so text is readable over any background */
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo-fallback {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
  min-height: 40px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.navbar.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   HERO — Full-bleed photo, dark gradient overlay
   Photo spans full width. Gradient only darkens the left
   for text readability. Face stays 100% clear.
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Background photo — positioned on the RIGHT side only.
   A'Shon is center-left in the original photo, so placing
   the photo container on the right ensures his face stays
   fully visible and away from the text+gradient zone. */
.hero-bg-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: 1;
  will-change: transform;
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-bg-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  align-items: center;
  justify-content: center;
  color: rgba(255, 215, 0, 0.08);
}

.hero-bg-photo.img-error img { display: none; }
.hero-bg-photo.img-error .hero-bg-placeholder { display: flex; }

/* Gradient overlay — sits ON TOP of the photo container.
   Creates a smooth left-edge fade so the photo blends
   into the dark background. No hard cut line.
   Face area (center-right of photo) stays 100% clear. */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    /* Soft fade over the left edge of the photo — blends photo into dark bg */
    linear-gradient(to right,
      var(--bg-primary) 0%,
      var(--bg-primary) 38%,
      rgba(26, 26, 26, 0.85) 44%,
      rgba(26, 26, 26, 0.5) 50%,
      rgba(26, 26, 26, 0.15) 58%,
      transparent 66%
    ),
    /* Subtle bottom vignette */
    linear-gradient(to top,
      rgba(26, 26, 26, 0.3) 0%,
      transparent 20%
    ),
    /* Top strip for nav readability over bright photo areas */
    linear-gradient(to bottom,
      rgba(26, 26, 26, 0.5) 0%,
      rgba(26, 26, 26, 0.35) 5%,
      transparent 14%
    );
  pointer-events: none;
}

/* Text content — left-aligned, vertically centered */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--nav-height);
  will-change: transform, opacity;
}

.hero-content-inner {
  max-width: 560px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-headline {
  margin-bottom: 24px;
  line-height: 1.1;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero entrance animations — BIG staggered entrance on page load */
.hero-anim {
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-1 { animation-delay: 0.3s; }
.hero-anim-2 { animation-delay: 0.55s; }
.hero-anim-3 { animation-delay: 0.8s; }
.hero-anim-4 { animation-delay: 1.05s; }

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
  opacity: 0.4;
  z-index: 3;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   PROBLEM SECTION — "Are You Stuck?"
   ═══════════════════════════════════════════════════════════ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}

.problem-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.06);
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-glow);
  border-radius: var(--radius-sm);
}

.problem-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.problem-card ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.problem-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — A'Shon's Story
   ═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.about-story p {
  margin-bottom: 20px;
}

.about-story strong {
  color: var(--text-primary);
}

.about-lead {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.5;
}

.about-quote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.about-story .btn {
  margin-top: 16px;
}

/* About photo */
.about-photo-mobile { display: none; }

.about-photo-desktop {
  position: relative;
  margin-bottom: 40px;
}

.about-photo-desktop img,
.about-photo-mobile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
}

.about-photo-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.about-photo-desktop.img-error img,
.about-photo-mobile.img-error img { display: none; }
.about-photo-desktop.img-error .about-photo-placeholder,
.about-photo-mobile.img-error .about-photo-placeholder { display: flex; }

/* Journey timeline */
.about-journey {
  position: relative;
  padding-left: 20px;
}

.about-journey::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-card);
}

.journey-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  position: relative;
}

.journey-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.journey-icon.active {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-glow);
}

.journey-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.journey-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-badge svg {
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-sublabel {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: normal;
}

/* ═══════════════════════════════════════════════════════════
   METHODOLOGY — How It Works
   ═══════════════════════════════════════════════════════════ */
.phases-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.phases-line {
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-border), var(--border-card), var(--gold-border));
}

.phase-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 28px 0;
  position: relative;
}

.phase-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.phase-card:hover .phase-number {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.phase-label {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}

.phase-content h3 {
  margin-bottom: 10px;
}

.phase-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.phase-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-details li {
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.phase-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES / PRICING
   ═══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.service-card-featured {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.03) 0%, var(--bg-card) 50%);
  transform: scale(1.02);
}

.service-card-featured:hover {
  border-color: var(--gold);
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.08);
}

.service-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1A1A1A;
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.service-header h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.service-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-price {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
}

.price-currency {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-detail {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.service-features {
  flex: 1;
  margin-bottom: 28px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════
   TOOLS SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.tool-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.tool-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--gold-glow);
  border: 1px solid rgba(255, 215, 0, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all var(--transition);
}

.tool-card:hover .tool-icon {
  background: rgba(255, 215, 0, 0.18);
  border-color: var(--gold-border);
}

.tool-content h3 {
  margin-bottom: 8px;
}

.tool-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.carousel {
  max-width: 800px;
  margin: 0 auto;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-sizing: border-box;
}

.testimonial-quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.15;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: -24px;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Carousel navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  background: transparent;
}

.carousel-arrow:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-card);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.testimonial-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question svg {
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.active .faq-question {
  color: var(--gold);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-bottom 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════ */
.section-final-cta {
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.final-cta-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  padding: 72px 0 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 36px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links svg {
  flex-shrink: 0;
}

.footer-disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE STICKY CTA
   ═══════════════════════════════════════════════════════════ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px;
  z-index: 999;
  border-top: 1px solid var(--border-subtle);
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS — Impressive, multi-type reveal system
   3D flips, spins, text reveals, dramatic entrances
   ═══════════════════════════════════════════════════════════ */

/* 3D perspective on parent containers for flip/spin effects */
.problem-grid,
.services-grid,
.tools-grid,
.phases-timeline,
.stats-row,
.faq-list,
.about-journey,
.footer-grid,
.final-cta-content {
  perspective: 1200px;
}

/* Base hidden state — elements start invisible */
[data-animate] {
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Standard direction variants ───────────────────────── */
[data-animate="fade-up"] {
  transform: translateY(80px);
}

[data-animate="fade-down"] {
  transform: translateY(-60px);
}

[data-animate="fade-right"] {
  transform: translateX(-100px);
}

[data-animate="fade-left"] {
  transform: translateX(100px);
}

[data-animate="fade-scale"] {
  transform: scale(0.8);
}

[data-animate="fade-scale-up"] {
  transform: scale(0.75) translateY(60px);
}

/* ── 3D FLIP — Cards rotate in from behind ─────────────── */
[data-animate="flip-up"] {
  transform: perspective(1200px) rotateX(90deg) translateY(40px);
  transform-origin: bottom center;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-animate="flip-left"] {
  transform: perspective(1200px) rotateY(-90deg) translateX(-30px);
  transform-origin: right center;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-animate="flip-right"] {
  transform: perspective(1200px) rotateY(90deg) translateX(30px);
  transform-origin: left center;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── SPIN IN — Elements spin while entering ────────────── */
[data-animate="spin-in"] {
  transform: rotate(-180deg) scale(0.5);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-animate="spin-in-right"] {
  transform: rotate(180deg) scale(0.5) translateX(-60px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── ZOOM SPIN — Dramatic zoom + rotation combo ────────── */
[data-animate="zoom-spin"] {
  transform: scale(0) rotate(-270deg);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── SWING DOWN — Swings from top like a pendulum ──────── */
[data-animate="swing-down"] {
  transform: perspective(800px) rotateX(-70deg) translateY(-30px);
  transform-origin: top center;
  transition:
    opacity 0.5s ease,
    transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── SLIDE ROTATE — Slides in while rotating slightly ──── */
[data-animate="slide-rotate-left"] {
  transform: translateX(-120px) rotate(-12deg);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="slide-rotate-right"] {
  transform: translateX(120px) rotate(12deg);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── BOUNCE UP — Pops up with overshoot ────────────────── */
[data-animate="bounce-up"] {
  transform: translateY(100px) scale(0.8);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── TILT IN — Tilts into place from an angle ──────────── */
[data-animate="tilt-in"] {
  transform: perspective(1000px) rotateY(-25deg) rotateX(10deg) translateX(-50px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Visible state — all animations resolve to identity ── */
[data-animate].visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0deg) rotateX(0deg) rotateY(0deg);
}

/* ── Fallback: show content if JS animations don't trigger ── */
@keyframes fallback-show {
  to { opacity: 1; transform: none; }
}
[data-animate] {
  animation: fallback-show 0s 2s forwards;
}
[data-animate].visible {
  animation: none;
}
.text-reveal-word {
  animation: fallback-show 0s 2.5s forwards;
}
.text-reveal-word.revealed {
  animation: none;
}

/* ── TEXT REVEAL — Words appear one by one ──────────────── */
.text-reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(90deg);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-reveal-word.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* Keep the gold spans styled correctly inside revealed words */
.text-reveal-word .text-gold {
  color: var(--gold);
}

/* ── Stagger delays for grid children — wider gaps ────── */
/* Problem cards — 3D flip cascade */
.problem-card[data-animate]:nth-child(1) { transition-delay: 0s; }
.problem-card[data-animate]:nth-child(2) { transition-delay: 0.18s; }
.problem-card[data-animate]:nth-child(3) { transition-delay: 0.36s; }
.problem-card[data-animate]:nth-child(4) { transition-delay: 0.54s; }

/* Service cards — flip cascade */
.services-grid .service-card[data-animate]:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card[data-animate]:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card[data-animate]:nth-child(3) { transition-delay: 0.4s; }

/* Tool cards — tilt cascade */
.tools-grid .tool-card[data-animate]:nth-child(1) { transition-delay: 0s; }
.tools-grid .tool-card[data-animate]:nth-child(2) { transition-delay: 0.18s; }
.tools-grid .tool-card[data-animate]:nth-child(3) { transition-delay: 0.36s; }
.tools-grid .tool-card[data-animate]:nth-child(4) { transition-delay: 0.54s; }

/* Phase cards — swing down cascade */
.phase-card[data-animate]:nth-child(1) { transition-delay: 0s; }
.phase-card[data-animate]:nth-child(2) { transition-delay: 0.25s; }
.phase-card[data-animate]:nth-child(3) { transition-delay: 0.5s; }
.phase-card[data-animate]:nth-child(4) { transition-delay: 0.75s; }

/* Stats items — spin cascade */
.stat-item[data-animate]:nth-child(1) { transition-delay: 0s; }
.stat-item[data-animate]:nth-child(2) { transition-delay: 0.12s; }
.stat-item[data-animate]:nth-child(3) { transition-delay: 0.24s; }
.stat-item[data-animate]:nth-child(4) { transition-delay: 0.36s; }
.stat-item[data-animate]:nth-child(5) { transition-delay: 0.48s; }
.stat-item[data-animate]:nth-child(6) { transition-delay: 0.60s; }

/* FAQ items — flip down cascade */
.faq-item[data-animate]:nth-child(1) { transition-delay: 0s; }
.faq-item[data-animate]:nth-child(2) { transition-delay: 0.12s; }
.faq-item[data-animate]:nth-child(3) { transition-delay: 0.24s; }
.faq-item[data-animate]:nth-child(4) { transition-delay: 0.36s; }
.faq-item[data-animate]:nth-child(5) { transition-delay: 0.48s; }
.faq-item[data-animate]:nth-child(6) { transition-delay: 0.60s; }

/* Journey steps — slide-rotate cascade */
.journey-step[data-animate]:nth-child(1) { transition-delay: 0s; }
.journey-step[data-animate]:nth-child(2) { transition-delay: 0.2s; }
.journey-step[data-animate]:nth-child(3) { transition-delay: 0.4s; }
.journey-step[data-animate]:nth-child(4) { transition-delay: 0.6s; }

/* Footer columns */
.footer-grid > div[data-animate]:nth-child(1) { transition-delay: 0s; }
.footer-grid > div[data-animate]:nth-child(2) { transition-delay: 0.15s; }
.footer-grid > div[data-animate]:nth-child(3) { transition-delay: 0.3s; }
.footer-grid > div[data-animate]:nth-child(4) { transition-delay: 0.45s; }

/* Testimonial cards */
.testimonial-card[data-animate] { transition-delay: 0.15s; }

/* ── Section title underline — dramatic wipe ─────────── */
.section-header .section-title::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.section-header[data-animate].visible .section-title::after {
  transform: scaleX(1);
}

/* ── Gold line in about-quote — slides+rotates in with weight ── */
.about-quote[data-animate] {
  border-left-color: transparent;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-left-color 0.6s ease 0.5s;
}

.about-quote[data-animate].visible {
  border-left-color: var(--gold);
}

/* ── Phase timeline line draws in — slow dramatic ────── */
.phases-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.phases-line.visible {
  transform: scaleY(1);
}

/* ── Hover lift micro-interaction for cards ────────────── */
.problem-card,
.service-card,
.tool-card {
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Large Desktop (> 1440px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1441px) {
  .container {
    max-width: 1320px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (max-width: 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero-bg-photo {
    width: 55%;
  }

  .hero-overlay {
    background:
      linear-gradient(to right,
        var(--bg-primary) 0%,
        var(--bg-primary) 36%,
        rgba(26, 26, 26, 0.8) 44%,
        rgba(26, 26, 26, 0.3) 54%,
        transparent 65%
      ),
      linear-gradient(to top, rgba(26, 26, 26, 0.3) 0%, transparent 20%),
      linear-gradient(to bottom, rgba(26, 26, 26, 0.4) 0%, transparent 14%);
  }

  .hero-content-inner {
    max-width: 380px;
  }

  .hero-scroll-indicator {
    display: none;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-photo-mobile {
    display: block;
    max-width: 280px;
    margin: 0 auto 32px;
  }

  .about-photo-desktop {
    display: none;
  }

  .about-story {
    text-align: left;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .service-card-featured {
    transform: none;
  }

  .service-card-featured:hover {
    transform: translateY(-4px);
  }

  .tools-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (max-width: 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --nav-height: 64px;
  }

  /* Mobile nav */
  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 1000;
  }

  .navbar.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar.nav-open .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar.nav-open .nav-links li:nth-child(1) { transition-delay: 0.05s; }
  .navbar.nav-open .nav-links li:nth-child(2) { transition-delay: 0.1s; }
  .navbar.nav-open .nav-links li:nth-child(3) { transition-delay: 0.15s; }
  .navbar.nav-open .nav-links li:nth-child(4) { transition-delay: 0.2s; }
  .navbar.nav-open .nav-links li:nth-child(5) { transition-delay: 0.25s; }
  .navbar.nav-open .nav-links li:nth-child(6) { transition-delay: 0.3s; }
  .navbar.nav-open .nav-links li:nth-child(7) { transition-delay: 0.35s; }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px 0;
    display: block;
  }

  .nav-links a::after {
    display: none;
  }

  /* Mobile hero — photo becomes full background, text at bottom */
  .hero {
    min-height: 100vh;
    align-items: flex-end;
  }

  .hero-bg-photo {
    width: 100%;
    left: 0;
    right: 0;
  }

  .hero-bg-photo img {
    object-position: center 15%;
  }

  .hero-overlay {
    background:
      linear-gradient(to top,
        rgba(26, 26, 26, 0.98) 0%,
        rgba(26, 26, 26, 0.88) 25%,
        rgba(26, 26, 26, 0.45) 50%,
        rgba(26, 26, 26, 0.15) 70%,
        transparent 85%
      );
  }

  .hero-content {
    text-align: center;
    padding-bottom: 60px;
  }

  .hero-content-inner {
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Mobile problem grid */
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    padding: 28px 24px;
  }

  /* Mobile about */
  .about-quote {
    font-size: 1rem;
  }

  /* Mobile stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Mobile services */
  .service-card {
    padding: 32px 24px;
  }

  /* Mobile testimonials */
  .testimonial-card {
    padding: 32px 24px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* Mobile footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100%;
  }

  /* Mobile sticky CTA */
  .mobile-cta {
    display: block;
  }

  /* Extra padding at bottom for sticky CTA */
  .footer {
    padding-bottom: 80px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Phases */
  .phase-card {
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .phase-number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .phases-line {
    left: 21px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (max-width: 480px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .tool-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  .carousel-nav {
    gap: 12px;
  }

  .final-cta-content p {
    font-size: 1rem;
  }

  .btn-xl {
    padding: 16px 32px;
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION — Removes movement but keeps opacity fade
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION — Only kill infinite loops, keep scroll reveals
   The user explicitly wants dramatic 3D animations on scroll.
   We only disable infinite animations (bouncing indicator).
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Only stop infinite repeating animations */
  .hero-scroll-indicator {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   LEGAL MODALS — Privacy Policy & Terms of Service
   ═══════════════════════════════════════════════════════════ */
.legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  padding: 40px 20px;
  overflow-y: auto;
}

.legal-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.legal-modal-content {
  position: relative;
  z-index: 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 720px;
  width: 100%;
  margin: 40px auto;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

.legal-modal-content h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.legal-modal-content .legal-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-modal-content h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-modal-content p {
  margin-bottom: 12px;
}

.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition);
}

.legal-modal-close:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .legal-modal-content {
    padding: 32px 24px;
    margin: 20px auto;
  }
}
