:root {
  --bg: #030304;
  --bg-soft: #0c0c0f;
  --panel: rgba(9, 10, 14, 0.84);
  --panel-strong: rgba(11, 12, 16, 0.96);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-border-strong: rgba(255,255,255,.22);
  --text: #f6f7fb;
  --muted: #b7bcc9;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.09);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top, #111216 0%, #050507 38%, #020203 100%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero { padding: .8rem 0 1.1rem; }
.nav-shell { position: sticky; top: .5rem; z-index: 20; margin-bottom: .9rem; }
.top-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem;
  background: rgba(7, 8, 12, 0.84);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: .65rem;
  text-decoration: none;
}
.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--text);
  white-space: nowrap;
}
.brand-ticker {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  white-space: nowrap;
}
.top-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
}
.top-links a,
.mobile-menu a {
  text-decoration: none;
  color: var(--muted);
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
}
.top-links a:hover,
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,.08); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span { width: 16px; height: 2px; border-radius: 2px; background: var(--text); display: block; }
.mobile-menu {
  display: grid;
  gap: .25rem;
  margin-top: .55rem;
  padding: .5rem;
  background: rgba(9,10,14,.95);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: max-height .22s ease, opacity .22s ease, transform .22s ease;
}
.mobile-menu.is-open { max-height: 320px; opacity: 1; pointer-events: auto; transform: translateY(0); }

.hero-inner { display: grid; gap: 1.25rem; }
.hero-banner {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow), 0 0 40px rgba(255,255,255,.12);
}
.hero-copy,
.card {
  background: linear-gradient(180deg, rgba(11,12,16,.92), rgba(7,8,12,.8));
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-copy { padding: 1.5rem; text-align: center; }
.eyebrow { margin: 0 0 .2rem; color: var(--muted); letter-spacing: .28em; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
h1, h2, h3 { font-family: 'Orbitron', sans-serif; margin: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1; text-shadow: 0 0 20px rgba(255,255,255,.18); }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h3 { font-size: 1rem; }
.ticker { margin: .45rem 0 0; color: var(--muted); font-size: 1.05rem; letter-spacing: .18em; font-weight: 700; }

.cta-row, .button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; justify-content: center; }
.button-row.left { justify-content: flex-start; }
.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  padding: .78rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,.08); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.btn-primary { background: linear-gradient(180deg, #ffffff, #d9dde6); color: #0f1014; border-color: transparent; }

.main-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: 2rem; }
.card { padding: 1.2rem; }
.full-width { grid-column: 1 / -1; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-header.centerish { justify-content: center; text-align: center; }
.feed-count { margin: 0 0 .22rem; color: var(--muted); font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; }

.tool-select-wrap {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 220px;
}
.inline-label {
  margin: 0;
}
.tool-select {
  appearance: none;
  width: 100%;
  padding: .82rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
}
.helper-text {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.helper-panel {
  margin-top: .85rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.helper-title {
  margin: 0 0 .35rem;
  font-family: 'Orbitron', sans-serif;
  font-size: .92rem;
}
.stack-on-mobile {
  align-items: flex-end;
}

textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  background: rgba(255,255,255,.03);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1rem;
  font: inherit;
}
textarea:focus { outline: 1px solid rgba(255,255,255,.24); }
.field-label, .info-label { display: inline-block; margin: .85rem 0 .35rem; color: var(--muted); font-size: .86rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
.info-list.compact { display: grid; gap: .8rem; }
.info-list code {
  display: block;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  padding: .8rem .95rem;
  border-radius: 16px;
  font-family: 'Orbitron', monospace;
}
.info-list .wrap { overflow-wrap: anywhere; }
.dex-frame-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #08090d;
}
.dex-frame-wrap iframe { width: 100%; height: 620px; border: 0; display: block; }

.feed-stage {
  position: relative;
  display: block;
  width: min(100%, 760px);
  margin: 0 auto;
}
.feed-frame {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto;
  touch-action: pan-y;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--panel-border-strong);
  background: #06070a;
  aspect-ratio: 2 / 3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 40px rgba(255,255,255,.05);
}
.feed-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px; height: 54px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(16,18,24,.9); color: var(--text); font-size: 2rem; line-height: 1; cursor: pointer;
}
.feed-nav.prev { left: -26px; }
.feed-nav.next { right: -26px; }
.feed-nav:hover { background: rgba(255,255,255,.1); }
.feed-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.feed-dot {
  width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); border: 0; padding: 0; cursor: pointer;
}
.feed-dot.active { background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.4); }

