/* ============================================================================
   GOKU — "TERMINAL COMIC"
   A comic book rendered on a dying CRT. Green phosphor, halftone ink,
   and panels floating in real 3D space.
   ========================================================================== */

:root {
  --grn:        #00ff41;
  --grn-soft:   #4dff85;
  --grn-pale:   #c8ffd8;
  --grn-deep:   #00a82b;
  --grn-dark:   #073d16;
  --ink:        #020703;
  --ink-2:      #040d06;
  --panel-bg:   rgba(3, 12, 5, 0.86);
  --gutter:     3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--grn-pale);
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Firefox scrollbar */
html { scrollbar-color: var(--grn-deep) var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--grn-deep), var(--grn-dark));
  border: 1px solid var(--grn-dark);
}
::selection { background: var(--grn); color: #000; }


/* ---------------------------------------------------------------------------
   LAYER 0 — THE BACKGROUND (background.png = the 悟 kanji sigil)
   Fixed, dimmed, slowly breathing behind everything.
   ------------------------------------------------------------------------ */
.bg-sigil {
  position: fixed;
  inset: -6vmin;
  z-index: -3;
  background: url('./background.png') center / cover no-repeat;
  opacity: 0.20;
  filter: saturate(1.5) contrast(1.15);
  animation: sigil-breathe 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sigil-breathe {
  0%, 100% { transform: scale(1)    translateY(0);     opacity: 0.16; }
  50%      { transform: scale(1.06) translateY(-14px); opacity: 0.26; }
}

/* Radial vignette + green wash so text always stays legible on top */
.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(0,255,65,0.09), transparent 70%),
    radial-gradient(ellipse 100% 90% at 50% 50%, transparent 30%, rgba(0,0,0,0.86) 100%);
}

/* Matrix rain canvas */
#rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
}

/* CRT scanlines + flicker, over the whole document */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.32) 0px,
    rgba(0, 0, 0, 0.32) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}
.crt-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 65, 0.035);
  animation: flicker 4.5s steps(2, end) infinite;
}
@keyframes flicker {
  0%, 96%, 100% { opacity: 0; }
  97%           { opacity: 1; }
  98%           { opacity: 0.3; }
  99%           { opacity: 0.8; }
}


/* ---------------------------------------------------------------------------
   TYPE
   ------------------------------------------------------------------------ */
.font-comic { font-family: 'Bangers', cursive; letter-spacing: 0.045em; }
.font-term  { font-family: 'Share Tech Mono', monospace; }

/* Extruded comic lettering — the signature headline treatment */
.comic-title {
  font-family: 'Bangers', cursive;
  color: var(--grn-pale);
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow:
     0 2px 0 var(--grn-deep),
     0 4px 0 #018a24,
     0 6px 0 #016b1c,
     0 8px 0 #014d14,
     0 10px 0 #01330d,
     0 12px 18px rgba(0, 255, 65, 0.55),
     0 0 42px rgba(0, 255, 65, 0.45);
  line-height: 0.92;
}

.glow      { text-shadow: 0 0 8px rgba(0,255,65,.9), 0 0 26px rgba(0,255,65,.5); }
.glow-soft { text-shadow: 0 0 6px rgba(0,255,65,.55); }

/* Terminal caption box — the comic's narration boxes */
.caption {
  background: rgba(0, 20, 6, 0.9);
  border: 2px solid var(--grn-deep);
  border-left: 6px solid var(--grn);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--grn-soft);
  box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.07);
}


/* ---------------------------------------------------------------------------
   THE 3D STAGE — every section is a comic panel suspended in perspective
   ------------------------------------------------------------------------ */
.stage {
  perspective: 1600px;
  perspective-origin: 50% 45%;
}

.panel {
  position: relative;
  transform-style: preserve-3d;
  background: var(--panel-bg);
  border: var(--gutter) solid var(--grn);
  backdrop-filter: blur(3px);
  box-shadow:
    0 0 0 2px #000,
    14px 14px 0 -2px rgba(0, 255, 65, 0.18),
    28px 28px 0 -4px rgba(0, 255, 65, 0.07),
    0 30px 80px rgba(0, 0, 0, 0.9),
    inset 0 0 90px rgba(0, 255, 65, 0.05);
}

/* Halftone ink dots — the comic print texture */
.halftone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 255, 65, 0.13) 1px, transparent 1.3px);
  background-size: 6px 6px;
  mix-blend-mode: screen;
  z-index: 1;
}
/* keep real content above the halftone */
.panel > *:not(.halftone-under) { position: relative; z-index: 2; }

