/* =========================================================
   Nasdaqistan — dark Robinhood after-hours × battle trenches
   #0B0E11 / #0D0D0D · RH green #00C805 · red down · Swiss clean
   ========================================================= */

:root {
  --bg: #0B0E11;
  --bg-2: #0D0D0D;
  --bg-3: #12161c;
  --panel: rgba(18, 22, 28, 0.72);
  --rh: #00C805;
  --rh-dim: #00a004;
  --rh-glow: rgba(0, 200, 5, 0.35);
  --down: #FF5000;
  --down-soft: #ff6a2b;
  --frost: #F5F5F5;
  --muted: #8B949E;
  --line: rgba(0, 200, 5, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --olive: #3d4a32;
  --display: "Syne", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
  --radius: 16px;
}

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

html { background: var(--bg); color: var(--frost); scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--frost);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.is-gated { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px dashed var(--rh); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--rh); color: #041006; padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 8px; }

#smoke-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 3;
}
.fx-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
.fx-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.fx-scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 4; opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 200, 5, 0.07) 2px,
    rgba(0, 200, 5, 0.07) 3px
  );
}

/* ---------- GATE ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,200,5,.08), transparent 60%),
    #050708;
  transition: opacity .55s ease, visibility .55s ease;
}
.gate.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__hud {
  position: absolute; top: 1.25rem; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 var(--pad);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  color: var(--rh); opacity: .7;
}
.gate__inner {
  text-align: center;
  padding: 2rem;
  animation: gate-in 0.8s ease both;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.gate__logo {
  width: 104px; height: 104px; margin: 0 auto 1rem;
  border-radius: 18px;
  border: 1px solid rgba(0,200,5,.35);
  box-shadow: 0 0 32px var(--rh-glow);
  animation: float-y 3.2s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.gate__boot {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--rh);
  margin-bottom: .75rem;
}
.gate__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  letter-spacing: .06em;
  color: var(--frost);
  text-shadow: 0 0 40px var(--rh-glow);
}
.gate__sub {
  margin-top: .5rem;
  color: var(--muted);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .75rem;
}
.gate__quote {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-style: italic;
  color: rgba(245,245,245,.82);
  font-size: 1.05rem;
  border-left: 2px solid var(--rh);
  padding-left: 1rem;
  text-align: left;
}
.gate__btn {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: .95rem 1.8rem;
  border: 1px solid var(--rh);
  border-radius: 999px;
  background: rgba(0,200,5,.12);
  color: var(--rh);
  font-weight: 700;
  letter-spacing: .12em;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 0 0 0 var(--rh-glow);
}
.gate__btn:hover {
  background: rgba(0,200,5,.22);
  box-shadow: 0 0 32px var(--rh-glow);
  transform: translateY(-1px);
}
.gate__mute {
  margin-top: 1rem;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .06em;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem var(--pad);
  background: rgba(11,14,17,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; letter-spacing: .06em;
}
.nav__brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0,200,5,.3);
  filter: drop-shadow(0 0 10px var(--rh-glow));
}
.nav__links {
  display: flex; gap: .35rem; margin-left: 1rem;
  font-size: .9rem; font-weight: 600; color: rgba(245,245,245,.78);
}
.nav__links a {
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.nav__links a:hover {
  color: var(--rh);
  background: rgba(0,200,5,.08);
  border-color: rgba(0,200,5,.28);
}
.nav__cta {
  margin-left: auto;
  display: flex; align-items: center; gap: .55rem;
}
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 18px; height: 2px; background: var(--frost);
}
.nav-mobile {
  position: sticky; top: 60px; z-index: 49;
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem var(--pad);
  background: rgba(11,14,17,.95);
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile[hidden] {
  display: none !important;
}
.nav-mobile a {
  padding: .85rem .55rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--frost);
  font-weight: 600;
  font-size: 1rem;
}
.nav-mobile a:hover { color: var(--rh); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .85em 1.35em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, opacity .2s, border-color .2s;
}
.btn--sm { padding: .5em 1em; font-size: .85rem; }
.btn--primary {
  background: var(--rh);
  color: #041006;
  box-shadow: 0 10px 28px -10px var(--rh-glow);
}
.btn--primary:hover:not(.is-disabled) {
  background: #12e018;
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft);
  color: var(--frost);
}
.btn--ghost:hover:not(.is-disabled) {
  border-color: rgba(0,200,5,.4);
  color: var(--rh);
}
.btn.is-disabled,
a.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(.55);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,14,17,.94) 0%, rgba(11,14,17,.72) 48%, rgba(11,14,17,.35) 100%),
    linear-gradient(180deg, rgba(11,14,17,.35) 0%, rgba(11,14,17,.85) 100%);
}
.hero__content, .hero__float { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rh);
  margin-bottom: 1rem;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rh);
  box-shadow: 0 0 12px var(--rh);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.hero__word {
  display: block;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: .02em;
}
.hero__tick {
  display: inline-block;
  margin-top: .35rem;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--rh);
  letter-spacing: .08em;
  border: 1px solid rgba(0,200,5,.35);
  padding: .25rem .7rem;
  border-radius: 8px;
  background: rgba(0,200,5,.08);
}
.hero__quote {
  margin: 0 0 1rem;
  max-width: 34rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--rh);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  border-radius: 0 12px 12px 0;
}
.hero__quote p {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--frost);
  line-height: 1.35;
}
.hero__quote cite {
  display: block;
  margin-top: .55rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
}
.hero__tag {
  max-width: 36rem;
  color: rgba(245,245,245,.78);
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
}
.ca-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .5rem .45rem .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--line-soft);
  margin-bottom: 1.25rem;
  max-width: 100%;
}
.ca-pill.is-soon { border-color: rgba(255,80,0,.35); }
.ca-pill__label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  color: var(--muted);
}
.ca-pill__addr {
  font-size: .82rem;
  color: var(--frost);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(70vw, 420px);
}
.ca-pill__copy {
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(0,200,5,.15);
  color: var(--rh);
  font-weight: 700;
  font-size: .78rem;
}
.ca-pill__copy:hover { background: rgba(0,200,5,.28); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .85rem; }
.hero__pair-note {
  font-size: .78rem; color: var(--muted);
}
.hero__pair-note code { color: var(--rh); }
.hero__float { display: flex; justify-content: center; }
.dogtag {
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
}
.mascot {
  width: min(320px, 70vw);
  border-radius: 22px;
  border: 1px solid rgba(0,200,5,.28);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 24px 60px -20px rgba(0,0,0,.85),
    0 0 40px var(--rh-glow);
  animation: float-y 4s ease-in-out infinite;
}
.dogtag span {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ---------- TAPE / BANNER ---------- */
.tape {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(0,200,5,.06);
  padding: .7rem 0;
}
.tape__track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--rh);
  white-space: nowrap;
}
.tape__track span { padding-right: 2rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.banner-strip {
  padding: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.banner-strip img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  opacity: .92;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}
.section__head { margin-bottom: 2.25rem; max-width: 44rem; }
.section__head .eyebrow {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(0,200,5,.1);
  border: 1px solid rgba(0,200,5,.28);
  margin-bottom: .85rem;
}
.section__head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: .35rem 0 .9rem;
  color: var(--frost);
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
}
.section__head h2 em {
  font-style: normal;
  color: var(--rh);
}
.section__lead { color: rgba(245,245,245,.72); font-size: 1.08rem; }

.lore__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.lore-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s;
}
.lore-card:hover {
  border-color: rgba(0,200,5,.35);
  transform: translateY(-2px);
}
.lore-card__icon { font-size: 1.35rem; margin-bottom: .55rem; }
.lore-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.lore-card p { color: var(--muted); font-size: .95rem; }
.lore-card--hud {
  background:
    linear-gradient(135deg, rgba(0,200,5,.08), transparent 50%),
    var(--panel);
}
.ascii-block {
  color: var(--rh);
  font-size: .72rem;
  line-height: 1.3;
  margin-bottom: .75rem;
  opacity: .85;
}

/* ---------- SIGNAL ---------- */
.signal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.signal__label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rh);
  margin-bottom: .75rem;
}
.tweet-wrap {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem .5rem;
  min-height: 120px;
}
.tweet-wrap .twitter-tweet { margin: 0 auto !important; }

/* ---------- BUY STEPS ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: .85rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(18,22,28,.65);
}
.step__n {
  font-family: var(--mono);
  color: var(--rh);
  font-weight: 700;
  font-size: .95rem;
  padding-top: .15rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- CHART ---------- */
.chart-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(0,200,5,.28);
  border-radius: var(--radius);
  background: rgba(0,200,5,.04);
  color: var(--muted);
}
.chart-empty code { color: var(--rh); }
.chart-live .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
.stat {
  padding: 1rem;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.stat span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.stat strong { font-family: var(--mono); color: var(--rh); }
.chart-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #000;
  min-height: 420px;
}
.chart-frame iframe {
  width: 100%; height: 480px; border: 0; display: block;
}

/* ---------- VAULT ---------- */
.vault__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.vault__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #000;
  aspect-ratio: 4 / 3;
}
.vault__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.vault__item:hover img { transform: scale(1.04); }
.vault__item--logo {
  display: grid; place-items: center;
  background: radial-gradient(circle at center, rgba(0,200,5,.12), #0a0c0e);
}
.vault__item--logo img {
  width: 62%; height: auto; object-fit: contain;
  border-radius: 16px;
}

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: .65rem; max-width: 760px; }
.faq__list details {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
  padding: .15rem 1rem;
}
.faq__list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 700;
  font-family: var(--display);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list details[open] summary { color: var(--rh); }
.faq__list details p {
  color: var(--muted);
  padding-bottom: 1rem;
  font-size: .95rem;
}
.faq__list code { color: var(--rh); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  display: grid;
  gap: 1rem;
}
.footer__brand {
  display: flex; align-items: center; gap: .75rem;
}
.footer__brand img {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(0,200,5,.3);
}
.footer__brand strong { display: block; font-family: var(--display); }
.footer__brand span { color: var(--muted); font-size: .85rem; }
.footer__warn, .footer__copy {
  color: var(--muted);
  font-size: .82rem;
  max-width: 52rem;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: rgba(0,200,5,.95);
  color: #041006;
  font-weight: 700;
  font-size: .85rem;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2.5rem; }
  .hero__float { order: -1; }
  .mascot { width: min(220px, 55vw); }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .lore__grid, .signal__grid { grid-template-columns: 1fr; }
  .vault__grid { grid-template-columns: repeat(2, 1fr); }
  .chart-live .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .vault__grid { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .gate__hud { display: none; }
}

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