:root {
  --void: #060910;
  --void-2: #0c121c;
  --panel: #101826;
  --ink: #e8f4ff;
  --muted: #8fa6bc;
  --blade: #f5fbff;
  --path: #2ec4b6;
  --path-deep: #178f86;
  --ember: #ff8a3d;
  --ember-deep: #d45a14;
  --crimson: #ff2d4a;
  --bronze: #c9a86a;
  --line: rgba(232, 244, 255, 0.18);
  --glass: rgba(10, 16, 26, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Orbitron", system-ui, sans-serif;
  --px: 0px;
  --py: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.04em;
  background:
    radial-gradient(ellipse 70% 50% at 12% -10%, rgba(46, 196, 182, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 42% at 92% 8%, rgba(255, 138, 61, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 100%, rgba(23, 143, 134, 0.12), transparent 55%),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 45%, #081018 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--path);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

/* ——— topbar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 9, 16, 0.92), rgba(6, 9, 16, 0.72));
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 0 rgba(46, 196, 182, 0.35);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.65rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 2px solid var(--ink);
  background: #000;
  box-shadow: 3px 3px 0 var(--path);
}

.brand span {
  color: var(--blade);
}

.brand em {
  font-style: normal;
  color: var(--path);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 3px 3px 0 var(--path);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-top: 2px solid var(--line);
  padding: 0.85rem 0 1.1rem;
}

.mobile-nav.open { display: grid; gap: 0.65rem; }

.mobile-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px dashed var(--line);
}

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border: 3px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  box-shadow: 4px 4px 0 #000;
}

.btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.btn-buy {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #120802;
  box-shadow: 4px 4px 0 #000, 0 0 22px rgba(255, 138, 61, 0.35);
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 5px 6px 0 #000, 0 0 28px rgba(255, 138, 61, 0.5);
}

.btn-chart {
  background: rgba(16, 24, 38, 0.85);
  color: var(--blade);
  border-color: var(--path);
  box-shadow: 4px 4px 0 var(--path-deep);
}

.btn-chart:hover {
  transform: translateY(-2px);
  background: rgba(46, 196, 182, 0.14);
}

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

.btn-ghost:hover {
  background: rgba(232, 244, 255, 0.06);
  transform: translateY(-2px);
}

.btn-x {
  width: 46px;
  min-width: 46px;
  padding: 0;
  background: var(--panel);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: 0.66rem;
}

/* ——— comic panels ——— */
.panel {
  position: relative;
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 #000;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(232, 244, 255, 0.06) 1px, transparent 1.2px);
  background-size: 7px 7px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--path);
  margin: 0 0 0.7rem;
}

.kicker i {
  color: var(--ember);
}

.h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4.8vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--blade);
  text-shadow: 0 0 24px rgba(46, 196, 182, 0.28);
}

.sub {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
  line-height: 1.7;
  font-weight: 500;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

/* ——— hero ——— */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 16, 0.92) 0%, rgba(6, 9, 16, 0.55) 42%, rgba(6, 9, 16, 0.35) 100%),
    linear-gradient(180deg, rgba(6, 9, 16, 0.2) 0%, rgba(6, 9, 16, 0.75) 78%, var(--void) 100%),
    url("../banner.png") center / cover no-repeat;
  transform: translate3d(calc(var(--px) * -0.35), calc(var(--py) * -0.35), 0) scale(1.04);
  transition: transform 0.45s var(--ease);
}

.hero-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 68%, rgba(255, 138, 61, 0.22), transparent 18%),
    radial-gradient(circle at 78% 30%, rgba(46, 196, 182, 0.18), transparent 16%);
  animation: emberPulse 5.5s ease-in-out infinite;
}

@keyframes emberPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 12vw, 7.5rem) 0 clamp(2.4rem, 5vw, 3.4rem);
  max-width: 640px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 11vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--blade);
  text-shadow:
    0 0 30px rgba(245, 251, 255, 0.35),
    4px 4px 0 #000;
}

.hero-title span {
  display: block;
  color: var(--path);
  font-size: 0.38em;
  letter-spacing: 0.28em;
  margin-top: 0.55rem;
  text-shadow: none;
}

.hero-lede {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: var(--ink);
  font-size: clamp(0.74rem, 1.7vw, 0.9rem);
  line-height: 1.75;
  font-weight: 500;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.15rem;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--glass);
  border: 2px solid rgba(232, 244, 255, 0.45);
  backdrop-filter: blur(10px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
}

