/* =====================================================================
   MEME ETF — premium dark fintech system v2
   Elevated typography, deeper contrast, richer motion
   ===================================================================== */

:root {
  color-scheme: dark;

  /* palette */
  --bg: #08080a;
  --bg-deep: #050507;
  --surface: #0e0e12;
  --surface-2: #131318;
  --surface-3: #1a1a20;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text: #f5f5f7;
  --text-soft: #d8d8de;
  --muted: #82828c;
  --muted-2: #52525a;

  /* accent — the signal lime */
  --accent: #b8ff2e;
  --accent-bright: #ccff5c;
  --accent-dim: rgba(184, 255, 46, 0.10);
  --accent-line: rgba(184, 255, 46, 0.38);
  --accent-glow: rgba(184, 255, 46, 0.32);
  --accent-deep: rgba(184, 255, 46, 0.06);

  /* secondary accents for visual richness */
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.12);
  --amber: #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.10);

  /* type */
  --sans: var(--font-body), "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: var(--font-display), "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: var(--font-mono), "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* type scale — more dramatic */
  --display-xl: clamp(3.2rem, 9vw, 8rem);
  --display-l: clamp(2.3rem, 5.5vw, 4.4rem);
  --display-m: clamp(1.5rem, 2.5vw, 2.1rem);
  --lead: clamp(1.06rem, 1.3vw, 1.25rem);
  --body: 1rem;
  --label: 0.75rem;
  --micro: 0.68rem;

  /* spacing */
  --section-y: clamp(80px, 12vw, 148px);
  --gutter: clamp(20px, 4vw, 48px);

  /* shape */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* elevation */
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 40px 100px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 60px var(--accent-glow);

  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-nav-open="true"] {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10000;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 80ms linear;
}

/* film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   nav + brand
   ===================================================================== */
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 max(20px, calc((100vw - 1200px) / 2));
  transition: height 300ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms ease,
    border-color 300ms ease;
}

.nav.is-scrolled {
  height: 62px;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 200ms ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand-name {
  font-size: 1.05rem;
}

.brand-sigil {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-sigil {
  transform: scale(0.92) rotate(-4deg);
}

.nav.is-scrolled .brand-sigil {
  width: 32px;
  height: 32px;
  font-size: 0.72rem;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  transition: color 200ms ease, background 200ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-cta {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
}

/* =====================================================================
   buttons
   ===================================================================== */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  position: relative;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease,
    border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.78rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 16px 40px var(--accent-glow);
}

.button.ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-dim);
}

/* =====================================================================
   hero
   ===================================================================== */
.hero-shell {
  position: relative;
  min-height: min(900px, 94svh);
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 8, 10, 0.96) 32%, rgba(8, 8, 10, 0.6) 58%, rgba(8, 8, 10, 0.15) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.2) 0%, rgba(8, 8, 10, 0.35) 50%, var(--bg) 100%),
    url("/assets/memeetf-hero-v4.png");
  background-position: center right;
  background-size: cover;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(55% 48% at 10% 36%, var(--accent-glow), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 104px 104px, 104px 104px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.65) 40%, transparent 72%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.65) 40%, transparent 72%);
}

.hero {
  min-height: min(700px, calc(94svh - 80px));
  padding: 80px max(20px, calc((100vw - 1200px) / 2)) 100px;
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 28px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.2s ease-out infinite;
}

