/* ──────────────────────────────────────────────────────────────────────
   1NC1N3R4T0R — pixelated hell
   ────────────────────────────────────────────────────────────────────── */

:root {
  --bg:           #000000;
  --bg-soft:      #050505;
  --bg-card:      #0e0805;
  --bg-deep:      #000000;
  --ink:          #f4e4d4;
  --ink-soft:     #c4a888;
  --ink-mute:     #806858;
  --flame:        #ff5a14;
  --flame-bright: #ff8a3d;
  --flame-deep:   #c43800;
  --ember:        #ffc04d;
  --char:         #2a1408;
  --line:         #3a1c10;
  --line-soft:    #1d0e08;
  --blood:        #b32020;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'VT323', 'Courier New', monospace;
  background: #000000;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0.005em;
  min-height: 100dvh;
  overflow-x: hidden;
  image-rendering: pixelated;
}

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

/* ── Pixel scrollbar ───────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--flame) var(--bg-deep); }
::-webkit-scrollbar       { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--bg-deep); border-left: 2px solid var(--line); }
::-webkit-scrollbar-thumb {
  /* sharp blocky thumb — no radius */
  background: var(--flame);
  border: 2px solid var(--flame-deep);
  box-shadow:
    inset 2px 2px 0 var(--flame-bright),
    inset -2px -2px 0 var(--char);
}
::-webkit-scrollbar-thumb:hover { background: var(--flame-bright); }
::-webkit-scrollbar-thumb:active { background: var(--ember); }
::-webkit-scrollbar-corner { background: var(--bg-deep); }

a { color: var(--flame); text-decoration: none; }
a:hover { color: var(--flame-bright); }

/* Tile texture overlay — clean black grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

/* CRT scanlines overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0.12) 2px,
      rgba(0,0,0,0.12) 4px
    );
  mix-blend-mode: multiply;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 16px 22px;
  background: transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  image-rendering: pixelated;
  /* Pixel-stepped border (4 stacked outlines = sharp bezel) */
  background: var(--char);
  border: 2px solid var(--flame);
  box-shadow:
    0 0 0 2px var(--char),
    0 0 0 4px var(--flame-deep),
    3px 3px 0 4px var(--flame-deep);
  padding: 2px;
}
.brand-mark:hover {
  border-color: var(--flame-bright);
}
.brand-name {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--flame);
  text-shadow: 0 0 6px rgba(255,90,20,.35);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: transform .08s ease, background .12s ease, color .12s ease;
  /* sharp pixel-corner aesthetic — no border radius */
  border-radius: 0;
}
.cta:active { transform: translate(1px, 1px); }

.cta-primary {
  background: var(--flame);
  color: var(--bg);
  border-color: var(--flame-bright);
  box-shadow: 4px 4px 0 var(--flame-deep);
}
.cta-primary:hover {
  background: var(--flame-bright);
  color: var(--bg);
  box-shadow: 6px 6px 0 var(--flame-deep);
  transform: translate(-2px, -2px);
}

.cta-ghost {
  color: var(--flame);
  border-color: var(--flame);
  background: transparent;
}
.cta-ghost:hover {
  color: var(--bg);
  background: var(--flame);
}

.cta-x {
  color: var(--ink);
  border-color: var(--line);
  padding: 8px 14px;
  gap: 8px;
}
.cta-x:hover { color: var(--flame); border-color: var(--flame); }
.cta-x svg { pointer-events: none; flex-shrink: 0; }
.cta-x-label { font-weight: 400; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 22px 80px;
  text-align: center;
  z-index: 2;
}

.hero-banner {
  position: relative;
  max-width: 760px;
  margin: 0 auto 30px;
  /* Transparent PNG — no frame; just an atmospheric glow */
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.hero-banner img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 18px rgba(255,90,20,0.55))
    drop-shadow(0 0 40px rgba(255,90,20,0.25));
  /* gentle bob to feel alive */
  animation: bannerFloat 5.5s ease-in-out infinite;
}
@keyframes bannerFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Embers */
.ember {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: rise 6s linear infinite;
  z-index: 10;
}
.ember-1 { left: 20%; bottom: 10%; animation-delay: 0s; }
.ember-2 { left: 45%; bottom: 5%;  animation-delay: 1.5s; background: var(--flame-bright); }
.ember-3 { left: 65%; bottom: 15%; animation-delay: 3s; }
.ember-4 { left: 80%; bottom: 0%;  animation-delay: 4.5s; background: var(--flame); }
.ember-5 { left: 30%; bottom: 20%; animation-delay: 2.2s; }
@keyframes rise {
  0%   { transform: translateY(0)   scale(1);   opacity: 1; }
  60%  { transform: translateY(-180px) scale(0.8); opacity: 0.8; }
  100% { transform: translateY(-320px) scale(0);   opacity: 0; }
}

