@font-face {
  font-family: "Press Start 2P";
  src: url("../assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../assets/fonts/Silkscreen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../assets/fonts/Silkscreen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("../assets/fonts/PixelifySans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --rh: #00c805;
  --rh-deep: #007a03;
  --acid: #39ff14;
  --gold: #d4af37;
  --gold-hi: #f5e6a3;
  --gold-lo: #8a6d1f;
  --ink: #061008;
  --panel: rgba(4, 18, 6, 0.72);
  --line: rgba(212, 175, 55, 0.35);
  --text: #e8f5e9;
  --muted: #9bb89e;
  --danger: #1a3d1c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: "Pixelify Sans", "Silkscreen", system-ui, sans-serif;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: var(--gold-hi); font-weight: 700; }

/* ——— GPU layers ——— */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: translateZ(0) scale(1.04);
  filter: saturate(1.25) contrast(1.05) brightness(0.55);
  will-change: transform;
}

.gpu-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: translateZ(0);
}

.grade {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, rgba(0, 20, 4, 0.55) 70%, rgba(0, 8, 2, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 200, 5, 0.18), transparent 35%, rgba(0, 40, 8, 0.55) 100%);
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
  transform: translateZ(0);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.frame {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Header ——— */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(0, 12, 2, 0.65), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--rh);
  box-shadow: 0 0 12px var(--acid);
  image-rendering: pixelated;
}

.brand-text { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  font-family: "Silkscreen", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
}

.nav a.is-locked { opacity: 0.85; }
.nav-ext {
  color: var(--acid) !important;
  border: 1px solid rgba(57, 255, 20, 0.45);
  padding: 6px 12px !important;
  border-bottom: none !important;
  background: rgba(0, 200, 5, 0.08);
}
.nav-ext:hover {
  background: rgba(0, 200, 5, 0.2);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.25);
}

.ico-lock {
  width: 12px;
  height: 12px;
  fill: var(--gold-lo);
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 56px 0 40px;
  flex: 1;
}

.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Silkscreen", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--acid);
  margin: 0 0 20px;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--rh);
  box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(0, 200, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); }
}

h1 {
  margin: 0 0 22px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

h1 .line {
  display: block;
}

.gold {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 42%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 40, 5, 0.85)) drop-shadow(0 0 24px rgba(212, 175, 55, 0.35));
}

.lede {
  margin: 0 0 28px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 12px 20px;
  font-family: "Silkscreen", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  transform: translateZ(0);
}

.btn-primary {
  background: linear-gradient(180deg, #f0d56a, var(--gold) 45%, var(--gold-lo));
  color: #1a1200;
  border-color: #f5e6a3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(212, 175, 55, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 12px 36px rgba(212, 175, 55, 0.45);
}

.btn-ghost {
  background: rgba(0, 30, 8, 0.55);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(0, 50, 12, 0.65);
}
.btn small {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.9;
}

.meta {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.meta li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Silkscreen", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta b {
  font-size: 14px;
  color: var(--gold-hi);
  letter-spacing: 0.06em;
}

/* floating NFT rail */
.hero-rail {
  position: absolute;
  right: -2%;
  top: 10%;
  width: min(42vw, 420px);
  height: 340px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.hero-rail .chip {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 200, 5, 0.25);
  background: #fff;
  overflow: hidden;
  transform: translateZ(0) rotate(var(--r, 0deg));
  animation: floatY var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.hero-rail .chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

@keyframes floatY {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  50% { transform: translate3d(0, -14px, 0) rotate(var(--r, 0deg)); }
}

/* ——— Modules ——— */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 40px;
}

.mod {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 10px 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  transform: translateZ(0);
}
.mod:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.mod-media {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  background: #111;
}
.mod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: grayscale(0.15) contrast(1.05);
}
.mod.is-locked .mod-media img { filter: grayscale(0.35) brightness(0.85); }
.mod-body h2 {
  margin: 0 0 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.mod-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
  image-rendering: auto;
}
.mod-status {
  grid-column: 2;
  font-family: "Silkscreen", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
  opacity: 0.9;
}

/* ——— Footer ——— */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-family: "Silkscreen", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer a:hover { color: var(--gold); }

/* ——— Locked pages ——— */
.lock-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
}

.lock-panel {
  width: min(560px, 100%);
  text-align: center;
  padding: 48px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.lock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  fill: var(--gold);
  opacity: 0.95;
}

.lock-panel .kicker { justify-content: center; }

.lock-panel h1 {
  font-size: clamp(22px, 4.5vw, 36px);
  margin-bottom: 16px;
}

.lock-panel .lede {
  margin-left: auto;
  margin-right: auto;
}

.soon-chip {
  display: inline-block;
  margin: 8px 0 28px;
  padding: 10px 16px;
  border: 1px solid rgba(57, 255, 20, 0.4);
  background: rgba(0, 200, 5, 0.1);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--acid);
  animation: blink 1.6s steps(2, end) infinite;
}

@keyframes blink {
  50% { opacity: 0.45; }
}

.duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.duo img {
  width: 72px;
  height: 72px;
  border: 2px solid #fff;
  image-rendering: pixelated;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.duo .times {
  font-family: "Press Start 2P", monospace;
  color: var(--gold);
  font-size: 14px;
}

.drawer {
  position: fixed;
  inset: 0 0 auto 0;
  top: 72px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: rgba(4, 16, 6, 0.96);
  border-bottom: 1px solid var(--line);
  font-family: "Silkscreen", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawer[hidden] { display: none; }
.drawer a {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  color: var(--muted);
}
.drawer a:hover { color: var(--gold); }

@media (max-width: 960px) {
  .modules { grid-template-columns: 1fr; }
  .hero-rail { opacity: 0.35; width: 55vw; right: -8%; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  h1 { font-size: clamp(22px, 8vw, 32px); }
  .hero { padding-top: 40px; }
  .hero-rail { display: none; }
  .brand-text { font-size: 9px; }
}
