:root {
  --bg: #050504;
  --bg2: #0c0b08;
  --panel: #12100b;
  --panel2: #18150e;
  --line: #2e2716;
  --line2: #3d3420;
  --gold: #f4b728;
  --gold2: #d4a017;
  --gold3: #ffe08a;
  --gold-dim: #6b5420;
  --text: #efe2b8;
  --muted: #8a7a4a;
  --muted2: #5c4f2e;
  --green: #3d9a55;
  --danger: #c44;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --sans: "Sora", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); min-height: 100%; }
body { overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 70% 0%, rgba(244,183,40,.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(244,183,40,.04), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.18) 3px, rgba(0,0,0,.18) 4px);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5; mix-blend-mode: overlay;
}
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.ca-strip {
  background: #080706; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 7px 0; text-align: center; letter-spacing: .05em;
}
.ca-strip strong { color: var(--gold); font-weight: 600; }
.ca-strip a { color: var(--gold2); }

.topbar {
  border-bottom: 1px solid var(--line); background: rgba(5,5,4,.92); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.mark img { width: 34px; height: 34px; image-rendering: pixelated; }
.mark-text { font-family: var(--mono); font-weight: 700; letter-spacing: .1em; font-size: 14px; }
.mark-text em { color: var(--gold); font-style: normal; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-size: 12px; padding: 6px 10px; border-radius: 3px;
  text-decoration: none; font-family: var(--mono);
}
.nav a:hover, .nav a.active { color: var(--gold); background: rgba(244,183,40,.07); text-decoration: none; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); color: var(--gold);
  font-family: var(--mono); padding: 6px 10px; cursor: pointer;
}
.btn {
  font-family: var(--mono); font-size: 12px; border: 1px solid var(--gold-dim);
  background: transparent; color: var(--gold); padding: 8px 14px; cursor: pointer; border-radius: 2px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2;
}
.btn:hover { background: rgba(244,183,40,.1); text-decoration: none; }
.btn-primary { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700; }
.btn-primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { border-color: var(--line); color: var(--muted); }

/* Hero */
.hero { padding: 40px 0 20px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(28px, 4.6vw, 46px); line-height: 1.12; margin: 0 0 14px;
  font-family: var(--mono); font-weight: 700; letter-spacing: -.02em;
}
.hero-copy h1 em { color: var(--gold); font-style: normal; text-shadow: 0 0 40px rgba(244,183,40,.25); }
.hero-copy .lead { color: var(--muted); max-width: 520px; font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.rig-stage {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 18px; overflow: hidden; min-height: 280px;
  box-shadow: inset 0 0 60px rgba(244,183,40,.04);
}
.rig-stage::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(244,183,40,.03));
  pointer-events: none;
}
.rig-svg { width: 100%; height: auto; display: block; }
.rig-hash {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--gold2);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.rig-hash .pulse { color: var(--gold); animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes hashScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.hash-tape {
  font-family: var(--mono); font-size: 10px; color: var(--gold-dim); line-height: 1.5;
  height: 48px; overflow: hidden; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px;
}
.hash-tape-inner { animation: hashScroll 8s linear infinite; }

.epoch-bar {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin: 8px 0 22px;
}
.countdown {
  font-family: var(--mono); font-size: clamp(26px, 4vw, 34px); color: var(--gold); letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.countdown-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 22px;
}
.stat {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); padding: 14px 16px; border-radius: 3px;
}
.stat .k { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.stat .v { font-family: var(--mono); font-size: 19px; color: var(--gold); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 11px; color: var(--muted); margin-top: 4px; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 18px; margin-bottom: 16px;
}
.panel h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); margin: 0 0 12px; }
.panel h3 { font-family: var(--mono); font-size: 14px; margin: 0 0 8px; color: var(--text); }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; padding: 2px 7px;
  border: 1px solid var(--line); color: var(--gold2); letter-spacing: .06em;
}

