/* =========================================================
   $AI — ANTHROPIC MEMECOIN
   Futuristic / tech / minimal — strict black & white
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #ffffff;
  --paper-2: #f4f4f1;
  --line: #e4e4e0;
  --line-strong: #0a0a0a;
  --mut: #8a8a85;
  --mut-2: #b8b8b2;

  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

::selection { background: var(--ink); color: var(--paper); }

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

/* Subtle static grid backdrop — does NOT move */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  opacity: 0.55;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, opacity .25s;
  mix-blend-mode: difference;
}
.cursor.ring {
  width: 9px; height: 9px;
  background: transparent;
  border: 1.5px solid var(--ink);
  transition: transform .14s var(--ease), width .25s var(--ease), height .25s var(--ease), opacity .25s;
}
.cursor.hot { width: 54px; height: 54px; background: var(--ink); }
.cursor.ring.hot { width: 54px; height: 54px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: currentColor; display: inline-block;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s, padding .4s;
}
.nav.stuck { border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand .mark .slash { display: inline-block; transform: skewX(-12deg); }
.brand .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mut);
  text-transform: uppercase;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--ink); transition: width .35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta { display: none; }
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { display: inline-flex; }
}

.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1;
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--paper); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 40px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 5vh, 60px);
}
.hero-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
}
.hero-status b { color: var(--ink); font-weight: 700; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.live .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
  position: relative;
}
.live .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink);
  animation: ping 1.8s var(--ease-io) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-logo {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.82;
  font-size: clamp(96px, 27vw, 460px);
  display: flex;
  align-items: baseline;
  position: relative;
}
.hero-logo .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.12em) scale(0.96);
  filter: blur(8px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
}
.hero-logo .ch.on { opacity: 1; transform: none; filter: none; }
.hero-logo .slash { transform: skewX(-13deg); transform-origin: center; }
.hero-logo .dollar { position: relative; }

.hero-line {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(22px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-top: clamp(20px, 4vh, 44px);
}
.hero-line .em {
  font-family: var(--font-display);
  display: inline-block;
}
.hero-line .em .slash { display: inline-block; transform: skewX(-12deg); }

.hero-meta {
  margin-top: clamp(26px, 5vh, 52px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* contract pill */
.contract {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  background: var(--paper);
}
.contract .lab {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0 14px; align-self: stretch; display: flex; align-items: center;
  background: var(--ink); color: var(--paper);
}
.contract .addr {
  font-size: 13px; padding: 12px 14px; letter-spacing: 0.02em;
}
.contract .copy {
  border: 0; border-left: 1.5px solid var(--ink); background: var(--paper);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 16px; align-self: stretch; cursor: none; color: var(--ink);
  transition: background .25s, color .25s; display: flex; align-items: center; gap: 8px;
}
.contract .copy:hover { background: var(--ink); color: var(--paper); }
.contract .copy.done { background: var(--ink); color: var(--paper); }

/* ---------- Ticker tape ---------- */
.tape {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  z-index: 2;
}
.tape-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.tape:hover .tape-track { animation-play-state: paused; }
.tape-track span {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.tape-track .star { opacity: 0.45; }
.tape-track .up { font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.sec { padding: clamp(80px, 13vh, 180px) 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 7vh, 90px);
}
.sec-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.sec-index { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--mut); white-space: nowrap; }

/* Thesis block */
.thesis { border-top: 1px solid var(--line); }
.thesis-stmt {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.thesis-stmt .hl {
  font-family: var(--font-display);
  font-weight: 400;
  position: relative;
  white-space: nowrap;
}
.thesis-stmt .hl .slash { display: inline-block; transform: skewX(-12deg); }
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word > span { display: inline-block; }

/* ---------- Facts ---------- */
.facts { background: var(--paper); }
.fact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: start;
  padding: clamp(48px, 8vh, 100px) 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact-num {
  font-family: var(--font-display);
  font-size: clamp(60px, 13vw, 200px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  position: sticky;
  top: 120px;
}
.fact-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.fact-body p {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 28px;
}
.fact-body p b { font-weight: 700; }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  border: 1.5px solid var(--ink);
  padding: 16px 20px;
  min-width: 140px;
  background: var(--paper);
  transition: transform .4s var(--ease), background .4s, color .4s;
}
.stat:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); }
.stat .big {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 2px;
}
.stat .lab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 10px;
  color: var(--mut);
}
.stat:hover .lab { color: var(--mut-2); }

@media (max-width: 820px) {
  .fact { grid-template-columns: 1fr; gap: 8px; }
  .fact-num { position: static; top: auto; }
}

/* ---------- Inverted (black) section ---------- */
.invert {
  background: var(--ink);
  color: var(--paper);
}
.invert::selection { background: var(--paper); color: var(--ink); }
.invert .sec-index { color: var(--mut-2); }
.invert .eyebrow { color: var(--mut-2); }
.closing {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(30px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.closing .o { color: var(--mut); }
.closing-foot {
  margin-top: clamp(36px, 6vh, 64px);
  display: flex; gap: clamp(24px, 5vw, 80px); flex-wrap: wrap;
}
.closing-foot div { max-width: 26ch; }
.closing-foot h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut-2); margin-bottom: 10px; }
.closing-foot p { font-size: 15px; color: var(--paper); opacity: 0.85; }

/* ---------- How to buy ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--line); }
.step {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .45s var(--ease);
}
.step::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(100%); transition: transform .5s var(--ease); z-index: 0;
}
.step:hover::before { transform: translateY(0); }
.step > * { position: relative; z-index: 1; transition: color .45s; }
.step:hover, .step:hover .s-num, .step:hover p { color: var(--paper); }
.step:hover .s-num { -webkit-text-stroke-color: var(--paper); }
.s-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  margin-bottom: 28px;
}
.step h3 { font-family: var(--font-sans); font-weight: 700; font-size: clamp(19px, 2vw, 26px); letter-spacing: -0.01em; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--ink-2); max-width: 30ch; }
.step .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); margin-top: 16px; display: inline-block; }
.step:hover .tag { color: var(--mut-2); }

/* ---------- Tokenomics / contract ---------- */
.token-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
@media (max-width: 880px) { .token-grid { grid-template-columns: 1fr; } }

.token-card {
  border: 1.5px solid var(--ink);
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.token-card.dark { background: var(--ink); color: var(--paper); }
.token-card.dark .ti-lab { color: var(--mut-2); }
.token-card.dark .ti-val { color: var(--paper); }

.ti { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.token-card.dark .ti { border-bottom-color: rgba(255,255,255,0.16); }
.ti:last-of-type { border-bottom: 0; }
.ti-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); }
.ti-val { font-family: var(--font-sans); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.01em; }

.ca-block { margin-top: auto; }
.ca-block .ca-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut-2); margin-bottom: 12px; }
.ca-block .ca-addr {
  font-family: var(--font-mono); font-size: clamp(12px, 1.5vw, 16px); word-break: break-all; line-height: 1.5;
  color: var(--paper);
}
.ca-block .copy2 {
  margin-top: 20px; width: 100%; justify-content: center;
}