/* Panel enters by rotating out of 3D space to face the reader */
.tilt {
  opacity: 0;
  transform: rotateY(var(--ry, -12deg)) rotateX(6deg) translateZ(-180px) translateY(40px);
  transition:
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.8s ease-out;
  will-change: transform, opacity;
}
.tilt.in {
  opacity: 1;
  transform: rotateY(0deg) rotateX(0deg) translateZ(0) translateY(0);
}

/* Corner registration marks — printer's crop marks on each panel */
.panel .reg {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--grn);
  opacity: 0.85;
  z-index: 3;
}
.reg.tl { top: -8px;    left: -8px;  border-right: 0;  border-bottom: 0; }
.reg.tr { top: -8px;    right: -8px; border-left: 0;   border-bottom: 0; }
.reg.bl { bottom: -8px; left: -8px;  border-right: 0;  border-top: 0; }
.reg.br { bottom: -8px; right: -8px; border-left: 0;   border-top: 0; }


/* ---------------------------------------------------------------------------
   SFX BURST — the comic "KA-ME-HA-ME-HA!" star
   ------------------------------------------------------------------------ */
.burst {
  clip-path: polygon(
    50% 0%,   61% 19%,  83% 10%,  78% 33%, 100% 35%,
    84% 50%, 100% 65%,  78% 67%,  83% 90%, 61% 81%,
    50% 100%, 39% 81%,  17% 90%,  22% 67%,  0% 65%,
    16% 50%,   0% 35%,  22% 33%,  17% 10%, 39% 19%
  );
  background: linear-gradient(150deg, var(--grn), var(--grn-deep));
  color: #001a06;
  display: grid;
  place-items: center;
  text-align: center;
  animation: burst-pop 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(0, 255, 65, 0.65));
}
@keyframes burst-pop {
  0%, 100% { transform: scale(1)    rotate(-8deg); }
  50%      { transform: scale(1.09) rotate(-4deg); }
}


/* ---------------------------------------------------------------------------
   ART FRAMES — the ASCII panels (hero / about / howtobuy / main)
   ------------------------------------------------------------------------ */
.art {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--grn-deep);
  filter: contrast(1.2) saturate(1.35) drop-shadow(0 0 26px rgba(0, 255, 65, 0.3));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.art-3d {
  transform: translateZ(50px) rotateY(-6deg);
  transform-style: preserve-3d;
}
.art-3d:hover {
  transform: translateZ(80px) rotateY(0deg) scale(1.02);
  filter: contrast(1.3) saturate(1.6) drop-shadow(0 0 44px rgba(0, 255, 65, 0.6));
}

/* Floating idle motion for the free-standing figure (main.png) */
.float { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0)     rotate(-0.6deg); }
  50%      { transform: translateY(-18px) rotate(0.6deg); }
}


/* ---------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  border: 3px solid var(--grn);
  color: var(--grn);
  background: rgba(0, 30, 10, 0.65);
  box-shadow: 5px 5px 0 0 var(--grn-dark), 0 0 24px rgba(0, 255, 65, 0.22);
  transition: transform 0.14s ease, box-shadow 0.14s ease,
              background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 var(--grn-dark), 0 0 40px rgba(0, 255, 65, 0.5);
  background: rgba(0, 60, 20, 0.85);
  color: var(--grn-pale);
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 0 var(--grn-dark); }

.btn-solid {
  background: var(--grn);
  color: #00230a;
  box-shadow: 5px 5px 0 0 #014d14, 0 0 34px rgba(0, 255, 65, 0.55);
}
.btn-solid:hover { background: var(--grn-pale); color: #00230a; }


/* ---------------------------------------------------------------------------
   SOCIAL / PLATFORM ICON CHIPS
   ------------------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--grn-deep);
  background: rgba(0, 20, 7, 0.8);
  color: var(--grn-soft);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  transition: all 0.22s ease;
}
.chip:hover {
  border-color: var(--grn);
  color: #001a06;
  background: var(--grn);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
}
.chip svg, .chip i { font-size: 1.35rem; width: 1.35em; height: 1.35em; }


/* ---------------------------------------------------------------------------
   CONTRACT ADDRESS BAR
   ------------------------------------------------------------------------ */
