/* ============ TOKENS ============ */
:root {
  --bg: #0c0d0c;
  --panel: #131513;
  --panel-2: #181a18;
  --border: #242724;
  --lime: #c6ff00;
  --lime-dim: #a8d900;
  --up: #c6ff00;
  --down: #ff3b30;
  --text: #edf2ea;
  --muted: #8a938a;
  --faint: #5c635c;
  --gap: 8px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

/* ZERO rounded corners everywhere */
*, *::before, *::after { border-radius: 0 !important; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* mono for all data */
.mono, .ca-text, .stat-value,
.tape-item, .fact-key, .fact-val, .tweet-handle, .tweet-meta, .tl-label, .tl-val { font-family: var(--mono); }

:focus-visible {
  outline: 3px solid rgba(198, 255, 0, 0.35);
  outline-offset: 1px;
}

/* ============ HEADER ============ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 12, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
}
.header-left { display: flex; align-items: center; gap: 8px; }
.logo { width: 28px; height: 28px; object-fit: cover; }
.wordmark { font-weight: 700; color: #fff; font-size: 15px; letter-spacing: -0.2px; }

.dot-pulse {
  width: 7px;
  height: 7px;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.6);
  animation: pulse 1.8s infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(198, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0); }
}

.header-right { display: flex; align-items: center; gap: 8px; }
.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  padding: 6px 10px;
}
.ca-pill { transition: border-color 0.12s ease; }
.ca-pill:hover { border-color: var(--lime); }
.ca-copy { color: var(--muted); transition: color 0.12s ease; }
/* copy-CA feedback: lime border flash + lime check glyph for 1200ms (JS-driven) */
.copied { border-color: var(--lime); }
.copied .ca-copy { color: var(--lime); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.icon-btn:hover { border-color: var(--lime); transform: translateY(-1px); box-shadow: 0 0 12px rgba(198,255,0,0.25); }
.icon-btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--lime);
  color: #0c0d0c;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--lime);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(198,255,0,0.3); }
.btn-primary:active { transform: translateY(1px) scale(0.985); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.btn-ghost:hover { border-color: var(--lime); transform: translateY(-1px); box-shadow: 0 0 12px rgba(198,255,0,0.15); }
.btn-ghost:active { transform: translateY(1px) scale(0.985); }
.btn-lg { font-size: 15px; padding: 12px 22px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,13,12,0.55), rgba(12,13,12,0.92));
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}
.hl-wrap { position: relative; display: inline-block; }
.hl-swipe {
  position: absolute;
  left: -0.05em; right: -0.08em;
  top: 0.08em; bottom: 0.08em;
  background: var(--lime);
  transform: rotate(-1deg);
  z-index: -1;
}
.hl-wrap { color: #0c0d0c; z-index: 0; }

/* Highlighter swipe-in: the hero title bar sweeps left->right on page load.
   While scaled to 0 the highlighted word is dark-on-dark; that's the intended
   reveal, and reduced motion (below) keeps the bar fully visible. */
.hero-title .hl-swipe {
  transform-origin: left;
  animation: hlSwipeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
@keyframes hlSwipeIn {
  from { transform: scaleX(0) rotate(-1deg); }
  to   { transform: scaleX(1) rotate(-1deg); }
}
.sparkle {
  position: absolute;
  top: -0.15em; right: -0.55em;
  width: 0.4em; height: 0.4em;
  background: var(--lime);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparklePulse 2.2s infinite ease-in-out;
}
.sparkle-sm { display: inline-block; position: relative; width: 0.7em; height: 0.7em; top: 0.05em; margin-left: 4px; }
@keyframes sparklePulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.35) rotate(20deg); }
}
.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 640px;
  margin: 20px 0 28px;
  line-height: 1.5;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  border: 1px solid var(--border);
  padding: 3px 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-logo {
  width: 220px; height: 220px; object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(198, 255, 0, 0.4));
  animation: taFloat 8s ease-in-out infinite alternate;
}
/* Gentle float shared by the hero logo and the thesis art. */
@keyframes taFloat {
  from { transform: translateY(-5px); }
  to   { transform: translateY(5px); }
}

/* ============ TICKER TAPE ============ */
.tape {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  position: relative;
  height: 38px;
}
.tape-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 38px;
  font-size: 12px;
  border-right: 1px solid var(--border);
}
.tape-avatar { width: 16px; height: 16px; object-fit: cover; flex-shrink: 0; }
.tape-letter {
  width: 16px; height: 16px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: #0c0d0c; font-size: 9px; font-weight: 700;
  font-family: var(--mono);
}
.tape-sym { color: var(--text); font-weight: 600; }
.tape-price { color: var(--muted); }
.tape-chg.up { color: var(--up); }
.tape-chg.down { color: var(--down); }
.tape-skeleton { position: absolute; inset: 0; }
.shimmer-strip {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ============ STAT TILES ============ */
.stats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.12s ease;
}
.stat-tile:hover { border-color: var(--lime); }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

/* sub-cent price subscript (used in the token live strip) */
sub { font-size: 0.7em; }

