/* =========================================================
   Atlas Autoware — Design System
   Liquid glass • calm motion • human, organic feel
   ========================================================= */

:root {
  /* Palette — deep space navy with electric autonomy blue */
  --bg-0: #05070d;
  --bg-1: #080b16;
  --bg-2: #0c1020;
  --ink: #eef2ff;
  --ink-soft: #b6c0dc;
  --ink-mute: #7a86a8;

  --brand: #4f8cff;
  --brand-2: #6ee7ff;
  --brand-3: #9b6bff;
  --accent-warm: #ffcf7a;

  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.09);
  --glass-brd: rgba(255, 255, 255, 0.12);
  --glass-brd-strong: rgba(255, 255, 255, 0.22);

  --shadow-soft: 0 18px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 80px -20px rgba(79, 140, 255, 0.55);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-xl: 48px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1200px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* --------------------- Ambient field --------------------- */
/* Living gradient mesh behind everything — slow, calm drift */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 95% 5%, rgba(155, 107, 255, 0.14), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(110, 231, 255, 0.10), transparent 60%),
    var(--bg-0);
}
.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}
.ambient::before {
  background: radial-gradient(circle, rgba(79, 140, 255, 0.55), transparent 65%);
  top: -10%; left: -10%;
  animation: drift1 26s var(--ease-soft) infinite alternate;
}
.ambient::after {
  background: radial-gradient(circle, rgba(155, 107, 255, 0.45), transparent 65%);
  bottom: -20%; right: -15%;
  animation: drift2 32s var(--ease-soft) infinite alternate;
}
@keyframes drift1 {
  to { transform: translate3d(12vw, 10vh, 0) scale(1.15); }
}
@keyframes drift2 {
  to { transform: translate3d(-10vw, -8vh, 0) scale(1.1); }
}

/* Fine grain so flat areas feel like material, not paint */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------ Layout ------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--brand-2), transparent);
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
.display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.section-title { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 60ch; }

.gradient-text {
  background: linear-gradient(120deg, #fff 10%, var(--brand-2) 50%, var(--brand-3) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------- Glass surfaces -------------------- */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* The wet sheen along the top edge — what makes glass read as liquid */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.35), transparent 40%, transparent 70%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ------------------------ Buttons ------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
  will-change: transform;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-3));
  color: #fff;
  box-shadow: 0 12px 40px -12px rgba(79, 140, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s var(--ease);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-glass {
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--glass-brd-strong); }

.btn-ghost { color: var(--ink-soft); padding: 15px 20px; }
.btn-ghost:hover { color: var(--ink); }

