/* ============================================================
   G.O.A.T.'ed — styles
   Light, rounded, playful. Teen-friendly, Duolingo energy.
   ============================================================ */

:root {
  --bg: #F7F3EB;        /* warm off-white (Light Sand) */
  --tint: #EFE8DB;      /* slightly deeper warm band */
  --card: #FFFFFF;
  --primary: #6C4AB6;
  --primary-lt: #A78BFA;
  --primary-soft: #EDE7FB;
  --accent: #E8823C;       /* warm marigold — hero doodle accent */
  --accent-soft: #FBE5CE;
  --ink: #1A1626;
  --muted: #6B6677;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(108, 74, 182, .12);
  --shadow-hover: 0 16px 40px rgba(108, 74, 182, .22);
  --maxw: 1100px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo { font-family: var(--font-display); line-height: 1.1; }

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

.grad {
  background: linear-gradient(120deg, var(--primary), var(--primary-lt));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__goat { color: var(--accent); }

.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: .85em 1.6em; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-lt); }
.btn--secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--sm { font-size: .95rem; padding: .6em 1.2em; }

.link-ghost { display: inline-block; margin-top: 1.2rem; font-weight: 700; color: var(--primary); }
.link-ghost:hover { color: var(--primary-lt); }

.inline-goat { height: 1em; width: auto; vertical-align: -0.15em; }

/* ---------- line icons ---------- */
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  color: var(--primary); background: var(--primary-soft); padding: .35em 1em;
  border-radius: 999px; font-size: .9rem; margin-bottom: 1rem;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 235, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6ddcb;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.logo__goat { width: 40px; height: 40px; object-fit: contain; }
