/* ========================================
   AgSchool Africa — Stylesheet
   Modern African Education
   ======================================== */

/* ── Tokens ── */
:root {
  /* Kinsleaf Greens */
  --g-900: #053227;
  --g-800: #025048;
  --g-600: #4AA485;
  --g-100: #F3F8F1;

  /* Gold */
  --gold: #C9A84C;

  /* Neutrals */
  --w: #ffffff;
  --w-50: #fafafa;
  --w-100: #f5f3ee;
  --w-200: #e8e6dc;
  --g-400-text: #999;
  --g-600-text: #666;
  --g-800-text: #333;
  --g-900-text: #1a1a1a;

  /* Typography */
  --ff-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale — fluid */
  --fs-xs: clamp(0.6875rem, 0.625rem + 0.25vw, 0.75rem);
  --fs-sm: clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);
  --fs-base: clamp(0.9375rem, 0.875rem + 0.25vw, 1rem);
  --fs-md: clamp(1rem, 0.875rem + 0.5vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.2rem + 4.5vw, 4rem);
  --fs-4xl: clamp(3rem, 1.5rem + 6vw, 5.5rem);
  --fs-display: clamp(3rem, 1rem + 9vw, 8rem);

  /* Spacing */
  --sp-2xs: 0.25rem;
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 10rem;

  /* Layout */
  --max-w: 1280px;
  --header-h: 72px;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --dur: 0.4s;
  --dur-slow: 0.7s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--g-800-text);
  background: var(--w);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--g-900);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Utility ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--g-600);
  margin-bottom: var(--sp-md);
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--g-600);
  flex-shrink: 0;
}
.section-label--light { color: var(--gold); }
.section-label--light::before { background: var(--gold); }

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--g-900);
  z-index: 10;
}
.header:not(.scrolled) .header__brand { color: var(--w); }
.header__brand-logo {
  height: 48px;
  width: auto;
  display: block;
}
.header__brand-text { font-size: var(--fs-sm); }
.header__nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.header__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--g-800-text);
  position: relative;
  padding: 0.25rem 0;
}
.header:not(.scrolled) .header__link { color: rgba(255,255,255,0.8); }
.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.header__link:hover::after { width: 100%; }
.header__link:hover { color: var(--g-800); }
.header:not(.scrolled) .header__link:hover { color: var(--w); }

.header__cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  background: var(--g-900);
  color: var(--w);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.2s var(--ease);
  z-index: 10;
}
.header__cta:hover {
  background: var(--gold);
  color: var(--g-900);
  transform: scale(1.04);
}
.header:not(.scrolled) .header__cta {
  background: var(--w);
  color: var(--g-900);
}
.header:not(.scrolled) .header__cta:hover {
  background: var(--gold);
  color: var(--g-900);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g-900);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  transform-origin: center;
  will-change: transform;
}
.header:not(.scrolled) .header__burger span { background: var(--w); }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--w);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
  will-change: opacity;
  backface-visibility: hidden;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
}
.mobile-menu__link {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--g-900);
  transition: color var(--dur);
}
.mobile-menu__link:hover { color: var(--g-600); }
.mobile-menu__cta {
  margin-top: var(--sp-lg);
  padding: 1rem 3rem;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: 100px;
  background: var(--g-900);
  color: var(--w);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--g-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,50,39,0.4) 0%,
    rgba(5,50,39,0.7) 50%,
    rgba(5,50,39,0.95) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--sp-xl)) clamp(1rem, 3vw, 2rem) var(--sp-2xl);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-xl);
  align-items: end;
  width: 100%;
}
.hero__headline {
  font-size: var(--fs-display);
  color: var(--w);
  line-height: 1;
  margin-bottom: var(--sp-lg);
  letter-spacing: -0.03em;
}
.hero__headline-line {
  display: block;
}
.hero__headline-accent {
  color: var(--gold);
}
.hero__body {
  max-width: 44ch;
  margin-bottom: var(--sp-lg);
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-md);
  line-height: 1.7;
}
.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: var(--gold);
  color: var(--g-900);
  font-size: var(--fs-base);
  font-weight: 700;
  transition: background var(--dur) var(--ease), transform 0.2s var(--ease), box-shadow var(--dur) var(--ease);
}
.hero__cta:hover {
  background: var(--w);
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(201,168,76,0.3);
}
.hero__cta-text {
  pointer-events: none;
}
.hero__cta-arrow {
  font-size: 1.25em;
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.hero__cta:hover .hero__cta-arrow { transform: translateX(4px); }

/* Hero right — image */
.hero__right {
  display: flex;
  justify-content: flex-end;
}
.hero__image-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  pointer-events: none;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--sp-lg);
  left: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.hero__scroll-text {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLine 2s var(--ease-in) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ══════════════════════════════════════
   AGRICULTURE IS BIGGER
   ══════════════════════════════════════ */
.bigger {
  background: var(--w);
}
.bigger__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.bigger__left {
  position: relative;
  overflow: hidden;
}
.bigger__image-wrap {
  position: sticky;
  top: 0;
  height: 100dvh;
}
.bigger__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bigger__right {
  padding: var(--sp-3xl) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bigger__headline {
  font-size: var(--fs-3xl);
  max-width: 14ch;
  margin-bottom: var(--sp-lg);
  color: var(--g-800);
}
.bigger__copy p {
  font-size: var(--fs-md);
  color: var(--g-800-text);
  margin-bottom: var(--sp-sm);
  max-width: 50ch;
}

/* CTA Link */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--sp-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g-900);
  position: relative;
  padding-bottom: 2px;
}
.cta-link__line {
  width: 32px;
  height: 1.5px;
  background: var(--g-900);
  transition: width var(--dur) var(--ease);
}
.cta-link:hover .cta-link__line { width: 48px; }
.cta-link:hover { color: var(--g-600); }
.cta-link__text {
  pointer-events: none;
}
.cta-link--light { color: var(--gold); }
.cta-link--light .cta-link__line { background: var(--gold); }
.cta-link--light:hover { color: var(--w); }
.cta-link--light:hover .cta-link__line { background: var(--w); }

