:root {
  --bg: #06111d;
  --bg-deep: #040b12;
  --panel: rgba(9, 21, 35, 0.8);
  --panel-strong: rgba(7, 17, 29, 0.9);
  --line: rgba(111, 255, 198, 0.18);
  --line-strong: rgba(111, 255, 198, 0.34);
  --text: #e9f7ff;
  --muted: #98aac3;
  --green: #69ffad;
  --green-2: #2cffdc;
  --cyan: #4deaff;
  --purple: #9d5cff;
  --pink: #ff6cff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --pixel-shadow: 0 0 0 1px rgba(5, 10, 17, 0.75), 0 0 0 2px rgba(111, 255, 198, 0.08), 0 16px 40px rgba(0,0,0,.35);
  --radius: 24px;
  --shell: min(1280px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(27, 84, 66, 0.18), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(157, 92, 255, 0.15), transparent 25%),
    linear-gradient(180deg, #07111c 0%, #04070d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.page-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 255, 176, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 255, 176, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  z-index: 0;
}

.page-glow {
  position: fixed;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  top: 140px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: var(--green);
}
.glow-2 {
  right: -120px;
  top: 220px;
  width: 420px;
  height: 420px;
  background: var(--purple);
}

.shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: var(--pixel-shadow);
}
.brand strong, .brand span {
  display: block;
}
.brand strong {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  line-height: 1.5;
}
.brand span {
  color: var(--green);
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  gap: 22px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(5, 11, 18, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 999px;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover { color: var(--text); }

.top-cta,
.btn,
.portal-btn {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(109, 255, 181, 0.35);
  background: linear-gradient(135deg, rgba(109, 255, 181, 0.14), rgba(77, 234, 255, 0.1));
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--pixel-shadow);
}
.top-cta:hover,
.btn:hover,
.portal-btn:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 24px 0 34px;
}

.hero-backdrop {
  position: absolute;
  inset: 16px 0 0;
  height: 680px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) brightness(0.82);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.32) 0%, rgba(2, 7, 14, 0.74) 65%, rgba(2, 7, 14, 0.95) 100%),
    linear-gradient(90deg, rgba(4, 11, 18, 0.94) 0%, rgba(4, 11, 18, 0.46) 50%, rgba(4, 11, 18, 0.86) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding: 52px 24px 22px;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.78), rgba(5, 12, 20, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--pixel-shadow);
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 255, 181, 0.06), rgba(157, 92, 255, 0.04));
  pointer-events: none;
}
.panel-xl { padding: 36px; }
.panel-tall { padding: 22px; min-height: 590px; display: flex; flex-direction: column; justify-content: flex-end; }
.panel-inline { padding: 18px 20px; margin-top: 22px; }

.eyebrow,
.section-kicker,
.phase,
.label {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow,
.section-kicker { color: var(--green); }
.label { color: var(--muted); }

.hero-copy h1 {
  margin: 18px 0 18px;
  max-width: 10ch;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.14;
  text-shadow: 0 0 20px rgba(109,255,181,0.18);
}
.hero-copy h1 em {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.46em;
  color: var(--green);
}

.lead {
  max-width: 650px;
  color: #d3e6f5;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-tags span,
.chart-header {
  background: rgba(10, 21, 34, 0.75);
  border: 1px solid rgba(110, 255, 184, 0.18);
}
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #dff8ef;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(90deg, var(--green) 0%, var(--cyan) 55%, var(--purple) 100%);
  color: #051017;
}
.btn-ghost,
.btn-copy {
  background: rgba(8, 17, 28, 0.85);
  border-color: rgba(110, 255, 184, 0.22);
  color: var(--text);
}

.contract-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contract-card code {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--green);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wizard-card {
  align-items: center;
}
.rune-ring {
  position: absolute;
  inset: 50px 50px auto;
  width: calc(100% - 100px);
  aspect-ratio: 1;
  max-width: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(109,255,181,.3);
  filter: drop-shadow(0 0 25px rgba(109,255,181,.18));
}
.rune-ring::before,
.rune-ring::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(157,92,255,.26);
}
.rune-ring::after { inset: 34px; border-color: rgba(77,234,255,.22); }
.wizard-art {
  width: min(100%, 430px);
  margin: 28px auto 10px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 28px rgba(70, 255, 188, 0.2));
  position: relative;
  z-index: 1;
}
.wizard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.wizard-stats > div,
.ticker-line,
.detail-list > div,
.portal-btn {
  background: rgba(6, 14, 24, 0.76);
  border: 1px solid rgba(109,255,181,.16);
  border-radius: 16px;
}
.wizard-stats > div {
  padding: 16px;
}
.wizard-stats span,
.ticker-line span,
.detail-list span,
.portal-btn span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.wizard-stats strong,
.ticker-line strong,
.detail-list strong,
.portal-btn strong { display: block; margin-top: 8px; }
.wizard-stats strong { color: var(--green); }

