/* Obol — shared stylesheet. Same visual language as the original site:
   black field, gold accent, monospace, hairline grids, quiet dividers. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --bg-card: #0f0f0f;
    --bg-card-hover: #141414;
    --gold: #c9a227;
    --gold-dim: #8a7020;
    --gold-glow: rgba(201,162,39,0.06);
    --red: #c94040;
    --red-dim: rgba(201,64,64,0.10);
    --text: #c0c0c0;
    --text-dim: #777;
    --text-faint: #4a4a4a;
    --text-bright: #e0e0e0;
    --border: #1c1c1c;
    --green: #3a8a5a;
    --river: #3b5f6e;
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Liberation Mono', monospace;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--gold-dim); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
code { color: var(--gold); font-family: inherit; font-size: 0.95em; }
::selection { background: rgba(201,162,39,0.25); color: var(--text-bright); }

/* ── Banner + header ─────────────────────────────────────────── */
.dev-banner {
    background: rgba(201,162,39,0.05);
    border-bottom: 1px solid rgba(201,162,39,0.1);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.63rem;
    letter-spacing: 1.5px;
    color: var(--gold-dim);
}
.header {
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}
.logo { font-size: 0.75rem; letter-spacing: 3px; color: var(--text-dim); }
.logo a { color: var(--gold); }
.header-nav { display: flex; gap: 2rem; align-items: center; }
.header-nav a { color: var(--text-dim); font-size: 0.72rem; letter-spacing: 1.5px; }
.header-nav a:hover, .header-nav a.active { color: var(--gold); }

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 780px; margin: 0 auto; }
.divider {
    text-align: center;
    margin: 5.5rem 0 3rem;
    color: #3a3a3a;
    font-size: 0.65rem;
    letter-spacing: 4px;
}
.divider::before, .divider::after { content: '────────'; margin: 0 1.5rem; color: #1a1a1a; }
.lede { color: var(--text-dim); font-size: 0.83rem; line-height: 1.9; max-width: 700px; margin: 0 auto 2rem; text-align: center; }
.prose p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.9; margin-bottom: 1.1rem; }
.prose p strong, .prose li strong { color: var(--text-bright); font-weight: 400; }
.prose ul { list-style: none; margin: 0 0 1.2rem; }
.prose li { color: var(--text-dim); font-size: 0.8rem; line-height: 1.8; padding-left: 1.3rem; position: relative; margin-bottom: 0.3rem; }
.prose li::before { content: '>'; position: absolute; left: 0; color: var(--gold-dim); }
.prose h3 { color: var(--text-bright); font-size: 0.88rem; font-weight: 400; letter-spacing: 1px; margin: 2rem 0 0.9rem; }

/* ── Page hero (sub-pages) ───────────────────────────────────── */
.page-hero { text-align: center; padding: 6rem 2rem 3.5rem; position: relative; }
.page-hero::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 700px; height: 420px;
    background: radial-gradient(ellipse, rgba(201,162,39,0.035) 0%, transparent 70%);
    pointer-events: none;
}
.eyebrow { font-size: 0.6rem; letter-spacing: 4px; color: var(--text-dim); margin-bottom: 1.6rem; }
.page-hero h1 { color: var(--gold); font-size: 2.2rem; font-weight: 400; letter-spacing: 10px; margin-bottom: 1.4rem; }
.page-hero p { color: var(--text-dim); font-size: 0.83rem; max-width: 620px; margin: 0 auto; line-height: 1.9; }

/* ── Home hero ───────────────────────────────────────────────── */
.hero { text-align: center; padding: 6.5rem 2rem 5rem; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(201,162,39,0.05) 0%, transparent 65%);
    pointer-events: none;
}
.coin-wrap { width: 132px; height: 132px; margin: 0 auto 2.4rem; perspective: 600px; }
.coin { width: 100%; height: 100%; animation: coin-turn 9s ease-in-out infinite; transform-style: preserve-3d; }
.coin svg { width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(201,162,39,0.18)); }
@keyframes coin-turn {
    0%, 38% { transform: rotateY(0deg); }
    50%, 88% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}
.hero h1 { color: var(--gold); font-size: 3.5rem; font-weight: 400; letter-spacing: 14px; margin-bottom: 1.6rem; }
.hero-tagline { color: var(--text-bright); font-size: 1.05rem; font-style: italic; margin-bottom: 1.5rem; letter-spacing: 0.3px; }
.hero-sub { color: var(--text-dim); font-size: 0.84rem; max-width: 590px; margin: 0 auto 2.6rem; line-height: 1.9; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block; border: 1px solid var(--gold-dim); color: var(--gold);
    padding: 0.75rem 2rem; font-size: 0.7rem; letter-spacing: 2px; transition: background 0.2s;
}
.btn:hover { background: rgba(201,162,39,0.08); color: var(--gold); }
.btn.ghost { border-color: var(--border); color: var(--text-dim); }
.btn.ghost:hover { border-color: var(--gold-dim); color: var(--gold); background: transparent; }