.logo__ed { color: var(--primary); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { white-space: nowrap; }
.logo__text small { font-family: var(--font-body); font-size: .6rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav__links { display: flex; gap: 1.4rem; margin-left: auto; font-weight: 700; }
.nav__links a { position: relative; color: var(--ink); }
.nav__links a:hover { color: var(--primary); }

.nav__right { display: flex; align-items: center; gap: .8rem; }
.countdown-chip {
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  background: var(--primary-soft); color: var(--primary); padding: .35em .9em; border-radius: 999px;
}

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: .2s; }

.drawer { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.2rem 1.4rem; border-bottom: 1px solid #e6ddcb; }
.drawer[hidden] { display: none; }
.drawer a { font-weight: 700; padding: .6rem 0; font-size: 1.1rem; }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding: 4.5rem 1.2rem 4rem; text-align: center; }
.hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero__mascot { width: 220px; max-width: 55%; height: auto; display: block; margin: 0 auto 1.2rem; filter: drop-shadow(0 12px 20px rgba(108,74,182,.18)); animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__mascot { animation: none; } }
.hero__title { font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 700; letter-spacing: -.02em; }
.hero__tagline { font-size: clamp(1.1rem, 3vw, 1.5rem); margin-top: .8rem; }
.hero__desc { color: var(--muted); font-size: 1.1rem; margin: 1rem auto 1.8rem; max-width: 560px; }

.hero .eyebrow {
  background: var(--accent-soft); color: #9A4B12; border: 1.5px dashed #E8823C88;
  transform: rotate(-2deg); box-shadow: 0 3px 0 rgba(0,0,0,.04);
}

.hero__sparkle { position: absolute; z-index: 2; color: var(--accent); opacity: .8; }
.hero__sparkle svg { width: 100%; height: 100%; }
.hero__sparkle--1 { width: 26px; height: 26px; top: 6%; left: 12%; transform: rotate(-12deg); }
.hero__sparkle--2 { width: 18px; height: 18px; top: 62%; left: 6%; color: var(--primary-lt); transform: rotate(18deg); }
.hero__sparkle--3 { width: 20px; height: 20px; top: 12%; right: 14%; transform: rotate(10deg); }
@media (max-width: 640px) { .hero__sparkle { display: none; } }

.hero__blob { position: absolute; z-index: 1; opacity: .5; }
.hero__blob--1 {
  width: 260px; height: 220px; top: -60px; left: -70px; background: var(--primary-lt);
  border-radius: 58% 42% 61% 39% / 45% 55% 48% 52%; transform: rotate(-8deg); opacity: .3;
}
.hero__blob--2 {
  width: 220px; height: 240px; bottom: -70px; right: -50px; background: var(--accent-soft);
  border-radius: 39% 61% 42% 58% / 55% 45% 58% 42%; transform: rotate(12deg); opacity: .55;
}
.hero__blob--3 {
  width: 90px; height: 90px; top: 18%; right: 6%; background: var(--accent);
  border-radius: 63% 37% 41% 59% / 51% 44% 56% 49%; opacity: .18;
}

/* sign-up */
.signup { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.signup input {
  flex: 1; min-width: 220px; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: .85em 1.2em; border: 2px solid #e2d9f7; border-radius: 999px; background: #fff; color: var(--ink);
}
.signup input:focus { outline: none; border-color: var(--primary); }
.signup__note { min-height: 1.4rem; margin-top: .8rem; font-weight: 700; color: var(--primary); }

/* reach-out (within FAQ) */
.faq-contact { max-width: 560px; margin: 2.8rem auto 0; text-align: center; }
.faq-contact h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.faq-contact p { color: var(--muted); margin-bottom: 1.4rem; }

/* contact form */
.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; text-align: center; }
.contact-form__row { display: flex; gap: .9rem; }
.contact-form input, .contact-form textarea {
  flex: 1; width: 100%; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: .85em 1.2em; border: 2px solid #e2d9f7; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form .btn { align-self: center; }
@media (max-width: 520px) { .contact-form__row { flex-direction: column; } }

/* countdown */
.countdown { display: flex; gap: .7rem; justify-content: center; margin: 2.2rem 0 1.4rem; }
.countdown__box {
  background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: .8rem 1rem; min-width: 72px; display: flex; flex-direction: column; align-items: center;
}
.countdown__box strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); }
.countdown__box span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.countdown--light .countdown__box { background: rgba(255,255,255,.15); box-shadow: none; }
.countdown--light .countdown__box strong { color: #fff; }
.countdown--light .countdown__box span { color: rgba(255,255,255,.8); }

.facts { list-style: none; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; font-weight: 700; color: var(--ink); }
.facts li { display: inline-flex; align-items: center; gap: .4rem; }
.facts svg { width: 1.15rem; height: 1.15rem; color: var(--primary); }

/* ============ SECTIONS ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.2rem; }
.section--tint { max-width: none; background: var(--tint); }
.section--tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section__head h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.lead { color: var(--muted); font-size: 1.15rem; margin-top: .9rem; }

/* cards (generic) */
.card { background: var(--card); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card__emoji { display: block; margin-bottom: .6rem; color: var(--primary); }
.card__emoji svg { width: 2.4rem; height: 2.4rem; }
.card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.card p { color: var(--muted); }
.pop:hover { background: var(--primary-soft); }

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

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); position: relative; }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: .8rem; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

