@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ground: #05060D;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(148, 163, 255, 0.16);
  --line-strong: rgba(148, 163, 255, 0.32);
  --ink: #EEF1FF;
  --ink-soft: #B7BEDC;
  --muted: #7C86AD;
  --gold: #F7C948;
  --gold-soft: #FFE08A;
  --gold-dim: rgba(247, 201, 72, 0.12);
  --cyan: #38E1FF;
  --violet: #8B5CF6;
  --magenta: #E879F9;
  --teal: #38E1FF;
  --red: #FF6B81;
  --green: #4ADE80;
  --radius: 14px;
  --grad-hot: linear-gradient(100deg, #FFE08A, #F7C948 55%, #FF9A3D);
  --grad-neon: linear-gradient(90deg, #FFE08A, #F7C948, #FF9A3D);
  --font-display: "Orbitron", "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
/* --- ambient: cyber grid + glow orbs --- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 201, 72, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 201, 72, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.7));
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.7));
}
body::after {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 640px at 18% 4%, rgba(247, 201, 72, 0.16), transparent 62%),
    radial-gradient(760px 760px at 84% 16%, rgba(255, 154, 61, 0.13), transparent 62%),
    radial-gradient(600px 600px at 58% 96%, rgba(255, 224, 138, 0.09), transparent 62%);
  animation: orbs 16s ease-in-out infinite alternate;
}
@keyframes orbs {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -2%, 0) scale(1.06); }
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; letter-spacing: 0.01em; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-shadow: 0 0 14px rgba(247, 201, 72, 0.6); }
p { max-width: 66ch; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.logo {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.04em; margin-right: auto; white-space: nowrap;
}
.logo:hover { text-decoration: none; text-shadow: none; filter: drop-shadow(0 0 10px rgba(247, 201, 72, 0.6)); }
.logo small { color: var(--muted); -webkit-text-fill-color: var(--muted); font-family: "Inter", sans-serif; font-size: 0.6em; font-weight: 500; letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 18px; font-size: 0.86rem; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--cyan); text-decoration: none; }
.nav-links a.active { color: var(--gold); font-weight: 600; text-shadow: 0 0 16px rgba(247, 201, 72, 0.65); }
@media (max-width: 860px) { .nav-links { order: 3; width: 100%; } }

button {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 12px;
  border: none; padding: 11px 22px;
  background: var(--grad-hot); color: #1A1302;
  box-shadow: 0 0 24px rgba(247, 201, 72, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 38px rgba(247, 201, 72, 0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
button:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
button.ghost {
  background: rgba(247, 201, 72, 0.06); color: var(--gold-soft);
  border: 1px solid rgba(247, 201, 72, 0.45);
  box-shadow: 0 0 14px rgba(247, 201, 72, 0.10) inset;
}
button.ghost:hover:not(:disabled) { box-shadow: 0 0 22px rgba(247, 201, 72, 0.35); }
button.small { padding: 7px 16px; font-size: 0.85rem; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

#demo-banner {
  background: var(--gold-dim); border-bottom: 1px solid var(--line);
  color: var(--gold-soft); text-align: center; font-size: 0.85rem;
  padding: 8px 16px; display: none;
}

/* ---------- Page headers ---------- */
.hero { padding: 96px 0 64px; text-align: center; position: relative; }
.page-head { padding: 64px 0 8px; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 12px;
  text-shadow: 0 0 18px rgba(247, 201, 72, 0.6);
}
.hero h1, .page-head h1 {
  background: linear-gradient(95deg, #FFF3C4 4%, #FFE08A 28%, #F7C948 58%, #E8A93D 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 30px rgba(247, 201, 72, 0.28));
}
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); margin: 12px 0 18px; line-height: 1.14; }
.page-head h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); margin: 0 0 12px; line-height: 1.18; }
.lead { color: var(--ink-soft); font-size: 1.05rem; }
.hero .lead { max-width: 58ch; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-top: 52px;
}
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line); backdrop-filter: blur(12px);
  border-radius: var(--radius); padding: 18px 16px;
  position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-neon); opacity: 0.7;
}
.stat .label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stat .value {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--gold-soft); margin-top: 6px;
  text-shadow: 0 0 22px rgba(247, 201, 72, 0.5);
}

/* ---------- Sections & cards ---------- */
section { padding: 60px 0; position: relative; }
section + section { border-top: 1px solid rgba(148, 163, 255, 0.08); }
section h2 { font-size: 1.55rem; margin: 0 0 10px; color: var(--ink); }
.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 62ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
  border: 1px solid var(--line); backdrop-filter: blur(14px);
  border-radius: 16px; padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 201, 72, 0.5);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(247, 201, 72, 0.12);
}
.card h3 { margin: 0 0 14px; font-size: 1.02rem; color: var(--gold-soft); letter-spacing: 0.03em; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(148, 163, 255, 0.10); font-size: 0.92rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 16px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--font-display); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); border-bottom: 1px solid var(--line-strong); padding: 8px 10px 8px 0; font-weight: 600; }
td { border-bottom: 1px solid rgba(148, 163, 255, 0.10); padding: 10px 10px 10px 0; vertical-align: top; }
tr:hover td { background: rgba(148, 163, 255, 0.03); }
td.r, th.r { text-align: right; }
.table-wrap { overflow-x: auto; }

