:root {
  --bg: #04120d;
  --bg2: #061a13;
  --panel: #0a2219;
  --panel2: #0d2c20;
  --line: #17423171;
  --line-s: #174231;
  --ink: #eafff5;
  --soft: #9fc4b4;
  --mint: #8ff0c8;
  --mint-d: #5fd0a8;
  --dark-ink: #04251a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --rail: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 100px; }
body {
  background:
    radial-gradient(ellipse 70% 40% at 70% 0%, rgba(143, 240, 200, .07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 10% 60%, rgba(143, 240, 200, .05), transparent 70%),
    var(--bg);
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.arena canvas { image-rendering: pixelated; }

/* ===== Top bar + ticker ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(14px, 3vw, 32px);
  background: rgba(4, 18, 13, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-s);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .26em; text-decoration: none; color: var(--ink); }
.brand-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-s); background: #0a1f18; }
.menu { display: flex; gap: 4px; margin: 0 auto; }
.menu a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); text-decoration: none; border-radius: 2px; transition: color .15s, background .15s; }
.menu a:hover { color: var(--mint); background: rgba(143, 240, 200, .07); }
.menu svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; color: var(--soft); border: 1px solid var(--line-s); border-radius: 2px; transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--mint); border-color: var(--mint); }
.menu a:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.ticker {
  position: fixed; top: 60px; left: 0; right: 0; height: 34px; z-index: 49; overflow: hidden;
  background: rgba(3, 14, 9, .95); border-bottom: 1px solid var(--line-s);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--soft);
}
.ticker .track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; gap: 28px; padding-left: 28px; animation: tick 60s linear infinite; }
.ticker i { font-style: normal; color: var(--mint); font-size: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 12px 20px;
  border: 1px solid var(--mint); border-radius: 2px; background: transparent; color: var(--mint);
  transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.btn-mint { background: var(--mint); color: var(--dark-ink); box-shadow: 0 0 0 0 rgba(143, 240, 200, .5); }
.btn-mint:hover { background: #a8f6d6; transform: translateY(-1px); box-shadow: 0 8px 26px rgba(143, 240, 200, .28); }
.btn-ghost { border-color: var(--line-s); color: var(--ink); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-small { padding: 9px 16px; font-size: 13px; }
.btn-big { padding: 17px 32px; font-size: 16px; }

/* ===== Hero / arena ===== */
.hero { padding-top: 94px; min-height: 100vh; display: flex; flex-direction: column; }
.arena { position: relative; flex: 1; min-height: max(540px, 68vh); overflow: hidden; background: #030d09; border-bottom: 1px solid var(--line-s); }
.arena canvas#arena-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rosette {
  position: absolute; left: 50%; top: 40%; width: 640px; height: 640px; transform: translate(-50%, -50%);
  opacity: .5; mix-blend-mode: screen; pointer-events: none; animation: spin 240s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-title {
  position: absolute; left: 0; right: 0; top: 40px; text-align: center; pointer-events: none;
  font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: .12em; font-size: clamp(40px, 9vw, 120px);
  color: var(--ink); text-shadow: 0 0 46px rgba(143, 240, 200, .5), 0 3px 0 rgba(0, 0, 0, .3);
}

.strip {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch;
  padding: 24px clamp(14px, 3vw, 32px) 28px; background: var(--bg2); border-bottom: 1px solid var(--line-s);
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.note { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-s); background: rgba(10, 34, 25, .6); max-width: 560px; }
.note p { font-size: 15px; color: var(--soft); }
.note b { color: var(--mint); font-family: var(--mono); font-weight: 500; margin-right: 6px; }
.seal { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--mint-d); color: var(--mint); }
.seal svg, .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--line-s); align-self: center; }
.stats > div { padding: 14px 16px 6px; border-left: 1px solid var(--line-s); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats .k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.stats .v { display: block; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; line-height: 1.1; margin: 4px 0 2px; }
.stats .s { display: block; font-size: 12px; color: var(--soft); opacity: .8; }

/* ===== Colonnade ===== */
.colonnade { line-height: 0; background: linear-gradient(var(--bg), var(--bg2)); border-bottom: 1px solid var(--line-s); }
.colonnade svg { display: block; width: 100%; height: 150px; }

/* ===== Tokenomics ===== */
.tokenomics { padding: clamp(64px, 10vw, 120px) clamp(14px, 3vw, 32px); background: var(--bg2); }
.inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--soft); }
.eyebrow.center { justify-content: center; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.8vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
h2 em { color: var(--mint); font-style: normal; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.card { position: relative; overflow: hidden; padding: 22px 22px 24px; border: 1px solid var(--line-s); background: var(--panel); }
.card.wide { grid-column: 1 / -1; }
.card-art { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; opacity: .55; pointer-events: none; }
.card > *:not(.card-art) { position: relative; }
.card-top { display: flex; align-items: center; gap: 12px; }
.ico { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--mint-d); color: var(--mint); border-radius: 50%; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.pct { font-family: var(--serif); font-size: clamp(54px, 6vw, 80px); font-weight: 500; line-height: 1; margin: 26px 0 8px; }
.pct small { font-size: .46em; color: var(--mint); margin-left: 2px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.card p { margin-top: 4px; color: var(--soft); font-size: 15px; }

.art { position: relative; border: 1px solid var(--line-s); background: #021008; overflow: hidden; }
.art img { position: relative; display: block; width: 100%; height: auto; }
.halo { position: absolute; inset: -20%; width: 140%; height: 140%; opacity: .35; mix-blend-mode: screen; animation: spin2 200s linear infinite; pointer-events: none; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.art figcaption { position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--mint); }

.donut-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 22px; margin-top: 16px; padding: 22px; border: 1px solid var(--line-s); background: var(--panel); }
.donut { width: 100%; height: auto; }
.donut-t { fill: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.legend { list-style: none; display: grid; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; display: inline-block; flex: none; }
.legend b { margin-left: auto; color: var(--ink); font-weight: 500; }

/* ===== Closing ===== */
.final { position: relative; overflow: hidden; text-align: center; padding: 120px clamp(14px, 3vw, 32px) 120px; background: var(--bg); border-top: 1px solid var(--line-s); }
.final-rosette { position: absolute; left: 50%; top: 58%; width: min(900px, 120vw); height: auto; transform: translate(-50%, -50%); opacity: .3; mix-blend-mode: screen; pointer-events: none; animation: spin 300s linear infinite; }
.final-body { position: relative; }
.final-title { font-size: clamp(44px, 7.2vw, 100px); margin-bottom: 40px; }

.footer { padding: 30px clamp(14px, 3vw, 32px) 42px; border-top: 1px solid var(--line-s); background: #031009; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-bottom: 20px; }
.footer-nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.footer-nav a:hover { color: var(--mint); }
.note2 { max-width: 640px; margin: 0 auto 10px; font-size: 13px; color: var(--soft); opacity: .75; }
.copy2 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--soft); }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 36px; z-index: 300; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--mint); color: var(--dark-ink); font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 2px; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .inner { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .menu a span { display: none; } .menu a { padding: 9px 11px; } }
@media (max-width: 620px) {
  .brand span { display: none; }
  .cards { grid-template-columns: 1fr; }
  .donut-card { grid-template-columns: 110px 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats .v { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ticker .track, .rosette, .halo, .final-rosette { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } }
