/* ============================================================
   LUXE CASH — ROYAL DESIGN SYSTEM (Louis XVI / Versailles)
   Ivory, gold leaf, wine velvet. Sharp regency geometry.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Playfair+Display:wght@500;600;700;800&display=swap');

:root {
  --noir: #000000;
  --velvet: #050505;
  --panel: #0a0a0a;
  --panel2: #101010;
  --ivory: #ffffff;
  --muted: #d6d6d6;
  --faint: #8f8f8f;
  --gold: #f0b90b;
  --gold-hi: #ffe98a;
  --gold-mid: #d19a00;
  --gold-dk: #a16e00;
  --gold-line: rgba(240, 185, 11, .5);
  --gold-faint: rgba(240, 185, 11, .14);
  --wine: #f0b90b;
  --wine-hi: #ffe98a;
  --wine-line: rgba(240, 185, 11, .55);
  --ok: #55b37a;
  --err: #e0564f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Playfair Display", Georgia, serif;
}

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

html, body { min-height: 100vh; }

body {
  font-family: var(--serif);
  background: var(--noir);
  color: var(--ivory);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ——— damask / fleur-de-lis wallcovering (fixed, faint) ——— */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23f0b90b' stroke-opacity='0.07' stroke-width='1.6'%3E%3Cpath d='M110 36c-16 20-16 50 0 70 16-20 16-50 0-70zM110 36c16 20 16 50 0 70M110 112v52M86 164c20-12 48-12 68 0M110 176c-14 0-24-8-24-20M110 176c14 0 24-8 24-20'/%3E%3Ccircle cx='110' cy='120' r='10'/%3E%3Ccircle cx='110' cy='190' r='7'/%3E%3Ccircle cx='110' cy='216' r='4'/%3E%3Cpath d='M40 40h24M156 40h24M40 180h24M156 180h24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ——— epoch gold stamp, fixed behind content ——— */
.stamp {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  display: grid; place-items: center;
}
.stamp .ring {
  position: relative;
  width: min(76vw, 560px); height: min(76vw, 560px);
  border-radius: 50%;
  border: 1px solid rgba(240, 185, 11, .10);
  box-shadow: 0 0 0 1px rgba(240, 185, 11, .05), 0 0 90px rgba(240, 185, 11, .05);
}
.stamp .ring img {
  position: absolute; inset: 0; margin: auto;
  width: min(34vw, 260px); height: auto;
  opacity: .07;
  filter: drop-shadow(0 0 34px rgba(240, 185, 11, .18));
}

/* ——— layered scroll content above pattern/stamp ——— */
.page { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 22px 80px; }

/* ——— navigation ——— */
nav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(6, 6, 6, .97), rgba(0, 0, 0, .94));
  box-shadow: 0 1px 0 rgba(240, 185, 11, .18) inset;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.logo-img {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 50%;
  background: #000;
  object-fit: contain;
  box-shadow:
    0 0 0 2px var(--noir),
    0 0 0 3px var(--gold-line),
    0 6px 14px rgba(0, 0, 0, .6);
}
.brand .titles .t1 { font-family: var(--caps); font-weight: 700; letter-spacing: .22em; font-size: 15px; }
.brand .titles .t2 { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-family: var(--caps); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid transparent; border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-hi); border-color: var(--gold-line); background: var(--gold-faint); }
.nav-links a.on { color: var(--ivory); }

/* ——— ornament rules ——— */
.orn { display: flex; align-items: center; gap: 16px; margin: 26px 0 18px; color: var(--gold); }
.orn::before, .orn::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-line), var(--gold-line), transparent); }
.orn b { font-family: var(--caps); font-weight: 600; font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-hi); }

/* ——— headings ——— */
h1.kicker { font-family: var(--caps); font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1.hero { font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 6.4vw, 64px); line-height: 1.05; letter-spacing: .01em; }
h1.hero .gold { color: var(--gold-hi); }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3.4vw, 30px); color: var(--ivory); margin-bottom: 12px; }
h3 { font-family: var(--caps); font-weight: 600; font-size: 16px; letter-spacing: .08em; color: var(--gold-hi); margin-bottom: 8px; }
p { color: var(--muted); font-size: 15.5px; }
p b { color: var(--ivory); font-weight: 700; }
.small { font-size: 13px; color: var(--faint); }
.tight { max-width: 640px; }
.center { text-align: center; }
.tac { display: grid; place-items: center; }

/* ——— hero ——— */
.hero-wrap { padding: 74px 0 46px; text-align: center; }
.hero-wrap .seal { font-size: 46px; color: var(--gold-hi); text-shadow: 0 0 26px rgba(240, 185, 11, .4); }
.hero-wrap .lede { max-width: 660px; margin: 20px auto 0; font-size: 17px; }