.ca-pill code {
  font-family: var(--font);
  font-size: clamp(0.58rem, 1.5vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  word-break: break-all;
  color: var(--blade);
}

.ca-pill button {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--path);
  background: rgba(46, 196, 182, 0.12);
  color: var(--path);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-pill button:hover {
  background: rgba(46, 196, 182, 0.22);
}

.ca-note {
  margin: 0.55rem 0 0;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.6rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: cueBob 2.2s ease-in-out infinite;
}

@keyframes cueBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ——— story ——— */
.story {
  position: relative;
}

.story-splash {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #000;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 #000;
}

.story-splash img {
  width: 100%;
  height: clamp(280px, 48vw, 520px);
  object-fit: contain;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(46, 196, 182, 0.12), transparent 70%),
    #000;
}

.story-splash figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem 1.2rem;
  padding: 0.85rem 1.1rem;
  border-top: 3px solid var(--ink);
  background: linear-gradient(90deg, rgba(6, 9, 16, 0.96), rgba(16, 24, 38, 0.96));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blade);
}

.story-splash figcaption span:last-child {
  color: var(--path);
}

.story-beats {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.story-beats li {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--path);
  background: linear-gradient(90deg, rgba(46, 196, 182, 0.1), transparent 85%);
}

.beat-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blade);
}

.beat-line {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.5;
}

.story-dossier {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  margin-top: 1.75rem;
}

.story-manifesto {
  position: relative;
  padding-left: 1.15rem;
}

.story-manifesto::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  background: linear-gradient(180deg, var(--blade), var(--path), transparent);
}

.story-manifesto p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(0.74rem, 1.55vw, 0.9rem);
  line-height: 1.85;
}

.story-manifesto p:last-child {
  margin-bottom: 0;
}

.story-lead {
  color: var(--ink) !important;
  font-size: clamp(0.88rem, 1.9vw, 1.05rem) !important;
  line-height: 1.7 !important;
}

.story-lead strong {
  color: var(--blade);
  font-weight: 800;
}

.story-close {
  color: var(--path) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.story-side {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #000;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--path-deep);
}

.story-side img {
  width: 100%;
  height: clamp(260px, 36vw, 420px);
  object-fit: contain;
  background: #000;
}

.story-side figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blade);
}

/* ——— archive gallery ——— */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.cell {
  overflow: hidden;
  background: #000;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 #000;
  min-height: 220px;
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.cell:hover img {
  transform: scale(1.03);
}

.cell-a { grid-column: span 5; min-height: 320px; }
.cell-b { grid-column: span 7; min-height: 320px; }
.cell-c { grid-column: span 4; }
.cell-d { grid-column: span 4; }
.cell-e { grid-column: span 4; }
.cell-f { grid-column: span 12; min-height: 280px; }

.cell figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blade);
}

.cell {
  position: relative;
}

/* ——— path / how-to ——— */
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.path-card {
  padding: 1.15rem 1rem 1.25rem;
  text-align: center;
}

.path-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 3px 3px 0 var(--path-deep);
}

.path-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.path-card h3 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.path-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.path-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

/* ——— chart ——— */
.chart-frame {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: #000;
}

.chart-frame iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

.chart-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.65rem;
  border: 2px solid var(--crimson);
  color: var(--crimson);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: livePulse 1.8s ease-in-out infinite;
}

.live-badge i {
  font-size: 0.55rem;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 74, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255, 45, 74, 0); }
}

/* ——— join ——— */
.join {
  text-align: center;
}

.join-art {
  width: min(280px, 58vw);
  margin: 0 auto 1.4rem;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--path-deep);
  background: #000;
  overflow: hidden;
}

.join-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: bladeBreathe 4.8s ease-in-out infinite;
}

@keyframes bladeBreathe {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
  50% { filter: drop-shadow(0 0 18px rgba(245, 251, 255, 0.35)); transform: scale(1.015); }
}

.join .h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.join .ca-row {
  justify-content: center;
}

/* ——— footer ——— */
.footer {
  border-top: 3px solid var(--ink);
  padding: 1.6rem 0 2.2rem;
  background: rgba(0, 0, 0, 0.35);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.disclaimer {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  max-width: 72ch;
}

/* ——— toast / reveal ——— */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--blade);
  color: #0a1018;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 var(--path);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-embers,
  .scroll-cue,
  .live-badge,
  .join-art img { animation: none; }
}

@media (max-width: 960px) {
  .path-grid,
  .story-dossier,
  .story-beats {
    grid-template-columns: 1fr;
  }

  .story-side img {
    height: clamp(240px, 58vw, 360px);
  }

  .cell-a,
  .cell-b,
  .cell-c,
  .cell-d,
  .cell-e,
  .cell-f {
    grid-column: span 12;
    min-height: 240px;
  }

  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 1.35rem));
  }

  .btn {
    width: 100%;
  }

  .nav-actions .btn-buy,
  .nav-actions .btn-x {
    width: auto;
  }

  .hero-actions .btn,
  .path-cta .btn,
  .join-actions .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .ca-pill {
    width: 100%;
  }
}
