/* ============================================================
   $1 is all you need - stylesheet
   Palette: cream #F4F0E6 · green #00C805 · ink #0B0B0B
   ============================================================ */

:root {
  --cream: #f4f0e6;
  --cream-2: #ece7da;
  --green: #00c805;
  --green-dark: #00a504;
  --green-glow: rgba(0, 200, 5, 0.55);
  --ink: #0b0b0b;
  --ink-2: #2a2a2a;
  --muted: #7a776f;
  --line: rgba(11, 11, 11, 0.14);
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 76px;
  --radius-pill: 999px;
  --max: 1440px;
  --gutter: clamp(20px, 3.4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--green); color: var(--ink); }

.mono { font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

/* ---------- Guilloché corner textures ---------- */
.texture {
  position: absolute;
  width: clamp(240px, 26vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background: url("../img/guilloche.png") no-repeat center / contain;
  z-index: 0;
}
.texture--tl { top: 0; left: 0; }
.texture--br { bottom: 0; right: 0; transform: rotate(180deg); }
.texture--tr { top: 0; right: 0; transform: rotate(90deg); }
.texture--bl { bottom: 0; left: 0; transform: rotate(-90deg); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1.05rem; line-height: 1;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: var(--green-dark); box-shadow: 0 10px 30px -12px var(--green-glow); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.7em 1.15em;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--green-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 200, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img, .coin { width: 42px; height: 42px; }
.coin { border-radius: 50%; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 44px); list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 0.98rem; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 0.8em 1.4em; font-size: 0.98rem; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 40;
  background: var(--cream);
  padding: 32px var(--gutter);
  display: none; flex-direction: column; gap: 8px;
}
.drawer.is-open { display: flex; }
.drawer a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 24px; justify-content: center; font-size: 1.2rem; }
.drawer .pill { justify-content: center; margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-block: clamp(24px, 4vh, 56px) clamp(32px, 5vh, 72px);
  position: relative; z-index: 1;
}
.eyebrow { color: var(--green); font-size: clamp(0.72rem, 0.95vw, 0.95rem); margin: 0 0 clamp(10px, 1.6vh, 20px); }
.headline {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.4vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0;
  text-transform: uppercase;
}
.headline span { display: block; white-space: nowrap; }
.headline .green { color: var(--green); }
.sub {
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
  line-height: 1.3;
  margin: clamp(18px, 2.6vh, 34px) 0 clamp(20px, 3vh, 36px);
  max-width: 34ch;
}
.sub span { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { font-size: clamp(1rem, 1.25vw, 1.3rem); }
.disclaimer { color: var(--muted); font-size: 0.82rem; margin: 18px 0 0; }

/* Rocket stage */
.stage { position: relative; aspect-ratio: 1 / 1; width: 92%; max-height: 74vh; margin-inline: auto; }
.stage__shadow {
  position: absolute; left: 32%; top: 58%; width: 60%; height: 22%;
  background: radial-gradient(ellipse at center, rgba(11, 11, 11, 0.32), rgba(11, 11, 11, 0) 70%);
  transform: rotate(-32deg);
  filter: blur(10px);
  animation: shadowFloat 6s ease-in-out infinite;
}
.stage__body {
  position: absolute; inset: 0;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
  translate: var(--tx, 0) var(--ty, 0);
  transition: translate 0.4s ease-out;
}
.stage__rocket {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(11, 11, 11, 0.18));
}
.stage__rocket--mobile { display: none; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -14px, 0) rotate(-1.2deg); }
}
@keyframes shadowFloat {
  0%, 100% { transform: rotate(-32deg) scale(1); opacity: 1; }
  50%      { transform: rotate(-32deg) scale(0.94); opacity: 0.78; }
}
.exhaust { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.exhaust__line {
  fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.4s forwards;
  filter: url(#glow);
}
.exhaust__beam {
  fill: url(#beam); opacity: 0;
  animation: beam 1.2s ease-out 0.2s forwards, flicker 2.4s ease-in-out 1.6s infinite;
  filter: url(#blur);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beam { to { opacity: 1; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.78; } }


/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink); color: var(--green);
  overflow: hidden; white-space: nowrap;
  padding: 18px 0;
  font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.ticker__track { display: inline-flex; animation: marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { padding: 0 1.4em; }
.ticker__item::after { content: "·"; margin-left: 2.8em; opacity: 0.9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { position: relative; padding: clamp(40px, 6vh, 72px) 0; overflow: hidden; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 1; }
.stat { text-align: center; padding: 16px clamp(8px, 2vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.8rem, 6.4vw, 6.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { margin-top: 12px; font-size: 0.78rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vh, 140px) 0; overflow: hidden; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .eyebrow { color: var(--green); }
.section--green { background: var(--green); color: var(--ink); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vh, 64px); position: relative; z-index: 1; }
.h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.6vw, 5.6rem); line-height: 0.92; letter-spacing: -0.03em; margin: 0; text-transform: uppercase; }
.h2 .green { color: var(--green); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.35rem); line-height: 1.45; margin: 0; max-width: 44ch; }
.lead + .lead { margin-top: 1em; }
.section--dark .lead { color: rgba(244, 240, 230, 0.82); }

/* Hall of Fractions */
.hall { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; position: relative; z-index: 1; }
.card {
  border: 1.5px solid var(--ink); border-radius: 18px;
  padding: 24px 16px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(11, 11, 11, 0.5); }
.card__icon { width: 64px; height: 64px; mix-blend-mode: multiply; }
.card__title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.card__title::after { content: "\00a0→"; }
.card__body { font-size: 0.95rem; color: var(--ink-2); margin: 0; }
.card--green { background: var(--green); border-color: var(--green); }
.card--green .card__icon { mix-blend-mode: normal; }
.card--green .card__body { color: var(--ink); font-weight: 600; }

/* Lore timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
.timeline li { border-top: 2px solid var(--green); padding-top: 18px; }
.timeline .when { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--green); text-transform: uppercase; }
.timeline h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 10px 0 8px; line-height: 1.1; letter-spacing: -0.01em; }
.timeline p { margin: 0; color: rgba(244, 240, 230, 0.78); font-size: 0.98rem; }
.quote { margin: clamp(48px, 7vh, 88px) 0 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 24ch; position: relative; z-index: 1; }
.quote .green { color: var(--green); }

/* Tokenomics */
.tokenomics { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; position: relative; z-index: 1; }
.tile { border: 1.5px solid var(--ink); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 220px; }
.tile--big { grid-column: span 5; }
.tile--mid { grid-column: span 4; }
.tile--sm  { grid-column: span 3; }
.tile--wide { grid-column: span 12; flex-direction: row; align-items: center; flex-wrap: wrap; min-height: 0; }
.tile--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tile--ink .tile__num { color: var(--green); }
.tile__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.tile__num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.tile__note { margin: 0; font-size: 0.95rem; opacity: 0.85; }
.addr { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.addr code { font-family: var(--font-mono); font-size: clamp(0.72rem, 1.1vw, 1rem); word-break: break-all; }
.copy { border: 1.5px solid var(--ink); background: transparent; border-radius: var(--radius-pill); padding: 0.7em 1.2em; font-weight: 700; font-size: 0.9rem; transition: background 0.18s ease, color 0.18s ease; white-space: nowrap; }
.copy:hover, .copy.is-done { background: var(--green); border-color: var(--green); }

/* How to buy */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.step { position: relative; border: 1.5px solid var(--ink); border-radius: 22px; padding: 32px 28px 28px; background: var(--cream); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--green);
  display: block; margin-bottom: 18px; letter-spacing: -0.03em;
}
.step h3 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.1; }
.step p { margin: 0; color: var(--ink-2); }
.step .mono { display: inline-block; margin-top: 14px; font-size: 0.72rem; color: var(--green-dark); }

/* Chain */
.chain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: center; position: relative; z-index: 1; }
.chain dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.chain dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.chain dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.1; letter-spacing: -0.01em; }
.chain__art { position: relative; }
.chain__art img { width: min(60%, 340px); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); animation: float 7s ease-in-out infinite; }