/* ── River: the animated crossing line ───────────────────────── */
.river { position: relative; height: 1px; margin: 0 auto; max-width: 1060px; background: var(--border); overflow: hidden; }
.river::after {
    content: ''; position: absolute; top: 0; left: -30%; width: 30%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    animation: river-flow 7s linear infinite;
}
@keyframes river-flow { to { left: 100%; } }

/* ── Grids and cards ─────────────────────────────────────────── */
.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg-card); padding: 2.2rem 2rem; position: relative; transition: background 0.3s; }
.card:hover { background: var(--bg-card-hover); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: transparent; transition: background 0.3s;
}
.card:hover::before { background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.card-num { color: var(--gold); font-size: 0.65rem; letter-spacing: 2px; margin-bottom: 1.1rem; opacity: 0.55; }
.card h3 { color: var(--text-bright); font-size: 0.88rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 0.9rem; }
.card p { color: var(--text-dim); font-size: 0.78rem; line-height: 1.75; }
.card .detail {
    margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
    font-size: 0.72rem; color: var(--text-faint); line-height: 1.6;
}
.card .detail code { color: var(--gold-dim); }

/* ── Threat block ────────────────────────────────────────────── */
.threat-block {
    border: 1px solid var(--red); border-left: 3px solid var(--red);
    padding: 2.5rem; background: var(--red-dim); max-width: 780px; margin: 0 auto;
}
.threat-label { font-size: 0.6rem; letter-spacing: 3px; color: var(--red); margin-bottom: 1.2rem; }
.threat-block h2 { color: var(--text-bright); font-size: 1rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 1.2rem; }
.threat-block p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.8; margin-bottom: 1rem; }
.threat-block p:last-child { margin-bottom: 0; }

