/* ============================================================
   PLX NETWORK — DESIGN SYSTEM
   Primary: #00e52e | BG: #0A1210 | Card: #111C14 | Border: #1E3024
   Text: #CCE8D2 | Muted: #7AAD84
   Type: Plus Jakarta Sans / Inter / JetBrains Mono
   ============================================================ */

:root {
  --primary: #00e52e;
  --primary-dim: rgba(0, 229, 46, 0.14);
  --primary-glow: rgba(0, 229, 46, 0.45);
  --bg: #0A1210;
  --bg-alt: #0d1712;
  --card: #111C14;
  --card-hover: #142219;
  --border: #1E3024;
  --text: #CCE8D2;
  --muted: #7AAD84;
  --white: #eafaf0;
  --danger: #ff5d5d;
  --amber: #ffb020;
  --blue: #4d9fff;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle ambient glow backdrop */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0,229,46,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mono { font-family: var(--font-mono); }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

img, svg, video, canvas { max-width: 100%; height: auto; }
table { max-width: 100%; }
h1, h2, h3, h4, p, a, span, div { overflow-wrap: break-word; word-break: break-word; }

section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(0,229,46,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 1.3rem; font-weight: 700; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

.glow-text { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,18,16,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--white); white-space: nowrap; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 8px var(--primary-glow)); }
.brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  padding: 13px 24px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #04170a;
  box-shadow: 0 0 0 rgba(0,229,46,0), 0 4px 24px rgba(0,229,46,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,46,0.4); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------------- CARD ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,229,46,0.35); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }

/* ---------------- STATUS PILL ---------------- */
.pill-active {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--primary); background: var(--primary-dim);
  border: 1px solid rgba(0,229,46,0.35);
  padding: 6px 14px; border-radius: 100px; letter-spacing: 0.04em;
}
.pill-active::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 10px var(--primary-glow);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------------- HERO ---------------- */
.hero { padding-top: 72px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--primary); text-shadow: 0 0 24px var(--primary-glow); }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-mono); font-size: 1.6rem; color: var(--white); }
.hero-stats .stat span { color: var(--muted); font-size: 0.82rem; }

/* dashboard mock */
.dash-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.dash-card::after {
  content: ""; position: absolute; top: -50%; right: -30%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,229,46,0.18), transparent 70%);
  pointer-events: none;
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dash-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.dash-balance { font-family: var(--font-mono); font-size: 2.3rem; font-weight: 700; color: var(--white); }
.dash-balance .unit { color: var(--primary); font-size: 1.2rem; margin-left: 6px; }
.dash-sub { color: var(--muted); font-size: 0.82rem; margin-top: 6px; font-family: var(--font-mono); }