.lede {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.lede .emph {
  color: var(--flame-bright);
  text-shadow: 0 0 8px rgba(255,138,61,.5);
}

/* Terminal-style lede block (lede.term) */
.lede.term {
  display: inline-block;
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 2.0;
  text-align: left;
  color: var(--flame);
  text-shadow: 0 0 8px rgba(255,90,20,.45);
  background: transparent;
  padding: 0;
  white-space: pre-wrap;
}
.lede.term .caret {
  display: inline-block;
  color: var(--ember);
  animation: blink 1s steps(1) infinite;
  margin-left: 4px;
  vertical-align: -1px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  padding: 80px 22px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-alt {
  background: #000000;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  max-width: none;
}
.section-alt > .section-head,
.section-alt > div,
.section-alt > article { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--flame);
  margin-bottom: 14px;
}
.section h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 var(--char);
}

/* ── Three cards (how it works) ────────────────────────────── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--line);
  padding: 30px 22px 24px;
  /* sharp pixel-corner */
  box-shadow: 4px 4px 0 var(--char);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--flame-deep);
  border-color: var(--flame);
}
.card-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--flame);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}
.card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.card p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}
.card code {
  font-family: 'VT323', monospace;
  font-size: 17px;
  background: var(--bg);
  color: var(--flame-bright);
  padding: 0 6px;
}
.card strong { color: var(--ink); }

/* ── Manifesto ─────────────────────────────────────────────── */
.manifesto {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.manifesto p {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 20px;
}
.manifesto .emph-line {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-top: 30px;
}
.manifesto .arrow {
  display: inline-block;
  color: var(--flame);
  margin: 0 6px;
  font-size: 18px;
  text-shadow: 0 0 6px rgba(255,90,20,.5);
}
.manifesto .arrow.up { color: var(--ember); }

/* ── Token ─────────────────────────────────────────────────── */
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto 28px;
}
.token-card {
  background: var(--bg-card);
  border: 2px solid var(--line);
  padding: 22px 18px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--char);
}
.token-card-wide { grid-column: 1 / -1; }
.token-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--flame);
  margin-bottom: 10px;
}
.token-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.token-value.mono { font-size: 12px; word-break: break-all; }
.token-foot {
  text-align: center;
  color: var(--ink-mute);
  font-size: 18px;
  margin-top: 20px;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 2px solid var(--line);
  margin-bottom: 12px;
  padding: 0;
  box-shadow: 3px 3px 0 var(--char);
}
.faq summary {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--flame);
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  letter-spacing: 0.02em;
  transition: color .12s ease;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--flame-bright); }
.faq details[open] summary { color: var(--ink); border-bottom: 2px solid var(--line); }
.faq details p {
  padding: 16px 18px;
  margin: 0;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.faq details code {
  font-family: 'VT323', monospace;
  background: var(--bg);
  color: var(--flame-bright);
  padding: 0 6px;
  font-size: 16px;
  word-break: break-all;
}

/* ── Footer ────────────────────────────────────────────────── */
.footbar {
  position: relative;
  z-index: 2;
  border-top: 2px solid var(--line);
  padding: 26px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  background: var(--bg-deep);
}
.footbar a { color: var(--ink-soft); }
.footbar a:hover { color: var(--flame); }
.footer-x { display: inline-flex; align-items: center; }

/* ── Terminal window (fake-console block) ────────────────── */
.terminal {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-deep);
  border: 2px solid var(--flame);
  box-shadow:
    0 0 0 2px var(--char),
    0 0 0 4px var(--flame-deep),
    6px 6px 0 4px var(--flame-deep),
    0 0 32px rgba(255,90,20,.25);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--char);
  border-bottom: 2px solid var(--flame);
}
.terminal-dot {
  width: 9px;
  height: 9px;
  background: var(--flame-deep);
  /* sharp pixel squares */
}
.terminal-dot:nth-child(1) { background: var(--flame-deep); }
.terminal-dot:nth-child(2) { background: var(--ember); }
.terminal-dot:nth-child(3) { background: var(--flame); }
.terminal-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--flame);
  margin-left: 6px;
  flex: 1;
}
.terminal-status {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--ember);
  letter-spacing: 0.18em;
  padding: 2px 6px;
  background: rgba(255,192,77,.10);
  border: 1px solid var(--ember);
  animation: liveBlink 2s steps(1) infinite;
}
@keyframes liveBlink {
  0%, 60%   { opacity: 1; }
  61%, 100% { opacity: 0.4; }
}

