:root {
  --bg: #0a0906;
  --bg-2: #110f0b;
  --panel: #15120d;
  --line: rgba(214, 180, 112, 0.14);
  --line-strong: rgba(214, 180, 112, 0.32);
  --gold: #c9a45c;
  --gold-2: #e6cd94;
  --gold-3: #8c6f36;
  --ivory: #f2eadb;
  --muted: #9a8f7b;
  --dim: #5f5647;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
em { font-style: italic; color: var(--gold-2); }

#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .55;
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer, .nav { position: relative; z-index: 2; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 9, 6, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-2);
  font-family: var(--serif); font-size: 22px; line-height: 1;
  border-radius: 50%;
}
.brand-word { font-weight: 500; letter-spacing: .38em; font-size: 13px; }
.nav-links { display: flex; gap: 36px; font-size: 13px; color: var(--muted); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--gold); transition: right .4s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.icon-link {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted);
  transition: color .3s, border-color .3s;
}
.icon-link:hover { color: var(--gold-2); border-color: var(--gold); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 14px/1 var(--sans); letter-spacing: .02em;
  padding: 16px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #17120a;
  box-shadow: 0 0 0 1px rgba(230, 205, 148, .4) inset, 0 10px 40px -12px rgba(201, 164, 92, .55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 240, 200, .6) inset, 0 18px 50px -10px rgba(201, 164, 92, .7); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line-strong); font-family: var(--mono); font-size: 13px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn-lg { padding: 20px 34px; font-size: 16px; }
.arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* HERO */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: 140px var(--pad) 80px;
  max-width: 1480px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.eyebrow .sep { color: var(--dim); }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7fd49a;
  box-shadow: 0 0 0 0 rgba(127, 212, 154, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 212, 154, .55); }
  70% { box-shadow: 0 0 0 10px rgba(127, 212, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 212, 154, 0); }
}
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 10.5vw, 168px); line-height: .9; letter-spacing: -.02em;
}
.lede { max-width: 520px; margin-top: 32px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: 64px; border-top: 1px solid var(--line);
}
.hero-stats div { padding: 20px 40px 0 0; margin-right: 40px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; margin-right: 0; }
.hero-stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hero-stats dd { margin-top: 6px; font-size: 17px; }

/* PORTRAIT */
.portrait { position: relative; padding: 18px; justify-self: end; width: 100%; max-width: 560px; }
.portrait-frame {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3a2f1b, #120f0a 70%);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(201, 164, 92, .35);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 1.2s var(--ease);
  filter: contrast(1.04) saturate(.95);
}
.portrait:hover .portrait-frame img { transform: scale(1.1); }
.portrait-fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  font-family: var(--serif); font-size: clamp(60px, 9vw, 120px); color: var(--gold-2);
}
.portrait.no-img .portrait-fallback { display: grid; }
.portrait.no-img img { display: none; }
.portrait-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 235, 190, .16) 48%, transparent 60%);
  background-size: 250% 100%; animation: sheen 7s var(--ease) infinite;
  mix-blend-mode: screen;
}
@keyframes sheen { 0%, 30% { background-position: 130% 0; } 70%, 100% { background-position: -130% 0; } }
.portrait figcaption {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-size: 11px; letter-spacing: .16em; color: var(--dim);
}
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; }
.corner.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 30px; left: 0; border-width: 0 0 1px 1px; }
.corner.br { bottom: 30px; right: 0; border-width: 0 1px 1px 0; }

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(17, 15, 11, .7); overflow: hidden; padding: 22px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 44px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--gold); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { max-width: 1480px; margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--pad) 0; }
.section-head {
  display: flex; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.index { color: var(--gold); font-size: 13px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.statement {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 76px); line-height: 1.05; letter-spacing: -.01em;
  max-width: 1200px;
}
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.pillar {
  padding: 40px 36px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; transition: background .5s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--gold);
  transition: width .7s var(--ease);
}
.pillar:hover { background: rgba(201, 164, 92, .04); }
.pillar:hover::before { width: 100%; }
.pillar-n { color: var(--gold); font-size: 13px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 64px 0 14px; }
.pillar p { color: var(--muted); font-weight: 300; }

/* PIPELINE */
.pipeline {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: clamp(64px, 8vw, 110px); position: relative;
}
.pipeline::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 87px; height: 1px;
  background: linear-gradient(90deg, var(--line), var(--gold) 50%, var(--line));
  background-size: 200% 100%; animation: flow 4s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }
