/* ============================================================
   MuskWorth — site styles
   Zero-build, single stylesheet. Dark "deep space + glass" theme.
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0fb;
  --muted: #8d9ab3;
  --dim: #5f6c84;

  --green: #2bff88;
  --green-deep: #0fbe63;
  --green-glow: rgba(43, 255, 136, 0.28);
  --cyan: #5cc8ff;
  --violet: #b98cff;
  --amber: #ffcf5c;
  --red: #ff5d6c;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient light — two aurora pools over a starfield canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 78% -8%, rgba(92, 200, 255, 0.16), transparent 62%),
    radial-gradient(760px 560px at 12% 8%, rgba(43, 255, 136, 0.12), transparent 60%),
    radial-gradient(1100px 800px at 50% 108%, rgba(185, 140, 255, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* faint grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--green);
  color: #04120a;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────── header ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand .mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.brand .mark svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(43, 255, 136, 0.35));
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  text-transform: uppercase;
}
.wordmark em {
  font-style: normal;
  color: #aab6c9;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: transparent;
}
.nav a.active {
  color: var(--text);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.netpill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.netpill.bad {
  color: var(--red);
  border-color: rgba(255, 93, 108, 0.4);
  background: rgba(255, 93, 108, 0.08);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ───────────────────────── buttons ───────────────────────── */

.btn {
  --btn-bg: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), border-color 0.2s, box-shadow 0.25s, background 0.2s, opacity 0.2s;
}
.btn:hover {
  border-color: rgba(43, 255, 136, 0.5);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-primary {
  border: none;
  color: #04140a;
  background: var(--green);
  box-shadow: 0 8px 28px -10px var(--green-glow);
}
.btn-primary:hover {
  box-shadow: 0 12px 38px -8px rgba(43, 255, 136, 0.5);
  border-color: transparent;
}
.btn-primary:disabled {
  box-shadow: none;
  background: linear-gradient(120deg, #2bff88, #5cc8ff);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ───────────────────────── hero ───────────────────────── */

.hero {
  position: relative;
  min-height: min(86vh, 880px);
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}


.orb {
  position: absolute;
  top: 40%;
  right: max(24px, calc((100% - var(--shell)) / 2));
  width: 265px;
  height: 265px;
  transform: translateY(-50%);
  pointer-events: none;
}
.gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* start the arc at 12 o'clock */
  overflow: visible;
}
.gauge circle {
  fill: none;
  stroke-width: 10;
}
.gauge-track {
  stroke: rgba(255, 255, 255, 0.1);
}
.gauge-fill {
  stroke: url(#gaugeGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.orb .core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(43, 255, 136, 0.14), transparent 70%);
  filter: blur(10px);
  animation: breathe 6.5s ease-in-out infinite;
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}
.gauge-center b {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.gauge-center small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7b3c7;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.hero-inner {
  position: relative;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: pulse 2.4s ease-out infinite;
}
.live-dot.stale {
  background: var(--amber);
  animation: none;
}
.live-dot.off {
  background: var(--dim);
  animation: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 255, 136, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(43, 255, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(43, 255, 136, 0);
  }
}

.networth {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 8%, #b9ffe0 52%, #58d7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 70px rgba(43, 255, 136, 0.16);
  font-variant-numeric: tabular-nums;
}
/* Preview mode swaps the money figure for a phrase — money-scale type would
   blow the layout at 12 characters, so it gets its own, smaller clamp. */
.networth.preview {
  font-size: clamp(1.7rem, 6.5vw, 4.25rem);
  letter-spacing: -0.03em;
}

.subline {
  margin-top: 14px;
  color: #b6c2d6;
  font-size: 16px;
  min-height: 22px;
}
.subline .up {
  color: var(--green);
}
.subline .down {
  color: var(--red);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.notice {
  margin: 28px auto 0;
  max-width: 620px;
  text-align: left;
  border: 1px solid rgba(255, 207, 92, 0.3);
  background: rgba(255, 207, 92, 0.06);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: #f4e6c2;
}
.notice b {
  color: var(--amber);
}
.notice pre {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 12.5px;
  color: var(--green);
}

/* vitals */
.vitals {
  list-style: none;
  margin: clamp(34px, 5vw, 54px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}
.vital {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.vital::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 255, 136, 0.55), transparent);
}
.vital:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.vital .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #97a3b8;
}
.vital .big {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.vital .big.burn {
  color: var(--green);
}
.vital .sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #a7b3c7;
}

/* ───────────────────────── ticker ───────────────────────── */

.ticker {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.tick {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #b3bfd4;
  white-space: nowrap;
}
.tick i {
  font-style: normal;
  color: var(--text);
}
.sep {
  color: rgba(43, 255, 136, 0.5);
  font-size: 9px;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ───────────────────────── sections ───────────────────────── */

.section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
}

.row-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.dash-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ───────────────────────── steps ───────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.008));
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #7f8ca5;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 14px 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(43, 255, 136, 0.22);
  background: rgba(43, 255, 136, 0.08);
  color: var(--green);
}
.step-icon svg {
  width: 21px;
  height: 21px;
}
.step h3 {
  font-size: 17.5px;
  margin-bottom: 10px;
}
.step p {
  color: var(--muted);
  font-size: 15px;
}
.step code,
.lede code,
.rails code {
  font-size: 0.9em;
  color: #8fd4ff;
  background: rgba(92, 200, 255, 0.05);
  border: 1px solid rgba(92, 200, 255, 0.1);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ───────────────────────── rule / oracle ───────────────────────── */

.rule-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.rule-copy h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 12px 0 18px;
}
.rule-copy p {
  color: var(--muted);
  margin-top: 14px;
}
.rule-copy b {
  color: var(--text);
}

.formula {
  margin: 24px 0 6px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(43, 255, 136, 0.05), rgba(0, 0, 0, 0.25));
  overflow-x: auto;
}
.formula pre {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--text);
  white-space: nowrap;
}
.formula .fn {
  color: var(--green);
}
.formula .op {
  color: var(--red);
}

