/* ============================================
   CANOPY LABS — LANDING PAGE STYLES
   Building a Tech Center in the Peruvian Amazon
   ============================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f8faf9;
  --c-surface: #f1f5f3;
  --c-surface-alt: #e8efe9;
  --c-border: rgba(0, 0, 0, 0.08);
  --c-text: #1a2e23;
  --c-text-muted: #4a6355;
  --c-text-dim: #7a9488;
  --c-green: #16a34a;
  --c-green-dark: #15803d;
  --c-cyan: #0891b2;
  --c-amber: #d97706;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-max: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 2;
}

/* ---- PRELOADER ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1.2s var(--ease-out-expo), visibility 1.2s;
  overflow: hidden;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-vine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pl-center {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* ====== VINE STEMS ====== */
.vine-stem {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}

.vine-main {
  animation: drawVine 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.vine-second {
  animation: drawVine 2.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.vine-third {
  animation: drawVine 3s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawVine {
  to { stroke-dashoffset: 0; }
}

/* ====== TENDRILS ====== */
.vine-tendril {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.t1  { animation: drawTendril 1s 0.6s  cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.t2  { animation: drawTendril 1s 0.9s  cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.t3  { animation: drawTendril 1s 0.8s  cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.t4  { animation: drawTendril 1s 1.0s  cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.t5  { animation: drawTendril 0.8s 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes drawTendril {
  to { stroke-dashoffset: 0; }
}

/* ====== SPIRAL CURLS ====== */
.vine-curl {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.curl-1 { animation: drawTendril 0.6s 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.curl-2 { animation: drawTendril 0.6s 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.curl-3 { animation: drawTendril 0.6s 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.curl-4 { animation: drawTendril 0.6s 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* ====== LEAVES ====== */
.vine-leaf {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: leafGrow 0.8s var(--ease-spring) forwards;
}

.vl1 { animation-delay: 0.9s; }
.vl2 { animation-delay: 1.2s; }
.vl3 { animation-delay: 1.5s; }
.vl4 { animation-delay: 1.8s; }
.vl5 { animation-delay: 1.0s; }
.vl6 { animation-delay: 1.3s; }
.vl7 { animation-delay: 2.0s; }

@keyframes leafGrow {
  0%   { opacity: 0; transform: scale(0) rotate(-60deg); }
  60%  { opacity: 0.45; transform: scale(1.2) rotate(8deg); }
  100% { opacity: 0.35; transform: scale(1) rotate(0deg); }
}

/* ====== BUDS ====== */
.vine-bud {
  transform-box: fill-box;
  transform-origin: center;
  animation: budPop 0.5s var(--ease-spring) forwards;
}

.b1  { animation-delay: 0.8s; }
.b2  { animation-delay: 1.1s; }
.b3  { animation-delay: 1.4s; }
.b4  { animation-delay: 1.7s; }
.b5  { animation-delay: 2.0s; }
.b6  { animation-delay: 1.2s; }
.b7  { animation-delay: 1.5s; }

@keyframes budPop {
  0%   { opacity: 0; transform: scale(0); }
  70%  { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0.85; transform: scale(1); }
}

/* ====== NETWORK LINES ====== */
.net-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.nl1 { animation: netReveal 1s 2.0s ease forwards; }
.nl2 { animation: netReveal 1s 2.1s ease forwards; }
.nl3 { animation: netReveal 1s 2.2s ease forwards; }
.nl4 { animation: netReveal 0.8s 2.3s ease forwards; }
.nl5 { animation: netReveal 0.8s 2.35s ease forwards; }

@keyframes netReveal {
  to { stroke-dashoffset: 0; opacity: 0.18; }
}

/* ====== DATA PULSES ====== */
.data-pulse {
  animation: vineTravel 4s ease-in-out infinite;
}

.dp1 {
  animation-delay: 2.2s;
  offset-path: path('M500 1050 C480 980, 350 950, 250 880 C120 790, 380 720, 500 650 C650 570, 200 480, 300 380 C380 300, 750 280, 700 200 C660 140, 400 100, 350 50');
}

.dp2 {
  animation-delay: 2.8s;
  offset-path: path('M250 880 C150 870, 50 910, 30 840 C10 780, 100 740, 60 680 C30 640, 80 600, 50 560');
}

@keyframes vineTravel {
  0%   { opacity: 0; offset-distance: 0%; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* Brand text */
.pl-brand {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.pl-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: letterReveal 0.6s var(--ease-out-expo) forwards;
}

.pl-letter:nth-child(1)  { animation-delay: 1.6s; }
.pl-letter:nth-child(2)  { animation-delay: 1.65s; }
.pl-letter:nth-child(3)  { animation-delay: 1.7s; }
.pl-letter:nth-child(4)  { animation-delay: 1.75s; }
.pl-letter:nth-child(5)  { animation-delay: 1.8s; }
.pl-letter:nth-child(6)  { animation-delay: 1.85s; }
.pl-letter:nth-child(7)  { animation-delay: 1.9s; }
.pl-letter:nth-child(8)  { animation-delay: 1.95s; }
.pl-letter:nth-child(9)  { animation-delay: 2.0s; }
.pl-letter:nth-child(10) { animation-delay: 2.05s; }
.pl-letter:nth-child(11) { animation-delay: 2.1s; }

.pl-space { width: 12px; }

@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.preloader-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--c-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: textSlideIn 0.8s 2.2s var(--ease-out-expo) forwards;
}

@keyframes textSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.5; transform: translateY(0); }
}

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--c-green);
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.8; }

.logo-icon { color: var(--c-green); }

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-green);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover { color: var(--c-text); }
.nav-link:hover::after { width: 100%; }

.nav-cta-link {
  color: #fff !important;
  background: var(--c-green);
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}

.nav-cta-link::after { display: none; }
.nav-cta-link:hover {
  background: var(--c-green-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px;
  gap: 24px;
  transition: right 0.5s var(--ease-out-expo);
  border-left: 1px solid var(--c-border);
}

.mobile-menu.open { right: 0; }

.mobile-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color 0.3s, transform 0.3s;
}

.mobile-link:hover {
  color: var(--c-green);
  transform: translateX(8px);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary {
  background: var(--c-green);
  color: #fff;
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--c-green), var(--c-cyan));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.3);
}

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

.btn-primary svg,
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  border-color: var(--c-green);
  color: var(--c-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.1);
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0.65) 70%,
      var(--c-bg) 100%
    );
}

/* Fireflies */
.fireflies {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green), 0 0 20px rgba(22, 163, 74, 0.3);
  animation: fireflyFloat 6s ease-in-out infinite;
}

.firefly:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.firefly:nth-child(2) { top: 40%; left: 80%; animation-delay: 1s; animation-duration: 5s; }
.firefly:nth-child(3) { top: 60%; left: 30%; animation-delay: 2s; animation-duration: 8s; }
.firefly:nth-child(4) { top: 30%; left: 60%; animation-delay: 0.5s; animation-duration: 6s; }
.firefly:nth-child(5) { top: 70%; left: 50%; animation-delay: 3s; animation-duration: 7s; }
.firefly:nth-child(6) { top: 15%; left: 45%; animation-delay: 1.5s; animation-duration: 9s; }

@keyframes fireflyFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  30% { transform: translate(20px, -30px) scale(1.2); }
  50% {
    transform: translate(-10px, -60px) scale(0.8);
    opacity: 1;
  }
  70% { transform: translate(30px, -40px) scale(1.1); }
  90% { opacity: 0; }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1s var(--ease-out-expo) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.7s; }

.title-line.accent {
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation-delay: 0.9s;
  text-shadow: none;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s 1.1s var(--ease-out-expo) forwards;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s 1.5s var(--ease-out-expo) forwards;
}

.hero-ctas .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-ctas .btn-secondary:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

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

/* ---- SECTIONS COMMON ---- */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

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

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-green);
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- PROSE BLOCKS ---- */
.prose-block {
  max-width: 720px;
  margin: 0 auto 48px;
}

.prose-block p {
  font-size: 16px;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.prose-lead {
  font-size: 18px !important;
  color: var(--c-text) !important;
  font-weight: 400;
  line-height: 1.7 !important;
}

.prose-centered {
  text-align: center;
}

/* ---- PROBLEM FACTS ---- */
.problem-facts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  margin-bottom: 48px;
}

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

.fact-number {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
  margin-bottom: 6px;
}

.fact-text {
  font-size: 13px;
  color: var(--c-text-muted);
}

.fact-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border);
}

