/* ============================================================
   Sons da Roda - Landing Page Design System
   Brand palette preserved exactly from the app.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colors - DO NOT change */
  --clr-primary:       #D4570D;
  --clr-primary-dark:  #B84A0A;
  --clr-secondary:     #F4A259;
  --clr-accent:        #E8B955;
  --clr-bg:            #FDFAF6;
  --clr-bg-card:       #FFFFFF;
  --clr-text:          #2C2416;
  --clr-text-light:    #5C5046;
  --clr-text-muted:    #8B7F74;
  --clr-border:        #E6DDD2;
  --clr-shadow:        rgba(44, 36, 22, 0.10);
  --clr-shadow-md:     rgba(44, 36, 22, 0.16);
  --clr-shadow-lg:     rgba(44, 36, 22, 0.22);
  --clr-overlay:       rgba(44, 36, 22, 0.60);

  /* Derived tints */
  --clr-primary-10:    rgba(212, 87, 13, 0.10);
  --clr-primary-15:    rgba(212, 87, 13, 0.15);
  --clr-accent-20:     rgba(232, 185, 85, 0.20);

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

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Borders -- 4px base */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   4px;
  --radius-xl:   4px;
  --radius-2xl:  6px;
  --radius-full: 9999px;

  /* Transitions -- soft expo-out feel */
  --ease-fast:   180ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-base:   320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-slow:   520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: 480ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1200px;
  --header-h:  72px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper grain on the whole page (SVG noise, ~1KB inline) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.14  0 0 0 0 0.09  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

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

a {
  color: var(--clr-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--clr-primary);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top var(--ease-fast);
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-24) 0;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-3);
}

.section-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.15;
  color: var(--clr-text);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--clr-text-light);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(6px);
  transition: opacity 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform, filter;
}

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

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }
.reveal-delay-4 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease-base), color var(--ease-base), border-color var(--ease-base), transform var(--ease-spring), box-shadow var(--ease-base);
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease-base);
  pointer-events: none;
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  box-shadow: 0 6px 22px rgba(212, 87, 13, 0.32), inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  box-shadow: 0 10px 28px rgba(212, 87, 13, 0.42), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn-outline:hover {
  background: var(--clr-primary-10);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--clr-primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.30);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: #fff;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 250, 246, 0.90);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--ease-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px var(--clr-shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--clr-primary);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text-light);
  text-decoration: none;
  transition: color var(--ease-fast);
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--clr-primary-10);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-primary);
  cursor: pointer;
  transition: background-color var(--ease-fast), color var(--ease-fast);
  letter-spacing: 0.04em;
}

.lang-toggle:hover {
  background: var(--clr-primary-15);
  border-color: var(--clr-primary);
}

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  height: 2.5px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--ease-base), opacity var(--ease-base);
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #2C2416 0%, #3D3020 45%, #4A3A26 100%);
  overflow: hidden;
  padding: var(--sp-20) 0;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

/* Fallback decorative rings when no canvas */
.hero-rings {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-ring {
  border-radius: 50%;
  border: 1px solid rgba(212, 87, 13, 0.25);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ring:nth-child(1) { width: 300px; height: 300px; border-color: rgba(212, 87, 13, 0.30); }
.hero-ring:nth-child(2) { width: 480px; height: 480px; border-color: rgba(212, 87, 13, 0.18); }
.hero-ring:nth-child(3) { width: 660px; height: 660px; border-color: rgba(232, 185, 85, 0.12); }
.hero-ring:nth-child(4) { width: 840px; height: 840px; border-color: rgba(212, 87, 13, 0.07); }

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(212, 87, 13, 0.18);
  border: 1px solid rgba(212, 87, 13, 0.35);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-secondary);
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-6);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: 900;
  line-height: 1.08;
  color: #FDFAF6;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  max-width: 780px;
}

.hero-headline em {
  font-style: normal;
  color: var(--clr-accent);
}

.hero-subhead {
  font-size: clamp(var(--text-base), 2.2vw, var(--text-xl));
  color: rgba(253, 250, 246, 0.78);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
}

.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ============================================================
   WHAT IS
   ============================================================ */
.what-section {
  background: var(--clr-bg);
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.what-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.what-scene {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  filter: drop-shadow(0 18px 38px rgba(212, 87, 13, 0.18));
}

.what-scene-svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: scene-breath 9s ease-in-out infinite;
  transform-origin: center;
}

@keyframes scene-breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}

@media (prefers-reduced-motion: reduce) {
  .what-scene-svg {
    animation: none;
  }
}

.what-scene-badge {
  position: absolute;
  display: inline-block;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-text);
  box-shadow: 0 6px 18px rgba(44, 36, 22, 0.10);
  white-space: nowrap;
  z-index: 2;
  transition: transform var(--ease-spring), box-shadow var(--ease-base);
}

.what-scene-badge:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 12px 24px rgba(44, 36, 22, 0.16);
}

.what-scene-badge.top-right {
  top: 8%;
  right: -8px;
  transform: rotate(2deg);
}

