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

/* ─── TOKENS ─── */
:root {
  --bg:       #1a1008;
  --fg:       #F5E6C8;
  --orange:   #F7931A;
  --amber:    #FFB347;
  --dim:      #A89070;
  --border:   #3D2B1A;
  --surface:  #241810;
  --mono:     'IBM Plex Mono', 'Courier New', monospace;
  --max:      720px;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Noise overlay — diffusion texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ─── SECTIONS ─── */
section {
  padding: clamp(64px, 10vw, 120px) 0;
}

/* no dividers between sections */

/* ─── LINKS ─── */
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── SECTION LABEL ─── */
.label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ─── HEADINGS ─── */
h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
}

/* ─── BODY TEXT ─── */
p {
  margin-bottom: 1.25rem;
  color: var(--fg);
}

p:last-child { margin-bottom: 0; }

/* ─── BLOCKQUOTE ─── */
blockquote {
  border-left: 3px solid var(--orange);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  color: var(--dim);
  font-style: italic;
  font-size: 0.95rem;
}

/* ─── CALLOUT ─── */
.callout {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 1rem;
  margin: 2rem 0;
}

/* ─── CTA BUTTON ─── */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bg);
  border: none;
  padding: 12px 28px;
  background: var(--orange);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--amber);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: clamp(80px, 12vw, 140px) 0;
}

/* HERO PRE-LABEL */
.hero-pre {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

/* HERO REVEAL — shared transition for all hero elements */
.hero-reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-reveal.visible {
  opacity: 1;
  transform: none;
}

/* HERO LINES */
.hero-lines {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 1.75rem;
}

.hero-line {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: var(--dim);
  line-height: 1.4;
  min-height: 1.5em;
}

/* HERO LOGO */
.hero-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.8rem, 14vw, 7rem);
  color: var(--orange);
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  display: block;
}

/* Glitch only active once .glitch class added by JS */
.hero-logo.glitch { animation: glitch 5s infinite; }

.hero-logo.glitch::before,
.hero-logo.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.hero-logo.glitch::before {
  color: #00ffcc;
  clip: rect(0, 9999px, 0, 0);
  animation: glitch-top 5s infinite;
  opacity: 0.7;
}

.hero-logo.glitch::after {
  color: #ff003c;
  clip: rect(0, 9999px, 0, 0);
  animation: glitch-bot 5s infinite;
  opacity: 0.7;
}

@keyframes glitch {
  0%, 90%, 100% { transform: none; }
  91%            { transform: skewX(-1deg); }
  93%            { transform: skewX(1deg); }
  95%            { transform: none; }
}

@keyframes glitch-top {
  0%, 88%, 100%  { clip: rect(0, 9999px, 0, 0); transform: none; }
  89%            { clip: rect(8px, 9999px, 24px, 0); transform: translate(-4px, 0); }
  91%            { clip: rect(2px, 9999px, 12px, 0); transform: translate(3px, 0); }
  93%            { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitch-bot {
  0%, 88%, 100%  { clip: rect(0, 9999px, 0, 0); transform: none; }
  90%            { clip: rect(40px, 9999px, 70px, 0); transform: translate(4px, 0); }
  92%            { clip: rect(30px, 9999px, 50px, 0); transform: translate(-3px, 0); }
  94%            { clip: rect(0, 9999px, 0, 0); }
}

.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--dim);
  margin-bottom: 2.5rem;
}

/* ─── STEPS ─── */
.steps { display: flex; flex-direction: column; gap: 3rem; margin-top: 2.5rem; }

.step { display: flex; gap: 1.5rem; align-items: flex-start; }

.step-num {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
  min-width: 3rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.step-content ul {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
}

.step-content ul li {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
  padding: 0.25rem 0;
}

.step-content ul li::before {
  content: '→ ';
  color: var(--orange);
}

.try-wallet {
  display: inline-block;
  margin-top: 1rem;
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.try-wallet:hover { color: var(--orange); text-decoration: none; }



/* ─── SCROLL GATE ─── */
.gate-body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gate-body.visible { opacity: 1; transform: none; }

.continue-btn {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s ease, color 0.2s;
}
.continue-btn.visible { opacity: 1; }
.continue-btn:hover { color: var(--orange); }

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--orange);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── CLOSING ─── */
.closing-inner { padding: clamp(80px, 12vw, 140px) 0; }

.closing-lines {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 3rem;
}

.closing-line {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 4rem);
  color: var(--fg);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.closing-line:last-child { color: var(--orange); }
.closing-line.visible { opacity: 1; transform: none; }

.closing-sats {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.closing-sats.visible { opacity: 1; transform: none; }

/* ─── ITEM LIST ─── */
.item-list { margin-top: 1.5rem; }

.item-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
.item-row:first-child { border-top: 1px solid var(--border); }

.item-row strong {
  display: block;
  font-family: var(--mono);
  color: var(--orange);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* ─── SATS FLOAT BUTTON ─── */
#sats-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--orange);
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  z-index: 100;
  letter-spacing: 0.08em;
}

/* ─── SATS OVERLAY ─── */
#sats-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,6,2,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
}
#sats-overlay.open { display: flex; }

.sats-header {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.sats-header-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}
.sats-header-title span { color: var(--dim); font-weight: 400; }

#sats-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 18px;
  cursor: pointer;
}

.sats-messages {
  flex: 1;
  width: 100%;
  max-width: 600px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sats-msg { display: flex; flex-direction: column; gap: 4px; }
.sats-msg .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.sats-msg.sats .who { color: var(--orange); }
.sats-msg .bubble { font-size: 15px; line-height: 1.6; color: var(--fg); }

.sats-coming-soon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  opacity: 0.6;
  padding: 0 24px 12px;
  max-width: 600px;
  width: 100%;
}

.sats-input-row {
  width: 100%;
  max-width: 600px;
  display: flex;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}

#sats-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 14px;
  resize: none;
  min-height: 48px;
}

#sats-send {
  background: var(--orange);
  color: var(--bg);
  border: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

/* ─── FOOTER ─── */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

footer p:last-child { margin-bottom: 0; }

/* ─── MOBILE ─── */
@media (max-width: 480px) {
  .step { flex-direction: column; gap: 0.5rem; }
  .step-num { font-size: 1.5rem; }
}
