/* ============ Design tokens ============ */
:root {
  --plum: #3b0a3f;
  --plum-deep: #24052a;
  --berry: #c2185b;
  --coral: #ff6b6b;
  --peach: #ffb38a;
  --cream: #fff7f2;
  --blush: #ffe4e1;
  --ink: #2a1a2e;
  --muted: #6e5a72;
  --white: #ffffff;

  --grad: linear-gradient(120deg, var(--berry), var(--coral) 55%, var(--peach));

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 60px -20px rgba(59, 10, 63, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 600; }

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

.container { width: min(1180px, 100% - 2rem * 2); margin-inline: auto; }

.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 1rem;
}

.eyebrow-light { color: var(--peach); }

.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 1.2rem; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}

.btn-primary {
  background: var(--grad);
  background-size: 200% auto;
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(194, 24, 91, 0.6);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 16px 40px -10px rgba(194, 24, 91, 0.7);
}

.btn-primary .arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(5px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.9rem; background: var(--grad); color: var(--white) !important; }
.btn-small::after { display: none; }
.btn-small:hover { transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; grid-column: 1 / -1; }

/* ============ Progress bar ============ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  isolation: isolate;
  transition: padding 0.4s var(--ease);
}

/* Frosted background lives on a pseudo-element: putting backdrop-filter on
   .nav itself would trap the fixed mobile menu inside the nav bar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(36, 5, 42, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s;
}

.nav.scrolled { padding-block: 0.8rem; }
.nav.scrolled::before { opacity: 1; }
.menu-open .nav::before { opacity: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.logo-drop {
  width: 18px;
  height: 18px;
  background: var(--grad);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  animation: drip 3s var(--ease) infinite;
}

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

.nav-links a:not(.btn) {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at top, #4d1052, var(--plum-deep) 70%);
  color: var(--white);
  overflow: hidden;
  padding: 8rem clamp(1rem, 4vw, 3rem) 9rem;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.blob-1 { width: 520px; height: 520px; background: var(--berry); top: -120px; right: -100px; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: var(--coral); bottom: -80px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
.blob-3 { width: 300px; height: 300px; background: var(--peach); top: 40%; left: 55%; opacity: 0.3; animation: float 22s ease-in-out infinite; }

.hero-content { position: relative; max-width: 980px; margin-inline: auto; width: 100%; }

.hero .eyebrow { color: var(--peach); }

.hero-title {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 800;
  margin-bottom: 1.8rem;
}

.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }

.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}

.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s, 0s; animation-name: rise, shimmer; animation-duration: 1.1s, 6s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease), linear; }

.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; opacity: 0.85; margin-bottom: 2.4rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  z-index: 2;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollCue 2s var(--ease) infinite;
}

.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }
.wave path { fill: var(--cream); animation: waveMove 10s ease-in-out infinite alternate; }

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  padding: 1.4rem 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(59, 10, 63, 0.08);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--plum);
  white-space: nowrap;
}

.marquee-track span:nth-child(even) { color: var(--coral); }

/* ============ Mission ============ */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: 4.5rem;
}

.mission-text p { font-size: 1.1rem; color: var(--muted); }
.mission-text p + p { margin-top: 1.2rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.pillar {
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(59, 10, 63, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.pillar:hover { transform: translateY(-8px); box-shadow: 0 30px 70px -20px rgba(194, 24, 91, 0.3); }

.pillar-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 1.7rem;
  border-radius: 18px;
  background: var(--blush);
  margin-bottom: 1.4rem;
  transition: transform 0.5s var(--ease);
}

.pillar:hover .pillar-icon { transform: rotate(-8deg) scale(1.1); }
.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { color: var(--muted); }

/* ============ Statement ============ */
.statement { padding: clamp(5rem, 12vw, 9rem) 0; background: var(--plum-deep); }

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 1000px;
}

.statement-text .word { color: rgba(255, 255, 255, 0.15); transition: color 0.4s ease; }
.statement-text .word.lit { color: var(--white); }
.statement-text .word.lit:nth-last-child(-n+2) { color: var(--coral); }

/* ============ How it works ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }

.step {
  position: relative;
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(59, 10, 63, 0.08);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}

.step::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.step:hover { transform: translateY(-6px); }
.step:hover::before { transform: scaleX(1); }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); }

/* ============ Roadmap ============ */
.roadmap { background: var(--blush); }

.timeline {
  list-style: none;
  position: relative;
  max-width: 820px;
  padding-left: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--berry), var(--coral), rgba(194, 24, 91, 0.15));
}