.class-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.class-pill {
  font-family: var(--mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--line);
  background: var(--bg2); border-radius: 2px;
}
.class-pill b { color: var(--gold); }
.class-pill.GLINT { border-color: #3a3420; }
.class-pill.SHAFT { border-color: #4a3a18; }
.class-pill.CIPHER { border-color: #5a4818; }
.class-pill.ORACLE { border-color: var(--gold-dim); box-shadow: 0 0 12px rgba(244,183,40,.12); }

.nft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.nft-card {
  background: var(--bg2); border: 1px solid var(--line); padding: 10px; border-radius: 3px;
  transition: border-color .15s, transform .15s; text-decoration: none; color: inherit; display: block;
}
a.nft-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); text-decoration: none; }
.nft-card img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; background: #000; display: block; border-radius: 2px; }
.nft-card .meta { margin-top: 8px; font-family: var(--mono); font-size: 11px; }
.nft-card .name { color: var(--gold); font-weight: 600; }
.nft-card .hr { color: var(--muted); margin-top: 2px; }
.nft-card .badge {
  position: absolute; top: 8px; right: 8px; font-size: 9px; background: rgba(0,0,0,.7);
  border: 1px solid var(--gold-dim); color: var(--gold); padding: 2px 5px; font-family: var(--mono);
}
.nft-card-wrap { position: relative; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 16px; }
.toolbar select, .toolbar input[type="search"], .toolbar input[type="text"] {
  font-family: var(--mono); font-size: 12px; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); padding: 8px 10px; border-radius: 2px; min-width: 0;
}
.toolbar input { flex: 1; min-width: 160px; }
.active-filter { border-color: var(--gold) !important; color: var(--gold) !important; background: rgba(244,183,40,.08) !important; }

.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.step .num {
  font-family: var(--mono); color: var(--gold); font-size: 16px; border: 1px solid var(--line);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 2px;
}

table.ledger { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
table.ledger th, table.ledger td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.ledger th { color: var(--muted); font-weight: 500; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.site-footer {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0 40px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.formula-box {
  font-family: var(--mono); font-size: 12px; background: #080706; border: 1px dashed var(--gold-dim);
  padding: 14px; color: var(--gold2); line-height: 1.7; overflow-x: auto; border-radius: 2px;
}
.empty { color: var(--muted); font-family: var(--mono); font-size: 13px; padding: 28px 0; text-align: center; }

.faq details {
  border: 1px solid var(--line); background: var(--bg2); margin-bottom: 8px; border-radius: 2px; padding: 0;
}
.faq summary {
  font-family: var(--mono); font-size: 13px; padding: 12px 14px; cursor: pointer; color: var(--gold3);
  list-style: none; display: flex; justify-content: space-between; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-dim); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 14px 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.detail-art {
  background: #000; border: 1px solid var(--line); padding: 12px; border-radius: 3px;
}
.detail-art img { width: 100%; image-rendering: pixelated; display: block; }
.attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.attr {
  background: var(--bg2); border: 1px solid var(--line); padding: 10px; border-radius: 2px;
  font-family: var(--mono); font-size: 11px;
}
.attr .k { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.attr .v { color: var(--gold); margin-top: 4px; font-size: 13px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(8,7,5,.97); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; z-index: 40; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .topbar-inner { flex-wrap: wrap; }
  .hero { padding-top: 24px; }
  .stat .v { font-size: 16px; }
  .epoch-bar { flex-direction: column; align-items: flex-start; }
}

.ca-strip { display:flex; flex-wrap:wrap; gap:.5rem 1rem; align-items:center; justify-content:center; }
.ca-actions { display:inline-flex; flex-wrap:wrap; gap:.35rem; align-items:center; }
.ca-btn { font: inherit; font-size:.72rem; padding:.15rem .55rem; border:1px solid #3d3420; background:#12100b; color:#f4b728; border-radius:999px; cursor:pointer; text-decoration:none; }
.ca-btn:hover { border-color:#f4b728; background:#1a160c; }
.ca-mkt { font-size:.75rem; color:#c9a227; letter-spacing:.02em; }
.footer-ca-block { display:flex; flex-wrap:wrap; gap:.4rem 1rem; align-items:center; justify-content:flex-end; }
.footer-mkt { color:#c9a227; font-size:.85em; }
.footer-links a { color:#f4b728; margin-left:.5rem; font-size:.85em; }