/* cta strip */
.cta-strip { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; background: var(--card); border-radius: var(--radius-lg); padding: 1.6rem 2rem; box-shadow: var(--shadow); }
.cta-strip p { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

/* tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tech-card { background: var(--card); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.tech-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-hover); }
.tech-card__icon { display: block; margin-bottom: .6rem; color: var(--primary); }
.tech-card__icon svg { width: 2.2rem; height: 2.2rem; }
.tech-card h3 { font-size: 1.15rem; margin: .5rem 0 .3rem; }
.tech-card p { color: var(--muted); font-size: .95rem; }
.tech-card--more { background: var(--primary-soft); border: 2px dashed var(--primary-lt); box-shadow: none; }

.tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .25em .7em; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2.5rem; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s ease; }
.gallery img:hover { transform: scale(1.04); }
.gallery__note { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .95rem; margin-top: .3rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }

/* tabs / schedule */
.tabs { max-width: 760px; margin: 0 auto; }
.tabs__btns { display: flex; gap: .6rem; justify-content: center; margin-bottom: 1.6rem; }
.tabs__btn { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: .7em 1.4em; border-radius: 999px; border: 2px solid #e2d9f7; background: #fff; color: var(--muted); cursor: pointer; transition: .15s; }
.tabs__btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

.timeline__daylabel { font-weight: 700; margin-bottom: 1.2rem; }
.timeline { list-style: none; position: relative; padding-left: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; background: #e2d9f7; border-radius: 2px; }
.timeline li { display: flex; gap: 1.2rem; padding: .9rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -1.5rem; top: 1.3rem; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); }
.timeline__time { font-family: var(--font-display); font-weight: 600; color: var(--primary); min-width: 52px; }
.timeline h4 { font-size: 1.1rem; }
.timeline p { color: var(--muted); font-size: .95rem; }

/* mentors */
.mentors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.mentor-slot { aspect-ratio: 1; border-radius: var(--radius); background: var(--primary-soft); border: 2px dashed var(--primary-lt); display: grid; place-items: center; }
.mentor-slot span { font-family: var(--font-display); font-size: 2.5rem; color: var(--primary-lt); }

/* stats */
.section--dark { max-width: none; background: linear-gradient(120deg, var(--primary), #4d2f8f); color: #fff; }
.stats { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.stat strong { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.4rem); display: block; }
.stat span { font-weight: 700; opacity: .85; }

/* sponsors */
.sponsors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sponsor-slot { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--muted); font-weight: 700; }

/* faq */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq details { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; padding: 1.2rem 1.4rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* final cta */
.final { background: linear-gradient(120deg, var(--primary), var(--primary-lt)); color: #fff; padding: 5rem 1.2rem; text-align: center; }
.final__inner { max-width: 620px; margin: 0 auto; }
.final h2 { font-size: clamp(2rem, 5vw, 3rem); }
.final p { font-size: 1.15rem; opacity: .95; margin: .8rem 0 2rem; }
.signup--big input { min-width: 240px; }
.final .signup__note { color: #fff; }

/* footer */
.footer { background: var(--ink); color: #cfc8e0; padding: 3rem 1.2rem 2rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer__brand { display: flex; gap: .8rem; align-items: flex-start; max-width: 280px; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer__brand p { font-size: .9rem; }
.footer__links, .footer__contact { display: flex; flex-direction: column; gap: .6rem; font-weight: 700; }
.footer__links a:hover, .footer__contact a:hover { color: var(--primary-lt); }
.footer__copy { text-align: center; margin-top: 2.5rem; font-size: .85rem; opacity: .7; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.modal[aria-hidden="false"] { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30, 20, 50, .55); backdrop-filter: blur(3px); }
.modal__card {
  position: relative; z-index: 1; background: var(--card); border-radius: var(--radius-lg);
  padding: 2.6rem 2rem 2.2rem; max-width: 460px; width: 100%; text-align: center;
  box-shadow: var(--shadow-hover); animation: modalPop .25s ease;
  max-height: calc(100vh - 2.4rem); overflow-y: auto;
}
.modal__card--wide { max-width: 720px; }
.modal__divider { font-weight: 700; color: var(--ink); margin: .4rem 0 1rem; }
.modal__mailto { display: inline-block; margin-top: 1rem; }
.donate-frame { display: block; width: 100%; max-width: 640px; height: 640px; margin: .4rem auto 1.4rem; border: none; border-radius: var(--radius); }
@media (max-width: 560px) { .donate-frame { height: 520px; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__card h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.modal__card p { color: var(--muted); margin-bottom: 1.6rem; }
.modal__close {
  position: absolute; top: .7rem; right: .7rem; width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; border: none; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); cursor: pointer;
}
.modal__close:hover { background: var(--primary); color: #fff; }
.modal__close svg { width: 1.2rem; height: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .modal__card { animation: none; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .countdown-chip { display: none; }
  .cards-3, .steps, .benefits, .tech-grid, .mentors, .sponsors, .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards-3, .steps, .benefits, .tech-grid, .mentors, .sponsors { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .countdown__box { min-width: 62px; padding: .6rem .7rem; }
  .countdown__box strong { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