/* ══════════════════════════════════════
   WHY AGSCHOOL AFRICA
   ══════════════════════════════════════ */
.why {
  background: var(--g-100);
  padding: var(--sp-3xl) clamp(1rem, 3vw, 2rem);
}
.why__header {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-xl);
}
.why__headline {
  font-size: var(--fs-4xl);
  max-width: 12ch;
}
.why__intro {
  max-width: var(--max-w);
  margin: 0 auto var(--sp-2xl);
}
.why__intro p {
  font-size: var(--fs-md);
  color: var(--g-600-text);
  max-width: 60ch;
  margin-bottom: var(--sp-xs);
}
.why__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--w-200);
}
.why__card {
  background: var(--w);
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.why__card:hover {
  background: var(--g-900);
}
.why__card:hover .why__card-number,
.why__card:hover .why__card-title,
.why__card:hover .why__card-desc {
  color: var(--w);
}
.why__card:hover .why__card-line { background: var(--gold); }
.why__card-number {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--w-200);
  line-height: 1;
  margin-bottom: var(--sp-md);
  transition: color var(--dur) var(--ease);
}
.why__card-title {
  font-family: var(--ff-body);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--g-900);
  margin-bottom: var(--sp-sm);
  transition: color var(--dur) var(--ease);
}
.why__card-desc {
  font-size: var(--fs-sm);
  color: var(--g-600-text);
  max-width: 30ch;
  line-height: 1.6;
  transition: color var(--dur) var(--ease);
}
.why__card-line {
  width: 24px;
  height: 2px;
  background: var(--g-600);
  margin-top: var(--sp-lg);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.why__card:hover .why__card-line { width: 40px; }

/* ══════════════════════════════════════
   WHAT YOU CAN LEARN
   ══════════════════════════════════════ */
.learn {
  background: var(--g-900);
  overflow: hidden;
  position: relative;
}
.learn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/textures/green-dust.png') repeat;
  background-size: 300px;
  opacity: 0.08;
  pointer-events: none;
}
.learn__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-3xl) clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}
.learn__headline {
  font-size: var(--fs-4xl);
  color: var(--w);
  max-width: 14ch;
  margin-bottom: var(--sp-md);
}
.learn__intro {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-xl);
}
.learn__words {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-lg);
  margin: var(--sp-xl) 0 var(--sp-2xl);
}
.learn__word {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  transition: color var(--dur) var(--ease);
  cursor: default;
}
.learn__word:hover {
  color: var(--gold);
}
.learn__word--accent {
  color: var(--gold);
  font-style: italic;
}
.learn__copy p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.6);
  max-width: 50ch;
  margin-bottom: var(--sp-sm);
}

/* ══════════════════════════════════════
   FOR THE CURIOUS
   ══════════════════════════════════════ */
.curious {
  background: var(--w-100);
  padding: var(--sp-3xl) clamp(1rem, 3vw, 2rem);
}
.curious__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.curious__headline {
  font-size: var(--fs-3xl);
  max-width: 12ch;
  position: sticky;
  top: calc(var(--header-h) + var(--sp-lg));
}
.curious__body {
  padding-top: var(--sp-md);
}
.curious__body p {
  font-size: var(--fs-md);
  color: var(--g-800-text);
  margin-bottom: var(--sp-sm);
  max-width: 50ch;
}
.curious__list {
  margin: var(--sp-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.curious__list li {
  font-size: var(--fs-md);
  color: var(--g-800-text);
  max-width: 50ch;
  padding-left: 1.5rem;
  position: relative;
}
.curious__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g-600);
}