/* ── Trifecta ────────────────────────────────────────────────── */
.trifecta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); max-width: 780px; margin: 2rem auto 0; }
.leg { background: var(--bg-card); padding: 1.6rem 1.4rem; text-align: center; }
.leg .k { color: var(--gold); font-size: 1.4rem; font-weight: 300; margin-bottom: 0.5rem; }
.leg .t { color: var(--text-bright); font-size: 0.72rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.leg .d { color: var(--text-dim); font-size: 0.7rem; line-height: 1.6; }
.trifecta-note { max-width: 780px; margin: 1rem auto 0; color: var(--text-dim); font-size: 0.74rem; line-height: 1.8; text-align: center; }

/* ── Terminal ────────────────────────────────────────────────── */
.term { max-width: 780px; margin: 0 auto; border: 1px solid var(--border); background: #070707; }
.term-bar {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border); padding: 0.6rem 1.2rem;
    font-size: 0.6rem; letter-spacing: 2px; color: var(--text-faint);
}
.term-bar .dots::before { content: '● ● ●'; color: #222; letter-spacing: 3px; }
.term-body { padding: 1.3rem 1.5rem; font-size: 0.76rem; line-height: 1.85; min-height: 21rem; white-space: pre; overflow-x: auto; }
.term-body .ln { opacity: 0; transform: translateY(3px); transition: opacity 0.35s, transform 0.35s; display: block; }
.term-body .ln.on { opacity: 1; transform: none; }
.term-body .dim { color: var(--text-faint); }
.term-body .you { color: var(--text-bright); }
.term-body .mint { color: var(--gold); }
.term-body .ok { color: var(--green); }
.term-body .inj { color: var(--red); font-style: italic; }
.term-body .deny { color: var(--red); }
.term-body .cursor::after { content: '▍'; color: var(--gold-dim); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { border-top: 1px solid var(--border); padding: 0.7rem 1.5rem; font-size: 0.66rem; color: var(--text-faint); line-height: 1.6; }

/* ── Token / code block ──────────────────────────────────────── */
.token {
    border: 1px solid #2a2000; background: rgba(201,162,39,0.025);
    padding: 1.4rem 1.6rem; font-size: 0.74rem; line-height: 1.75; color: var(--text-dim);
    overflow-x: auto; white-space: pre;
}
.token .k { color: var(--gold-dim); }
.token .s { color: var(--text-bright); }
.token .c { color: var(--text-faint); }
.token-cap { font-size: 0.6rem; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 0.8rem; }

/* ── Map (landscape) table ───────────────────────────────────── */
.map { width: 100%; border-collapse: collapse; border: 1px solid var(--border); font-size: 0.74rem; }
.map th { text-align: left; font-weight: 400; font-size: 0.6rem; letter-spacing: 2px; color: var(--text-dim); padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.map td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: top; line-height: 1.65; }
.map td:first-child { color: var(--text-bright); white-space: nowrap; }
.map tr.us td { background: rgba(201,162,39,0.035); }
.map tr.us td:first-child { color: var(--gold); }
.map tr:last-child td { border-bottom: none; }

/* ── Stat row ────────────────────────────────────────────────── */
.stat { background: var(--bg-card); padding: 2rem 1.5rem; text-align: center; }
.stat .n { color: var(--gold); font-size: 1.7rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 0.6rem; }
.stat .l { color: var(--text-dim); font-size: 0.7rem; line-height: 1.55; }
.stat .src { display: block; margin-top: 0.6rem; font-size: 0.62rem; color: var(--text-faint); }

/* ── Timeline / horizon ──────────────────────────────────────── */
.horizon { max-width: 780px; margin: 0 auto; border-left: 1px solid var(--border); padding-left: 2rem; }
.h-item { position: relative; padding-bottom: 2.4rem; }
.h-item:last-child { padding-bottom: 0; }
.h-item::before {
    content: ''; position: absolute; left: calc(-2rem - 4px); top: 0.35rem;
    width: 7px; height: 7px; border: 1px solid var(--gold-dim); background: var(--bg); transform: rotate(45deg);
}
.h-item.done::before { background: var(--gold-dim); }
.h-when { font-size: 0.6rem; letter-spacing: 2px; color: var(--gold-dim); margin-bottom: 0.4rem; }
.h-item h3 { color: var(--text-bright); font-size: 0.86rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 0.5rem; }
.h-item p { color: var(--text-dim); font-size: 0.77rem; line-height: 1.75; }

/* ── Invariants list ─────────────────────────────────────────── */
.law { display: flex; gap: 1.5rem; padding: 1.4rem 2rem; background: var(--bg-card); align-items: flex-start; }
.law .num { color: var(--gold); font-size: 0.7rem; opacity: 0.55; min-width: 2rem; padding-top: 0.1rem; letter-spacing: 1px; }
.law h4 { color: var(--text-bright); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.law p { color: var(--text-dim); font-size: 0.76rem; line-height: 1.7; }
.laws { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }

/* ── Notice (honest status) ──────────────────────────────────── */
.notice { border: 1px solid var(--border); border-left: 3px solid var(--gold-dim); padding: 1.6rem 2rem; background: var(--gold-glow); }
.notice .label { font-size: 0.6rem; letter-spacing: 3px; color: var(--gold-dim); margin-bottom: 0.8rem; }
.notice p { color: var(--text-dim); font-size: 0.8rem; line-height: 1.8; }
.notice p + p { margin-top: 0.7rem; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-group { margin-bottom: 3.5rem; }
.faq-group-title { font-size: 0.6rem; letter-spacing: 3px; color: var(--text-dim); margin-bottom: 1rem; }
details { border: 1px solid var(--border); border-bottom: none; background: var(--bg-card); }
details:last-child { border-bottom: 1px solid var(--border); }
summary {
    list-style: none; cursor: pointer; padding: 1.2rem 1.6rem; color: var(--text-bright);
    font-size: 0.82rem; letter-spacing: 0.3px; display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold-dim); }
details[open] summary::after { content: '−'; }
details[open] { background: var(--bg-card-hover); }
.answer { padding: 0 1.6rem 1.4rem; }
.answer p { color: var(--text-dim); font-size: 0.78rem; line-height: 1.85; margin-bottom: 0.8rem; }
.answer p:last-child { margin-bottom: 0; }

/* ── Sources ─────────────────────────────────────────────────── */
.sources { border: 1px solid var(--border); padding: 1.6rem 2rem; }
.sources-title { font-size: 0.6rem; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 1rem; }
.sources ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2.5rem; }
.sources li { counter-increment: s; font-size: 0.7rem; color: var(--text-faint); line-height: 1.55; padding-left: 1.8rem; position: relative; }
.sources li::before { content: '[' counter(s) ']'; position: absolute; left: 0; color: #3a3a3a; }
.sources a { color: #6a6a6a; }
.sources a:hover { color: var(--gold-dim); }

/* ── Closing CTA ─────────────────────────────────────────────── */
.crossing {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--bg-card); text-align: center; padding: 5rem 2rem; margin-top: 6rem;
}
.crossing h2 { color: var(--text-bright); font-size: 1.1rem; font-weight: 400; letter-spacing: 3px; margin-bottom: 1rem; }
.crossing p { color: var(--text-dim); font-size: 0.8rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.85; }
.crossing .note { font-size: 0.64rem; color: var(--text-faint); margin: 1.2rem auto 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2.5rem; text-align: center; color: #444; font-size: 0.68rem; letter-spacing: 0.5px; }
.crossing + .footer { border-top: none; }
.footer a { color: #555; }
.footer a:hover { color: var(--gold-dim); }
.footer .sig { margin-top: 0.8rem; color: #333; }

/* ── Reveal on scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
    .sources ol { grid-template-columns: 1fr; }
    .map td:first-child { white-space: normal; }
}
@media (max-width: 640px) {
    .header { flex-direction: column; gap: 1rem; padding: 1.2rem 1rem; }
    .header-nav { gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.4rem; letter-spacing: 8px; }
    .page-hero h1 { font-size: 1.6rem; letter-spacing: 6px; }
    .grid.c2, .grid.c3, .grid.c4, .trifecta { grid-template-columns: 1fr; }
    .map { font-size: 0.7rem; }
    .map th:nth-child(3), .map td:nth-child(3) { display: none; }
    .term-body { font-size: 0.7rem; }
    .divider { white-space: nowrap; letter-spacing: 3px; }
    .divider::before, .divider::after { content: '───'; margin: 0 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .coin, .river::after, .term-body .cursor::after { animation: none; }
    .reveal, .term-body .ln { opacity: 1; transform: none; transition: none; }
}