/* ---------- Allocation & progress ---------- */
.alloc-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; margin: 8px 0 14px; box-shadow: 0 0 26px rgba(247, 201, 72, 0.25); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.85rem; color: var(--ink-soft); }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.c1 { background: #F7C948; } .c2 { background: #38E1FF; }
.c3 { background: #5B8DEF; } .c4 { background: #8B5CF6; }
.c5 { background: #FF8A3D; } .c6 { background: #64748B; }

.progress { background: rgba(148, 163, 255, 0.10); border-radius: 99px; height: 14px; overflow: hidden; margin: 10px 0 6px; border: 1px solid rgba(148, 163, 255, 0.14); }
.progress > div {
  height: 100%; background: var(--grad-neon); width: 0%;
  transition: width 0.6s; border-radius: 99px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 16px rgba(247, 201, 72, 0.55);
}
.progress > div::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
  animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: flex; gap: 10px; margin: 16px 0; }
input[type="number"], input[type="text"] {
  flex: 1; font: inherit; background: rgba(5, 6, 13, 0.6); border: 1px solid var(--line);
  color: var(--ink); border-radius: 12px; padding: 11px 14px; min-width: 0;
}
input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.18), 0 0 18px rgba(247, 201, 72, 0.25); }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: -6px; }
.countdown { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--gold); text-shadow: 0 0 16px rgba(247, 201, 72, 0.6); }
label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Steps ---------- */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 24px 0 0; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 22px 54px; border-left: 1px solid var(--line); margin-left: 17px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: -18px; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(5, 6, 13, 0.9); border: 1px solid rgba(247, 201, 72, 0.6);
  color: var(--gold-soft); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 16px rgba(247, 201, 72, 0.4);
}
ol.steps h3 { margin: 0 0 6px; font-size: 1rem; font-family: "Inter", sans-serif; font-weight: 700; }
ol.steps p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 6px; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.phase-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
  border: 1px solid var(--line); border-radius: 16px; padding: 20px; backdrop-filter: blur(14px);
}
.phase-card .tag { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.phase-card h3 { font-size: 1rem; margin: 8px 0; font-family: "Inter", sans-serif; font-weight: 700; color: var(--ink); }
.phase-card ul { margin: 0; padding-left: 1.1em; font-size: 0.87rem; color: var(--ink-soft); }
.phase-card li { margin-bottom: 4px; }
.phase-card.active { border-color: rgba(247, 201, 72, 0.55); box-shadow: 0 0 30px rgba(247, 201, 72, 0.15); }
.status-pill {
  display: inline-block; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 99px; padding: 3px 12px; margin-left: 8px; vertical-align: middle;
}
.status-pill.live { background: rgba(74, 222, 128, 0.14); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.4); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px rgba(74, 222, 128, 0.3); } 50% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.7); } }
.status-pill.soon { background: var(--gold-dim); color: var(--gold-soft); border: 1px solid rgba(176, 124, 255, 0.4); }
.status-pill.later { background: rgba(148, 163, 255, 0.08); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Vesting timeline ---------- */
.vesting { margin-top: 24px; }
.vest-row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 0.85rem; }
@media (max-width: 640px) { .vest-row { grid-template-columns: 110px 1fr; } }
.vest-row .name { color: var(--ink-soft); text-align: right; }
.vest-track { background: rgba(148, 163, 255, 0.08); border-radius: 6px; height: 22px; position: relative; overflow: hidden; border: 1px solid rgba(148, 163, 255, 0.12); }
.vest-bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.vest-bar.cliff { background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(247, 201, 72, 0.3) 6px, rgba(247, 201, 72, 0.3) 8px); }
.vest-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 6px; grid-column: 2; }
.vest-head { display: grid; grid-template-columns: 180px 1fr; gap: 14px; }
@media (max-width: 640px) { .vest-head { grid-template-columns: 110px 1fr; } }

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  backdrop-filter: blur(10px); margin-bottom: 10px;
  transition: border-color 0.2s;
}
details:hover { border-color: rgba(247, 201, 72, 0.4); }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p, details ul { padding: 0 20px 16px; margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
details ul { padding-left: 40px; }

/* ---------- Misc ---------- */
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.85em; background: rgba(247, 201, 72, 0.09); color: var(--gold-soft); padding: 1px 6px; border-radius: 5px; }
.formula {
  background: rgba(5, 6, 13, 0.7); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem; overflow-x: auto; margin: 14px 0; color: var(--gold-soft);
  box-shadow: inset 0 0 30px rgba(247, 201, 72, 0.05);
}
.callout {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.09), rgba(139, 92, 246, 0.02));
  border: 1px solid rgba(176, 124, 255, 0.4); border-radius: 14px;
  padding: 16px 20px; margin: 20px 0; font-size: 0.92rem;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.10);
}
.callout strong { color: var(--gold-soft); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.84rem; color: var(--muted); margin-top: 40px; background: rgba(5, 6, 13, 0.5); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin: 24px 0; }
.footer-grid h4 { font-family: var(--font-display); color: var(--ink-soft); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 10px; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 6px; }
.footer-grid a:hover { color: var(--gold-soft); }
footer .addr { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; word-break: break-all; }
.disclaimer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 24px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(5, 6, 13, 0.92); border: 1px solid rgba(247, 201, 72, 0.55); color: var(--ink);
  padding: 12px 22px; border-radius: 12px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 100;
  max-width: 90vw; text-align: center; backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(247, 201, 72, 0.25);
}
#toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress > div { transition: none; }
  .progress > div::after, body::after, .status-pill.live { animation: none; }
  .card:hover, button:hover:not(:disabled) { transform: none; }
}