.ca-bar {
  display: flex;
  align-items: stretch;
  border: 2px dashed var(--grn-deep);
  background: rgba(0, 15, 5, 0.9);
  overflow: hidden;
}
.ca-bar .label {
  padding: 0.7rem 0.9rem;
  background: rgba(0, 255, 65, 0.12);
  border-right: 2px dashed var(--grn-deep);
  color: var(--grn);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.ca-bar code {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  color: var(--grn-pale);
  font-size: 0.82rem;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ca-bar button {
  padding: 0 1.15rem;
  border: 0;
  border-left: 2px dashed var(--grn-deep);
  background: rgba(0, 255, 65, 0.12);
  color: var(--grn);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.ca-bar button:hover { background: var(--grn); color: #00230a; }


/* ---------------------------------------------------------------------------
   STAT TILES
   ------------------------------------------------------------------------ */
.stat {
  border: 2px solid var(--grn-dark);
  background: rgba(0, 18, 6, 0.75);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}
.stat:hover {
  border-color: var(--grn);
  background: rgba(0, 40, 14, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 255, 65, 0.2);
}
.stat .k {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--grn-deep);
  text-transform: uppercase;
}
.stat .v {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--grn);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}


/* ---------------------------------------------------------------------------
   HOW TO BUY — numbered comic beats
   ------------------------------------------------------------------------ */
.beat {
  position: relative;
  border: 2px solid var(--grn-dark);
  background: rgba(0, 16, 6, 0.82);
  padding: 1.6rem 1.2rem 1.2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}
.beat:hover {
  border-color: var(--grn);
  transform: translateY(-8px) translateZ(30px);
  box-shadow: 0 18px 40px rgba(0, 255, 65, 0.22);
}
.beat .num {
  position: absolute;
  top: -18px;
  left: -14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--grn);
  color: #00230a;
  font-family: 'Bangers', cursive;
  font-size: 1.55rem;
  border: 2px solid #000;
  box-shadow: 0 0 22px rgba(0, 255, 65, 0.6);
  transform: rotate(-8deg);
}


/* ---------------------------------------------------------------------------
   CHART — DexScreener embed
   ------------------------------------------------------------------------ */
.chart-frame {
  position: relative;
  width: 100%;
  padding-bottom: 62%;
  min-height: 460px;
  background: #000;
  border: 2px solid var(--grn-deep);
  overflow: hidden;
}
.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 768px) {
  .chart-frame { padding-bottom: 125%; min-height: 520px; }
}


/* ---------------------------------------------------------------------------
   JOIN US — the banner lives here and ONLY here
   ------------------------------------------------------------------------ */
.banner-wrap {
  position: relative;
  border: 3px solid var(--grn);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 255, 65, 0.35), inset 0 0 60px rgba(0, 0, 0, 0.7);
  transform: perspective(1200px) rotateX(6deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-wrap:hover { transform: perspective(1200px) rotateX(0deg) scale(1.01); }
.banner-wrap img { display: block; width: 100%; height: auto; }
/* sweeping scan beam across the banner */
.banner-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.22), transparent);
  animation: sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%        { left: -30%; }
  60%, 100% { left: 105%; }
}


/* ---------------------------------------------------------------------------
   PERSPECTIVE GRID FLOOR — the Tron-style horizon under the whole page
   ------------------------------------------------------------------------ */
.grid-floor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34vh;
  z-index: -1;
  pointer-events: none;
  perspective: 300px;
  perspective-origin: 50% 0%;
  overflow: hidden;
  mask-image: linear-gradient(to top, #000 10%, transparent 95%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%);
}
.grid-floor .lines {
  position: absolute;
  inset: -50% -50% -100%;
  transform: rotateX(72deg);
  background-image:
    linear-gradient(to right, rgba(0, 255, 65, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 65, 0.34) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-run 3.4s linear infinite;
}
@keyframes grid-run {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}


/* ---------------------------------------------------------------------------
   NAV
   ------------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(1, 6, 2, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--grn-dark);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--grn);
  box-shadow: 0 6px 30px rgba(0, 255, 65, 0.18);
}
.nav a.link {
  color: var(--grn-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav a.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grn);
  transition: width 0.28s ease;
  box-shadow: 0 0 10px var(--grn);
}
.nav a.link:hover { color: var(--grn); }
.nav a.link:hover::after { width: 100%; }

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--grn);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.55);
  animation: spin-slow 22s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }


/* ---------------------------------------------------------------------------
   TICKER
   ------------------------------------------------------------------------ */
.ticker {
  overflow: hidden;
  border-top: 2px solid var(--grn-dark);
  border-bottom: 2px solid var(--grn-dark);
  background: rgba(0, 255, 65, 0.06);
  padding: 0.55rem 0;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 26s linear infinite;
  font-family: 'Bangers', cursive;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--grn);
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ---------------------------------------------------------------------------
   MOTION SAFETY
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .tilt { opacity: 1; transform: none; }
}