/* ══════════════════════════════════════
   THE VISION
   ══════════════════════════════════════ */
.vision {
  background: var(--w);
  padding: var(--sp-3xl) clamp(1rem, 3vw, 2rem);
}
.vision__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.vision__quote {
  font-size: var(--fs-display);
  line-height: 0.95;
  color: var(--g-900);
  max-width: 12ch;
  margin-bottom: var(--sp-2xl);
  position: relative;
}
.vision__quote::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin-top: var(--sp-lg);
  border-radius: 2px;
}
.vision__body p {
  font-size: var(--fs-md);
  color: var(--g-800-text);
  max-width: 50ch;
  margin-bottom: var(--sp-sm);
}
.vision__list {
  margin: var(--sp-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.vision__list li {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  font-style: italic;
  color: var(--g-800);
  padding-left: 1.5rem;
  position: relative;
}
.vision__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--gold);
}
.vision__emphasis {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  margin-top: var(--sp-2xl);
}

/* ══════════════════════════════════════
   BUILT AROUND LEARNING
   ══════════════════════════════════════ */
.built {
  background: var(--g-100);
  padding: var(--sp-3xl) clamp(1rem, 3vw, 2rem);
  position: relative;
}
.built::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/textures/green-dust.png') repeat;
  background-size: 300px;
  opacity: 0.1;
  pointer-events: none;
}
.built__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.built__headline {
  font-size: var(--fs-3xl);
  color: var(--g-900);
  margin-bottom: var(--sp-lg);
}
.built__body p {
  font-size: var(--fs-md);
  color: var(--g-800-text);
  margin-bottom: var(--sp-sm);
  max-width: 48ch;
}
.built__cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.built__card {
  background: var(--w);
  border-radius: 12px;
  padding: var(--sp-lg) var(--sp-xl);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.built__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(5,50,39,0.08);
}
.built__card-number {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-xs);
  display: block;
}
.built__card-text {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--g-900);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   EARLY COMMUNITY
   ══════════════════════════════════════ */
.community {
  background: var(--w);
  padding: var(--sp-3xl) clamp(1rem, 3vw, 2rem);
}
.community__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.community__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.community__headline {
  font-size: var(--fs-3xl);
  max-width: 10ch;
  margin-bottom: var(--sp-lg);
}
.community__copy p {
  font-size: var(--fs-md);
  color: var(--g-800-text);
  margin-bottom: var(--sp-sm);
  max-width: 48ch;
}
.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xs);
}
.community__img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.community__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.community__img:hover img { transform: scale(1.06); }

/* ══════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════ */
.final {
  background: var(--g-900);
  padding: var(--sp-3xl) clamp(1rem, 3vw, 2rem);
  text-align: center;
  position: relative;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/textures/diagonal-noise.png') repeat;
  background-size: 300px;
  opacity: 0.07;
  pointer-events: none;
}
.final__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.final__headline {
  font-size: var(--fs-4xl);
  color: var(--w);
  margin-bottom: var(--sp-lg);
}
.final__body p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.6);
  max-width: 50ch;
  margin: 0 auto var(--sp-sm);
}
.final__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--sp-xl);
  padding: 1.125rem 3rem;
  border-radius: 100px;
  background: var(--gold);
  color: var(--g-900);
  font-size: var(--fs-base);
  font-weight: 700;
  transition: background var(--dur) var(--ease), transform 0.2s var(--ease), box-shadow var(--dur) var(--ease);
}
.final__cta:hover {
  background: var(--w);
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(201,168,76,0.3);
}
.final__cta-text {
  pointer-events: none;
}
.final__cta-arrow {
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.final__cta:hover .final__cta-arrow { transform: translateX(4px); }
.final__brand {
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.final__brand-name {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--w);
  margin-bottom: var(--sp-2xs);
}
.final__brand-tag {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--g-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-lg) clamp(1rem, 3vw, 2rem);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/textures/asfalt-dark.png') repeat;
  background-size: 300px;
  opacity: 0.06;
  pointer-events: none;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer__brand {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--w);
}
.footer__tag {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.3);
}
.footer__social {
  display: flex;
  gap: var(--sp-sm);
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.footer__social-link:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
  will-change: opacity;
  backface-visibility: hidden;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,50,39,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: opacity;
}
.modal__container {
  position: relative;
  background: var(--w);
  border-radius: 16px;
  padding: var(--sp-xl) var(--sp-xl) var(--sp-xl);
  max-width: 460px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--dur) var(--ease);
  box-shadow: 0 32px 80px rgba(5,50,39,0.3);
  will-change: transform;
  backface-visibility: hidden;
}
.modal.active .modal__container {
  transform: translateY(0) scale(1);
}
.modal__close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--g-400-text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal__close:hover {
  background: var(--w-50);
  color: var(--g-900-text);
}
.modal__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Modal Form State */
.modal__title {
  font-size: var(--fs-xl);
  color: var(--g-900);
  margin-bottom: var(--sp-2xs);
}
.modal__subtitle {
  font-size: var(--fs-sm);
  color: var(--g-600-text);
  margin-bottom: var(--sp-lg);
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal__field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--g-900-text);
}
.modal__field input {
  font-family: var(--ff-body);
  font-size: max(var(--fs-base), 16px);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--w-200);
  border-radius: 8px;
  background: var(--w);
  color: var(--g-900-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.modal__field input::placeholder { color: var(--g-400-text); }
.modal__field input:focus {
  outline: none;
  border-color: var(--g-600);
  box-shadow: 0 0 0 3px rgba(74,164,133,0.12);
}
.modal__field input.error {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.08);
}
.modal__error {
  font-size: var(--fs-xs);
  color: #c62828;
  min-height: 1em;
}

