:root {
  --ink: #17341f;
  --muted: #4c6454;
  --red: #e43434;
  --leaf: #7ed14a;
  --gold: #ffd84a;
  --cream: #f6f8f1;
  --paper: #ffffff;
  --line: rgba(23, 52, 31, 0.1);
  --display: "Baloo 2", "Trebuchet MS", sans-serif;
  --sans: "Outfit", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0 0 8px; }
h1 { font-size: clamp(3.2rem, 7vw, 5.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -0.03em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
section { scroll-margin-top: 84px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--leaf));
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 52, 31, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 52, 31, 0.14); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; box-shadow: none; }
.btn-red { background: linear-gradient(#ff5d55, #e12525); color: white; box-shadow: 0 10px 24px rgba(225, 37, 37, 0.28); }
.btn-ink { background: var(--ink); color: #f3ffe4; }
.btn-ghost { background: transparent; box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { background: white; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: linear-gradient(#8fd0ff, #e7f7c8);
  animation: pre-out 0.5s ease 1.15s forwards;
}
.preloader img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(23, 52, 31, 0.18);
}
.preloader p {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
}
.preloader.is-out { opacity: 0; visibility: hidden; }
.skip-intro .preloader { display: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 10px 30px rgba(30, 70, 100, 0.08);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:not(.btn):hover,
.nav-links a.is-on { color: var(--ink); background: rgba(23, 52, 31, 0.06); }
.nav-x { min-height: 40px; padding: 0.45rem 0.95rem; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); }

.hero {
  position: relative;
  padding: 36px 0 78px;
  background:
    radial-gradient(520px 220px at 88% 8%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(#67c0f6 0%, #c7e8ff 62%, #e5f6c6 100%);
  overflow: hidden;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute;
  top: 18px;
  right: 8%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c4 0 42%, #ffd15c 68%, transparent 70%);
  box-shadow: 0 0 40px 8px rgba(255, 210, 90, 0.35);
}
.cloud {
  position: absolute;
  height: 34px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.92);
  animation: drift linear infinite;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 36px; height: 36px; top: -16px; left: 14px; }
.cloud::after { width: 24px; height: 24px; top: -10px; left: 40px; }
.c1 { width: 110px; top: 46px; animation-duration: 52s; }
.c2 { width: 78px; top: 120px; animation-duration: 68s; animation-delay: -20s; }
.c3 { width: 130px; top: 28px; left: 42%; animation-duration: 76s; animation-delay: -30s; }

.hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  animation: rise 0.7s ease both;
}
.portrait {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 18px 40px rgba(23, 52, 31, 0.18);
  animation: float 5s ease-in-out infinite;
}
.ticker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lede { max-width: 52ch; color: var(--muted); margin: 0; }
.lede a { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.poster {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  background: #9fd4f6;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.45),
    0 28px 60px rgba(24, 70, 110, 0.22);
  animation: rise 0.8s ease 0.08s both;
}
.poster img { width: 100%; height: auto; }
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 48%, transparent 60%);
  transform: translateX(-130%);
  animation: shine 2.6s ease 0.7s 1 both;
  pointer-events: none;
}

.facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(12px);
  animation: rise 0.8s ease 0.16s both;
}
.facts li { padding: 16px 20px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.facts strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.facts a { text-decoration: none; }

.sheet {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding: 28px 0 72px;
  border-radius: 36px 36px 0 0;
  background: var(--cream);
}
.sheet section { padding: 56px 0; }

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about-visual img {
  width: min(100%, 380px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 24px 50px rgba(23, 52, 31, 0.12);
}
.about-visual p { max-width: 36ch; margin-top: 14px; color: var(--muted); }
.prose { color: var(--muted); font-size: 1.12rem; }
.points { margin: 18px 0 0; padding: 0; list-style: none; }
.points li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.points strong { color: var(--ink); }

.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head p:last-child { color: var(--muted); margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 32px;
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(126, 209, 74, 0.2), transparent 60%),
    #17341f;
  color: #e7f6d2;
}
.stats article { padding: 18px 16px; }
.stats p { margin: 0; color: rgba(231, 246, 210, 0.62); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.stats strong { display: block; margin: 8px 0 6px; color: #c6f27a; font-family: var(--display); font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1; }
.stats span { color: rgba(231, 246, 210, 0.78); font-size: 0.95rem; }

.steps, .road { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps { grid-template-columns: repeat(4, 1fr); }
.steps li, .road li {
  padding: 20px 18px 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(23, 52, 31, 0.05);
}
.steps span, .road span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-family: var(--display);
  font-size: 1.1rem;
}
.steps p, .road p { margin: 0; color: var(--muted); }
.road { grid-template-columns: repeat(5, 1fr); }
.road li { border-top: 3px solid #d7e8c4; }
.road li.done { border-top-color: var(--leaf); }
.road li.now { border-top-color: var(--gold); background: #fffdf3; }

.mint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(23, 52, 31, 0.05);
}
.mint .kicker { margin-bottom: 4px; }
.ca { margin: 0; font-family: ui-monospace, Consolas, monospace; font-weight: 650; word-break: break-all; }

.finale {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: 32px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(120deg, #9ed8ff, #e7f7c4 48%, #b7e56d);
}
.finale img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 16px 40px rgba(23, 52, 31, 0.16);
}
.finale p { max-width: 46ch; color: var(--muted); }
.handle {
  display: inline-block;
  margin: 4px 0 12px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  text-decoration: none;
}

.footer { padding: 8px 0 32px; background: var(--cream); color: var(--muted); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer p { max-width: 460px; margin: 0; font-size: 0.92rem; }
.footer a { font-weight: 700; text-decoration: none; }
.footer .brand { color: var(--ink); }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.reveal.wait { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translateX(-18vw); } to { transform: translateX(110vw); } }
@keyframes shine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes pre-out { to { opacity: 0; visibility: hidden; } }

@media (max-width: 980px) {
  .hero-top { grid-template-columns: 108px 1fr; }
  .portrait { width: 108px; height: 108px; border-radius: 28px; }
  .hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .about, .stats, .steps { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
  .finale { grid-template-columns: 120px 1fr; }
  .finale img { width: 120px; height: 120px; }
}

@media (max-width: 760px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .nav { border-radius: 22px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 16px 40px rgba(23, 52, 31, 0.12);
  }
  .nav-links.is-open { display: flex; }
  .hero-top, .about, .stats, .steps, .road, .finale, .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 22px; }
  .about-visual img { width: min(100%, 280px); }
  .mint { align-items: stretch; }
  .mint .actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .preloader { display: none; }
  .reveal.wait { opacity: 1; transform: none; }
}