.ticker-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.ticker-line {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.ticker-line strong { margin-top: 0; color: var(--cyan); }

.info-grid,
.pulse-layout,
.lower-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}
.info-grid { grid-template-columns: 1.15fr 0.85fr; }
.pulse-layout { grid-template-columns: 1.08fr 0.92fr; align-items: start; }
.lower-grid { grid-template-columns: 1.1fr 0.9fr; margin-bottom: 30px; }
.story-panel,
.thesis-panel,
.pulse-panel,
.pulse-notes,
.link-panel,
.token-panel,
.chart-frame,
.roadmap-card { padding: 28px; }

.story-panel h2,
.thesis-panel h2,
.pulse-panel h2,
.chart-wrap h2,
.link-panel h2,
.token-panel h2,
.roadmap-wrap h2 {
  margin: 14px 0 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.4;
}
.story-panel p,
.thesis-panel p,
.pulse-panel p,
.pulse-notes p,
.chart-wrap p,
.link-panel p,
.token-panel p,
.roadmap-wrap p,
.roadmap-card li { color: #cfe0ee; line-height: 1.8; }
.mini-cards { display: grid; gap: 14px; margin-top: 16px; }
.mini-cards article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(5, 11, 18, 0.58);
  border: 1px solid rgba(109,255,181,.12);
}
.mini-cards h3 { margin: 0 0 8px; color: var(--green); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.roadmap-wrap { margin-top: 26px; }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.phase { color: var(--cyan); }
.roadmap-card h3 { margin: 14px 0 14px; font-size: 22px; }
.roadmap-card ul { margin: 0; padding-left: 18px; }

#solanaChart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(3, 9, 16, 0.82), rgba(5, 14, 23, 0.96));
  border: 1px solid rgba(109,255,181,.16);
}
.signal-list { display: grid; gap: 16px; margin-top: 18px; }
.signal-list > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(5, 11, 18, 0.58);
  border: 1px solid rgba(109,255,181,.12);
}
.signal-list h3 { margin: 0 0 6px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 8px;
  box-shadow: 0 0 18px currentColor;
}
.dot-green { color: var(--green); background: var(--green); }
.dot-purple { color: var(--purple); background: var(--purple); }
.dot-cyan { color: var(--cyan); background: var(--cyan); }

.chart-wrap { margin-top: 30px; }
.chart-frame { overflow: hidden; }
.chart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.orb-green { background: var(--green); box-shadow: 0 0 14px rgba(109,255,181,.6); }
.orb-purple { background: var(--purple); box-shadow: 0 0 14px rgba(157,92,255,.6); }
.orb-cyan { background: var(--cyan); box-shadow: 0 0 14px rgba(77,234,255,.6); }
.dex-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(4, 8, 13, 0.9);
  min-height: 560px;
  border: 1px solid rgba(109,255,181,.16);
}
#dexFrame {
  width: 100%;
  height: 560px;
  border: 0;
  background: #08111a;
}
.dex-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #d7f8e8;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(109,255,181,.15), transparent 35%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.82), rgba(6, 10, 16, 0.9));
}
.dex-overlay.hidden { display: none; }

.portal-grid,
.detail-list { display: grid; gap: 14px; }
.portal-grid { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.portal-btn {
  min-height: 110px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portal-btn strong { color: var(--green); font-size: 18px; }
.detail-list > div {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.detail-list strong { margin-top: 0; color: var(--cyan); text-align: right; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px 0 38px;
  color: var(--muted);
}
.footer strong {
  font-family: 'Press Start 2P', monospace;
  display: block;
  color: var(--text);
  font-size: 14px;
}
.footer span { color: var(--green); display: block; margin-top: 6px; font-size: 12px; }
.footer p { max-width: 720px; line-height: 1.7; }

@media (max-width: 1120px) {
  .hero-inner,
  .info-grid,
  .pulse-layout,
  .lower-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .hero-backdrop { height: 960px; }
  .nav { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --radius: 22px; }
  .topbar { padding-top: 16px; }
  .brand strong { font-size: 12px; }
  .top-cta { display: none; }
  .hero-inner { padding: 18px 10px 14px; }
  .panel-xl,
  .story-panel,
  .thesis-panel,
  .pulse-panel,
  .pulse-notes,
  .link-panel,
  .token-panel,
  .chart-frame,
  .roadmap-card { padding: 20px; }
  .hero-copy h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .contract-card { flex-direction: column; align-items: flex-start; }
  .portal-grid { grid-template-columns: 1fr; }
  .detail-list > div { align-items: flex-start; flex-direction: column; }
  .hero-backdrop { height: 1080px; inset-top: 0; }
  .panel-tall { min-height: auto; }
  #dexFrame, .dex-wrap { min-height: 460px; height: 460px; }
}