/* ——— buttons ——— */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; cursor: pointer; text-align: center; text-decoration: none;
  font-family: var(--caps); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 2px; border: 1px solid #ffffff;
  color: #000000;
  background: linear-gradient(180deg, #ffffff 0%, #ffe98a 12%, #f0b90b 55%, #d19a00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -2px 3px rgba(0, 0, 0, .3),
    0 8px 22px rgba(240, 185, 11, .22);
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  border-color: var(--gold-line);
}
.btn.ghost:hover { background: var(--gold-faint); }
.btn.wine { background: #ffffff; border-color: #ffffff; color: #000000; }
.btn.wine:hover { filter: brightness(.92); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ——— cards / panels ——— */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--velvet));
  border: 1px solid var(--gold-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 0 0 4px rgba(0, 0, 0, .6),
    inset 0 0 0 5px var(--gold-faint),
    0 14px 34px rgba(0, 0, 0, .45);
  border-radius: 3px;
  padding: 26px 28px;
  margin-bottom: 20px;
}
.card h2 { margin-top: 2px; }
.card .sub, .card > p.sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ——— stat row ——— */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.two { grid-template-columns: repeat(2, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr 1fr; } .four { grid-template-columns: 1fr 1fr; } }
.stat {
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--gold-faint);
  border-top: 2px solid var(--gold);
  padding: 14px 16px; text-align: center; border-radius: 2px;
}
.stat .label { font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--gold-hi); margin-top: 6px; }
.stat .value small { font-size: 12px; color: var(--faint); font-family: var(--serif); font-weight: 500; }

/* ——— badges ——— */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; margin-left: 6px;
  font-family: var(--serif); vertical-align: middle;
}
.badge.ok { background: rgba(85, 179, 122, .13); color: var(--ok); border: 1px solid rgba(85, 179, 122, .35); }
.badge.live { background: rgba(240, 185, 11, .16); color: var(--gold-hi); border: 1px solid var(--gold-line); }
.badge.err { background: rgba(224, 86, 79, .13); color: var(--err); border: 1px solid rgba(224, 86, 79, .4); }
.badge.relic { background: #f0b90b; color: #000000; border: 1px solid #ffe98a; font-weight: 700; }

/* ——— numbered steps ——— */
.steps { display: grid; gap: 12px; margin-top: 8px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  font-family: var(--caps); font-weight: 700; font-size: 18px;
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-hi);
  border: 1px solid var(--gold-line); background: var(--gold-faint);
  box-shadow: inset 0 1px 0 rgba(255, 233, 187, .25);
}
.step .body p { font-size: 14.5px; margin-top: 4px; }
.step .body a { color: var(--gold-hi); }

/* ——— three ways grid ——— */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.way {
  border: 1px solid var(--gold-line); border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, var(--panel2), var(--velvet));
  padding: 22px 22px 24px; border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 233, 187, .08), 0 10px 24px rgba(0, 0, 0, .35);
}
.way .gem { font-size: 26px; color: var(--gold-hi); display: block; margin-bottom: 10px; }
.way h3 { color: var(--ivory); }
.way p { font-size: 14px; margin-top: 8px; }
.way .tag { font-family: var(--caps); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 12px; display: block; }

/* ——— ledger / table-ish info ——— */
.ledger { list-style: none; }
.ledger li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 4px; border-bottom: 1px dashed var(--gold-faint); font-size: 14.5px; }
.ledger li:last-child { border-bottom: none; }
.ledger li b { color: var(--gold-hi); font-family: var(--caps); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ledger li span { color: var(--muted); text-align: right; }
.ledger .big share { color: var(--ivory); }

/* ——— tier table ——— */
table.tiers { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14.5px; }
table.tiers th {
  font-family: var(--caps); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gold-line);
}
table.tiers td { padding: 11px 12px; border-bottom: 1px solid var(--gold-faint); color: var(--muted); }
table.tiers tr:last-child td { border-bottom: none; }
table.tiers td b { color: var(--ivory); }
table.tiers .weight { color: var(--gold-hi); font-family: var(--caps); font-weight: 600; }

/* ——— roadmap timeline ——— */
.acts { display: grid; gap: 18px; }
.act {
  position: relative; padding: 4px 0 8px 30px;
  border-left: 1px solid var(--gold-line);
}
.act::before {
  content: ""; position: absolute; left: -9px; top: 14px;
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe98a, #a16e00);
  box-shadow: 0 0 0 3px var(--velvet), 0 0 0 4px var(--gold-line);
}
.act .phase { font-family: var(--caps); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; }
.act .status { font-family: var(--caps); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.act .status.done { color: var(--ok); }
.act .status.live { color: var(--gold-hi); }
.act .status.next { color: var(--muted); }
.act ul { margin: 10px 0 0 18px; color: var(--muted); font-size: 14.5px; }
.act ul li { padding: 3px 0; }
.act ul li b { color: var(--ivory); }

/* ——— message box (shared) ——— */
#msg, .msg { margin-top: 14px; padding: 12px 14px; border-radius: 2px; font-size: 14px; }
#msg.ok { background: rgba(85, 179, 122, .10); color: var(--ok); border: 1px solid rgba(85, 179, 122, .3); }
#msg.err { background: rgba(224, 86, 79, .10); color: var(--err); border: 1px solid rgba(224, 86, 79, .4); }
#msg.info { background: rgba(240, 185, 11, .10); color: var(--muted); border: 1px solid var(--gold-line); }
.hidden { display: none !important; }

/* ——— claim portal specifics ——— */
.wrap { max-width: 780px; margin: 0 auto; }
header.claim-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
#walletAddr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); }
#walletBox { text-align: right; margin-bottom: 12px; }

/* ——— help / fine print ——— */
.meta { font-size: 11.5px; color: var(--faint); margin-top: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.foot { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--gold-faint); text-align: center; font-size: 12px; color: var(--faint); letter-spacing: .1em; }
a { color: var(--gold-hi); }
hr.gold { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); margin: 34px 0; }
.quote { font-style: italic; color: var(--gold-hi); font-size: 16px; text-align: center; max-width: 620px; margin: 8px auto 0; }