:root {
  color-scheme: dark;
  --bg: #090d12;
  --bg-soft: #0d131b;
  --surface: #111924;
  --surface-raised: #16212e;
  --text: #f7f8fa;
  --muted: #9aa9b8;
  --muted-bright: #c1cbd5;
  --line: rgba(196, 215, 232, 0.14);
  --line-strong: rgba(196, 215, 232, 0.25);
  --gold: #ffb454;
  --gold-bright: #ffd083;
  --gold-dark: #9f641f;
  --cyan: #65d8ff;
  --success: #6ee7a2;
  --danger-soft: #ffc38d;
  --shell: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 77% 4%, rgba(255, 180, 84, 0.08), transparent 30rem),
    radial-gradient(circle at 22% 28%, rgba(101, 216, 255, 0.05), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding: 112px 0; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(9, 13, 18, 0.82);
  backdrop-filter: blur(20px);
}

.nav-shell { display: flex; min-height: 76px; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; color: var(--muted-bright); font-size: 15px; }
.nav-links a, .footer-links a { transition: color 160ms ease; }
.nav-links a:hover, .footer-links a:hover { color: var(--gold-bright); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-small { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.button-primary { background: var(--gold); color: #171006; box-shadow: 0 12px 30px rgba(255, 180, 84, 0.18); }
.button-primary:hover { background: var(--gold-bright); }
.button-secondary, .button-ghost { border-color: var(--line-strong); background: rgba(255,255,255,0.035); color: var(--text); }
.button-secondary:hover, .button-ghost:hover { border-color: rgba(255, 208, 131, 0.5); background: rgba(255, 180, 84, 0.08); }

.hero { position: relative; min-height: 860px; padding: 110px 0 32px; overflow: clip; isolation: isolate; }
.hero::after { position: absolute; z-index: -1; right: 0; bottom: 112px; left: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); content: ""; }
.hero-glow { position: absolute; z-index: -2; top: -280px; left: 55%; width: 780px; height: 780px; border: 1px solid rgba(255, 180, 84, 0.1); border-radius: 50%; background: radial-gradient(circle, rgba(255,180,84,.12), rgba(255,180,84,.02) 42%, transparent 68%); filter: blur(1px); }
.hero-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); gap: 64px; }
.hero-copy { max-width: 680px; }
.eyebrow, .kicker { color: var(--gold-bright); font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(110,231,162,.2); border-radius: 999px; background: rgba(110,231,162,.06); color: #9df1bd; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(110,231,162,.75); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 24px 0; font-size: clamp(52px, 6vw, 86px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: var(--gold-bright); }
.hero-lead { max-width: 650px; margin-bottom: 32px; color: var(--muted-bright); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.compatibility { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.protocol-orbit { position: relative; min-height: 540px; }
.ore-core { position: absolute; z-index: 3; top: 50%; left: 50%; width: 260px; transform: translate(-50%, -50%); }
.ore-core::before { position: absolute; z-index: -1; inset: 14%; border-radius: 50%; background: rgba(255,180,84,.2); box-shadow: 0 0 100px rgba(255,180,84,.38); content: ""; filter: blur(28px); }
.ore-core img { width: 100%; filter: drop-shadow(0 24px 36px rgba(0,0,0,.55)); }
.orbit-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255,208,131,.19); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); }
.orbit-ring-one { width: 440px; height: 330px; }
.orbit-ring-two { width: 520px; height: 410px; border-style: dashed; border-color: rgba(101,216,255,.12); transform: translate(-50%, -50%) rotate(18deg); }
.orbit-card { position: absolute; z-index: 4; display: grid; min-width: 190px; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(17,25,36,.88); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.orbit-card span { color: var(--gold); font-family: "JetBrains Mono", monospace; font-size: 11px; }
.orbit-card strong { font-size: 15px; }
.orbit-card small { color: var(--muted); font-size: 12px; }
.orbit-card-usage { top: 40px; left: 2%; }
.orbit-card-submit { top: 180px; right: -4%; }
.orbit-card-mine { bottom: 42px; left: 4%; }

.proof-strip { display: grid; margin-top: 76px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip div { display: grid; gap: 2px; padding: 24px 28px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { font-family: "JetBrains Mono", monospace; font-size: 24px; }
.proof-strip span { color: var(--muted); font-size: 13px; }

.section-heading { display: grid; align-items: end; margin-bottom: 48px; grid-template-columns: 1.15fr .85fr; gap: 60px; }
.kicker { margin-bottom: 14px; }
h2 { margin-bottom: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.052em; }
.section-heading > p { max-width: 520px; margin-bottom: 5px; color: var(--muted-bright); font-size: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { position: relative; min-height: 310px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(145deg, rgba(22,33,46,.78), rgba(13,19,27,.82)); transition: transform 200ms ease, border-color 200ms ease; }
.step-card:hover { transform: translateY(-5px); border-color: rgba(255,180,84,.3); }
.step-number { position: absolute; top: 22px; right: 24px; color: rgba(255,255,255,.26); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.icon-box { display: grid; width: 48px; height: 48px; margin-bottom: 66px; place-items: center; border: 1px solid rgba(255,180,84,.25); border-radius: 12px; background: rgba(255,180,84,.07); color: var(--gold-bright); }
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.step-card h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.025em; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; }
code { font-family: "JetBrains Mono", monospace; font-size: .88em; }

.economics-section { position: relative; background: rgba(255,255,255,.018); }
.economics-grid { display: grid; align-items: center; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.economics-copy p:not(.kicker) { max-width: 500px; margin: 24px 0; color: var(--muted-bright); font-size: 18px; }
.text-link { display: inline-flex; gap: 8px; color: var(--gold-bright); font-weight: 600; }
.text-link:hover span { transform: translateX(4px); }
.text-link span { transition: transform 160ms ease; }
.supply-card { padding: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(22,33,46,.95), rgba(9,13,18,.85)); box-shadow: var(--shadow); }
.supply-topline, .halving-labels { display: flex; justify-content: space-between; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 12px; text-transform: uppercase; }
.supply-number { display: block; margin: 12px 0 34px; color: var(--gold-bright); font-family: "JetBrains Mono", monospace; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.06em; }
.halving-track, .progress-track { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); }
.halving-fill { width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), rgba(255,180,84,.15)); }
.halving-marker { position: absolute; top: 50%; width: 12px; height: 12px; border: 3px solid var(--surface); border-radius: 50%; background: var(--gold-bright); transform: translate(-50%, -50%); }
.marker-one { left: 25%; } .marker-two { left: 50%; } .marker-three { left: 75%; }
.halving-labels { margin-top: 12px; color: var(--muted-bright); font-size: 10px; }
.economics-stats { display: grid; margin-top: 34px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.economics-stats div { display: grid; gap: 8px; padding: 22px 18px 0 0; }
.economics-stats span { color: var(--muted); font-size: 12px; }
.economics-stats strong { font-size: 15px; }

.app-grid { display: grid; align-items: center; grid-template-columns: 1.08fr .92fr; gap: 96px; }
.app-preview { position: relative; padding: 28px 28px 34px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(101,216,255,.09), rgba(255,180,84,.04)); box-shadow: var(--shadow); }
.menu-bar-demo { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(224,245,252,.88); color: #17202a; }
.menu-bar-demo img { width: 25px; height: 25px; }
.menu-bar-demo span { font-weight: 700; }
.menu-bar-demo strong { margin-left: auto; font-family: "JetBrains Mono", monospace; }
.app-panel { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(224,245,252,.95); color: #17202a; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.app-title-row { display: flex; align-items: center; gap: 14px; }
.app-title-row img { width: 54px; height: 54px; }
.app-title-row div { display: grid; }
.app-title-row strong { font-size: 24px; }
.app-title-row span, .panel-meta { color: #66727b; }
.panel-rule { height: 1px; margin: 20px 0 14px; background: rgba(23,32,42,.15); }
.panel-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.panel-value { display: block; margin: 4px 0; font-size: 30px; letter-spacing: -.035em; }
.panel-meta { display: block; font-size: 13px; }
.epoch-row, .wallet-row { display: flex; justify-content: space-between; gap: 20px; margin: 22px 0 8px; font-size: 12px; }
.epoch-row span:last-child { color: #26744a; font-weight: 700; }
.progress-track { background: rgba(23,32,42,.12); }
.progress-track span { display: block; width: 58%; height: 100%; border-radius: inherit; background: #1685ee; }
.wallet-row { margin-bottom: 0; border-top: 1px solid rgba(23,32,42,.15); padding-top: 18px; color: #66727b; }
.wallet-row strong { color: #17202a; }
.app-copy > p:not(.kicker) { margin: 24px 0; color: var(--muted-bright); font-size: 18px; }
.feature-list { display: grid; gap: 14px; margin: 28px 0 34px; padding: 0; list-style: none; color: var(--muted-bright); }
.feature-list li { display: flex; align-items: center; gap: 12px; }
.feature-list svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--success); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.contract-card { display: grid; align-items: center; padding: 50px; grid-template-columns: .85fr 1.15fr; gap: 60px; border: 1px solid rgba(255,180,84,.25); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255,180,84,.08), rgba(101,216,255,.035)); }
.contract-card h2 { font-size: clamp(34px, 4vw, 52px); }
.contract-card p:not(.kicker) { margin: 18px 0 0; color: var(--muted); }
.contract-address { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9,13,18,.58); }
.contract-address > span { color: var(--muted); font-size: 12px; }
.contract-address code { display: block; margin: 12px 0 20px; overflow-wrap: anywhere; color: var(--gold-bright); font-size: 15px; }
.contract-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.security-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.security-copy > p { color: var(--muted-bright); font-size: 19px; }
.warning-card { display: flex; gap: 16px; margin: 30px 0; padding: 22px; border: 1px solid rgba(255,195,141,.24); border-radius: 15px; background: rgba(255,195,141,.06); }
.warning-card svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--danger-soft); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.warning-card div { display: grid; gap: 4px; }
.warning-card strong { color: var(--danger-soft); }
.warning-card span { color: var(--muted-bright); font-size: 14px; }
.security-links { display: flex; flex-wrap: wrap; gap: 24px; }
.security-links a { color: var(--gold-bright); font-weight: 600; }

.docs-section { padding-top: 40px; }
.docs-card { display: grid; padding: 50px; grid-template-columns: .75fr 1.25fr; gap: 70px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.docs-card > div > p:not(.kicker) { margin: 18px 0 0; color: var(--muted); }
.docs-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.docs-links a { display: grid; min-height: 110px; align-content: center; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); transition: border-color 180ms ease, background 180ms ease; }
.docs-links a:hover { border-color: rgba(255,180,84,.35); background: rgba(255,180,84,.05); }
.docs-links span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.docs-links strong { font-size: 17px; }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand div { display: grid; }
.footer-brand span, .site-footer p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; color: var(--muted-bright); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .protocol-orbit { min-height: 500px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .economics-grid, .app-grid { gap: 54px; }
  .contract-card { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 780px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding: 78px 0; }
  .nav-links { display: none; }
  .nav-shell { min-height: 68px; }
  .nav-shell > .button { margin-left: auto; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero-grid { gap: 28px; }
  h1 { font-size: clamp(48px, 14vw, 70px); }
  .hero-lead { font-size: 18px; }
  .protocol-orbit { min-height: 470px; transform: scale(.92); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .economics-grid, .app-grid, .security-grid, .docs-card { grid-template-columns: 1fr; gap: 42px; }
  .section-heading { align-items: start; }
  .app-preview { order: 2; }
  .contract-card, .docs-card { padding: 32px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .button-small { font-size: 13px; }
  .hero-actions .button { width: 100%; }
  .protocol-orbit { min-height: 390px; margin: 0 -44px; transform: scale(.78); }
  .orbit-card-submit { right: -1%; }
  .proof-strip { margin-top: 20px; }
  .proof-strip div { padding: 18px; }
  .steps-grid, .economics-stats, .docs-links { grid-template-columns: 1fr; }
  .step-card { min-height: 280px; }
  .icon-box { margin-bottom: 46px; }
  .supply-card, .app-preview, .app-panel { padding: 22px; }
  .supply-number { font-size: 42px; }
  .economics-stats div { padding-bottom: 12px; }
  .app-title-row strong { font-size: 20px; }
  .panel-value { font-size: 24px; }
  .epoch-row, .wallet-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  .contract-card, .docs-card { padding: 24px; }
  .contract-address { padding: 18px; }
  .contract-actions .button { width: 100%; }
}

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