.what-scene-badge.bottom-left {
  bottom: 10%;
  left: -8px;
  color: var(--clr-primary);
  transform: rotate(-2deg);
}

.what-scene-badge .badge-num {
  font-size: var(--text-xl);
  color: var(--clr-primary);
  display: block;
  line-height: 1;
}

.what-content p {
  font-size: var(--text-lg);
  color: var(--clr-text-light);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

.what-content p strong {
  color: var(--clr-text);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  padding: var(--sp-16) 0;
}

.stats-label {
  color: rgba(253, 250, 246, 0.65);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
}

.stat-card {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  position: relative;
}

.stat-card + .stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(253, 250, 246, 0.20);
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #FDFAF6;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-2);
}

.stat-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: var(--sp-2);
}

.stat-detail {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.65);
  line-height: 1.55;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}

.feature-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-base);
}

.feature-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 14px 38px rgba(212, 87, 13, 0.14);
  transform: translateY(-4px);
}

.feature-card:hover .feature-icon {
  transform: rotate(-6deg) scale(1.06);
  background: var(--clr-primary);
  color: #fff;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--clr-primary-10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  color: var(--clr-primary);
  transition: transform var(--ease-spring), background-color var(--ease-base), color var(--ease-base);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
}

.feature-body {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.7;
}

/* ============================================================
   SONG TYPES
   ============================================================ */
.types-section {
  background: linear-gradient(180deg, #2C2416 0%, #3D3020 100%);
  padding: var(--sp-24) 0;
}

.types-section .section-label {
  color: var(--clr-secondary);
}

.types-section .section-headline {
  color: #FDFAF6;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}

.type-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  transition: transform var(--ease-base), background-color var(--ease-base), border-color var(--ease-base);
}

.type-card:nth-child(odd):hover {
  background: rgba(212, 87, 13, 0.12);
  border-color: rgba(212, 87, 13, 0.35);
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.type-card:nth-child(even):hover {
  background: rgba(212, 87, 13, 0.12);
  border-color: rgba(212, 87, 13, 0.35);
  transform: translateY(-5px) rotate(0.6deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.type-badge {
  display: inline-block;
  background: var(--clr-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.type-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #FDFAF6;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.type-body {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.65);
  line-height: 1.7;
}

/* Samba row - full width */
.types-grid .type-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  align-items: start;
}

/* ============================================================
   MISSION
   ============================================================ */
.mission-section {
  background: var(--clr-bg);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.mission-content p {
  font-size: var(--text-lg);
  color: var(--clr-text-light);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.mission-content p strong {
  color: var(--clr-text);
}

.mission-stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.mission-stat {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  transition: transform var(--ease-base), background-color var(--ease-base), border-color var(--ease-base);
}

.mission-stat:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 4px 16px var(--clr-shadow);
}

.mission-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--clr-primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-primary);
}

.mission-stat-icon svg {
  width: 26px;
  height: 26px;
}

.mission-stat-num {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
}

.mission-stat-label {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
}

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap-section {
  background: linear-gradient(160deg, var(--clr-bg) 0%, #F5EFE4 100%);
}

.roadmap-intro {
  font-size: var(--text-lg);
  color: var(--clr-text-light);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: var(--sp-12);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.roadmap-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
  transition: transform var(--ease-base), border-color var(--ease-base), box-shadow var(--ease-base);
}

.roadmap-card:hover {
  box-shadow: 0 8px 24px var(--clr-shadow-md);
  transform: translateY(-2px);
}

.roadmap-card.active {
  border-color: var(--clr-primary);
  background: linear-gradient(135deg, #fff 0%, rgba(212, 87, 13, 0.04) 100%);
}

.roadmap-card.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.roadmap-status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
}

.status-live {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.status-soon {
  background: rgba(232, 185, 85, 0.20);
  color: #92640A;
}

.status-planned {
  background: rgba(139, 127, 116, 0.12);
  color: var(--clr-text-muted);
}

.status-dev {
  background: rgba(59, 130, 246, 0.10);
  color: #2563EB;
}

.roadmap-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
}

.roadmap-body {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--clr-bg);
}

.faq-list {
  max-width: 760px;
  margin: var(--sp-12) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease-fast);
}

.faq-item.open {
  border-color: var(--clr-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-text);
  cursor: pointer;
  transition: color var(--ease-fast);
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--clr-text-muted);
  transition: transform var(--ease-base), color var(--ease-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--clr-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease-slow);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: var(--text-base);
  color: var(--clr-text-light);
  line-height: 1.75;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  padding: var(--sp-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(253, 250, 246, 0.10);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(253, 250, 246, 0.07);
  pointer-events: none;
}

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

.final-cta h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 900;
  color: #FDFAF6;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.final-cta p {
  font-size: var(--text-xl);
  color: rgba(253, 250, 246, 0.80);
  margin-bottom: var(--sp-10);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-text);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(253, 250, 246, 0.10);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
}

.footer-logo-text {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #FDFAF6;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.50);
  line-height: 1.7;
  max-width: 280px;
}

.footer-ecosystem {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.45);
}

.footer-ecosystem a {
  color: var(--clr-secondary);
}

