/* ============================================================
   $REAL — FrankensteinArchitectAcceleratorPinocchio69BInu
   Vanilla CSS. No frameworks, no build step.
   ============================================================ */

@font-face {
  font-family: 'Press Start 2P Fallback';
  src: local('Courier New');
}

:root {
  --bg: #000000;
  --c-red: #ef1717;
  --c-blue: #155cff;
  --c-green: #39ff14;
  --c-yellow: #ffc400;
  --c-orange: #c77a2d;
  --c-silver: #d5d8df;
  --c-white: #ffffff;

  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-gothic: 'Copperplate', 'Papyrus', 'Herculanum', var(--font-serif);
  --font-pixel: 'Courier New', Courier, monospace;

  --max-width: 880px;
  --border-thick: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--c-silver);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--c-blue);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.c-red { color: var(--c-red); }
.c-blue { color: var(--c-blue); }
.c-green { color: var(--c-green); }
.c-yellow { color: var(--c-yellow); }
.c-white { color: var(--c-white); }

/* ============================================================
   BACKGROUND DECOR — kept deliberately sparse
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-decor__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 12%, var(--c-white) 50%, transparent 50%),
    radial-gradient(1px 1px at 22% 30%, var(--c-white) 50%, transparent 50%),
    radial-gradient(1px 1px at 41% 8%, var(--c-yellow) 50%, transparent 50%),
    radial-gradient(1px 1px at 63% 22%, var(--c-white) 50%, transparent 50%),
    radial-gradient(1px 1px at 78% 14%, var(--c-white) 50%, transparent 50%),
    radial-gradient(1px 1px at 88% 35%, var(--c-blue) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 55%, var(--c-white) 50%, transparent 50%),
    radial-gradient(1px 1px at 55% 60%, var(--c-white) 50%, transparent 50%),
    radial-gradient(1px 1px at 95% 65%, var(--c-white) 50%, transparent 50%),
    radial-gradient(1px 1px at 33% 75%, var(--c-white) 50%, transparent 50%);
  opacity: 0.6;
  animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

.bg-decor__binary {
  position: absolute;
  inset: 0;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--c-green);
  opacity: 0.05;
  white-space: pre;
  line-height: 1.4;
  content: '';
}

.bg-decor__binary::before {
  content: '01001000 01010101 01001101 01000001 01001110\A 01000010 01001111 01011001 00100000 01000100 01000101 01010100 01000101 01000011 01010100 01000101 01000100';
  white-space: pre;
  position: absolute;
  top: 30%;
  left: -5%;
  transform: rotate(-8deg);
}

.bg-decor__horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  opacity: 0.9;
}

.bg-decor__server-lights {
  animation: server-blink 3s steps(1) infinite;
}

@keyframes server-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.bg-decor__lightning {
  position: absolute;
  inset: 0;
  background: var(--c-blue);
  opacity: 0;
}

.bg-decor__lightning.flash {
  animation: bg-flash 0.4s ease-out;
}

@keyframes bg-flash {
  0% { opacity: 0; }
  10% { opacity: 0.12; }
  20% { opacity: 0; }
  30% { opacity: 0.08; }
  100% { opacity: 0; }
}

/* ============================================================
   ENTRANCE MODAL
   ============================================================ */
.entrance-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.entrance-modal[hidden] {
  display: none;
}

.entrance-modal__inner {
  position: relative;
  max-width: 640px;
  width: 100%;
  text-align: center;
  border: var(--border-thick) solid var(--c-red);
  padding: 40px 24px;
  background: #050505;
  box-shadow: 0 0 0 6px #000, 0 0 0 9px var(--c-blue);
}