.progress-track { height: 8px; background: #0a1310; border: 1px solid var(--border); border-radius: 100px; margin-top: 18px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #00b825, var(--primary)); border-radius: 100px; box-shadow: 0 0 14px var(--primary-glow); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }

.dash-rows { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.dash-row { display: flex; justify-content: space-between; align-items: center; background: #0d1712; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.85rem; }
.dash-row .label { display: flex; align-items: center; gap: 8px; color: var(--text); }
.dash-row .val { font-family: var(--font-mono); color: var(--primary); font-weight: 600; }

/* floating chips */
.floaters { position: absolute; z-index: 2; pointer-events: none; }

/* ---------------- STAT STRIP ---------------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 64px;
}
.stat-strip .stat-item { padding: 28px; text-align: center; border-right: 1px solid var(--border); background: var(--card); }
.stat-strip .stat-item:last-child { border-right: none; }
.stat-strip .stat-item b { display: block; font-family: var(--font-mono); font-size: 1.8rem; color: var(--primary); }
.stat-strip .stat-item span { color: var(--muted); font-size: 0.82rem; }

/* ---------------- NUMBERED STEPS ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { position: relative; }
.step-num { font-family: var(--font-mono); color: var(--primary); font-size: 0.85rem; opacity: 0.7; margin-bottom: 14px; }
.step-icon { font-size: 1.6rem; margin-bottom: 14px; display: inline-block; }
.step-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------------- TERMINAL ---------------- */
.terminal {
  background: #0a100d; border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-family: var(--font-mono); font-size: 0.85rem; overflow: hidden;
}
.terminal-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: #0d1611; }
.terminal-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-head .dot.r { background: #ff5f57; } .terminal-head .dot.y { background: #febc2e; } .terminal-head .dot.g { background: #28c840; }
.terminal-head span { color: var(--muted); margin-left: 8px; font-size: 0.78rem; }
.terminal-body { padding: 22px; color: #86e29a; line-height: 1.9; }
.terminal-body .muted-l { color: var(--muted); }
.terminal-body .ok { color: var(--primary); }
.terminal-cursor { display: inline-block; width: 8px; height: 15px; background: var(--primary); animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- FEATURES ---------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card .icon { font-size: 1.5rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border: 1px solid rgba(0,229,46,0.3); border-radius: var(--radius-sm); margin-bottom: 16px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------------- TOKENOMICS ---------------- */
.token-hero { text-align: center; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); margin-bottom: 40px; }
.token-hero b { font-family: var(--font-mono); font-size: clamp(2rem,5vw,3rem); color: var(--primary); display: block; text-shadow: 0 0 30px var(--primary-glow); }
.alloc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.alloc-card .pct { font-family: var(--font-mono); font-size: 2rem; color: var(--primary); font-weight: 700; }
.alloc-card .amt { color: var(--muted); font-size: 0.82rem; margin: 6px 0 12px; }
.alloc-bar { height: 6px; background: #0a1310; border-radius: 100px; overflow: hidden; margin-bottom: 12px; }
.alloc-bar > div { height: 100%; background: var(--primary); border-radius: 100px; box-shadow: 0 0 10px var(--primary-glow); width: 0%; transition: width 1.4s ease; }

.halving-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.halving-card { text-align: center; }
.halving-card .yr { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.halving-card b { font-family: var(--font-mono); font-size: 1.5rem; color: var(--white); }
.halving-bar-track { height: 90px; display: flex; align-items: flex-end; margin-top: 16px; }
.halving-bar-track .bar { width: 100%; background: linear-gradient(180deg, var(--primary), #00b825); border-radius: 8px 8px 0 0; box-shadow: 0 0 16px var(--primary-glow); }

/* ---------------- REFERRAL / DASHBOARD APP LOOK ---------------- */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ref-benefits { display: flex; flex-direction: column; gap: 20px; }
.ref-benefit { display: flex; gap: 16px; }
.ref-benefit .icon { font-size: 1.3rem; }
.ref-benefit h3 { font-size: 1rem; margin-bottom: 4px; }
.ref-benefit p { color: var(--muted); font-size: 0.88rem; }

.ring-card { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.ring {
  width: 90px; height: 90px; border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg 130deg, #1a2b20 130deg 360deg);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 8px; background: var(--card); border-radius: 50%; }
.ring b { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 1.4rem; color: var(--white); }
.ring-meta { flex: 1; }
.ring-meta .row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; }
.ring-meta .row .dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }

.referral-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 0.85rem; }
.referral-list-item .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-dim); border: 1px solid rgba(0,229,46,0.3); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-mono); }
.referral-list-item .meta { flex: 1; }
.referral-list-item .meta .name { color: var(--muted); font-size: 0.8rem; }
.referral-list-item .bonus { font-family: var(--font-mono); color: var(--primary); font-weight: 600; }

/* ---------------- FINAL CTA ---------------- */
.final-cta { text-align: center; }
.final-cta .btns { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------------- FOOTER ---------------- */
footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin: 16px 0; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; flex-wrap: wrap; gap: 10px; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.social-row a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------------- LEGAL / DOC PAGES ---------------- */
.doc-header { padding: 60px 0 40px; text-align: center; border-bottom: 1px solid var(--border); }
.doc-meta { display: flex; gap: 24px; justify-content: center; margin-top: 20px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); }
.doc-layout { display: grid; grid-template-columns: 280px 1fr; gap: 50px; padding: 60px 0; align-items: start; }
.doc-toc { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.doc-toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.doc-toc a { display: block; font-size: 0.88rem; color: var(--muted); padding: 7px 0; border-left: 2px solid transparent; padding-left: 12px; transition: all .2s; }
.doc-toc a:hover, .doc-toc a.active { color: var(--primary); border-left-color: var(--primary); }
.doc-content h2 { margin-top: 48px; padding-top: 10px; font-size: 1.5rem; }
.doc-content h2:first-child { margin-top: 0; }
.doc-content h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1.1rem; color: var(--white); }
.doc-content p, .doc-content li { color: var(--text); font-size: 0.95rem; margin-bottom: 12px; }
.doc-content ul { margin: 12px 0 20px 0; }
.doc-content li { position: relative; padding-left: 20px; }
.doc-content li::before { content: "—"; position: absolute; left: 0; color: var(--primary); }
.callout { background: var(--primary-dim); border: 1px solid rgba(0,229,46,0.3); border-radius: var(--radius-md); padding: 18px 20px; margin: 20px 0; font-size: 0.9rem; }
.callout.warn { background: rgba(255,176,32,0.1); border-color: rgba(255,176,32,0.35); }
.callout.danger { background: rgba(255,93,93,0.1); border-color: rgba(255,93,93,0.35); }
.doc-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.88rem; }
.doc-table th, .doc-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.doc-table th { background: var(--card); color: var(--muted); font-weight: 600; }

/* ---------------- FAQ ---------------- */
.faq-search { display: flex; gap: 12px; margin-bottom: 30px; }
.faq-search input { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 14px 22px; color: var(--text); font-size: 0.92rem; }
.faq-search input:focus { outline: none; border-color: var(--primary); }
.faq-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.faq-cat { padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; font-size: 0.82rem; color: var(--muted); cursor: pointer; background: var(--card); transition: all .2s; }
.faq-cat.active, .faq-cat:hover { border-color: var(--primary); color: var(--primary); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--white); }
.faq-q .arrow { color: var(--primary); transition: transform .3s; font-size: 0.8rem; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 0.9rem; }
.faq-cat-label { font-family: var(--font-mono); color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 30px 0 14px; }

/* ---------------- REVEAL ANIM ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger.in > * { transition-delay: calc(var(--i) * 0.08s); }

/* ---------------- BLOG ---------------- */
.blog-hero { text-align: center; padding: 70px 0 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card .tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.blog-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.blog-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; flex: 1; }
.blog-card .meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }
.blog-card .meta span.read { color: var(--primary); }
.post-hero { padding: 70px 0 40px; border-bottom: 1px solid var(--border); }
.post-hero .tag { font-family: var(--font-mono); color: var(--primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.post-hero h1 { margin: 16px 0; font-size: clamp(1.8rem,5vw,2.8rem); }
.post-meta { color: var(--muted); font-size: 0.88rem; font-family: var(--font-mono); }
.post-body { max-width: 720px; margin: 0 auto; padding: 60px 0; }
.post-body p { color: var(--text); margin-bottom: 18px; font-size: 1rem; }
.post-body h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.post-body ul { margin: 0 0 20px 20px; }
.post-body li { color: var(--text); margin-bottom: 8px; list-style: disc; }

/* ---------------- TABLE SCROLL WRAP (prevents doc tables from forcing page-wide horizontal scroll) ---------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 24px; }
.table-wrap .doc-table { margin: 0; min-width: 460px; }

/* ---------------- RESPONSIVE (mobile-first: base styles above are for phones already; this scales UP) ---------------- */

/* Base / phone safety net — applies to everything below 640px, the primary audience */
html, body { width: 100%; overflow-x: hidden; }
.container { padding: 0 18px; }

.nav-links, .nav-cta { display: none; }
.nav-toggle { display: flex; }

.hero-grid { grid-template-columns: 1fr; gap: 40px; }
.hero { padding-top: 32px; padding-bottom: 40px; }
.hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
.hero-stats { gap: 20px 28px; row-gap: 18px; }

.dash-card { padding: 20px; }
.dash-balance { font-size: clamp(1.5rem, 7vw, 2.3rem); }

.terminal-body { padding: 16px; font-size: 0.78rem; overflow-x: auto; white-space: pre; }
.terminal-body div { white-space: nowrap; }

.doc-layout { grid-template-columns: 1fr; padding: 40px 0; gap: 30px; }
.doc-toc { position: static; }
.doc-content h2 { font-size: 1.3rem; margin-top: 36px; }

.steps-grid, .features-grid, .alloc-grid, .halving-row, .blog-grid,
.ref-grid, .footer-grid { grid-template-columns: 1fr; }

.stat-strip { grid-template-columns: 1fr; }
.stat-strip .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
.stat-strip .stat-item:last-child { border-bottom: none; }

.ring-card { flex-wrap: wrap; }
.referral-list-item { flex-wrap: wrap; }

.footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
section { padding: 56px 0; }
.section-head { margin-bottom: 36px; }

/* Small phones (≤400px) — extra breathing room */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.9rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 24px; height: 24px; }
  .hero-ctas { flex-direction: column; }
  .dash-balance { font-size: 1.5rem; }
}

/* Tablet and up */
@media (min-width: 641px) {
  .container { padding: 0 24px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-strip .stat-item { border-right: 1px solid var(--border); border-bottom: none; }
  .stat-strip .stat-item:last-child { border-right: none; }
  .steps-grid, .features-grid, .alloc-grid, .halving-row, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; }
  section { padding: 80px 0; }
}

/* Desktop and up — restore full multi-column layouts */
@media (min-width: 981px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
  .hero { padding-top: 72px; padding-bottom: 60px; }
  .doc-layout { grid-template-columns: 280px 1fr; gap: 50px; padding: 60px 0; }
  .doc-toc { position: sticky; top: 100px; }
  .steps-grid, .features-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .alloc-grid, .halving-row, .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  section { padding: 100px 0; }
}

/* mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0; background: rgba(10,18,16,0.97); backdrop-filter: blur(10px);
  z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateX(100%); transition: transform .35s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.mobile-drawer .close-btn { position: absolute; top: 24px; right: 24px; font-size: 1.6rem; color: var(--muted); background: none; border: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}