/* CTA */
.cta { text-align: center; position: relative; }
.cta .h2 { font-size: clamp(3rem, 10vw, 10.5rem); }
.cta .btn--outline { border-color: var(--ink); }
.cta .btn--ink { background: var(--ink); color: var(--green); }
.cta .btn--ink:hover { background: #000; }
.cta__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; position: relative; z-index: 1; }

/* Footer */
.footer { padding: 40px 0 48px; font-size: 0.86rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; color: var(--ink); }
.footer p { margin: 8px 0 0; max-width: 72ch; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hall { grid-template-columns: repeat(4, 1fr); }
  .tile--big, .tile--mid, .tile--sm { grid-column: span 6; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta .pill { display: none; }
  .burger { display: inline-flex; }
  .nav__cta .btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 12px; padding-block: 28px 40px; }
  .hero__copy { order: 1; }
  .stage { order: 2; max-height: none; width: min(78vw, 440px); aspect-ratio: 3 / 4; margin-top: 8px; }
  .stage__rocket--desktop { display: none; }
  .stage__rocket--mobile { display: block; }
  .stage__shadow { left: 20%; top: 84%; width: 60%; height: 12%; transform: none; }
  @keyframes shadowFloat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.75; } }
  .exhaust--desktop { display: none; }
  .exhaust--mobile { display: block; }
  .headline { font-size: clamp(3.2rem, 16.5vw, 7.2rem); }
  .sub { max-width: none; }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain__art { order: -1; }
  .stat__num { font-size: clamp(2.2rem, 9vw, 4rem); }
}
@media (min-width: 961px) { .exhaust--mobile { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 20px 12px 18px; }
  .card__icon { width: 52px; height: 52px; }
  .tile--big, .tile--mid, .tile--sm { grid-column: span 12; min-height: 0; }
  .tile--wide { flex-direction: column; align-items: flex-start; }
  .addr { flex-direction: column; align-items: flex-start; }
  .timeline { grid-template-columns: 1fr; }
  .chain dl { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .ticker { font-size: 0.76rem; padding: 14px 0; }
  .stat { padding: 8px 6px; }
  .stat__label { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .exhaust__line { stroke-dashoffset: 0; }
  .exhaust__beam { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Social icons / sources / buy address ---------- */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn img { width: 22px; height: 22px; }
.icon-btn:hover img { filter: invert(1); }
.icon-btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }
.drawer__social { display: flex; gap: 12px; margin-top: 20px; }
.src { display: inline-block; margin: 12px 10px 0 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--green); border-bottom: 1px solid rgba(0, 200, 5, 0.4); padding-bottom: 2px; }
.src:hover { border-bottom-color: var(--green); }
.addr--buy { justify-content: center; margin: 32px 0 0; gap: 12px; flex-wrap: wrap; }
.addr--buy .tile__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.footer__note { color: var(--muted); font-weight: 400; }
@media (max-width: 960px) { .nav__cta .icon-btn { display: none; } .timeline { grid-template-columns: 1fr; } }

.txt-link { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--green); padding-bottom: 2px; white-space: nowrap; }
.txt-link:hover { color: var(--green-dark); }
.drawer__social { align-items: center; }
.drawer__social .txt-link { font-size: 1rem; }
@media (max-width: 960px) { .nav__cta .txt-link { display: none; } }