/* Submit Button */
.modal__submit {
  width: 100%;
  padding: 0.95rem;
  border-radius: 8px;
  background: var(--g-900);
  color: var(--w);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-top: var(--sp-xs);
  position: relative;
  transition: background var(--dur) var(--ease), transform 0.15s;
}
.modal__submit:hover {
  background: var(--g-800);
  transform: translateY(-1px);
}
.modal__submit:active { transform: translateY(0); }
.modal__submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.modal__submit-loading { display: none; align-items: center; gap: 8px; }
.modal__submit.loading .modal__submit-label { display: none; }
.modal__submit.loading .modal__submit-loading { display: inline-flex; }
.modal__submit.loading { pointer-events: none; opacity: 0.7; }
.modal__spinner { animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal__global-error {
  font-size: var(--fs-sm);
  color: #c62828;
  text-align: center;
  min-height: 1em;
}

/* Modal States */
.modal__state { display: block; }
.modal__state--hidden { display: none; }

/* Success */
.modal__state--success {
  text-align: center;
  padding: var(--sp-lg) 0 var(--sp-md);
}
.modal__check {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--sp-lg);
}
.modal__check svg { width: 100%; height: 100%; }
.modal__check-circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: drawCircle 0.6s var(--ease) forwards 0.15s;
}
.modal__check-path {
  fill: none;
  stroke: var(--g-900);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawPath 0.4s var(--ease) forwards 0.55s;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawPath { to { stroke-dashoffset: 0; } }

.modal__success-title {
  font-size: var(--fs-2xl);
  color: var(--g-900);
  margin-bottom: var(--sp-xs);
}
.modal__success-text {
  font-size: var(--fs-sm);
  color: var(--g-600-text);
  margin-bottom: var(--sp-lg);
}
.modal__success-btn {
  display: inline-flex;
  padding: 0.95rem 2.5rem;
  border-radius: 100px;
  background: var(--g-900);
  color: var(--w);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: background var(--dur) var(--ease), transform 0.2s var(--ease);
}
.modal__success-btn:hover {
  background: var(--g-800);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  backface-visibility: hidden;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: left;
    align-items: start;
  }
  .hero__right { display: none; }
  .hero__headline { max-width: none; }
  .hero__scroll-indicator { display: none; }

  .bigger__split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bigger__left { height: 50dvh; }
  .bigger__image-wrap { position: relative; height: 100%; }
  .bigger__right { padding: var(--sp-2xl) clamp(1rem, 3vw, 2rem); }

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

  .curious__inner { grid-template-columns: 1fr; }
  .curious__headline { position: static; }

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

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

/* Tablet portrait / large phone */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + var(--sp-xl)); }
  .hero__headline { font-size: var(--fs-4xl); }

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

  .learn__word { font-size: var(--fs-2xl); }

  .footer__inner { flex-direction: column; gap: var(--sp-sm); text-align: center; }
  .footer__social { justify-content: center; }
}

/* Small phone */
@media (max-width: 480px) {
  .hero__headline { font-size: var(--fs-3xl); }
  .hero__cta { width: 100%; justify-content: center; }

  .bigger__headline { font-size: var(--fs-2xl); }

  .why__card { padding: var(--sp-lg) var(--sp-md); }

  .learn__words { gap: var(--sp-xs) var(--sp-sm); }
  .learn__word { font-size: var(--fs-xl); }

  .vision__quote { font-size: var(--fs-3xl); }

  .community__grid { grid-template-columns: 1fr; }
  .community__img { aspect-ratio: 16/9; }

  .modal__container { padding: var(--sp-lg) var(--sp-md); border-radius: 12px; }
}

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

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Print */
@media print {
  .header, .modal, .hero__scroll-indicator, .cta-link, .hero__cta, .final__cta, .header__burger { display: none !important; }
  body { color: #000; background: #fff; }
}