/* Donate button gets a warm, alive shimmer */
.btn-donate {
  background: linear-gradient(120deg, #ff9b50, var(--accent-warm), #ff7eb3);
  background-size: 200% 100%;
  color: #1a0e00;
  box-shadow: 0 12px 40px -12px rgba(255, 159, 80, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.btn-donate:hover { box-shadow: 0 18px 50px -14px rgba(255, 159, 80, 0.9); }

/* ------------------------- Navbar ------------------------ */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: var(--maxw);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: rgba(10, 13, 24, 0.55);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease), background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.nav.hidden { transform: translateX(-50%) translateY(-140%); }
.nav.scrolled { background: rgba(8, 11, 20, 0.78); box-shadow: 0 16px 50px -20px rgba(0, 0, 0, 0.9); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 6px 20px -6px rgba(79, 140, 255, 0.8), inset 0 1px 0 rgba(255,255,255,.4);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand .mark img { width: 24px; height: 24px; object-fit: contain; }
.brand b { font-size: 1.02rem; }
.brand span { color: var(--ink-mute); font-size: 1.02rem; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--glass); }
.nav-links a.active { color: var(--ink); background: var(--glass-2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; transition: 0.4s var(--ease); }

/* ------------------------- Hero -------------------------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { margin: 12px 0 22px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  font-size: 0.82rem; color: var(--ink-soft);
  margin-bottom: 4px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }

/* Hero visual — a sensing autonomous car rendered in pure CSS/SVG */
.hero-visual { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.scene {
  position: relative;
  width: 100%; max-width: 460px; aspect-ratio: 1;
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 60%, rgba(79,140,255,0.18), transparent 60%);
}
.radar-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.radar-rings i {
  position: absolute;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 50%;
  animation: sonar 4s ease-out infinite;
}
.radar-rings i:nth-child(1) { width: 40%; height: 40%; animation-delay: 0s; }
.radar-rings i:nth-child(2) { width: 60%; height: 60%; animation-delay: 1s; }
.radar-rings i:nth-child(3) { width: 80%; height: 80%; animation-delay: 2s; }
.radar-rings i:nth-child(4) { width: 100%; height: 100%; animation-delay: 3s; }
@keyframes sonar { 0% { opacity: 0; transform: scale(0.6); } 30% { opacity: 0.8; } 100% { opacity: 0; transform: scale(1.05); } }

.car-pod {
  position: relative;
  width: 62%;
  padding: 30px;
  border-radius: var(--r-lg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.car-pod svg { width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }
.car-pod.photo { width: 84%; padding: 12px; }
.car-pod.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--r-lg) - 10px); box-shadow: 0 24px 50px -16px rgba(0,0,0,0.75); }

/* Real photo filling a split media frame */
.split-media .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px; font-size: 0.78rem; font-weight: 600;
  background: rgba(8,11,20,0.7); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.media-tag .d { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }

/* Floating data chips around the scene */
.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(12, 16, 32, 0.7);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  animation: floatChip 8s ease-in-out infinite;
}
.chip .d { width: 7px; height: 7px; border-radius: 50%; }
.chip-1 { top: 8%; left: -6%; animation-delay: 0s; }
.chip-2 { top: 38%; right: -10%; animation-delay: 1.5s; }
.chip-3 { bottom: 12%; left: -4%; animation-delay: 3s; }
@keyframes floatChip { 50% { transform: translateY(-12px); } }

/* ----------------------- Stat band ----------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 30px 26px; border-radius: var(--r-md); }
.stat .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; }
.stat .lbl { color: var(--ink-mute); font-size: 0.92rem; margin-top: 4px; }

/* --------------------- Funding goal ---------------------- */
.fund { padding: clamp(30px, 4vw, 46px); border-radius: var(--r-xl); }
.fund-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.fund-top h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.fund-top .raised { text-align: right; }
.fund-top .raised .big { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; font-family: var(--font-display); }
.fund-top .raised .big span { color: var(--brand-2); }
.fund-top .raised .of { color: var(--ink-mute); font-size: 0.92rem; }
.fund-bar { height: 16px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-brd); overflow: hidden; position: relative; }
.fund-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 24px rgba(79,140,255,0.6);
  transition: width 1.8s var(--ease);
  position: relative; overflow: hidden;
}
.fund-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  animation: sheen 2.6s ease-in-out 1.6s infinite;
}
@keyframes sheen { to { transform: translateX(220%); } }
.fund-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.fund-meta div { display: flex; gap: 11px; align-items: flex-start; }
.fund-meta .pin { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(79,140,255,0.18); color: var(--brand-2); margin-top: 1px; }
.fund-meta .pin svg { width: 16px; height: 16px; }
.fund-meta b { display: block; font-size: 0.95rem; }
.fund-meta span { color: var(--ink-mute); font-size: 0.86rem; }