/* ---------- Community ---------- */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); }
@media (max-width: 720px) { .links { grid-template-columns: 1fr; } }
.link-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: background .45s var(--ease), color .45s;
}
.link-tile::after {
  content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0;
}
.link-tile:hover::after { transform: scaleY(1); }
.link-tile > * { position: relative; z-index: 1; }
.link-tile:hover { color: var(--paper); }
.link-tile .lt-top { display: flex; align-items: center; justify-content: space-between; }
.link-tile .lt-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); }
.link-tile:hover .lt-k { color: var(--mut-2); }
.link-tile .lt-arrow { font-size: 22px; transition: transform .4s var(--ease); }
.link-tile:hover .lt-arrow { transform: translate(6px, -6px); }
.link-tile .lt-name { font-family: var(--font-sans); font-weight: 700; font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.02em; line-height: 0.98; }
.link-tile .lt-handle { font-family: var(--font-mono); font-size: 13px; color: var(--mut); margin-top: 8px; }
.link-tile:hover .lt-handle { color: var(--mut-2); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: clamp(60px, 9vh, 110px) 0 40px; }
.foot-logo {
  font-family: var(--font-display); letter-spacing: -0.05em; line-height: 0.85;
  font-size: clamp(72px, 18vw, 260px);
}
.foot-logo .slash { display: inline-block; transform: skewX(-13deg); }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.18); }
.foot-grid .fcol { display: flex; flex-direction: column; gap: 10px; }
.foot-grid a, .foot-grid p { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--mut-2); }
.foot-grid a:hover { color: var(--paper); }
.disclaimer {
  margin-top: 40px; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--mut);
  max-width: 80ch; letter-spacing: 0.02em;
}

/* ---------- Reveal animation primitives ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

.line-rise > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.line-rise.in > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .line-rise > span { transform: none; }
  html { scroll-behavior: auto; }
}

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--ink); width: 0; z-index: 200; transition: width .1s linear; }
