/* ==========================================================================
   CYBERCAT — custom cyberpunk system
   ========================================================================== */

:root {
  --bg: #05070c;
  --bg-2: #080d16;
  --navy: #0b1220;
  --panel: rgba(8, 16, 28, 0.72);
  --cyan: #00f0ff;
  --cyan-2: #6af6ff;
  --blue: #3d7eff;
  --green: #39ff14;
  --green-2: #7cff6b;
  --magenta: #ff2bd6;
  --purple: #9b5cff;
  --orange: #ff8a3d;
  --white: #eef7ff;
  --muted: #7d93a8;
  --line: rgba(0, 240, 255, 0.28);
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-pixel: "Pixelify Sans", "Courier New", monospace;
  --font-mono: "Share Tech Mono", "Consolas", monospace;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) #060910;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.08), transparent 40%),
    #060910;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.12);
}

::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, var(--cyan-2), var(--cyan) 40%, #007a86);
  border: 2px solid #060910;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b8fffb, var(--cyan), var(--green));
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}

::-webkit-scrollbar-thumb:active {
  background: var(--green);
}

::-webkit-scrollbar-corner {
  background: #060910;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: var(--font-mono);
  background:
    radial-gradient(1200px 700px at 80% 10%, rgba(61, 126, 255, 0.12), transparent 55%),
    radial-gradient(900px 500px at 10% 80%, rgba(57, 255, 20, 0.06), transparent 50%),
    var(--bg);
}

body.menu-open { overflow: hidden; }
body.has-cursor,
body.has-cursor a,
body.has-cursor button { cursor: none; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--cyan);
  color: #041016;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  pointer-events: none;
  z-index: 180;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-cross {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 1px 12px no-repeat;
}
.cursor-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(0, 240, 255, 0.55);
  border-radius: 50%;
  transition: transform 0.18s var(--ease), border-color 0.18s;
}
.cursor.is-hot .cursor-ring {
  transform: scale(1.55);
  border-color: var(--green);
}
.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 179;
}