.three-grid, .lore-grid { display: grid; gap: 1rem; }
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-card, .lore-panel {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 1rem;
}
.mini-label { display: inline-block; font-family: 'Orbitron', sans-serif; color: var(--muted); margin-bottom: .65rem; }
.lore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.glow-panel { box-shadow: inset 0 0 24px rgba(255,255,255,.04); }
.lore-panel p, .mini-card p { margin: 0 0 .65rem; }
.lore-panel p:last-child, .mini-card p:last-child { margin-bottom: 0; }

.video-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #000;
}
.video-wrap video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.video-controls {
  position: absolute; right: 1rem; bottom: 1rem;
}

.footer {
  padding-bottom: 2rem;
}
.footer-row {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; align-items: center;
  color: var(--muted);
  padding: 1.1rem 0;
}
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--text); }

@media (max-width: 960px) {
  .top-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-grid,
  .three-grid,
  .lore-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 1rem, 1180px); }
  .top-bar { min-height: 54px; padding: .55rem .8rem; }
  .brand-name { font-size: .84rem; letter-spacing: .14em; }
  .brand-ticker { display: none; }
  .hero-copy { padding: 1.15rem; }
  .feed-nav { width: 46px; height: 46px; }
  .feed-nav.prev { left: -6px; }
  .feed-nav.next { right: -6px; }
  .dex-frame-wrap iframe { height: 500px; }
}


.signal-card {
  background: linear-gradient(180deg, rgba(8,9,13,.96), rgba(6,7,10,.9));
}
.signal-list {
  display: grid;
  gap: 1.1rem;
}
.signal-item {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: .85rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.signal-label {
  margin: 0 0 .55rem;
  font-family: 'Orbitron', sans-serif;
  color: #a89962;
  letter-spacing: .08em;
  font-size: .92rem;
}
.signal-item .twitter-tweet {
  margin: 0 auto !important;
}
.signal-item iframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  border-radius: 18px !important;
}
@media (min-width: 900px) {
  .signal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}


