:root {
  --bg: #090611;
  --bg-2: #150a2a;
  --panel: rgba(15, 20, 44, 0.48);
  --panel-strong: rgba(15, 20, 44, 0.72);
  --line: rgba(255,255,255,0.12);
  --text: #f4f9ff;
  --muted: #c7d1e5;
  --purple: #8a1cff;
  --cyan: #18f1d6;
  --blue: #1473ff;
  --gold: #ffe45f;
  --green: #55f06d;
  --shadow: 0 25px 80px rgba(0,0,0,0.35);
  --radius: 24px;
  --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #130826 0%, var(--bg) 55%, #05030a 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-bg,
.grid-lines,
.glow { position: fixed; inset: 0; pointer-events: none; }
.site-bg {
  background:
    radial-gradient(circle at 12% 70%, rgba(24,241,214,0.2), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(20,115,255,0.24), transparent 28%),
    radial-gradient(circle at 38% 22%, rgba(138,28,255,0.28), transparent 24%);
  z-index: -3;
}
.grid-lines {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,0));
  z-index: -2;
}
.glow {
  filter: blur(50px);
  opacity: .55;
  z-index: -1;
}
.glow-a {
  background: radial-gradient(circle, rgba(138,28,255,.45) 0%, transparent 60%);
  width: 40vw; height: 40vw; top: -10vw; left: -8vw;
}
.glow-b {
  background: radial-gradient(circle, rgba(24,241,214,.3) 0%, transparent 60%);
  width: 38vw; height: 38vw; bottom: -10vw; right: -6vw;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(calc(100% - 32px), var(--container));
  margin: 16px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  background: rgba(9, 6, 17, 0.58);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display:block; font-size: 1rem; }
.brand small { color: var(--muted); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  display:grid; place-items:center; font-weight:900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 25px rgba(138,28,255,.35);
}
.topnav { display: flex; gap: 24px; color: var(--muted); }
.topnav a:hover { color: var(--text); }
.section {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 110px 0 10px;
}
.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  color: #e7d87e; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero h1, .section-heading h2, .social-panel h2, .banner-overlay h2 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -0.03em;
}
.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95;
}
.subhead {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}
.hero-actions, .social-buttons, .topbar .btn-mini { display:flex; gap:14px; flex-wrap: wrap; }
.btn {
  position: relative;
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 10px 40px rgba(24,241,214,.25);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,228,95,0.45);
  color: #fff3a3;
}
.btn-mini { padding: 11px 16px; border-radius: 14px; }
.ticker-card {
  margin-top: 22px;
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  width: fit-content;
}
.ticker-pill {
  min-width: 48px; height: 48px; border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,228,95,.25), rgba(255,228,95,.05));
  border: 1px solid rgba(255,228,95,.35);
  font-weight: 800;
}
.contract-wrap {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
code {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  color: #d6fff6;
}
.copy-btn {
  cursor:pointer;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  background: #fff3a3;
  color: #221300;
}
.metric-row {
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric, .glass-card, .timeline-item, .chart-shell, .social-panel, .gallery-card {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.metric {
  padding: 18px 20px;
  border-radius: 20px;
}
.metric span {
  display:block;
  color: var(--muted);
  margin-bottom: 8px;
}
.metric strong { font-size: 1.1rem; }
.hero-art {
  position: relative;
  min-height: 700px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.character {
  position: relative;
  z-index: 2;
  max-height: 760px;
  filter: drop-shadow(0 40px 55px rgba(0,0,0,.35));
  animation: float 6s ease-in-out infinite;
}
.gold-frame {
  position:absolute; inset: 12% 8%;
  border: 2px solid rgba(255,228,95,.85);
  transform: rotate(36deg);
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(255,228,95,.18);
}
.gold-frame::before,
.gold-frame::after {
  content:""; position:absolute; inset: 14%; border-radius:50%;
  border: 2px solid rgba(255,228,95,.65);
}
.gold-frame::after {
  inset: auto;
  width: 68%; height: 68%; right: 8%; bottom: 8%;
}
.float-card {
  position:absolute;
  z-index:3;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 8, 12, .55);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff7bd;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.float-card-a { top: 16%; right: 10%; animation: drift 8s ease-in-out infinite; }
.float-card-b { bottom: 18%; left: 8%; animation: drift 7s ease-in-out infinite reverse; }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .banner-overlay h2, .social-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.story-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.glass-card {
  padding: 26px;
  border-radius: var(--radius);
}
.glass-card h3, .timeline-item h3 { margin-top: 0; font-size: 1.35rem; }
.glass-card p, .timeline-item li { color: var(--muted); line-height: 1.75; }
.banner-panel {
  position:relative;
  overflow:hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.banner-panel img { width: 100%; min-height: 320px; object-fit: cover; }
.banner-overlay {
  position:absolute; inset: 0;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 50%);
}
.timeline {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.timeline-item {
  padding: 24px;
  border-radius: 24px;
}
.phase {
  display:inline-block;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #fff3a3;
  background: rgba(255,228,95,.08);
  border: 1px solid rgba(255,228,95,.25);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chart-shell {
  padding: 14px;
  border-radius: 28px;
  overflow:hidden;
}
.chart-shell iframe {
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,14,29,.9), rgba(26,8,48,.85));
}
.gallery-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-card {
  overflow:hidden;
  border-radius: 24px;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-card:hover img { transform: scale(1.03); }
.gallery-card.wide { grid-column: span 3; }
.social-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 30px;
  padding: 28px;
  border-radius: 28px;
}
.footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 40px auto 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  text-align:center;
}
.reveal, .reveal-right, .reveal-delayed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-right { transform: translateX(20px); }
.reveal-delayed { transition-delay: .12s; }
.reveal.show, .reveal-right.show, .reveal-delayed.show {
  opacity: 1;
  transform: none;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes drift {
  0%,100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-12px,0); }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 560px; }
  .story-grid, .timeline, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-card.wide { grid-column: span 2; }
  .social-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; justify-content: center; }
  .topnav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .metric-row, .story-grid, .timeline, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.wide { grid-column: span 1; }
  .chart-shell iframe { height: 460px; }
}
@media (max-width: 560px) {
  .section { padding-top: 88px; }
  .hero { min-height: auto; }
  .character { max-height: 480px; }
  .hero-art { min-height: 430px; }
  .ticker-card, .contract-wrap, .hero-actions, .social-buttons { width: 100%; }
  .btn, .copy-btn { width: 100%; }
  code { width: 100%; overflow-x: auto; }
}
