/* XENZAA public website (index.php). Dark-only by brand: midnight navy. */
:root {
  color-scheme: dark;
  --bg: #050b1f;
  --bg-alt: #081230;
  --surface: #0b1631;
  --glass: rgba(18, 36, 78, 0.45);
  --glass-strong: rgba(18, 36, 78, 0.7);
  --border: rgba(96, 180, 255, 0.18);
  --border-strong: rgba(96, 200, 255, 0.4);
  --text: #e8eef7;
  --silver: #c9d3e0;
  --muted: #8fa1bd;
  --cyan: #22d3ee;
  --blue: #2f7bff;
  --glow: 0 0 32px rgba(34, 211, 238, 0.25);

  /* Chart series - validated (dataviz) against --surface, dark mode. */
  --s-presale: #3987e5;
  --s-public: #d95926;
  --s-owner: #199e70;
  --s-developer: #c98500;
  --s-marketing: #d55181;
  --s-dex: #3987e5;
  --s-rewards: #86b6ef;

  /* Status badges: icon + label, never color alone. */
  --b-live: #34d399;
  --b-confirmed: #22d3ee;
  --b-planned: #a5b4fc;
  --b-future: #94a3b8;

  --radius: 18px;
  --head: "Orbitron", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h2 {
  font: 700 clamp(1.6rem, 3.6vw, 2.4rem)/1.2 var(--head);
  background: linear-gradient(180deg, #ffffff 0%, var(--silver) 60%, #8ea3bd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .01em;
}
h2 .badge { -webkit-text-fill-color: initial; vertical-align: middle; font-family: "Inter", sans-serif; }
h3 { font-size: 1.08rem; font-weight: 600; color: #fff; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow-wrap { max-width: 820px; }
.narrow { max-width: 720px; }

.eyebrow {
  font: 600 .78rem/1 "Inter", sans-serif; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.lead { font-size: 1.1rem; color: var(--silver); }
.note {
  margin-top: 28px; padding: 14px 18px; border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.06); border-radius: 0 10px 10px 0; color: var(--silver); font-size: .95rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #04102a; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(34, 211, 238, 0.45); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(34, 211, 238, 0.1); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-row.center { justify-content: center; }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 31, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 84px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--silver); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 11, 31, 0.97); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-links .btn { margin-top: 12px; border-bottom: 1px solid var(--border-strong); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 72px;
  background:
    radial-gradient(900px 500px at 75% 30%, rgba(47, 123, 255, 0.22), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
}
.globe { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: min(820px, 110vw); height: min(820px, 110vw); opacity: .9; pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 40px; }
.hero-title {
  font: 800 clamp(2.8rem, 9vw, 5.6rem)/1 var(--head); letter-spacing: .06em; margin: 0;
  background: linear-gradient(180deg, #ffffff 10%, #c9d3e0 55%, #6f86a6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.25));
}
.tagline { font: 600 clamp(.85rem, 2vw, 1.05rem)/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin: 14px 0 20px; }
.hero-copy { max-width: 600px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; max-width: 600px; }
.stat { padding: 16px 18px; }
.stat dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: 4px 0 0; font: 600 1.1rem/1.3 var(--head); color: #fff; }
.stat small { font-size: .7em; color: var(--muted); }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .hero { padding: 120px 0 110px; } }

/* Sections */
.sec { padding: 72px 0; position: relative; }
.sec-alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
@media (min-width: 960px) { .sec { padding: 104px 0; } }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }
.prose p { color: var(--silver); }

.grid { display: grid; gap: 18px; margin-top: 32px; }
.g2, .g3, .g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g2, .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 24px; transition: border-color .25s, transform .25s; }
.card p { color: var(--silver); margin-bottom: 0; font-size: .95rem; }
.card.glass:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card.plain { border-top: 1px solid var(--border-strong); padding: 22px 4px 0; }
.card .badge { margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row h3 { margin: 0; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px;
  font: 600 .72rem/1.4 "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor; background: rgba(255, 255, 255, 0.03);
}
.badge::before { content: ""; width: 7px; height: 7px; flex: none; }
.b-live { color: var(--b-live); }
.b-live::before { background: currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.b-confirmed { color: var(--b-confirmed); }
.b-confirmed::before { width: 8px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); }
.b-planned { color: var(--b-planned); }
.b-planned::before { border: 1.5px solid currentColor; border-radius: 50%; }
.b-future { color: var(--b-future); }
.b-future::before { border: 1.5px dashed currentColor; border-radius: 50%; }

/* Token spec */
.spec { margin: 0; padding: 8px 24px; }
.spec > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); font-size: .9rem; }
.spec dd { margin: 0; font-weight: 600; min-width: 0; }
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; gap: 2px; } }