/* --------------------------------------------------------------------------
   Boot
   -------------------------------------------------------------------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  background: #020305;
  color: var(--green);
  transition: opacity 0.45s ease, visibility 0.45s;
}
.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot.is-glitching {
  animation: boot-out 0.45s steps(4) both;
}
.boot-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.28) 2px 3px
  );
  pointer-events: none;
}
.boot-inner { width: min(560px, calc(100% - 40px)); }
.boot-brand {
  margin: 0 0 22px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 12px;
}
.boot-brand span { color: var(--muted); }
.boot-log {
  min-height: 140px;
  font-size: 14px;
  line-height: 1.8;
}
.boot-log p { margin: 0 0 6px; }
.boot-bar {
  height: 8px;
  margin-top: 18px;
  border: 1px solid var(--green);
  background: #031008;
}
.boot-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 12px var(--green);
}
.boot-percent {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--header-h);
  background: transparent;
  backdrop-filter: blur(0);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.header.is-scrolled {
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(12px);
}
.header-glow {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan);
  opacity: 0.7;
}
.header-inner {
  height: 100%;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 40px; height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: var(--cyan);
}
.nav {
  display: flex;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--white);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }
.header-right { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--cyan);
  transition: 0.25s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--white);
  letter-spacing: 0.14em;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn:hover::before { transform: translateX(100%); }
.btn-primary {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.18);
}
.btn-primary:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.35);
}
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-buy {
  background: var(--cyan);
  color: #041016;
  font-weight: 700;
  border-color: var(--cyan);
}
.btn-buy:hover { box-shadow: 0 0 20px rgba(0, 240, 255, 0.45); }
.buy-short { display: none; }
.nav-buy { display: none; }
.btn-icon {
  width: 46px;
  padding: 0;
  color: var(--cyan);
}
.btn-copy,
.btn-copy-lg {
  border: 1px solid var(--green);
  background: rgba(57, 255, 20, 0.08);
  color: var(--green);
  letter-spacing: 0.12em;
  min-height: 36px;
  padding: 0 12px;
  font-size: 11px;
}
.btn-copy.is-copied,
.btn-copy-lg.is-copied {
  animation: copy-pulse 0.55s ease;
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 24px) 0 72px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(155, 92, 255, 0.16), transparent 45%),
    linear-gradient(180deg, #07101d 0%, #05070c 62%, #030508 100%);
}
.hero-city {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background:
    linear-gradient(to top, #05070c 0%, transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><rect fill='%23060d18' x='0' y='120' width='70' height='200'/><rect fill='%23081420' x='68' y='80' width='54' height='240'/><rect fill='%230a1828' x='120' y='150' width='90' height='170'/><rect fill='%2307121c' x='210' y='60' width='46' height='260'/><rect fill='%230a1a2c' x='256' y='110' width='80' height='210'/><rect fill='%23061018' x='340' y='170' width='120' height='150'/><rect fill='%23081622' x='460' y='90' width='50' height='230'/><rect fill='%230a1c30' x='510' y='40' width='38' height='280'/><rect fill='%2307121c' x='548' y='130' width='100' height='190'/><rect fill='%23091826' x='650' y='75' width='70' height='245'/><rect fill='%23060f18' x='720' y='155' width='130' height='165'/><rect fill='%230a1a2c' x='850' y='95' width='48' height='225'/><rect fill='%23081420' x='898' y='50' width='36' height='270'/><rect fill='%2307121c' x='934' y='140' width='110' height='180'/><rect fill='%230a1828' x='1044' y='85' width='66' height='235'/><rect fill='%23061018' x='1110' y='160' width='90' height='160'/><rect fill='%23091826' x='1200' y='70' width='52' height='250'/><rect fill='%2307121c' x='1252' y='120' width='80' height='200'/><rect fill='%230a1c30' x='1332' y='45' width='40' height='275'/><rect fill='%23081420' x='1372' y='150' width='68' height='170'/><g fill='%2300f0ff' opacity='0.35'><rect x='18' y='150' width='3' height='6'/><rect x='80' y='110' width='3' height='6'/><rect x='230' y='90' width='3' height='6'/><rect x='520' y='70' width='3' height='6'/><rect x='680' y='100' width='3' height='6'/><rect x='910' y='80' width='3' height='6'/><rect x='1220' y='95' width='3' height='6'/><rect x='1345' y='70' width='3' height='6'/></g></svg>") bottom / 100% 100% no-repeat;
  opacity: 0.9;
}
.hero-grid {
  position: absolute;
  left: -10%; right: -10%;
  bottom: -18%;
  height: 55%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(62deg);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  animation: grid-drift 16s linear infinite;
}
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.16) 3px 4px
  );
  opacity: 0.45;
  pointer-events: none;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.6'/></svg>");
  animation: noise-shift 0.4s steps(2) infinite;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.data-lines span {
  position: absolute;
  left: -20%;
  height: 1px;
  width: 28%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.45;
  animation: data-run 7s linear infinite;
}
.data-lines span:nth-child(1) { top: 22%; animation-duration: 8s; }
.data-lines span:nth-child(2) { top: 48%; width: 18%; animation-duration: 11s; animation-delay: -3s; }
.data-lines span:nth-child(3) { top: 71%; width: 34%; animation-duration: 9s; animation-delay: -6s; }

.hud-panel {
  position: absolute;
  width: 170px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 20, 0.55);
  font-size: 11px;
  color: var(--muted);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.hud-panel header {
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.hud-panel p { margin: 3px 0; }
.hud-panel b { color: var(--white); font-weight: 400; }
.hud-panel .ok { color: var(--green); }
.hud-tl { top: 96px; left: 28px; }
.hud-bl { bottom: 90px; left: 28px; }
.hud-tr { top: 110px; right: 28px; width: 150px; }
.threat {
  color: var(--magenta) !important;
  font-size: 16px;
  letter-spacing: 0.14em;
}
.hud-mini-bar {
  margin-top: 8px;
  height: 4px;
  background: #122;
  overflow: hidden;
}
.hud-mini-bar i {
  display: block;
  height: 100%;
  width: 62%;
  background: var(--green);
  animation: bar-pulse 2.4s ease-in-out infinite;
}
.blink-line { color: var(--green); animation: blink 1s step-end infinite; }
.radar {
  width: 64px; height: 64px;
  margin-top: 8px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.radar::before,
.radar::after {
  content: "";
  position: absolute;
  inset: 25%;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 50%;
}
.radar::after { inset: 8%; }
.radar i {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 70%, rgba(0, 240, 255, 0.45));
  animation: radar-spin 3.2s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 80px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  letter-spacing: 0.18em;
  font-size: 12px;
  margin: 0 0 16px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}
.glitch-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--white);
  position: relative;
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
}
.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.glitch-title::before {
  color: var(--cyan);
  animation: glitch-a 4.5s steps(2, end) infinite;
  clip-path: inset(0 0 55% 0);
}
.glitch-title::after {
  color: var(--magenta);
  animation: glitch-b 5.2s steps(2, end) infinite;
  clip-path: inset(50% 0 0 0);
}
.hero-sub {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(13px, 2vw, 20px);
  letter-spacing: 0.14em;
  color: var(--cyan);
  overflow-wrap: anywhere;
}
.hero-net {
  margin: 0 0 28px;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.ca-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 240, 255, 0.04);
}
.ca-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.ca-value {
  color: var(--cyan-2);
  font-size: 15px;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
}
.hero-glow {
  position: absolute;
  width: 78%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.28), transparent 68%);
  filter: blur(8px);
  animation: glow-breathe 3.6s ease-in-out infinite;
  pointer-events: none;
}
.hero-frame {
  position: relative;
  padding: 18px 18px 28px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(4, 8, 14, 0.25);
}
.hero-frame .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--cyan);
}
.hero-frame .tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-frame .tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero-frame .bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero-frame .br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-frame-tag,
.hero-frame-meta {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.hero-frame-meta { margin-top: 8px; text-align: right; color: var(--muted); }
.hero-cat {
  display: block;
  width: clamp(230px, 32vw, 400px);
  aspect-ratio: 307.2 / 512;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.hero-sprite {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../assets/motion.png");
  background-repeat: no-repeat;
  background-size: 500% 200%;
  background-position: 0% 0%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-code {
  position: absolute;
  right: 6%;
  bottom: 8%;
  color: rgba(57, 255, 20, 0.45);
  font-size: 11px;
  line-height: 1.6;
  pointer-events: none;
  z-index: 2;
}
.hero-code pre { margin: 0; }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(0, 240, 255, 0.04);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-alt { background: rgba(57, 255, 20, 0.04); border-color: rgba(57, 255, 20, 0.2); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  color: var(--cyan);
  letter-spacing: 0.2em;
  font-size: 12px;
  padding: 12px 0;
}
.marquee-track.reverse { animation-direction: reverse; color: var(--green-2); }
.marquee-track span { padding-right: 24px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 36px; }
.kicker {
  margin: 0 0 8px;
  color: var(--green);
  letter-spacing: 0.22em;
  font-size: 11px;
}
.section-head h2,
.contract-box h2 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.04em;
}
.section-sub {
  margin: 10px 0 0;
  color: var(--muted);
  letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   Terminal
   -------------------------------------------------------------------------- */