.display-xl {
  margin: 0;
  font-family: var(--display);
  font-size: var(--display-xl);
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-mark {
  color: var(--accent);
  margin-left: 0.04em;
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-line {
  width: min(640px, 100%);
  margin: 30px 0 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-body {
  width: min(560px, 100%);
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-stats {
  width: min(640px, 100%);
  margin: 52px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.hero-stats div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: background 300ms ease;
}

.hero-stats div:hover {
  background: var(--accent-deep);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats dd {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.hero-scan {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 22px;
  opacity: 0.7;
}

.hero-scan span {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent);
  animation: eq 1.4s ease-in-out infinite;
}

.hero-scan span:nth-child(2) { animation-delay: 0.2s; }
.hero-scan span:nth-child(3) { animation-delay: 0.4s; }
.hero-scan span:nth-child(4) { animation-delay: 0.6s; }

@keyframes eq {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* =====================================================================
   tape marquee
   ===================================================================== */
.tape {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  color: var(--bg);
}

.tape-track {
  width: max-content;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  animation: tapeMove 32s linear infinite;
}

.tape-track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tape-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
}

/* =====================================================================
   shared section primitives
   ===================================================================== */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--display-l);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}

p,
h3 {
  margin: 0;
}

.lead {
  color: var(--text-soft);
  font-size: var(--lead);
  line-height: 1.6;
}

/* =====================================================================
   formula
   ===================================================================== */
.formula {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 64px minmax(0, 0.8fr) 64px minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.formula-item,
.formula-symbol {
  min-height: 180px;
  display: grid;
  align-content: center;
  border-right: 1px solid var(--border);
}

.formula-item {
  padding: 30px 48px;
  min-width: 0;
  position: relative;
  transition: background 300ms ease;
}

.formula-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.formula-item span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.formula-item strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: capitalize;
  color: var(--text);
}

.formula-symbol {
  place-items: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
}

.formula-result {
  background: var(--accent-deep);
}

.formula-result:hover {
  background: var(--accent-dim);
}

.formula-result strong {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

/* =====================================================================
   thesis
   ===================================================================== */
.thesis {
  padding: var(--section-y) 0;
  background: var(--bg);
}

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.thesis-grid h2 {
  grid-column: 2;
}

.thesis-grid .lead {
  grid-column: 3;
  align-self: center;
}

/* =====================================================================
   mechanics
   ===================================================================== */
.mechanics {
  padding: var(--section-y) 0 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 96px;
  border-top: 1px solid var(--border);
}

.section-top {
  margin-bottom: 64px;
}

.mechanics .section-top {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.mechanic-rows {
  border-top: 1px solid var(--border);
}

.mechanic-row {
  display: grid;
  grid-template-columns: minmax(60px, 0.16fr) minmax(0, 1fr) minmax(120px, 0.3fr);
  gap: 36px;
  align-items: center;
  padding: 36px max(20px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--border);
  transition: background 250ms ease;
  position: relative;
}

.mechanic-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mechanic-row:hover {
  background: var(--surface);
}

.mechanic-row:hover::before {
  width: 3px;
}

.step {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 250ms ease;
}

.mechanic-row:hover .step {
  color: var(--accent);
}

.mechanic-body h3 {
  font-family: var(--display);
  font-size: var(--display-m);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mechanic-body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}

.mechanic-row strong {
  justify-self: end;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =====================================================================
   router — flow pipeline (centerpiece)
   ===================================================================== */
.router {
  padding: var(--section-y) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.router-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.router-copy .lead {
  margin-top: 24px;
}

.flow-board {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.flow-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.flow-board-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.flow-tag {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.flow-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.flow-pipeline {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.flow-node {
  position: relative;
  flex: 0 0 auto;
  width: 148px;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-node:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.flow-step {
  align-self: flex-start;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.flow-node-body {
  display: grid;
  gap: 6px;
}

.flow-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.flow-node-body strong {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.flow-meta {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.flow-node-core {
  border-color: var(--accent-line);
  background:
    radial-gradient(120% 120% at 50% 0%, var(--accent-dim), transparent 70%),
    var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent-line), 0 20px 50px rgba(184, 255, 46, 0.12);
}

.flow-node-core strong {
  color: var(--accent);
}

.flow-node-buy {
  border-color: rgba(255, 255, 255, 0.2);
}

.flow-node-drop {
  border-color: rgba(255, 255, 255, 0.2);
}

.flow-connector {
  position: relative;
  flex: 1 1 auto;
  min-width: 28px;
  align-self: center;
  height: 2px;
}

.flow-line {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--border-strong), var(--accent-line));
}

.flow-dots {
  position: absolute;
  inset: 0;
}

.flow-dots span {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-50%);
  animation: flowDot 2.6s linear infinite;
}

.flow-dots span:nth-child(2) { animation-delay: 0.65s; }
.flow-dots span:nth-child(3) { animation-delay: 1.3s; }
.flow-dots span:nth-child(4) { animation-delay: 1.95s; }

@keyframes flowDot {
  0% { left: -3%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 103%; opacity: 0; }
}

/* =====================================================================
   console
   ===================================================================== */
.console-section {
  padding: var(--section-y) 0;
  background:
    radial-gradient(60% 60% at 80% 30%, var(--accent-deep), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 64px;
  align-items: center;
}

.operator-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.panel-head strong {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.panel-command span {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.panel-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px !important;
  border: 1px solid var(--accent-line) !important;
  background: var(--accent-dim);
  color: var(--accent) !important;
}

.allocation-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.allocation-row {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color 250ms ease;
}

.allocation-row:hover {
  border-color: var(--border-hover);
}

.allocation-row::before {
  content: "";
  position: absolute;
  inset: auto 16px 12px 16px;
  width: var(--w);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.allocation-row.is-momentum::before {
  background: linear-gradient(90deg, var(--violet), var(--violet-dim));
}

.allocation-row.is-wildcard::before {
  background: linear-gradient(90deg, var(--amber), var(--amber-dim));
}

.allocation-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.allocation-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

.allocation-row.is-momentum .allocation-swatch { background: var(--violet); }
.allocation-row.is-wildcard .allocation-swatch { background: var(--amber); }

.allocation-row strong {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.preset {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}

.preset:last-child {
  border-right: 0;
}

.preset:hover,
.preset:focus-visible,
.preset.is-active {
  background: var(--accent-dim);
  color: var(--accent);
  outline: none;
}

.console-copy .lead {
  margin-top: 22px;
}

.console-copy .button {
  margin-top: 32px;
}

/* =====================================================================
   holders
   ===================================================================== */
.holders-section {
  padding: var(--section-y) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.holders-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 64px;
  align-items: start;
}

.holders-intro {
  display: grid;
  gap: 20px;
}

.holder-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.quote {
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.holder-copy p:not(.quote) {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.holder-copy ul {
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.holder-copy li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color 250ms ease, background 250ms ease;
}

.holder-copy li:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}

/* =====================================================================
   proof strip
   ===================================================================== */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.proof-item {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 168px;
  padding: 36px;
  border-right: 1px solid var(--border);
  transition: background 300ms ease;
  position: relative;
}

.proof-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item:hover {
  background: var(--accent-deep);
}

.proof-item:hover::after {
  width: 100%;
}

.proof-aud {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.proof-item strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* =====================================================================
   access
   ===================================================================== */
.access {
  padding: var(--section-y) 0;
  background:
    radial-gradient(50% 60% at 20% 40%, var(--accent-deep), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.access-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.7fr);
  gap: 56px;
  align-items: center;
}

.access-copy {
  display: grid;
  gap: 20px;
}

.access-copy h2 {
  font-size: var(--display-xl);
}

.access-cta {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: start;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.access-button {
  min-height: 56px;
  padding: 0 28px;
  font-size: 0.92rem;
}

.access-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* =====================================================================
   footer
   ===================================================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer p {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-mono {
  font-family: var(--mono) !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.04em;
}

/* =====================================================================
   reveal — richer entrance
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   keyframes
   ===================================================================== */
@keyframes tapeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .thesis-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .thesis-grid h2,
  .thesis-grid .lead {
    grid-column: 1;
  }

  .mechanics .section-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .router-grid,
  .console-layout,
  .holders-layout,
  .access-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mechanic-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 24px;
  }

  .formula {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .nav {
    height: 66px;
    padding: 0 14px;
  }

  .nav.is-scrolled {
    height: 56px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--text);
  }

  .nav-links {
    position: fixed;
    inset: 74px 14px auto;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: var(--radius);
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(24px);
  }

  body[data-nav-open="true"] .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    border-radius: var(--radius-sm);
  }

  .hero-shell::before {
    background-image:
      linear-gradient(180deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.86) 42%, var(--bg) 100%),
      url("/assets/memeetf-hero-v4.png");
    background-position: 64% center;
  }

  .hero {
    padding: 48px 14px 72px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 64px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .hero-scan {
    display: none;
  }

  .formula {
    grid-template-columns: 1fr;
  }

  .formula-item,
  .formula-symbol {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .formula-item {
    padding: 22px 16px;
  }

  .formula-symbol {
    min-height: 56px;
  }

  .formula-result {
    border-bottom: 0;
  }

  .mechanic-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 14px;
  }

  .mechanic-row strong {
    justify-self: start;
  }

  /* flow pipeline → vertical stack */
  .flow-pipeline {
    flex-direction: column;
    gap: 0;
  }

  .flow-node {
    width: 100%;
    min-height: 96px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .flow-node-body {
    text-align: right;
    gap: 4px;
  }

  .flow-connector {
    width: 2px;
    height: 28px;
    min-width: 0;
    align-self: stretch;
  }

  .flow-line {
    background: linear-gradient(180deg, var(--border-strong), var(--accent-line));
  }

  .flow-dots span {
    animation: flowDotV 2.6s linear infinite;
  }

  @keyframes flowDotV {
    0% { top: -10%; left: 50%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; left: 50%; opacity: 0; }
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
  }

  .access-copy h2 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
