:root {
  --ink: #07140c;
  --ink-deep: #020805;
  --paper: #08150e;
  --neon: #39ff14;
  --neon-2: #00e676;
  --neon-dim: rgba(57, 255, 20, 0.18);
  --cyan: #3de6ff;
  --chrome: #e8f7ee;
  --muted: #9cb8a6;
  --gutter: 14px;
  --frame: 5px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--chrome);
  font-family: "Oxanium", system-ui, sans-serif;
  background: var(--ink-deep);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

code {
  background: transparent !important;
  color: var(--neon) !important;
  padding: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== STAGE / PERSPECTIVE WORLD ===== */
.world {
  position: relative;
  min-height: 100%;
  isolation: isolate;
}

.world-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(57, 255, 20, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(61, 230, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 8% 70%, rgba(57, 255, 20, 0.1), transparent 50%),
    linear-gradient(180deg, #041109 0%, #06150c 40%, #020805 100%);
}

.halftone {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(57, 255, 20, 0.55) 1.1px, transparent 1.3px);
  background-size: 7px 7px;
  mix-blend-mode: screen;
}

.perspective-floor {
  position: fixed;
  left: -20%;
  right: -20%;
  bottom: -8%;
  height: 52vh;
  z-index: -1;
  pointer-events: none;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center bottom;
  background:
    linear-gradient(rgba(57, 255, 20, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 78%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

/* ===== NAV ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(2, 8, 5, 0.92), rgba(2, 8, 5, 0.72) 70%, transparent);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 3px solid #111;
  box-shadow: 0 0 0 3px var(--neon);
  background: #000;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: "Bangers", cursive;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  color: #fff;
}

.brand-copy span {
  color: var(--neon);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 2px solid transparent;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--neon);
  border-color: var(--neon);
  background: rgba(57, 255, 20, 0.08);
}

.btn-cta,
.btn-ghost,
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 3px solid #0b0b0b;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-cta {
  background: var(--neon);
  color: #041109;
  box-shadow: 4px 4px 0 #000, 0 0 18px rgba(57, 255, 20, 0.35);
}

.btn-ghost {
  background: #08150e;
  color: var(--chrome);
  box-shadow: 4px 4px 0 #000, 0 0 0 2px var(--neon);
}

.btn-copy {
  background: #0d2216;
  color: var(--neon);
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}

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

/* ===== COMIC FRAMES ===== */
.ink-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 28, 16, 0.92), rgba(4, 14, 9, 0.94));
  border: var(--frame) solid #0a0a0a;
  box-shadow:
    0 0 0 3px var(--neon),
    10px 10px 0 rgba(0, 0, 0, 0.65);
}

.ink-panel::before,
.ink-panel::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--neon);
  pointer-events: none;
}

.ink-panel::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.ink-panel::after {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
}

.art-frame {
  background: #000;
  border: 6px solid #101010;
  box-shadow: 0 0 0 3px var(--neon), 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 0;
  overflow: visible;
}

.art-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}

.section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  padding: 6px 10px;
  margin-bottom: 12px;
}

.display {
  font-family: "Bangers", cursive;
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin: 0 0 16px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  color: #fff;
  text-shadow:
    3px 3px 0 #000,
    0 0 18px rgba(57, 255, 20, 0.45);
}

.lede {
  color: #d5ecdc;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

.speech {
  position: relative;
  background: #f4fff6;
  color: #102016;
  border: 4px solid #111;
  padding: 18px 20px 22px;
  font-weight: 700;
  box-shadow: 6px 6px 0 #000;
  margin-bottom: 22px;
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -18px;
  border-width: 18px 14px 0 0;
  border-style: solid;
  border-color: #f4fff6 transparent transparent transparent;
  filter: drop-shadow(3px 3px 0 #000);
}

/* ===== HERO: splash page + speedlines ===== */
.hero {
  padding-top: 28px;
  padding-bottom: 80px;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}

.hero-grid {
  align-items: center;
}

.speedlines {
  position: absolute;
  inset: -10% -8%;
  z-index: 0;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg at 72% 48%,
    rgba(57, 255, 20, 0.09) 0 1.2deg,
    transparent 1.2deg 7deg
  );
  mask-image: radial-gradient(circle at 72% 48%, transparent 18%, #000 52%, transparent 78%);
  opacity: 0.7;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.caption-stack {
  display: grid;
  gap: 14px;
}

.caption {
  background: #081910;
  border-left: 8px solid var(--neon);
  border: 3px solid #111;
  border-left-width: 8px;
  border-left-color: var(--neon);
  padding: 12px 14px;
  box-shadow: 4px 4px 0 #000;
}

.symbol-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: var(--neon);
  border: 3px solid var(--neon);
  padding: 6px 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ca-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #04110a;
  border: 3px solid #111;
  padding: 10px;
  box-shadow: 5px 5px 0 #000;
}

.ca-box code {
  font-family: "Oxanium", monospace;
  color: var(--neon);
  font-size: 0.82rem;
  word-break: break-all;
  flex: 1;
  min-width: 180px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pow {
  position: absolute;
  right: -8px;
  top: -18px;
  z-index: 2;
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: #041109;
  background: var(--neon);
  border: 4px solid #111;
  padding: 8px 14px;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 #000;
}

.hero-art .art-frame {
  position: relative;
  z-index: 1;
}

/* ===== ABOUT: origin dossier ===== */
.about {
  background: linear-gradient(180deg, transparent, rgba(0, 40, 18, 0.35), transparent);
}

.about-panel {
  padding: 28px 22px;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: 22px;
}

.trait {
  background: #06150d;
  border: 3px solid #111;
  padding: 14px;
  box-shadow: 4px 4px 0 #000;
}

.trait b {
  display: block;
  font-family: "Bangers", cursive;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--neon);
  margin-bottom: 6px;
}

.trait p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-copy p {
  color: #d7eadc;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ===== HOW TO BUY: 4-panel strip ===== */
.howto {
  padding-top: 40px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.strip-cell {
  background: #07150e;
  border: 4px solid #111;
  min-height: 100%;
  padding: 16px 14px 18px;
  box-shadow: 0 0 0 2px var(--neon);
}

.step-no {
  font-family: "Bangers", cursive;
  font-size: 2rem;
  color: var(--cyan);
  line-height: 1;
}

.strip-cell h3 {
  font-family: "Bangers", cursive;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin: 8px 0;
}

.strip-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.howto-art {
  margin-top: 28px;
}

/* ===== COMMUNITY: transmission ===== */
.community .banner-frame {
  background: #000;
  border: 6px solid #111;
  box-shadow: 0 0 0 3px var(--neon), 12px 12px 0 #000;
  margin-bottom: 28px;
}

.community .banner-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.comm-card {
  padding: 28px 22px;
  height: 100%;
}

.comm-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 3px solid #111;
  box-shadow: 0 0 0 3px var(--neon);
  margin-bottom: 14px;
  background: #000;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 40px;
  border-top: 4px solid #111;
  box-shadow: 0 -3px 0 var(--neon);
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--neon);
  color: #041109;
  font-weight: 800;
  padding: 10px 16px;
  border: 3px solid #111;
  box-shadow: 4px 4px 0 #000;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 991px) {
  .pow {
    right: 8px;
    top: 8px;
  }

  .strip,
  .trait-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: unset;
  }
}

@media (max-width: 767px) {
  .nav-links a:not(.btn-cta):not(.btn-ghost) {
    display: none;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .strip,
  .trait-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .speech::after {
    left: 18px;
  }
}