.terminal {
  border: 1px solid var(--line);
  background: #060b12;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.08);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0a1420;
  font-size: 12px;
  color: var(--muted);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3a4654;
}
.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title { flex: 1; }
.term-live {
  color: var(--green);
  letter-spacing: 0.16em;
}
.terminal-body { padding: 22px; min-height: 320px; }
.term-output {
  margin: 0;
  white-space: pre-wrap;
  color: var(--green-2);
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.7;
}
.term-caret {
  display: inline;
  color: var(--green);
  animation: blink 1s step-end infinite;
}

/* --------------------------------------------------------------------------
   Banner / surveillance
   -------------------------------------------------------------------------- */
.feed-monitor {
  border: 1px solid var(--line);
  background: #05080e;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.1);
}
.feed-chrome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.rec { color: #ff4d6d; display: flex; align-items: center; gap: 6px; }
.rec i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d6d;
  animation: pulse 1.2s infinite;
}
.feed-screen {
  position: relative;
  overflow: hidden;
}
.feed-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}
.feed-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.22) 3px 4px
  );
  pointer-events: none;
}
.feed-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.feed-glitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 40%, rgba(0, 240, 255, 0.08) 50%, transparent 60%);
  animation: sweep 6s linear infinite;
}
.feed-caption {
  margin: 0;
  padding: 10px 14px;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Boss
   -------------------------------------------------------------------------- */
.boss-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 18px 24px;
  align-items: center;
}
.boss-portrait {
  grid-row: 1 / span 2;
  grid-column: 2;
  position: relative;
  width: min(320px, 70vw);
}
.boss-portrait img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.18);
  background: #000;
}
.boss-ring {
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(0, 240, 255, 0.28);
  border-radius: 50%;
  animation: radar-spin 18s linear infinite;
  pointer-events: none;
}
.boss-id {
  margin: 10px 0 0;
  text-align: center;
  letter-spacing: 0.2em;
  color: var(--cyan);
  font-size: 12px;
}
.stat-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06), rgba(5, 8, 14, 0.7));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.06);
}
.stat-label {
  display: block;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 11px;
  margin-bottom: 6px;
}
.stat-card strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--cyan);
}
.stat-bar {
  margin-top: 10px;
  height: 5px;
  background: #13202c;
}
.stat-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.stat-bar.green i { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.meme-card {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #05080e;
  overflow: hidden;
  padding: 0;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.meme-card:nth-child(3n) { --tilt: -1.2deg; }
.meme-card:nth-child(5n) { --tilt: 1.4deg; }
.meme-card:hover,
.meme-card:focus-visible {
  transform: rotate(0) scale(1.04);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
  z-index: 2;
}
.meme-thumb {
  display: block;
  position: absolute;
  inset: 0;
  background-image: url("../assets/gallary.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-color: #05080e;
}
.meme-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -40%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.meme-card:hover::after {
  opacity: 1;
  animation: scan-down 0.9s linear;
}
.meme-card.is-glitch .meme-thumb {
  animation: card-glitch 0.28s steps(2);
}
.meme-id {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(4, 8, 12, 0.7);
  padding: 2px 6px;
}

/* --------------------------------------------------------------------------
   How to buy / links / contract
   -------------------------------------------------------------------------- */
.buy-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: none;
}
.buy-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 22, 0.7);
  min-height: 220px;
}
.step-num {
  display: block;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 14px;
}
.buy-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 18px;
}
.buy-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.text-link {
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.text-link:hover { color: var(--cyan); }

.contract-box {
  text-align: center;
  padding: 56px 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.06), transparent 40%),
    #070c14;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.08);
}
.contract-ca {
  display: block;
  margin: 22px 0 26px;
  color: var(--cyan);
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  word-break: break-all;
}
.copy-confirm {
  margin: 16px 0 0;
  color: var(--green);
  letter-spacing: 0.18em;
}
.contract-box.is-copied {
  animation: copy-pulse 0.6s ease;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(8, 14, 22, 0.75);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.link-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.2);
}
.link-icon { color: var(--cyan); }
.link-kicker { color: var(--muted); font-size: 11px; letter-spacing: 0.18em; }
.link-card strong {
  font-family: var(--font-pixel);
  font-size: 40px;
}
.link-meta { color: var(--green); letter-spacing: 0.12em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  background: #04070c;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-brand img {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
}
.footer-brand strong { font-family: var(--font-display); letter-spacing: 0.12em; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; letter-spacing: 0.16em; color: var(--cyan); }
.footer-end {
  text-align: center;
  margin: 28px 0 0;
  color: var(--muted);
  letter-spacing: 0.2em;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.86);
}
.lightbox-panel {
  position: relative;
  width: min(640px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid var(--line);
  background: #070c14;
}
.lightbox-title {
  margin: 0 0 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  font-size: 12px;
}
.lightbox-frame {
  overflow: hidden;
  border: 1px solid var(--line);
}
.lightbox-meme {
  width: 100%;
  aspect-ratio: 1;
  background-image: url("../assets/gallary.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
}
.lightbox-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.lightbox-controls button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  letter-spacing: 0.12em;
}
.lightbox-controls button:hover { border-color: var(--cyan); color: var(--cyan); }

/* --------------------------------------------------------------------------
   Toast / leak
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 150;
  padding: 12px 18px;
  border: 1px solid var(--magenta);
  background: rgba(10, 4, 14, 0.92);
  color: var(--magenta);
  letter-spacing: 0.16em;
  font-size: 13px;
}
.toast[hidden] { display: none; }
.leak-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s;
}
.leak-layer.is-on { opacity: 1; }
.leak-bit {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--green);
  animation: leak-fall 2.4s linear forwards;
}

/* --------------------------------------------------------------------------
   Scroll reveals
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.slide-left { transform: translateX(-28px); }
.slide-right { transform: translateX(28px); }
.scale-in { transform: scale(0.92); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
@keyframes grid-drift { to { background-position: 56px 56px; } }
@keyframes data-run { from { transform: translateX(0); } to { transform: translateX(420%); } }
@keyframes noise-shift { to { transform: translate(2px, -2px); } }
@keyframes sweep { from { transform: translateX(-80%); } to { transform: translateX(80%); } }
@keyframes scan-down { from { top: -30%; } to { top: 110%; } }
@keyframes bar-pulse { 0%, 100% { width: 55%; } 50% { width: 86%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes copy-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.5); }
  100% { box-shadow: 0 0 0 18px transparent; }
}
@keyframes boot-out {
  0% { filter: none; }
  30% { transform: skewX(-8deg); filter: hue-rotate(40deg); }
  60% { transform: translateX(8px); opacity: 0.6; }
  100% { opacity: 0; }
}
@keyframes glitch-a {
  0%, 86%, 100% { transform: none; opacity: 0; }
  88% { transform: translate(3px, -1px); opacity: 0.7; }
  90% { transform: translate(-4px, 1px); opacity: 0.85; }
  92% { transform: none; opacity: 0; }
}
@keyframes glitch-b {
  0%, 90%, 100% { transform: none; opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 0.65; }
  94% { transform: translate(4px, -2px); opacity: 0.8; }
  96% { transform: none; opacity: 0; }
}
@keyframes card-glitch {
  0% { transform: none; filter: none; }
  40% { transform: translate(2px, -1px); filter: hue-rotate(40deg); }
  70% { transform: translate(-2px, 1px); }
  100% { transform: none; filter: none; }
}
@keyframes leak-fall {
  to { transform: translateY(110vh); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hud-panel { display: none; }
  .hero-code { display: none; }
  .boss-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .boss-portrait {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
  }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero-copy { order: 1; }
  .hero-stage { order: 2; justify-self: center; }
  .eyebrow,
  .hero-actions,
  .ca-box { justify-content: center; }
  .ca-box { margin: 0 auto; }
}

@media (max-width: 900px) {
  .meme-grid { grid-template-columns: repeat(3, 1fr); }
  .buy-steps,
  .link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: inline-block; }
  .nav-buy {
    display: block;
    color: var(--cyan) !important;
    font-weight: 700;
  }
  .buy-full { display: none; }
  .buy-short { display: inline; }
  .btn-buy { min-width: 64px; padding: 0 12px; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    background: rgba(5, 8, 14, 0.96);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .meme-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding: 72px 0; }
  .hero-cat { width: min(280px, 72vw); }
}

@media (max-width: 480px) {
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .hero-sub { letter-spacing: 0.08em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .meme-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ca-box { justify-content: center; }
  .feed-chrome { flex-wrap: wrap; }
  .boss-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .meme-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-trail { display: none !important; }
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-grid,
  .hero-noise,
  .data-lines,
  .marquee-track,
  .glitch-title::before,
  .glitch-title::after { animation: none; }
  .marquee-track {
    width: auto;
    white-space: normal;
    justify-content: center;
  }
  .marquee-track span:last-child { display: none; }
}
