:root {
  --bg: #0B0A10;
  --surface: #13111B;
  --surface-2: #17142A;
  --surface-3: #201C2E;
  --line: #2A2638;
  --line-2: #3A3550;
  --text: #FFFFFF;
  --text-2: #D9D4E5;
  --muted: #B8B2C8;
  --lavender: #B79CFF;
  --lavender-2: #CDB9FF;
  --aqua: #7FE0E6;
  --violet: #8B5CF6;
  --badge: #241D3A;
  --grad: linear-gradient(90deg, #7FE0E6, #B79CFF 55%, #8B5CF6);
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.5; }
a { color: var(--lavender); }
a:hover { color: #D6C7FF; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; }
p { margin: 0; }
.accent { color: var(--lavender); }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--surface-2); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; text-decoration: none; }
.nav a[aria-current="page"] { background: var(--lavender); border-color: var(--lavender); color: var(--bg); font-weight: 600; }

/* ---------- Slim tracker ---------- */
.slim-tracker { background: var(--surface); border-bottom: 1px solid var(--line); }
.slim-tracker .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.slim-tracker .bar { flex: 1 1 240px; }

.bar { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar.lg { height: 22px; }
.bar.md { height: 18px; }
.bar-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .8s ease; }

/* ---------- Buttons ---------- */
.btn { min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.btn-aqua { background: var(--aqua); color: var(--bg); }
.btn-lav { background: var(--lavender); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--lavender); font-weight: 600; }
.btn-white { background: var(--text); color: var(--bg); }
.btn-aqua:hover, .btn-lav:hover, .btn-white:hover { filter: brightness(1.06); color: var(--bg); }
.btn-outline:hover { color: var(--text); background: rgba(183,156,255,.1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Layout ---------- */
main.wrap { padding-top: 40px; padding-bottom: 64px; }
.tab[hidden] { display: none; }
.section { margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card-lg { border-radius: 24px; padding: 32px; }
.card-dark { background: var(--surface-2); }
.card-accent { border-color: var(--lavender); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.grow-2 { flex: 2 1 420px; min-width: 0; }
.grow-1 { flex: 1 1 300px; min-width: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 780px; }
.body-lg { font-size: 18px; line-height: 1.65; color: var(--text-2); max-width: 820px; }
.body { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.page-title { font-size: clamp(34px, 6vw, 44px); }
.h2 { font-size: clamp(26px, 4.5vw, 32px); }
.stack > * + * { margin-top: 14px; }

/* ---------- Home hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--badge); color: var(--lavender-2); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 7vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { flex: 1 1 320px; min-width: 0; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 28px; padding: 10px; background: radial-gradient(circle at 18% 15%, rgba(127,224,230,.6) 0%, rgba(127,224,230,0) 45%), radial-gradient(circle at 85% 88%, rgba(139,92,246,.75) 0%, rgba(139,92,246,0) 50%), var(--surface-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 20px; display: block; }

/* ---------- Big tracker ---------- */
.tracker { background: var(--surface-2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.tracker-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.big-num { font-family: var(--display); font-size: clamp(40px, 8vw, 56px); font-weight: 700; line-height: 1; }
.goal-num { font-family: var(--display); font-size: 32px; font-weight: 700; }
.tracker-stats { display: flex; flex-wrap: wrap; gap: 32px; font-size: 15px; color: var(--muted); }
.tracker-stats strong { color: var(--text); font-size: 20px; }

.stat-label { font-size: 15px; color: var(--muted); }
.stat-value { font-family: var(--display); font-size: 28px; font-weight: 700; margin: 6px 0; }
.stat-note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.fact-value { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--lavender); }
.fact-note { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- Updates / share ---------- */
.update { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.update:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.update-date { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.update-title { font-weight: 600; margin-top: 4px; }
.share { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Watch ---------- */
.video { margin-top: 28px; position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.timeline-item { display: flex; gap: 12px; }
.timeline-item + .timeline-item { margin-top: 14px; }
.dot { width: 12px; height: 12px; border-radius: 999px; background: var(--lavender); margin-top: 5px; flex: none; }

/* ---------- Donate ---------- */
.donate-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.donate-main { flex: 1 1 440px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.donate-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.amount-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.amount { min-height: 72px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); color: var(--text); text-align: left; padding: 10px 16px; }
.amount .amt { font-family: var(--display); font-size: 24px; font-weight: 700; }
.amount .note { font-size: 13px; color: var(--muted); line-height: 1.35; }
.amount[aria-pressed="true"] { background: var(--aqua); border-color: var(--lavender); color: var(--bg); }
.amount[aria-pressed="true"] .note { color: var(--bg); }
.other-btn { min-height: 56px; border-radius: 14px; border: 2px dashed var(--line-2); background: var(--surface); color: var(--text); font-size: 17px; font-weight: 600; }
.other-btn[aria-pressed="true"] { border-style: solid; border-color: var(--lavender); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { min-height: 56px; border-radius: 14px; border: 2px solid var(--lavender); padding: 0 14px; font-size: 20px; background: var(--bg); color: var(--text); font-family: inherit; }
.notice { border: 1px solid var(--line-2); background: var(--surface-3); border-radius: 14px; padding: 16px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pay-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pay-option:last-child { border-bottom: 0; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--badge); color: var(--lavender-2); white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.supporter { display: flex; justify-content: space-between; gap: 12px; }
.supporter + .supporter { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--lavender); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bar-fill { transition: none; } }