/* ---- PHOTO PAIR ---- */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.photo-pair-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.photo-pair-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.photo-pair-item:hover img {
  transform: scale(1.03);
}

.photo-caption {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-text-dim);
  font-style: italic;
}

/* ---- PROGRAMS LIST ---- */
.programs-list {
  max-width: 720px;
  margin: 0 auto;
}

.program-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}

.program-row:last-child {
  border-bottom: none;
}

.program-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green);
  opacity: 0.5;
  padding-top: 2px;
}

.program-info h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.program-info p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ---- TIMELINE ---- */
.timeline-simple {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline-simple::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-border);
}

.tl-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.tl-step:last-child {
  margin-bottom: 0;
}

.tl-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  margin-left: -40px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.tl-marker.done {
  background: var(--c-green);
  border-color: var(--c-green);
}

.tl-marker.done::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.tl-marker.current {
  border-color: var(--c-green);
  background: var(--c-bg);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.tl-marker.current::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--c-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.6); }
}

.tl-content h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tl-content p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.tl-step:not(.tl-done):not(.tl-current) .tl-content h4 {
  color: var(--c-text-dim);
}

.tl-step:not(.tl-done):not(.tl-current) .tl-content p {
  color: var(--c-text-dim);
}

/* ---- VISION LAYERS ---- */
.vision-layers {
  max-width: 720px;
  margin: 0 auto;
}