/* ----------------- Upcoming competition ------------------ */
.event {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(79,140,255,0.16), rgba(155,107,255,0.12));
  position: relative; overflow: hidden;
}
.event-date {
  text-align: center; flex: none;
  padding: 18px 22px; border-radius: var(--r-md);
  background: rgba(8,11,20,0.55); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.event-date .mo { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; }
.event-date .dy { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1; margin: 2px 0; }
.event-date .yr { font-size: 0.84rem; color: var(--ink-mute); }
.event-body .live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-warm); margin-bottom: 10px; }
.event-body .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-warm); box-shadow: 0 0 10px var(--accent-warm); animation: pulse 2.4s ease-in-out infinite; }
.event-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 8px; }
.event-body p { color: var(--ink-soft); font-size: 0.96rem; max-width: 52ch; }
.event-loc { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-mute); font-size: 0.88rem; margin-top: 10px; }
.event-loc svg { width: 15px; height: 15px; }
.event .btn { flex: none; }

/* ----------------------- Sections ------------------------ */
.block { padding: clamp(70px, 11vw, 150px) 0; }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .lead { margin-top: 18px; }
.head.center .lead { margin-left: auto; margin-right: auto; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 34px 30px;
  border-radius: var(--r-lg);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-8px); border-color: var(--glass-brd-strong); box-shadow: var(--shadow-soft), var(--shadow-glow); }
.card .ico {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(79,140,255,0.25), rgba(155,107,255,0.18));
  border: 1px solid var(--glass-brd);
}
.card .ico svg { width: 26px; height: 26px; color: var(--brand-2); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(79,140,255,0.16), rgba(12,16,32,0.4));
}
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 8px; margin-top: 2px;
  display: grid; place-items: center;
  background: rgba(79,140,255,0.2); color: var(--brand-2);
}
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list b { display: block; font-weight: 600; }
.feature-list span { color: var(--ink-mute); font-size: 0.95rem; }

/* ----------------------- Timeline ------------------------ */
.timeline { position: relative; display: grid; gap: 22px; }
.tl-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: stretch;
}
.tl-year { text-align: right; }
.tl-year .y { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.tl-year .s { color: var(--ink-mute); font-size: 0.85rem; }
.tl-card { padding: 26px 30px; border-radius: var(--r-md); position: relative; }
.tl-card::before {
  content: ""; position: absolute; left: -28px; top: 30px; bottom: -22px;
  width: 2px; background: linear-gradient(var(--brand), transparent);
}
.tl-item:last-child .tl-card::before { display: none; }
.tl-card .node {
  position: absolute; left: -34px; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(79,140,255,0.2), 0 0 18px var(--brand);
}
.tl-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.tl-card p { color: var(--ink-soft); font-size: 0.95rem; }
.tag {
  display: inline-block; margin-top: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(79,140,255,0.16); color: var(--brand-2);
  border: 1px solid rgba(79,140,255,0.3);
}
.tag.win { background: rgba(255,207,122,0.14); color: var(--accent-warm); border-color: rgba(255,207,122,0.3); }

/* --------------------- Spec sheet ------------------------ */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spec {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 24px; border-radius: var(--r-md);
}
.spec .k { color: var(--ink-mute); font-size: 0.9rem; }
.spec .v { font-weight: 700; font-size: 1.05rem; text-align: right; }

/* --------------------- Donation tiers -------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier { padding: 34px 30px; border-radius: var(--r-lg); display: flex; flex-direction: column; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.tier:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft), var(--shadow-glow); }
.tier.feat { border-color: rgba(79,140,255,0.4); box-shadow: var(--shadow-soft), 0 0 60px -20px rgba(79,140,255,0.6); }
.tier .pop { align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: linear-gradient(120deg, var(--brand), var(--brand-3)); color: #fff; }
.tier .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.tier .amt small { font-size: 1rem; font-weight: 500; color: var(--ink-mute); }
.tier .tname { color: var(--brand-2); font-weight: 600; margin: 4px 0 18px; }
.tier ul { display: grid; gap: 12px; margin: 8px 0 26px; }
.tier li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: 0.94rem; }
.tier li svg { flex: none; width: 18px; height: 18px; color: var(--brand-2); margin-top: 3px; }
.tier .btn { margin-top: auto; justify-content: center; }

/* Donation form / panel */
.donate-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; }
.donate-form { padding: clamp(34px, 5vw, 56px); }
.donate-side {
  padding: clamp(34px, 5vw, 56px);
  background: linear-gradient(160deg, rgba(79,140,255,0.16), rgba(155,107,255,0.10));
  border-left: 1px solid var(--glass-brd);
}
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 22px; }
.amount-opt {
  padding: 18px 10px; border-radius: var(--r-md);
  border: 1px solid var(--glass-brd); background: var(--glass);
  font-weight: 700; font-size: 1.15rem; text-align: center;
  transition: all 0.4s var(--ease);
}
.amount-opt:hover { border-color: var(--glass-brd-strong); transform: translateY(-3px); }
.amount-opt.sel { background: linear-gradient(120deg, rgba(79,140,255,0.3), rgba(155,107,255,0.22)); border-color: var(--brand); box-shadow: var(--shadow-glow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; font-weight: 500; }
.input, .field input, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-brd);
  color: var(--ink); font-family: inherit; font-size: 1rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.input::placeholder, .field input::placeholder { color: var(--ink-mute); }