.signal-topline {
  text-align: center;
  color: #a89962;
  letter-spacing: .22em;
  font-size: .82rem;
  text-transform: uppercase;
  margin-bottom: .95rem;
}
.signal-console-head {
  display:flex;
  align-items:center;
  gap:1rem;
  border:1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  border-radius: 20px;
  padding: .95rem 1rem;
  margin-bottom: 1rem;
}
.signal-console-dots { display:flex; gap:.45rem; flex:0 0 auto; }
.signal-console-dots span { width:14px; height:14px; border-radius:999px; background:rgba(255,255,255,.18); display:block; }
.signal-console-dots span:first-child { background:#a89962; }
.signal-console-meta {
  color: var(--muted);
  font-family:'Orbitron', sans-serif;
  letter-spacing:.08em;
  font-size:.88rem;
}
.signal-header { margin-bottom: .8rem; }
.signal-header h2 { margin:0; }
.tweet-embed {
  width:100%;
  height: 560px;
  min-height: 560px;
  border:0;
  border-radius:18px;
  background:#0b0d12;
  display:block;
}
@media (max-width: 720px) {
  .signal-console-head { padding:.85rem .9rem; }
  .signal-console-meta { font-size:.76rem; line-height:1.45; }
  .tweet-embed { height: 560px; min-height: 560px; }
}

.feed-frame, .feed-frame img { pointer-events: none; }


.roadmap-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(76,114,255,.18), transparent 26%),
    radial-gradient(circle at top left, rgba(70,210,255,.08), transparent 20%),
    linear-gradient(180deg, rgba(8,10,20,.96), rgba(5,7,14,.92));
}
.roadmap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(110,150,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(110,150,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .18;
  pointer-events: none;
}
.roadmap-header { position: relative; z-index: 1; }
.roadmap-chip {
  font-family: 'Orbitron', sans-serif;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(150,200,255,.28);
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 24px rgba(90,150,255,.18);
  color: #dfe8ff;
  letter-spacing: .12em;
}
.roadmap-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
}
.roadmap-grid::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  border: 1px solid rgba(86,150,255,.14);
  border-radius: 30px;
  filter: drop-shadow(0 0 18px rgba(96,154,255,.18));
  pointer-events: none;
}
.roadmap-phase {
  position: relative;
  background: linear-gradient(180deg, rgba(10,14,28,.96), rgba(7,10,20,.92));
  border: 1px solid rgba(123,171,255,.28);
  border-radius: 24px;
  padding: 1.2rem 1.15rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 30px rgba(81,141,255,.12);
}
.roadmap-phase::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 28px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(90,160,255,0), rgba(130,200,255,.95));
  box-shadow: 0 0 10px rgba(130,200,255,.55);
}
.phase-2::before, .phase-4::before { left: auto; right: -18px; background: linear-gradient(90deg, rgba(130,200,255,.95), rgba(90,160,255,0)); }
.phase-topline {
  color: #8bc9ff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.roadmap-phase h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin-bottom: .25rem;
}
.phase-sub {
  margin: 0 0 .8rem;
  color: #88a3d6;
  font-weight: 600;
}
.roadmap-phase ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: .34rem;
}
.roadmap-phase li { color: #eef3ff; }
.phase-code {
  margin-top: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(126,178,255,.22);
  background: rgba(255,255,255,.04);
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  letter-spacing: .14em;
  font-size: .86rem;
}
.phase-code::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8ad1ff;
  box-shadow: 0 0 12px rgba(138,209,255,.8);
}
@media (max-width: 960px) {
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-grid::before { inset: 8% 6%; }
  .roadmap-phase::before, .phase-2::before, .phase-4::before { left: 32px; right: auto; top: -14px; width: 2px; height: 14px; background: linear-gradient(180deg, rgba(90,160,255,0), rgba(130,200,255,.95)); }
}
@media (max-width: 720px) {
  .roadmap-chip { width: 100%; justify-content: center; text-align: center; }
  .roadmap-header { align-items: stretch; }
}

@media (max-width: 760px) {
  .stack-on-mobile { flex-direction: column; align-items: stretch; }
  .tool-select-wrap { min-width: 0; width: 100%; }
}


.stats-card {
  background:
    radial-gradient(circle at top right, rgba(168,153,98,.16), transparent 28%),
    linear-gradient(180deg, rgba(9,10,14,.95), rgba(6,7,10,.92));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat-pill {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 98px;
  justify-content: center;
}
.stat-label {
  color: var(--muted);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .12em;
  font-size: .82rem;
  text-transform: uppercase;
}
.stat-value {
  color: #f3f5fa;
  font-size: 1.2rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.center-text {
  text-align: center;
}
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
}


.compact-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}
.stats-card .section-header { margin-bottom: .8rem; }
.stats-card h2 { font-size: clamp(1.05rem, 2.4vw, 1.5rem); }
.stat-pill {
  min-height: 76px;
  padding: .85rem .9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8,10,14,.9), rgba(5,7,10,.82));
}
.stat-label {
  font-size: .72rem;
  letter-spacing: .16em;
  line-height: 1.2;
}
.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}
.signal-item {
  padding: .8rem;
}
.signal-item iframe {
  display: block;
}
.tweet-embed {
  height: 520px;
  min-height: 520px;
}
@media (max-width: 1100px) {
  .compact-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .compact-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-pill { min-height: 72px; padding: .8rem; }
  .stat-value { font-size: .95rem; }
  .tweet-embed {
    height: 470px;
    min-height: 470px;
  }
}
@media (max-width: 480px) {
  .compact-stats { grid-template-columns: 1fr; }
  .tweet-embed {
    height: 430px;
    min-height: 430px;
  }
}