.rails {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rails li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14.5px;
}
.rails li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  transform: rotate(45deg);
}
.rails b {
  color: var(--text);
}

/* ───────────────────────── cards ───────────────────────── */

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  padding: 24px;
  backdrop-filter: blur(8px);
}
.card h3 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.oracle-card {
  position: sticky;
  top: 96px;
}

.compbar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 20px;
  background: rgba(255, 255, 255, 0.05);
}
.compbar > span {
  height: 100%;
  min-width: 3px;
  transition: width 0.6s var(--ease);
}
.compbar .bar-pending {
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.method-rows {
  display: grid;
  gap: 2px;
}
.method-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.method-row:last-child {
  border-bottom: none;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.method-row .name a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--dim);
}
.method-row .name a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.method-row .name small {
  display: block;
  color: #9aa7bf;
  font-size: 12px;
  line-height: 1.35;
}
.method-row .val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.method-row.total {
  border-bottom: none;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
}
.method-row.total .val {
  color: var(--green);
}
.method-foot {
  color: #93a0b8;
  font-size: 12px;
  margin-top: 16px;
  line-height: 1.55;
}

/* ───────────────────────── dashboard ───────────────────────── */

.status {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.status.err {
  color: var(--red);
}
.status.ok {
  color: var(--green);
}

.chart-card {
  margin-bottom: 18px;
}
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chart-head h3 span {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0;
}
#chart {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}
.chart-empty {
  color: var(--muted);
  font-size: 13.5px;
  padding: 34px 0;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.addr {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #a7b3c7;
  margin-top: 18px;
  word-break: break-all;
}

/* ───────────────────────── trust ───────────────────────── */

.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tri p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.ok {
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}
.dot.warn {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 207, 92, 0.4);
}
.dot.info {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(92, 200, 255, 0.4);
}

/* ───────────────────────── faq ───────────────────────── */

.faq-wrap {
  max-width: 820px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
details:first-of-type {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--green);
  transition: transform 0.3s var(--ease);
}
details[open] summary::after {
  content: "−";
}
summary:hover {
  color: var(--green);
}
details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 68ch;
}

/* ───────────────────────── footer ───────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 64px;
  background: rgba(0, 0, 0, 0.35);
}
.disclaimer {
  color: #b0bccf;
  font-size: 14px;
  max-width: 900px;
}
.disclaimer strong {
  color: var(--text);
}
.footer-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  color: #a9b5c9;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ───────────────────────── motion ───────────────────────── */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Printing (or any no-scroll capture) shouldn't show a page of invisible sections. */
@media print {
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  #stars,
  .grain,
  .aurora,
  .orb,
  .scroll-progress {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .rule-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .oracle-card {
    position: static;
  }
  .tri {
    grid-template-columns: 1fr;
  }
  .vitals {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 18px;
    background: rgba(5, 7, 13, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }
  .nav a.active::after {
    display: none;
  }
  .nav-toggle {
    display: block;
    order: 3;
  }
  .header-actions {
    margin-left: auto;
  }
  .netpill {
    display: none;
  }
  .row-between {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-actions .btn {
    flex: 1;
  }
}
/* The gauge needs a wide hero to sit beside the numeral; below this it just crowds it. */
@media (max-width: 1080px) {
  .orb {
    display: none;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 0 18px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .vitals {
    grid-template-columns: 1fr;
  }

  .cta-row .btn {
    width: 100%;
  }
}

/* ============================================================
   premium polish — depth, motion, material
   ============================================================ */

::selection {
  background: rgba(43, 255, 136, 0.3);
  color: #fff;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid transparent;
  border-radius: 99px;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
  background-clip: content-box;
}

.grain {
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(5) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-2%, 1%, 0);
  }
  40% {
    transform: translate3d(1%, -2%, 0);
  }
  60% {
    transform: translate3d(-1%, 2%, 0);
  }
  80% {
    transform: translate3d(2%, 1%, 0);
  }
}

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan) 55%, var(--violet));
  box-shadow: 0 0 14px var(--green-glow);
}