/* ============ THESIS / MANIFESTO ============ */
.thesis {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px 40px;
}
.thesis-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.thesis-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  line-height: 1.05;
}
.thesis-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 560px;
}
.thesis-standout {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: #0c0d0c;
  line-height: 1.35;
  margin: 0 0 28px;
  max-width: 620px;
}
/* Standout wraps across 2-3 lines; an absolute .hl-swipe box inside an inline
   element does NOT cover wrapped lines, so mid-sentence text would render
   dark-on-dark. Use an inline lime background highlight that clones per line
   instead, and hide the swipe box here. */
.thesis-standout .hl-wrap {
  display: inline;
  background: var(--lime);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.06em 0.18em;
}
.thesis-standout .hl-swipe { display: none; }
.thesis-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.pillar { border-left: 2px solid var(--lime); padding-left: 12px; }
.pillar-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.pillar-body { font-size: 13px; color: var(--muted); line-height: 1.5; }
.thesis-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.thesis-art-wrap { display: flex; align-items: center; justify-content: center; }
.thesis-art {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  animation: taFloat 6s ease-in-out infinite alternate;
}

/* ============ THE TOKEN ============ */
.token {
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.token-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 16px 48px;
}
.token-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: -0.5px;
  text-align: center;
}
.tweet-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.tweet-card:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: 0 0 28px rgba(198, 255, 0, 0.09); }
.tweet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tweet-avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  object-fit: cover;
}
.tweet-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tweet-name { font-weight: 700; font-size: 15px; color: #fff; }
.tweet-verified {
  width: 16px; height: 16px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: #0c0d0c; font-size: 10px; font-weight: 700;
}
.tweet-handle { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tweet-body {
  font-size: 20px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 14px;
}
.tweet-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tweet-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  margin: 16px auto 28px;
  max-width: 560px;
}
.token-facts { border: 1px solid var(--border); margin-bottom: 20px; }
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fact-row:last-child { border-bottom: none; }
.fact-key { font-family: var(--mono); color: var(--muted); text-transform: lowercase; }
.fact-val { font-family: var(--mono); color: var(--text); text-align: right; overflow-wrap: anywhere; }
.fact-ca {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color 0.12s ease;
}
.fact-ca:hover { color: var(--lime); }
.fact-ca .ca-copy { color: var(--muted); }
.token-live {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 24px;
}
.tl-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.tl-val { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #fff; }
.tl-val.up { color: var(--up); }
.tl-val.down { color: var(--down); }
.token-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============ FOOTER ============ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--lime); }

/* ============ TOAST STACK ============ */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  max-width: 90vw;
}
.toast {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  min-width: 220px;
  max-width: 340px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  overflow: hidden;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left-color: var(--lime); }
.toast.error { border-left-color: var(--down); }
.toast.info { border-left-color: var(--muted); }
.toast-prog {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  background: var(--lime);
  width: 100%;
}
.toast.error .toast-prog { background: var(--down); }
.toast.info .toast-prog { background: var(--muted); }
.toast.run .toast-prog { animation: toastProg 3.5s linear forwards; }
.toast.paused .toast-prog { animation-play-state: paused; }
@keyframes toastProg { from { width: 100%; } to { width: 0%; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .thesis-inner { grid-template-columns: 1fr; gap: 28px; }
  .thesis-art-wrap { order: -1; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-logo { width: 160px; height: 160px; }
}

@media (max-width: 640px) {
  .header { gap: 8px; padding: 8px 10px; }
  .wordmark { font-size: 14px; }
  .header-right { gap: 6px; }
  .btn-primary { padding: 7px 10px; font-size: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 20px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .thesis { padding: 36px 12px 24px; }
  .token-inner { padding: 40px 12px 36px; }
  .token-live { grid-template-columns: 1fr 1fr; }
  .tweet-body { font-size: 18px; }

  .hero-inner { padding: 40px 16px 36px; }
  .hero-logo { width: 120px; height: 120px; }
  .hero-sub { margin: 16px 0 22px; }

  .toast-stack { right: 8px; left: 8px; bottom: 12px; }
  .toast { max-width: none; min-width: 0; }
}

/* ============ SCROLL REVEAL ============ */
/* Reveal transition applies to all [data-reveal] elements. The HIDDEN state is
   scoped under `.js` so it only kicks in once init() has added the `js` class to
   <html> — no-JS visitors (and the pre-init frame) always see content. If JS
   detects reduced motion or a missing IntersectionObserver, it adds `revealed`
   immediately. */
[data-reveal] {
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
/* subtle stagger for the token facts/live strips */
.token-facts { transition-delay: 0.1s; }
.token-live { transition-delay: 0.18s; }

/* thesis-title highlighter swipe: triggers when its parent .thesis-copy reveals.
   Dark-on-dark while collapsed is acceptable — the reduced-motion / no-JS paths
   below keep the bar fully visible. */
.js .thesis-copy .hl-swipe {
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}
.thesis-copy.revealed .hl-swipe {
  transform: scaleX(1) rotate(-1deg);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  /* Reveal + swipe states are static properties (not animation/transition), so
     the global reset below doesn't clear them — force everything visible here.
     (JS also adds `revealed` immediately under reduced motion; this is a
     CSS-only safety net.) */
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .thesis-copy .hl-swipe,
  .hero-title .hl-swipe { transform: rotate(-1deg) !important; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