.vision-layer {
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}

.vision-layer:last-child {
  border-bottom: none;
}

.vision-horizon {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-green);
  background: rgba(22, 163, 74, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.vision-layer h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.vision-layer p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

/* ---- SIGNUP FORM ---- */
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border: 1.5px solid var(--c-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-bg);
  outline: none;
  transition: border-color 0.3s;
}

.signup-input::placeholder {
  color: var(--c-text-dim);
}

.signup-input:focus {
  border-color: var(--c-green);
}

.signup-btn {
  flex-shrink: 0;
}

/* ---- HELP OPTIONS ---- */
.help-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.help-option {
  text-align: center;
}

.help-option h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.help-option p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: 48px 0 0;
}

.footer-simple {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-location {
  margin-top: 8px;
  font-size: 13px !important;
  color: var(--c-text-dim) !important;
}

.footer-nav {
  display: flex;
  gap: 24px;
  padding-top: 8px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--c-text-muted);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--c-green);
}

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--c-text-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .photo-pair {
    grid-template-columns: 1fr;
  }

  .photo-pair-item img {
    height: 220px;
  }

  .program-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .program-num {
    font-size: 12px;
  }

  .help-options {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-simple {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .problem-facts {
    gap: 20px;
  }

  .fact-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }

  .signup-form {
    flex-direction: column;
  }

  .signup-input {
    min-width: 0;
  }
}

/* ---- SELECTION ---- */
::selection {
  background: rgba(22, 163, 74, 0.15);
  color: var(--c-text);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(22, 163, 74, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 163, 74, 0.35);
}

/* ---- ACCESSIBILITY: REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