.node {
  position: relative; padding: 28px 26px 34px;
  background: linear-gradient(180deg, rgba(21, 18, 13, .95), rgba(14, 12, 9, .8));
  border: 1px solid var(--line); border-radius: 4px; transition: border-color .4s, transform .5s var(--ease);
}
.node:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.node-n { font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.node-icon {
  width: 52px; height: 52px; margin: 18px 0 30px; display: grid; place-items: center; position: relative; z-index: 1;
  border: 1px solid var(--gold); border-radius: 50%; background: var(--bg);
}
.node-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin-bottom: 12px; }
.node p { color: var(--muted); font-weight: 300; font-size: 15px; }
.node-final { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(201, 164, 92, .12), rgba(14, 12, 9, .85)); }
.node-final .node-icon { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.node-final .node-icon svg { stroke: #17120a; }
.node-final .node-n { color: var(--gold); }

/* METER */
.meter-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.meter {
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-strong); border-radius: 4px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(201, 164, 92, .14), transparent 55%), var(--panel);
  display: flex; flex-direction: column;
}
.meter-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meter-usd {
  font-family: var(--serif); font-size: clamp(64px, 10vw, 150px); line-height: 1; margin-top: 36px;
  background: linear-gradient(180deg, var(--ivory) 25%, var(--gold) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums;
}
.meter-eth { margin-top: 12px; color: var(--gold-2); font-size: 15px; }
.meter-foot {
  margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .08em; color: var(--dim);
}
.meter-foot a { color: var(--gold); }
.meter-foot a:hover { color: var(--gold-2); }
.ledger { border: 1px solid var(--line); border-radius: 4px; background: rgba(17, 15, 11, .7); padding: 8px 28px; }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row span { color: var(--muted); font-weight: 300; font-size: 14px; }
.ledger-row strong { font-weight: 500; text-align: right; }
.ledger-row a { color: var(--gold-2); font-size: 13px; }

/* RECEIPTS */
.receipts { border: 1px solid var(--line); border-radius: 4px; background: rgba(17, 15, 11, .7); }
.receipts-head, .receipt { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 16px; padding: 18px 28px; }
.receipts-head { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.receipt { border-bottom: 1px solid var(--line); align-items: center; }
.receipt:last-child { border-bottom: 0; }
.receipt strong { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--gold-2); }
.receipt a { font-family: var(--mono); font-size: 13px; color: var(--ivory); border-bottom: 1px solid var(--line-strong); justify-self: start; }
.receipt a:hover { color: var(--gold-2); border-color: var(--gold); }
.receipt .muted { color: var(--dim); font-size: 13px; }
.receipts-empty { padding: 48px 28px; text-align: center; color: var(--muted); font-weight: 300; }

/* TOKEN */
.token-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.token-visual { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.ring { width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring-track { stroke: var(--line); stroke-width: 1; }
.ring-fill {
  stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 867; stroke-dashoffset: 867; transition: stroke-dashoffset 2.2s var(--ease);
  filter: drop-shadow(0 0 10px rgba(201, 164, 92, .6));
}
.ring-fill.on { stroke-dashoffset: 0; }
.ring-inner { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-family: var(--serif); font-size: clamp(64px, 8vw, 104px); line-height: 1; }
.ring-cap { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.big-number {
  font-family: var(--serif); font-size: clamp(52px, 8vw, 128px); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--ivory) 20%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.big-cap { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 14px 0 48px; }
.specs { list-style: none; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs span { color: var(--muted); font-weight: 300; }
.specs strong { font-weight: 500; }

/* ROADMAP */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--line) 70%);
}
.phase { position: relative; padding-top: 44px; }
.phase::before {
  content: ""; position: absolute; top: 3px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold);
}
.phase:first-child::before { background: var(--gold); box-shadow: 0 0 18px rgba(201, 164, 92, .8); }
.phase-tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.phase h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; margin: 14px 0 26px; }
.phase ul { list-style: none; }
.phase ul li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-weight: 300; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 32px 28px 36px; background: linear-gradient(180deg, rgba(21, 18, 13, .9), rgba(14, 12, 9, .7));
  border: 1px solid var(--line); border-radius: 4px; transition: border-color .4s, transform .5s var(--ease);
}
.step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.step-n { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.step h4 { font-weight: 500; font-size: 18px; margin: 48px 0 10px; }
.step p { color: var(--muted); font-weight: 300; font-size: 15px; }
.contract {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: linear-gradient(90deg, rgba(201, 164, 92, .08), transparent 60%);
}
.contract-info { display: grid; gap: 10px; min-width: 0; }
.contract code { font-family: var(--mono); font-size: clamp(13px, 1.6vw, 20px); color: var(--gold-2); word-break: break-all; }
.contract-actions { display: flex; gap: 10px; }

/* CLOSING */
.closing {
  text-align: center; padding: clamp(140px, 20vw, 260px) var(--pad) clamp(120px, 16vw, 200px);
  display: grid; justify-items: center;
}
.closing .eyebrow { margin-bottom: 20px; }
.closing-title { font-size: clamp(80px, 16vw, 260px); margin-bottom: 56px; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 56px var(--pad) 40px; max-width: 1480px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--gold-2); }
.footer-links a.is-off { opacity: .35; pointer-events: none; }
.disclaimer { margin-top: 44px; max-width: 900px; font-size: 13px; color: var(--dim); font-weight: 300; line-height: 1.7; }
.copy { margin-top: 28px; font-size: 11px; letter-spacing: .14em; color: var(--dim); }

/* TOAST */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--gold-2); color: #17120a; font: 500 13px/1 var(--mono);
  padding: 14px 22px; border-radius: 999px; transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .portrait { justify-self: center; max-width: 520px; }
  .pillars, .timeline { grid-template-columns: 1fr; }
  .timeline { gap: 48px; }
  .timeline::before { display: none; }
  .token-grid { grid-template-columns: 1fr; }
  .steps, .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
  .meter-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .brand-word { display: none; }
  .hero { padding: 104px 16px 56px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { border-right: 0; margin-right: 0; padding-right: 0; display: flex; justify-content: space-between; align-items: baseline; }
  .hero-stats dd { margin-top: 0; }
  .hero-actions .btn { width: 100%; }
  .section { padding-left: 16px; padding-right: 16px; }
  .pillar { padding: 32px 22px; }
  .pillar h3 { margin-top: 36px; }
  .steps, .pipeline { grid-template-columns: 1fr; }
  .ledger { padding: 4px 18px; }
  .receipts-head { display: none; }
  .receipt { grid-template-columns: 1fr 1fr; padding: 18px; }
  .contract { padding: 22px 18px; }
  .contract-actions, .contract-actions .btn { width: 100%; flex: 1; }
  .footer { padding: 48px 16px 32px; }
  .footer-links { gap: 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
