:root {
  --navy: #070b18;
  --ink: #0b1020;
  --cream: #f4e7c8;
  --muted: #c9bda4;
  --cyan: #3de0ff;
  --yellow: #f5c542;
  --red: #ff3b3b;
  --green: #32e07a;
  --gold: #d7a441;
  --glass: rgba(8, 12, 24, 0.62);
  --line: rgba(244, 231, 200, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--navy);
  font-family: Outfit, system-ui, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .ape, .ghost {
  font: inherit;
  cursor: pointer;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: .18;
  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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: #11182c;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: .25s ease;
  font-size: 14px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(7, 11, 24, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-brand span { display: flex; flex-direction: column; line-height: .9; }
.nav-brand b {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 22px;
}
.nav-brand i {
  font-family: "Playfair Display", serif;
  font-size: 12px;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--cream); }
.nav-actions { display: flex; gap: 10px; }

.ape, .ghost {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .02em;
}
.ape {
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--red), var(--green));
  color: #0b1020;
}
.ape:hover { filter: brightness(1.08); }
.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}
.ghost:hover { background: rgba(244, 231, 200, .08); }
.xl { padding: 14px 22px; font-size: 16px; }

.hero {
  position: relative;
  min-height: clamp(680px, calc(100svh - 72px), 920px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-bg, .hero-shade {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-shade {
  background:
    linear-gradient(180deg, rgba(7,11,24,.28), rgba(7,11,24,.72)),
    radial-gradient(ellipse at 50% 42%, rgba(7,11,24,.18), rgba(7,11,24,.62));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 40px));
  display: grid;
  padding: 64px 0 80px;
  text-align: center;
  justify-items: center;
}
.kicker {
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: normal;
}
h1 {
  margin: 8px 0 10px;
  line-height: .82;
}
.word-arc {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(72px, 12vw, 140px);
  letter-spacing: 2px;
}
.word-trench {
  display: block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(34px, 6vw, 68px);
  margin-top: -8px;
}
.tagline {
  font-size: 28px;
  margin: 8px 0 14px;
}
.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 22px;
  margin: 8px auto 0;
  justify-content: center;
}
.stats dt {
  color: var(--muted);
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}
.stats dd { margin: 4px 0 0; font-size: 20px; font-weight: 800; }

.marquee {
  border-block: 1px solid var(--line);
  background: #0a1020;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  padding: 12px 0;
  animation: slide 22s linear infinite;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { padding: 88px 20px; }
.section-head {
  width: min(1100px, 100%);
  margin: 0 auto 36px;
}
.section-head p {
  font-family: "IBM Plex Mono", monospace;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: .95;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.squad { background: linear-gradient(#070b18, #10182d); }
.squad-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.squad-grid article {
  background: #0d1426;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.squad-grid img {
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  width: 100%;
}
.squad-grid h3, .squad-grid p { padding: 0 14px; }
.squad-grid h3 { margin: 14px 0 6px; }
.squad-grid p {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 16px;
  line-height: 1.4;
}

.ape-section {
  position: relative;
  background: #070b18;
}
.ape-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center/cover;
  opacity: .22;
  pointer-events: none;
}
.ape-section > * { position: relative; }
.steps {
  width: min(1100px, 100%);
  margin: 0 auto 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
}
.steps li {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  min-height: 210px;
}
.steps span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps h3 { margin: 8px 0; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.45; }

.ape-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  background: rgba(8,12,24,.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.ape-panel img { height: 100%; object-fit: cover; }
.ape-panel div { padding: 24px; }
.ca-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}
.ca-line code {
  color: var(--cream);
  background: #151c31;
  padding: 6px 8px;
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}
.ca-line button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  border-radius: 8px;
  padding: 6px 10px;
}

.tokenomics { background: #0c1324; }
.tok-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
.tok-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tok-grid li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #10182c;
}
.tok-grid b { font-size: 22px; }
.tok-grid span { color: var(--muted); }
.tok-grid aside {
  text-align: center;
  color: var(--muted);
}
.tok-grid aside img { width: 280px; margin: 0 auto 12px; }

.roadmap { background: linear-gradient(#0c1324, #070b18); }
.roadmap ol {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.roadmap li {
  border-top: 3px solid var(--yellow);
  background: #10182c;
  border-radius: 0 0 16px 16px;
  padding: 20px;
}
.roadmap h3 { margin-top: 0; }
.roadmap p { color: var(--muted); }

.gallery { padding-top: 40px; }
.shots {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .7fr 1fr 1.3fr;
  gap: 12px;
}
.shots img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.foot {
  padding: 40px 20px 56px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.foot img {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 16px;
}
.foot p { max-width: 720px; margin: 0 auto 12px; line-height: 1.5; }
.tiny { font-size: 12px; opacity: .7; }

@media (max-width: 960px) {
  .nav { padding: 12px 14px; gap: 10px; }
  .nav-links { display: none; }
  .nav-brand span { display: none; }
  .hero-inner, .steps, .ape-panel, .tok-grid, .roadmap ol, .squad-grid, .shots {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .shots img { height: 240px; }
  .hero-inner { padding-top: 28px; padding-bottom: 48px; }
  .lede { font-size: 16px; }
}