.entrance-modal__glitch-layer {
  position: absolute;
  inset: 0;
  background: var(--c-red);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.entrance-modal__glitch-layer.active {
  animation: glitch-flash 0.5s steps(2);
}

@keyframes glitch-flash {
  0% { opacity: 0; transform: translate(0); }
  20% { opacity: 0.5; transform: translate(-6px, 3px); }
  40% { opacity: 0.2; transform: translate(6px, -3px); }
  60% { opacity: 0.5; transform: translate(-4px, 0); }
  80% { opacity: 0.1; transform: translate(4px, 2px); }
  100% { opacity: 0; transform: translate(0); }
}

.entrance-modal__title {
  font-family: var(--font-gothic);
  font-size: clamp(1.3rem, 5vw, 2.1rem);
  line-height: 1.3;
  color: var(--c-white);
  text-shadow: 2px 2px 0 var(--c-red), -2px -2px 0 var(--c-blue);
  margin: 0 0 16px;
  word-break: break-word;
}

.entrance-modal__model {
  font-family: var(--font-pixel);
  color: var(--c-yellow);
  font-size: 0.95rem;
  margin: 0 0 28px;
}

.entrance-modal__question {
  font-family: var(--font-gothic);
  font-size: 1.5rem;
  color: var(--c-green);
  margin: 0 0 24px;
}

.entrance-modal__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.entrance-modal__accepted {
  margin-top: 20px;
  font-family: var(--font-pixel);
  color: var(--c-red);
  font-size: 0.9rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-gothic);
  font-size: 0.95rem;
  padding: 12px 22px;
  border: var(--border-thick) solid var(--c-white);
  background: #000;
  color: var(--c-white);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn:active {
  transform: translate(1px, 1px);
}

.btn--entrance.btn--yellow {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}
.btn--entrance.btn--yellow:hover { background: var(--c-yellow); color: #000; }

.btn--entrance.btn--red {
  border-color: var(--c-red);
  color: var(--c-red);
}
.btn--entrance.btn--red:hover { background: var(--c-red); color: #000; }

.btn--buy {
  border-color: var(--c-green);
  color: var(--c-green);
  font-size: 1.1rem;
  padding: 16px 32px;
}
.btn--buy:hover { background: var(--c-green); color: #000; }

.btn--chart,
.btn--outline {
  border-color: var(--c-blue);
  color: var(--c-blue);
}
.btn--chart:hover,
.btn--outline:hover { background: var(--c-blue); color: #000; }

.btn--social {
  border-color: var(--c-silver);
  color: var(--c-silver);
  font-size: 0.85rem;
  padding: 10px 16px;
}
.btn--social:hover { background: var(--c-silver); color: #000; }

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
  position: relative;
}

.btn.is-disabled:hover {
  transform: none;
  background: transparent;
  color: inherit;
}

.btn-copy {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 2px solid var(--c-silver);
  background: #000;
  color: var(--c-silver);
  cursor: pointer;
  margin-left: 8px;
}

.btn-copy:hover {
  background: var(--c-silver);
  color: #000;
}

.btn-copy.copied {
  border-color: var(--c-green);
  color: var(--c-green);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000000;
  border-bottom: var(--border-thick) double var(--c-silver);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav__brand {
  font-family: var(--font-gothic);
  font-size: 1.4rem;
  font-weight: bold;
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  flex: 1;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
}

.site-nav__links a,
.site-nav__links span {
  text-decoration: underline;
  white-space: nowrap;
  padding: 2px 0;
}

.site-nav__links a:nth-child(6n+1) { color: var(--c-red); }
.site-nav__links a:nth-child(6n+2) { color: var(--c-blue); }
.site-nav__links a:nth-child(6n+3) { color: var(--c-green); }
.site-nav__links a:nth-child(6n+4) { color: var(--c-yellow); }
.site-nav__links a:nth-child(6n+5) { color: var(--c-silver); }
.site-nav__links a:nth-child(6n) { color: var(--c-white); }

.site-nav__external.is-disabled {
  color: #555 !important;
  text-decoration: line-through;
}

.site-nav__toggle {
  display: none;
  background: none;
  border: 2px solid var(--c-silver);
  color: var(--c-silver);
  font-size: 1.2rem;
  padding: 4px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .site-nav {
    flex-wrap: wrap;
  }
  .site-nav__toggle {
    display: block;
    margin-left: auto;
  }
  .site-nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 10px;
  }
  .site-nav__links.is-open {
    display: flex;
  }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-family: var(--font-gothic);
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-align: center;
  margin: 0 0 32px;
  text-shadow: 2px 2px 0 #000;
}

.section-divider {
  text-align: center;
  font-family: var(--font-pixel);
  color: var(--c-silver);
  opacity: 0.5;
  font-size: 0.85rem;
  padding: 20px 0;
  letter-spacing: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding-top: 48px;
}

.hero__title {
  font-family: var(--font-gothic);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 1.35;
  color: var(--c-white);
  text-shadow: 2px 2px 0 var(--c-red), -1px -1px 0 var(--c-blue);
  margin: 0 0 20px;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c-green);
  max-width: 60ch;
  margin: 0 auto 28px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.badge {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 2px solid;
  background: #000;
}

.badge--blue { border-color: var(--c-blue); color: var(--c-blue); }
.badge--green { border-color: var(--c-green); color: var(--c-green); }
.badge--red { border-color: var(--c-red); color: var(--c-red); }

.hero__mascot-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero__mascot-img {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__mascot-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  margin: 0 auto;
  border: var(--border-thick) dashed var(--c-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  position: relative;
  z-index: 2;
}

.hero__mascot-placeholder-text {
  font-family: var(--font-gothic);
  color: var(--c-silver);
  font-size: 1.4rem;
  text-align: center;
  line-height: 1.5;
}

.hero__lightning {
  position: absolute;
  inset: -10% -10% -10% -10%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.hero__lightning.flash {
  animation: hero-lightning-flash 0.35s ease-out;
}

.hero__lightning.flash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 3px;
  height: 55%;
  background: var(--c-blue);
  box-shadow: 0 0 12px 3px var(--c-blue);
  clip-path: polygon(50% 0%, 100% 0%, 30% 45%, 70% 45%, 0% 100%, 20% 40%, 0% 40%);
}

@keyframes hero-lightning-flash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  30% { opacity: 0.3; }
  45% { opacity: 0.9; }
  100% { opacity: 0; }
}

.hero__stats-panel {
  border: 2px solid var(--c-silver);
  padding: 20px;
  max-width: 520px;
  margin: 0 auto 32px;
  display: grid;
  gap: 14px;
  text-align: left;
  background: #030303;
}

.hero__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
}

.hero__stat-label {
  color: var(--c-yellow);
  min-width: 90px;
  flex-shrink: 0;
}

.hero__stat-value {
  color: var(--c-white);
  word-break: break-word;
}

.hero__stat-value--mono {
  font-family: var(--font-pixel);
}

.hero__stat-value--waiting {
  color: var(--c-red);
}

.hero__stat-value--status {
  color: var(--c-green);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ============================================================
   LORE
   ============================================================ */
.quote-box {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-yellow);
  border-left: 4px solid var(--c-red);
  padding: 16px 20px;
  margin: 0 0 36px;
  background: #050505;
}

.quote-box--alt {
  border-left-color: var(--c-blue);
  color: var(--c-silver);
  font-size: 0.95rem;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.lore-card {
  border: 2px solid var(--c-silver);
  padding: 18px;
  background: #030303;
}

.lore-card h3 {
  font-family: var(--font-gothic);
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.lore-card p {
  margin: 0;
  font-size: 0.95rem;
}

.lore-extra p {
  font-size: 0.95rem;
  margin: 0 0 12px;
}

/* ============================================================
   TABLES (model specs / tokenomics)
   ============================================================ */
.specs-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
  border: 1px solid var(--c-silver);
  padding: 10px 14px;
  text-align: left;
}

.specs-table th {
  font-family: var(--font-pixel);
  color: var(--c-yellow);
  width: 40%;
  background: #050505;
}

.specs-table td {
  color: var(--c-white);
}

.tokenomics__note {
  font-size: 0.9rem;
  color: var(--c-silver);
  font-style: italic;
}

/* ============================================================
   BENCHMARKS
   ============================================================ */
.benchmarks__intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 32px;
}

.benchmark-bars {
  display: grid;
  gap: 18px;
}

.benchmark-row {
  display: grid;
  grid-template-columns: 160px 1fr 70px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
}

.benchmark-row__label {
  color: var(--c-silver);
}

.benchmark-row__track {
  border: 2px solid var(--c-silver);
  height: 18px;
  background: #050505;
}

.benchmark-row__fill {
  height: 100%;
}

.benchmark-row__value {
  text-align: right;
  color: var(--c-white);
}

@media (max-width: 560px) {
  .benchmark-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .benchmark-row__value {
    text-align: left;
  }
}

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: none;
}

.roadmap-stage {
  border: 2px solid var(--c-silver);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: #030303;
  position: relative;
}

.roadmap-stage::after {
  content: '';
  position: absolute;
  left: 30px;
  bottom: -16px;
  width: 2px;
  height: 16px;
  background: var(--c-blue);
}

.roadmap-stage:last-child::after {
  display: none;
}

.roadmap-stage__num {
  font-family: var(--font-pixel);
  font-size: 1.3rem;
  color: var(--c-green);
  border: 2px solid var(--c-green);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roadmap-stage h3 {
  font-family: var(--font-gothic);
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--c-yellow);
}

.roadmap-stage p {
  margin: 0;
  font-size: 0.9rem;
}

.roadmap-stage--final {
  border-color: var(--c-red);
}

.roadmap-stage--final .roadmap-stage__num {
  color: var(--c-red);
  border-color: var(--c-red);
}

/* ============================================================
   HOW TO BUY
   ============================================================ */
.howto-list {
  padding-left: 24px;
  margin-bottom: 28px;
}

.howto-list li {
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.howto-cta {
  text-align: center;
  margin-bottom: 20px;
}

.howto-warning {
  border: 2px dashed var(--c-red);
  color: var(--c-red);
  padding: 14px 16px;
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================================
   MEME ARCHIVE
   ============================================================ */
.meme-archive__intro {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.meme-frame {
  margin: 0;
  border: 2px solid var(--c-silver);
  background: #050505;
}

.meme-frame__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.meme-frame__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #0a0a0a,
    #0a0a0a 10px,
    #000 10px,
    #000 20px
  );
}

.meme-frame__placeholder-num {
  font-family: var(--font-pixel);
  color: var(--c-green);
  font-size: 1.1rem;
}

.meme-frame__placeholder-label {
  font-family: var(--font-pixel);
  color: var(--c-silver);
  font-size: 0.65rem;
  text-align: center;
  margin-top: 6px;
}

.meme-frame__caption {
  font-size: 0.75rem;
  padding: 8px 10px;
  color: var(--c-silver);
  font-style: italic;
}

/* ============================================================
   CONTRACT / SOCIAL
   ============================================================ */
.contract-panel {
  border: 2px solid var(--c-silver);
  padding: 20px;
  margin-bottom: 28px;
  background: #030303;
}

.contract-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
}

.contract-panel__label {
  color: var(--c-yellow);
}

.contract-panel__value--mono {
  word-break: break-all;
}

.contract-panel__value--waiting {
  color: var(--c-red);
}

.contract-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: center;
  border-top: 2px solid var(--c-silver);
}

.site-footer__disclaimer {
  font-size: 0.75rem;
  color: #777;
  max-width: 70ch;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.site-footer__copy {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--c-silver);
  margin: 0 0 16px;
}

.site-footer__back-to-top {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
}

/* ============================================================
   BUY MODAL
   ============================================================ */
.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.buy-modal[hidden] {
  display: none;
}

.buy-modal__inner {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #050505;
  border: var(--border-thick) solid var(--c-yellow);
  padding: 36px 24px;
  text-align: center;
}

.buy-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: 2px solid var(--c-silver);
  color: var(--c-silver);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
}

.buy-modal__title {
  font-family: var(--font-gothic);
  color: var(--c-yellow);
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.buy-modal__text {
  font-family: var(--font-pixel);
  color: var(--c-white);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .section {
    padding: 40px 16px;
  }
  .hero__stats-panel {
    padding: 14px;
  }
  .lore-grid {
    grid-template-columns: 1fr;
  }
}
