/* Aura — dark green + neon yellow-green (matches art) */
:root {
  color-scheme: dark;
  --bg: #080c08;
  --ink: #e8f0e4;
  --muted: #7a8c72;
  --line: rgba(184, 255, 0, 0.08);
  --accent: #b8ff00;
  --accent-dim: rgba(184, 255, 0, 0.15);
  --accent-2: #7eff6e;
  --surface: rgba(184, 255, 0, 0.03);
  --surface-2: rgba(184, 255, 0, 0.02);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  /* Spacing scale (8px base) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 56px;
  --space-2xl: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.bg-glow {
  display: none;
}

.bg-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(184, 255, 0, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}

/* First-visit loading screen — zoom + blur exit (distinct from slide-up) */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease-out;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.08);
  filter: blur(14px);
}

html.loader-skip .loader {
  display: none !important;
}

/* Page reveal: fade + slide in from right (distinct from slide-up) */
body.loader-active .page {
  opacity: 0;
  transform: translateX(28px);
}

body.loader-done .page,
html.loader-skip .page {
  opacity: 1;
  transform: translateX(0);
}

.loader-inner {
  text-align: center;
  width: 100%;
  max-width: 280px;
  padding: var(--space-lg);
}

.loader-bar {
  width: 100%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.loader-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.12s linear;
}

.loader-pct {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-xs);
}

.loader-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header row */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: var(--space-sm) 0 var(--space-md);
  margin-bottom: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: block;
  min-width: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  min-width: 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
}

.logo-coin {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px var(--accent-dim);
}

.nav {
  display: none;
  gap: 36px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid var(--line);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.solid {
  background: var(--accent);
  color: var(--bg) !important;
  border-color: var(--accent);
  font-weight: 700;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--muted);
  margin: 0 auto;
}

.mobile-menu {
  flex-basis: 100%;
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--line);
  margin-top: var(--space-sm);
  order: 10;
}

.mobile-menu a {
  padding: var(--space-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  border: none;
  background: none;
  border-radius: 0;
}

.hidden {
  display: none !important;
}

/* Hero */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-visual {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 560px;
  justify-self: end;
  box-shadow: 0 0 48px var(--accent-dim);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-copy {
  display: grid;
  gap: var(--space-md);
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 10px;
  color: var(--accent);
  margin: 0;
  font-weight: 600;
}

.hero-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(2.9rem, 5.5vw, 4.4rem);
  line-height: 0.92;
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent);
  display: block;
  margin-top: 0.06em;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.65;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.ca-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  display: grid;
  gap: var(--space-xs);
}

.ca-label {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.ca-row code {
  flex: 1 1 200px;
  color: var(--accent-2);
  word-break: break-all;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

/* Ticker */
.ticker {
  overflow: hidden;
  border: none;
  background: transparent;
  margin: 0 calc(-1 * var(--space-lg));
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker-pingpong 14s ease-in-out infinite;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  padding: var(--space-sm) 0;
}

.ticker-group {
  display: inline-flex;
  gap: var(--space-xl);
  padding-right: var(--space-xl);
}

/* Sections */
.section {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-xl);
  max-width: 920px;
}

.section.alt {
  background: transparent;
  border-radius: 0;
  padding: var(--space-xl) 0 var(--space-xl);
  border-top: 1px solid var(--line);
}

.section-title {
  display: grid;
  gap: var(--space-sm);
}

.section-title h2 {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.65;
  font-size: 15px;
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: transparent;
  border-radius: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-md);
  display: grid;
  gap: var(--space-xs);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  background: var(--surface);
  border-left-color: var(--accent-2);
}

.card h3,
.story h3,
.step h3 {
  margin: 0 0 var(--space-xs);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.card p,
.story p,
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.story a,
.step a,
.section-sub a {
  color: var(--accent);
}

.story a:hover,
.step a:hover,
.section-sub a:hover {
  color: var(--ink);
}

.story-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(3, 1fr);
}

.story {
  border-radius: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  padding: var(--space-md);
  background: transparent;
}

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

/* Steps */
.steps {
  display: grid;
  gap: var(--space-md);
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  border-radius: 0;
  border: 1px solid var(--line);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  align-items: center;
  border-left: 3px solid var(--accent);
}

.step-num {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cta {
  padding: var(--space-xl) 0 0;
  max-width: 920px;
}

.cta-card {
  border-radius: 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer {
  border-top: 1px solid var(--line);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-sub {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Reveal fallback: slide from right + scale (distinct from slide-up) */
.js [data-reveal] {
  opacity: 0;
  transform: translateX(24px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Ping-pong ticker (scroll left then back) — distinct from one-way marquee */
@keyframes ticker-pingpong {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 960px) {
  .topbar-left {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
  }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .nav {
    display: inline-flex;
    justify-self: center;
    align-items: center;
  }
  .actions {
    margin-left: 0;
    justify-self: end;
  }
  .icon-button {
    display: none;
  }
  .logo span:last-child {
    max-width: none;
  }
}

@media (max-width: 959px) {
  .header {
    padding: var(--space-sm) 0 var(--space-sm);
  }
  .hero {
    padding: var(--space-lg) 0 var(--space-md);
  }
  .section,
  .section.alt {
    padding: var(--space-lg) 0 var(--space-lg);
  }
  .cta {
    padding: var(--space-lg) 0 0;
  }
  .card-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }
  .cta-card {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
  }
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 1fr;
  }
  .step-num {
    font-size: 1.8rem;
  }
  .page {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .ticker {
    margin: 0 calc(-1 * var(--space-md));
  }
}
