:root {
  --bg: #160910;
  --bg-2: #241018;
  --text: #f3e6ea;
  --muted: #c4a3ad;
  --accent: #d96b8a;
  --token: #38c4e6;
  --line: rgba(243, 230, 234, 0.16);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav: 72px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #160910; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: sticky; top: 0; z-index: 30;
  height: var(--nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.4rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 700; letter-spacing: 0.08em;
}
.nav-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-links { display: flex; gap: 1.6rem; font-size: 0.92rem; }
.nav-links a { position: relative; color: var(--muted); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 0.8rem; }

.cta-bracket {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  position: relative;
}
.cta-bracket::before, .cta-bracket::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--accent);
  transition: inset 0.25s ease;
}
.cta-bracket::before { clip-path: inset(0 70% 0 0); }
.cta-bracket::after { clip-path: inset(0 0 0 70%); }
.cta-bracket:hover::before, .cta-bracket:hover::after { inset: -4px; }
.cta-bracket:active { transform: scale(0.98); }

.nav-toggle { display: none; width: 36px; height: 36px; position: relative; }
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 1px; background: var(--text);
}
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { bottom: 13px; }

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
}
.hero-stage { position: absolute; inset: 0; overflow: hidden; }
.hero-still, .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.hero-still { z-index: 0; }
.hero-video { z-index: 1; }
.hero-veil {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(22, 9, 16, 0.12) 0%, rgba(22, 9, 16, 0.88) 100%);
}
.hero-copy {
  position: relative; z-index: 3;
  padding: 0 7vw 8vh;
  max-width: min(520px, 92vw);
}
.hero-logo {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.hero-copy h1 {
  margin-top: 0.7rem;
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  letter-spacing: -0.07em;
  line-height: 0.85;
  font-weight: 800;
}
.hero-copy p {
  margin-top: 0.85rem;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.ca-chip, .cta-ca {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(22, 9, 16, 0.55);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}
.ca-chip { margin-top: 1rem; }
.ca-chip code { font-family: var(--mono); }
.hero-row {
  margin-top: 1.6rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.hero-ticker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.cta-ticket {
  display: inline-flex; align-items: center;
  padding: 0.85rem 1.3rem;
  background: var(--accent);
  color: #160910;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px 14px 4px 14px;
}
.cta-ticket:hover { filter: brightness(1.08); }
.cta-ticket:active { transform: translateY(1px) scale(0.98); }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 2.4rem;
  padding: 0.85rem 0;
  width: max-content;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  animation: slide 22s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.chapter {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}
.chapter video, .chapter > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.chapter > img { z-index: 0; }
.chapter video { z-index: 1; }

.chapter-ticker .lockup {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 7vw 4.2rem;
  background: linear-gradient(90deg, transparent 35%, rgba(22, 9, 16, 0.72) 100%);
}
.lockup-logo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.token-band {
  position: relative;
  min-height: 48dvh;
  background: var(--token);
  overflow: hidden;
}
.token-vid, .token-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.token-still { z-index: 0; }
.token-vid { z-index: 1; }
.token-cash {
  position: absolute;
  z-index: 2;
  left: 7vw;
  top: 50%;
  transform: translateY(-58%);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  color: #fff;
  line-height: 1;
}

.buy {
  padding: 4.5rem 7vw 5.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
}
.steps { list-style: none; display: grid; gap: 1.6rem; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.8rem; }
.step-n {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  padding-top: 0.35rem;
}
.steps h3 { font-size: 1.35rem; letter-spacing: -0.03em; }
.steps p { color: var(--muted); max-width: 36ch; }

.ca-card {
  align-self: center;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--bg-2);
}
.ca-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ca-card code {
  display: block;
  margin: 0.7rem 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  word-break: break-all;
}
.cta-stamp {
  width: 100%;
  padding: 0.8rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 6px;
}
.cta-stamp:hover { background: var(--accent); color: var(--bg); }
.cta-stamp:active { transform: scale(0.98) translateY(1px); }
.buy-pump { margin-top: 0.7rem; justify-content: center; width: 100%; }

.dock {
  position: sticky; bottom: 0; z-index: 28;
  display: flex; gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.dock-ca {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dock-buy {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 0.85rem 1.2rem;
  background: var(--accent);
  color: #160910;
  font-weight: 700;
  border-radius: 10px;
}
.dock-buy:active { transform: scale(0.98); }
.metric {
  padding: 2.6rem 1.2rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric b {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.socials { padding: 5rem 7vw; }
.socials h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
}
.social-band { margin-top: 1.6rem; display: grid; }
.band-link {
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 600;
}
.band-link::after { content: "↗"; color: var(--accent); }
.band-link:last-child { border-bottom: 1px solid var(--line); }
.band-link:hover { color: var(--accent); padding-left: 0.6rem; transition: 0.25s ease; }

.foot {
  padding: 2rem 7vw 5.5rem;
  display: flex; gap: 1rem; align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot img {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav); left: 0; right: 0;
    flex-direction: column;
    padding: 1rem 1.4rem 1.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cta-ca, .nav-buy { display: none; }
  .buy { grid-template-columns: 1fr; padding: 3.5rem 1.3rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .socials { padding: 3.5rem 1.3rem; }
  .hero-copy { padding: 0 1.3rem 6vh; }
  .token-band { min-height: 32dvh; }
  .chapter { min-height: 78dvh; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-video, .chapter video, .token-vid { display: none; }
  html { scroll-behavior: auto; }
}