/* Series swatches */
.s-presale { --c: var(--s-presale); }
.s-public { --c: var(--s-public); }
.s-owner { --c: var(--s-owner); }
.s-developer { --c: var(--s-developer); }
.s-marketing { --c: var(--s-marketing); }
.s-dex { --c: var(--s-dex); }
.s-rewards { --c: var(--s-rewards); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; margin-right: 10px; vertical-align: -1px; }

/* Donut */
.tok { display: grid; gap: 32px; margin-top: 36px; align-items: center; }
@media (min-width: 900px) { .tok { grid-template-columns: 1fr 1fr; gap: 56px; } }
.donut-fig { margin: 0; text-align: center; }
.donut { width: 100%; max-width: 400px; margin: 0 auto; overflow: visible; }
.donut-fig figcaption { font-size: .88rem; margin-top: 10px; }
.seg, .seg-in { fill: none; stroke: var(--c); cursor: pointer; transition: stroke-width .2s, opacity .2s; }
.seg { stroke-width: 26; }
.seg-in { stroke-width: 12; }
.donut.has-active .seg, .donut.has-active .seg-in { opacity: .3; }
.donut.has-active .is-active { opacity: 1; stroke-width: 32; }
.donut.has-active .seg-in.is-active { stroke-width: 14; }
.seg:focus { outline: none; }
.d-big { font: 700 30px var(--head); fill: #fff; }
.d-small { font: 500 11px "Inter", sans-serif; fill: var(--muted); }

.legend-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.legend-table th, .legend-table td { padding: 13px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-align: left; }
.legend-table thead th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.legend-table tbody th { font-weight: 500; }
.legend-table tbody tr { cursor: pointer; transition: background .2s; }
.legend-table tbody tr:hover, .legend-table tbody tr.is-active { background: rgba(34, 211, 238, 0.07); }
.legend-table tfoot th, .legend-table tfoot td { font-weight: 700; border-bottom: 0; color: #fff; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

.g-alloc { grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 640px) { .g-alloc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .g-alloc { grid-template-columns: repeat(3, 1fr); } }
.alloc { border-top: 3px solid var(--c); }
.alloc[data-key="presale"] { --c: var(--s-presale); }
.alloc[data-key="public"] { --c: var(--s-public); }
.alloc[data-key="owner"] { --c: var(--s-owner); }
.alloc[data-key="developer"] { --c: var(--s-developer); }
.alloc[data-key="marketing"] { --c: var(--s-marketing); }
.alloc header { display: flex; align-items: center; gap: 0; }
.alloc header h3 { margin: 0; flex: 1; }
.pct { font: 700 1.1rem var(--head); color: #fff; }
.qty { font: 700 1.5rem/1.2 var(--head); color: #fff; margin: 12px 0 14px; }
.qty small { font: 500 .8rem "Inter", sans-serif; color: var(--muted); }
.alloc dl { margin: 0; font-size: .9rem; }
.alloc dt { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; }
.alloc dd { margin: 3px 0 0; color: var(--silver); }
.status { color: #fff; font-weight: 600; }

.tip {
  position: fixed; z-index: 80; pointer-events: none; padding: 10px 14px; border-radius: 10px;
  background: rgba(8, 18, 48, 0.95); border: 1px solid var(--border-strong); color: var(--text);
  font-size: .85rem; line-height: 1.5; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); max-width: 280px;
}
.tip b { color: #fff; }
.tip .sw { width: 10px; height: 10px; margin-right: 6px; }

/* FAQ / legal */
.faq { margin-top: 28px; }
.faq details, .legal details { border-bottom: 1px solid var(--border); }
.faq summary, .legal summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; color: #fff;
}
.faq summary::-webkit-details-marker, .legal summary::-webkit-details-marker { display: none; }
.faq summary::after, .legal summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.4rem/1 "Inter", sans-serif; color: var(--cyan); transition: transform .2s;
}
.faq details[open] summary::after, .legal details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p, .legal details p { color: var(--silver); padding-bottom: 20px; margin: 0; }
.legal { padding-top: 0; }

/* Final CTA */
.final-in { text-align: center; padding: 56px 24px; background: radial-gradient(600px 260px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%), var(--glass); }
.final-in .lead { max-width: 560px; margin: 0 auto; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 44px 0 28px; background: #030817; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; }
.foot-in img { width: 110px; }
.foot-in p { margin: 6px 0 0; font-size: .85rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { color: var(--silver); text-decoration: none; font-size: .92rem; }
.foot nav a:hover { color: #fff; }
.copy { font-size: .82rem; margin-top: 28px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
@media (forced-colors: active) {
  .seg, .seg-in { stroke: CanvasText; }
  .sw { forced-color-adjust: none; }
}