/* Burn feed body */
.terminal-body {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  font-family: 'VT323', monospace;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-height: 340px;
  overflow-y: auto;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,90,20,0.02) 0,
      rgba(255,90,20,0.02) 1px,
      transparent 1px,
      transparent 3px
    ),
    var(--bg-deep);
}
.terminal-body li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 0;
}
.terminal-body li.fresh {
  animation: freshLine 0.4s ease;
  color: var(--flame-bright);
}
@keyframes freshLine {
  from { background: rgba(255,138,61,0.18); color: var(--ember); }
  to   { background: transparent; }
}
.terminal-body .t   { color: var(--ink-mute); }
.terminal-body .op  { color: var(--flame); font-weight: bold; }
.terminal-body .ar  { color: var(--flame-bright); }
.terminal-body .amt { color: var(--ember); }
.terminal-body .sym { color: var(--flame); }
.terminal-body .dead{ color: var(--blood); text-shadow: 0 0 4px rgba(179,32,32,.5); }
.terminal-body .dim { color: var(--ink-mute); }

/* Token spec rows */
.terminal-body.spec {
  font-family: 'VT323', monospace;
  font-size: 19px;
  display: block;
  max-height: none;
  padding: 18px 24px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-k {
  color: var(--flame);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
}
.spec-v {
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: 19px;
  text-align: right;
}

/* CTA band */
.cta-band {
  max-width: 880px;
  margin: 0 auto 80px;
  padding: 0 22px;
}
.cta-band-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--flame);
  color: var(--bg);
  border: 2px solid var(--flame-bright);
  box-shadow:
    0 0 0 2px var(--char),
    0 0 0 4px var(--flame-deep),
    6px 6px 0 4px var(--flame-deep);
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta-band-link:hover {
  color: var(--bg);
  background: var(--flame-bright);
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 2px var(--char),
    0 0 0 4px var(--flame-deep),
    9px 9px 0 4px var(--flame-deep);
}
.cta-band-prompt { color: var(--bg); opacity: 0.6; font-size: 14px; }
.cta-band-text { flex: 1; }
.cta-band-arrow { font-size: 18px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .three-col { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr 1fr; }
  .token-card-wide { grid-column: 1 / -1; }
  .section h2 { font-size: 18px; }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  .brand-name { font-size: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .terminal-title { font-size: 8px; letter-spacing: 0.08em; }
  .terminal-status { font-size: 7px; padding: 2px 4px; }
  .terminal-body { font-size: 14px; padding: 12px 12px; max-height: 280px; }
  .terminal-body.spec { font-size: 16px; padding: 14px 16px; }
  .spec-k { font-size: 8px; }
  .spec-v { font-size: 16px; }
  .cta-band-link { padding: 18px 18px; font-size: 10px; gap: 10px; }
  .cta-band-arrow { font-size: 14px; }
  .cta-x-label { display: none; }
  .cta-x { padding: 8px 10px; }
  .hero { padding: 100px 16px 60px; }
  .hero-banner img {
    filter:
      drop-shadow(0 0 12px rgba(255,90,20,0.55))
      drop-shadow(0 0 28px rgba(255,90,20,0.25));
  }
  .lede { font-size: 19px; }
  .lede.term { font-size: 11px; line-height: 2.1; letter-spacing: 0.04em; }
  .section { padding: 60px 16px; }
  .section h2 { font-size: 15px; line-height: 1.5; }
  .card h3 { font-size: 11px; }
  .token-grid { grid-template-columns: 1fr; }
  .token-value { font-size: 12px; }
  .footbar { flex-direction: column; gap: 10px; text-align: center; }
  ::-webkit-scrollbar { width: 10px; }
}