.input:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(79,140,255,0.15);
}
.input-amt { position: relative; }
.input-amt span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); font-weight: 600; }
.input-amt input { padding-left: 34px; font-weight: 700; font-size: 1.1rem; }
.freq-toggle { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-brd); margin-bottom: 22px; }
.freq-toggle button { padding: 9px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink-mute); transition: all 0.4s var(--ease); }
.freq-toggle button.on { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }

.impact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.impact-row .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.08); }
.impact-row .ic svg { width: 20px; height: 20px; color: var(--brand-2); }
.impact-row b { display: block; }
.impact-row span { color: var(--ink-soft); font-size: 0.9rem; }

/* ------------------------- CTA --------------------------- */
.cta-band {
  text-align: center;
  padding: clamp(50px, 8vw, 90px);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(79,140,255,0.16), rgba(155,107,255,0.12));
  overflow: hidden;
  position: relative;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------ Footer ------------------------- */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--glass-brd); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer p { color: var(--ink-mute); font-size: 0.92rem; margin-top: 16px; max-width: 32ch; }
.footer h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.footer ul { display: grid; gap: 12px; }
.footer a { color: var(--ink-soft); font-size: 0.94rem; transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--glass-brd); color: var(--ink-mute); font-size: 0.85rem; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-brd); transition: all 0.4s var(--ease); }
.socials a:hover { background: var(--glass-2); transform: translateY(-3px); border-color: var(--glass-brd-strong); }
.socials svg { width: 18px; height: 18px; }

/* --------------------- Page intro ------------------------ */
.page-hero { padding: 170px 0 40px; text-align: center; }
.page-hero h1 { margin: 14px 0 20px; }
.page-hero .lead { margin: 0 auto; }

/* --------------------- Scroll reveal --------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* Progress bar at very top */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3)); box-shadow: 0 0 12px var(--brand); transition: width 0.1s linear; }

/* ------------------------ Toast -------------------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(140%);
  padding: 16px 26px; border-radius: 999px; z-index: 300;
  background: rgba(12,16,32,0.85); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft); font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.7s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: #4ade80; display: grid; place-items: center; color: #05210f; }
.toast .ok svg { width: 13px; height: 13px; }

/* ---------------------- Responsive ----------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .split, .donate-panel { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .donate-side { border-left: none; border-top: 1px solid var(--glass-brd); }
  .cards, .tiers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 1fr; text-align: left; gap: 22px; }
  .event-date { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    padding: 14px; border-radius: var(--r-lg);
    background: rgba(8,11,20,0.92); border: 1px solid var(--glass-brd);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
  }
  .nav.open .nav-links a { padding: 14px 18px; }
  .nav-cta .btn-ghost { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .tl-year { text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .tl-card::before, .tl-card .node { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
}

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