:root {
  --bg: #07070a;
  --bg-soft: #100d08;
  --panel: rgba(12, 12, 18, 0.82);
  --panel-strong: rgba(16, 14, 10, 0.92);
  --panel-border: rgba(255, 200, 64, 0.18);
  --text: #f8f3dc;
  --muted: #c6b98f;
  --gold: #ffbf2f;
  --gold-strong: #ff9f0a;
  --gold-soft: rgba(255, 191, 47, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { 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, #1a130b 0%, #09090d 38%, #040406 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.18;
  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(8, 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: .12em;
  color: var(--text);
  white-space: nowrap;
}

.brand-ticker {
  color: var(--gold);
  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,191,47,.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 191, 47, 0.18);
  border-radius: 999px;
  background: rgba(255, 191, 47, 0.06);
  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(8, 8, 12, 0.92);
  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, padding .22s ease, margin-top .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, 191, 47, 0.18);
}

.hero-copy,
.card,
.signal-strip {
  background: linear-gradient(180deg, rgba(16,16,22,.88), rgba(12,12,18,.72));
  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(--gold);
  letter-spacing: .24em;
  font-size: .78rem;
  font-weight: 700;
}

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 24px rgba(255, 191, 47, 0.45);
}

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;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 191, 47, 0.26);
  background: rgba(255, 191, 47, 0.06);
  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;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 191, 47, 0.15);
  background: rgba(255, 191, 47, 0.12);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-strong));
  color: #1c1300;
  border-color: transparent;
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.signal-strip {
  grid-column: 1 / -1;
  padding: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.signal-pill {
  flex: 1 1 240px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: 18px;
  background: rgba(255,191,47,.06);
  border: 1px solid rgba(255,191,47,.12);
  font-weight: 700;
}

.card {
  padding: 1.2rem;
}

.full-width {
  grid-column: 1 / -1;
}

.section-header {
  margin-bottom: .8rem;
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border-radius: 18px;
  background: rgba(5, 5, 7, 0.72);
  border: 1px solid rgba(255, 191, 47, 0.14);
  color: var(--text);
  padding: 1rem;
  font: inherit;
  outline: none;
}

textarea:focus {
  border-color: rgba(255, 191, 47, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 191, 47, 0.09);
}

.field-label, .info-label {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  margin: .75rem 0 .4rem;
}

.info-list {
  display: grid;
  gap: .85rem;
}

.info-list.compact { gap: .75rem; }

code {
  display: inline-block;
  padding: .5rem .65rem;
  border-radius: 12px;
  background: rgba(255, 191, 47, 0.08);
  border: 1px solid rgba(255, 191, 47, 0.14);
  color: #ffd56d;
  font-size: .95rem;
}

.wrap {
  word-break: break-all;
}

.three-grid,
.lore-grid,
.quote-grid {
  display: grid;
  gap: 1rem;
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.lore-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 191, 47, 0.14);
  background: rgba(255, 191, 47, 0.05);
  padding: 1rem;
}

.mini-card p,
.lore-panel p {
  margin: .45rem 0 0;
  color: var(--muted);
}

.mini-label {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .16em;
  font-size: .78rem;
}

.lore-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glow-panel {
  box-shadow: inset 0 0 0 1px rgba(255,191,47,.06), 0 0 24px rgba(255,191,47,.08);
}

.quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-chip {
  appearance: none;
  border: 1px solid rgba(255, 191, 47, 0.16);
  background: rgba(255, 191, 47, 0.06);
  color: var(--text);
  border-radius: 16px;
  min-height: 78px;
  padding: 1rem;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quote-chip:hover {
  background: rgba(255,191,47,.12);
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.meme-img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 191, 47, 0.16);
  box-shadow: var(--shadow);
  background: #0b0b10;
}


.dex-frame-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 191, 47, 0.16);
  min-height: 640px;
}

.dex-frame-wrap iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0b0b10;
}

.video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 47, 0.16);
  background: #000;
}

video {
  width: 100%;
  display: block;
  max-height: 80vh;
  object-fit: cover;
}

.video-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}

.footer {
  padding: 0 0 2rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,191,47,.12);
  padding-top: 1rem;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .main-grid,
  .three-grid,
  .lore-grid,
  .quote-grid,
  .meme-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 1.1rem;
  }

  .dex-frame-wrap,
  .dex-frame-wrap iframe {
    min-height: 520px;
    height: 520px;
  }

  .top-bar {
    min-height: 54px;
    padding: .5rem .75rem;
  }

  .brand-lockup {
    max-width: calc(100% - 56px);
    overflow: hidden;
  }

  .brand-name {
    font-size: .82rem;
    letter-spacing: .1em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-ticker {
    font-size: .72rem;
    letter-spacing: .12em;
  }

  .top-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none;
  }
}