.footer-ecosystem a:hover {
  color: var(--clr-accent);
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(253, 250, 246, 0.45);
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.65);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer-col ul a:hover {
  color: var(--clr-secondary);
  text-decoration: none;
}

.footer-bottom {
  padding-top: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(253, 250, 246, 0.35);
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-lang-btn {
  background: none;
  border: 1px solid rgba(253, 250, 246, 0.20);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(253, 250, 246, 0.55);
  cursor: pointer;
  transition: background-color var(--ease-fast), color var(--ease-fast);
  letter-spacing: 0.04em;
}

.footer-lang-btn:hover {
  border-color: var(--clr-secondary);
  color: var(--clr-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .what-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .what-visual {
    order: -1;
  }

  .what-scene {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(253, 250, 246, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-4) var(--sp-6);
    gap: var(--sp-2);
    box-shadow: 0 8px 24px var(--clr-shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: var(--sp-3) 0;
    font-size: var(--text-base);
    width: 100%;
    border-bottom: 1px solid var(--clr-border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .section {
    padding: var(--sp-16) 0;
  }

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

  .stat-card + .stat-card::before {
    display: none;
  }

  .stat-card:nth-child(1),
  .stat-card:nth-child(2) {
    border-bottom: 1px solid rgba(253, 250, 246, 0.20);
    padding-bottom: var(--sp-8);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .types-grid {
    grid-template-columns: 1fr;
  }

  .types-grid .type-card-wide {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card:nth-child(1),
  .stat-card:nth-child(2) {
    border-bottom: none;
    padding-bottom: var(--sp-8);
  }

  .container {
    padding: 0 var(--sp-4);
  }

  .hero-rings {
    display: none;
  }
}

/* ============================================================
   LYRIC EXCERPT (editorial / human moment)
   ============================================================ */
.lyric-section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 87, 13, 0.06) 0%, transparent 60%),
    var(--clr-bg);
  overflow: hidden;
}

.lyric-section::before,
.lyric-section::after {
  content: "";
  position: absolute;
  left: 50%;
  width: clamp(120px, 30vw, 240px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--clr-border) 50%, transparent 100%);
  transform: translateX(-50%);
}

.lyric-section::before { top: 0; }
.lyric-section::after { bottom: 0; }

.lyric-inner {
  text-align: center;
  max-width: 720px;
}

.lyric-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 1;
  color: var(--clr-primary);
  opacity: 0.22;
  margin-bottom: -0.4em;
  font-weight: 400;
  user-select: none;
}

.lyric-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.55;
  color: var(--clr-text);
  margin: 0 auto var(--sp-6);
  border: none;
  padding: 0;
}

.lyric-quote p {
  margin: 0;
  letter-spacing: -0.005em;
}

.lyric-quote p {
  color: var(--clr-text);
}

.lyric-quote .lyric-response {
  color: var(--clr-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.85em;
  margin-bottom: 0.6em;
  position: relative;
  padding-left: 1.2em;
}

.lyric-quote .lyric-response::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.7em;
  height: 1px;
  background: var(--clr-primary);
  opacity: 0.5;
  transform: translateY(-50%);
}

.lyric-attr {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-5);
}

.lyric-type {
  color: var(--clr-primary);
  font-weight: 700;
}

.lyric-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-text-muted);
  opacity: 0.5;
}

.lyric-note {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin: 0;
}

/* ============================================================
   THEME-WORDS MARQUEE (continuous drift)
   ============================================================ */
.marquee {
  position: relative;
  padding: var(--sp-5) 0;
  background: linear-gradient(180deg, var(--clr-bg) 0%, #F5EFE5 50%, var(--clr-bg) 100%);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: var(--sp-12);
  width: max-content;
  animation: marquee-drift 48s linear infinite;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--clr-text-light);
  letter-spacing: -0.005em;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-item::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  opacity: 0.55;
  margin-left: var(--sp-12);
}

.marquee-item:nth-child(3n) {
  color: var(--clr-primary);
  font-weight: 600;
}

.marquee-item:nth-child(5n) {
  color: var(--clr-text);
}

@keyframes marquee-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ============================================================
   HUMAN SIGNATURE (footer credit, hand-script feel)
   ============================================================ */
.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4) var(--sp-2);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.55);
  text-align: center;
  letter-spacing: 0.005em;
}

.signature-mark {
  width: 28px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.signature em {
  color: var(--clr-secondary);
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   HERO -- gentle continuous breathing on rings
   ============================================================ */
.hero-ring {
  animation: breathe 9s ease-in-out infinite;
}
.hero-ring:nth-child(2) { animation-delay: -2.2s; }
.hero-ring:nth-child(3) { animation-delay: -4.5s; }
.hero-ring:nth-child(4) { animation-delay: -6.8s; }

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.04); opacity: 0.78; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring {
    animation: none;
  }
}

/* Lyric mark: JS scroll parallax owns transform */
.lyric-mark {
  display: inline-block;
  will-change: transform;
}

/* Make sure content sits above grain */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .final-cta,
  .site-footer {
    display: none;
  }
}