/* drifting aurora behind the hero */
.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 760px;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.38;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.aurora .a1 {
  width: 540px;
  height: 540px;
  left: 4%;
  top: 10%;
  background: radial-gradient(circle, rgba(43, 255, 136, 0.5), transparent 66%);
  animation: drift1 19s ease-in-out infinite;
}
.aurora .a2 {
  width: 480px;
  height: 480px;
  right: 8%;
  top: 2%;
  background: radial-gradient(circle, rgba(92, 200, 255, 0.45), transparent 66%);
  animation: drift2 24s ease-in-out infinite;
}
.aurora .a3 {
  width: 400px;
  height: 400px;
  left: 40%;
  top: 34%;
  background: radial-gradient(circle, rgba(185, 140, 255, 0.4), transparent 66%);
  animation: drift3 29s ease-in-out infinite;
}
@keyframes drift1 {
  50% {
    transform: translate3d(70px, 50px, 0) scale(1.14);
  }
}
@keyframes drift2 {
  50% {
    transform: translate3d(-60px, 60px, 0) scale(1.1);
  }
}
@keyframes drift3 {
  50% {
    transform: translate3d(40px, -50px, 0) scale(1.16);
  }
}


/* hero entrance — staggered rise */
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero .eyebrow {
  animation: rise 0.7s var(--ease) 0.05s both;
}
.hero .networth {
  animation: rise 0.95s var(--ease) 0.12s both;
}
.hero .subline {
  animation: rise 0.8s var(--ease) 0.3s both;
}
.hero .cta-row {
  animation: rise 0.8s var(--ease) 0.38s both;
}
.hero .notice {
  animation: rise 0.8s var(--ease) 0.46s both;
}
.hero .vitals {
  animation: rise 0.9s var(--ease) 0.5s both;
}

/* header condenses once you start scrolling */
.header-inner {
  transition: height 0.3s var(--ease);
}
.site-header.scrolled .header-inner {
  height: 60px;
}

/* cards: inset highlight + depth */
.card,
.vital,
.step {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* cursor-tracked spotlight (fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .card,
  .vital,
  .step {
    position: relative;
  }
  .card::before,
  .vital::before,
  .step::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    background: radial-gradient(
      340px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.075),
      transparent 62%
    );
  }
  .card:hover::before,
  .vital:hover::before,
  .step:hover::before {
    opacity: 1;
  }
}

.vital:hover {
  border-color: rgba(43, 255, 136, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 26px 50px -34px rgba(43, 255, 136, 0.45);
}
.vital .big.burn {
  text-shadow: 0 0 26px rgba(43, 255, 136, 0.3);
}

/* step icons lift as you pass over */
.step-icon {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.step:hover .step-icon {
  transform: translateY(-3px) scale(1.07);
  background: rgba(43, 255, 136, 0.14);
  box-shadow: 0 0 28px -4px rgba(43, 255, 136, 0.45);
}

/* stagger the step grid on reveal */
.step.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.step.reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.step.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* primary button: living gradient + shine sweep */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: #04140a;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, 0.55) 50%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
@keyframes btnShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* chart: draw the burn line when it scrolls in */
#chart.animate path[stroke] {
  animation: draw 1.35s var(--ease) both;
}
@keyframes draw {
  from {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
  }
  to {
    stroke-dasharray: var(--len);
    stroke-dashoffset: 0;
  }
}

/* faq content eases in */
details[open] > p {
  animation: faqIn 0.4s var(--ease) both;
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
summary::after {
  transition: transform 0.35s var(--ease), color 0.2s;
}

/* composition bar label */
.comp-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d9ab3;
  margin-top: 16px;
}

/* a soft bloom behind the hero numeral so the type sits in space, not on black */
.hero-inner {
  position: relative;
}
.hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(940px, 92vw);
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(43, 255, 136, 0.15), transparent 64%);
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
}

.formula sub {
  font-size: 0.68em;
  color: var(--muted);
}

/* cinematic vignette — pulls the eye to the centre and darkens the starfield edges */
.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 62% at 50% 42%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

@media print {
  .vignette {
    display: none !important;
  }
}