.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }

.dot {
  position: absolute;
  left: calc(-2.5rem + 1px);
  top: 1.6rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--coral);
}

.timeline-item.done .dot { background: var(--berry); border-color: var(--berry); }

.timeline-item.current .dot {
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  animation: pulse 2s infinite;
}

.timeline-card {
  background: var(--white);
  padding: 1.6rem 1.8rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}

.timeline-card:hover { transform: translateX(8px); }
.timeline-card h3 { margin: 0.6rem 0 0.4rem; }
.timeline-card p { color: var(--muted); }

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--blush);
  color: var(--berry);
}

.current .tag { background: var(--grad); color: var(--white); }

/* ============ Get involved cards ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 2.6rem 2.2rem;
  border-radius: var(--radius);
  background: var(--plum);
  color: var(--white);
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.4s;
  will-change: transform;
}

.card:hover { box-shadow: 0 30px 70px -20px rgba(59, 10, 63, 0.6); }

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 107, 107, 0.35), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover .card-glow { opacity: 1; }

.card-featured { background: linear-gradient(150deg, var(--berry), #8e1048); }

.card-emoji { display: block; font-size: 2.4rem; margin-bottom: 1.4rem; }
.card h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.card p { opacity: 0.8; margin-bottom: 1.8rem; }

.card-link { position: relative; font-weight: 600; color: var(--peach); transition: letter-spacing 0.3s var(--ease); }
.card-link:hover { letter-spacing: 0.04em; }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.faq-list details {
  background: var(--white);
  border-radius: 18px;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 10, 63, 0.08);
  transition: box-shadow 0.4s var(--ease);
}

.faq-list details[open] { box-shadow: var(--shadow); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 1.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--berry);
  font-size: 1.3rem;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--berry); color: var(--white); }

.faq-list details p { padding: 0 1.6rem 1.4rem; color: var(--muted); animation: fadeDown 0.4s var(--ease); }

/* ============ Contact ============ */
.contact {
  background: var(--plum-deep);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.blob-4 { width: 600px; height: 600px; background: var(--berry); top: -250px; left: 50%; translate: -50% 0; opacity: 0.35; animation: float 16s ease-in-out infinite; }

.contact-inner { position: relative; max-width: 720px; }
.contact .section-sub { color: rgba(255, 255, 255, 0.7); margin-bottom: 3rem; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; }

.field { position: relative; }
.field-full { grid-column: 1 / -1; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.5rem 1.2rem 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}

.field select { padding: 1.05rem 1.2rem; appearance: none; cursor: pointer; }
.field select option { color: var(--ink); }

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--coral); background: rgba(255, 255, 255, 0.1); }

.field label {
  position: absolute;
  left: 1.2rem;
  top: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition: all 0.25s var(--ease);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.45rem;
  font-size: 0.72rem;
  color: var(--peach);
}

.form-success {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--peach);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--ease);
}

.contact-form.sent .form-success { opacity: 1; transform: none; }

/* ============ Footer ============ */
.footer { background: var(--plum-deep); color: rgba(255, 255, 255, 0.7); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 3rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.footer .logo { color: var(--white); margin-bottom: 0.4rem; }
.footer .small { font-size: 0.85rem; opacity: 0.6; }

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

.reveal.visible { opacity: 1; transform: none; }

.hero .reveal { animation: fadeUp 1s var(--ease) forwards; }
.hero .eyebrow.reveal { animation-delay: 0s; }
.hero .hero-sub.reveal { animation-delay: 0.45s; }
.hero .hero-actions.reveal { animation-delay: 0.6s; }

/* ============ Keyframes ============ */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes drip {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translate(2px, 2px) scale(1.1); }
}

@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes waveMove {
  from { d: path("M0,64 C240,120 480,0 720,48 C960,96 1200,16 1440,64 L1440,120 L0,120 Z"); }
  to { d: path("M0,48 C240,0 480,110 720,64 C960,16 1200,100 1440,40 L1440,120 L0,120 Z"); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(255, 107, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .mission-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .pillars,
  .steps,
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: contain;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--plum-deep);
    clip-path: circle(0 at calc(100% - 2.5rem) 2.5rem);
    transition: clip-path 0.7s var(--ease);
  }

  .nav-links a:not(.btn) { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
  .menu-open .nav-links { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); }
  .menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 2rem); }
  .contact-form { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .scroll-cue { display: none; }
}

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