:root {
  --bg: #050810;
  --surface: #0a1220;
  --cyan: #00e5ff;
  --blue: #1a4cff;
  --orange: #ff6a1a;
  --magenta: #ff2ec8;
  --text: #e8f4ff;
  --muted: #7a8fa8;
  --border: rgba(0, 229, 255, 0.28);
  --glow: rgba(0, 229, 255, 0.45);
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
  --font-mono: "Share Tech Mono", "Consolas", monospace;
  --nav-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

body.has-cursor {
  cursor: none;
}

body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--cyan);
  color: #031018;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.skip-link:focus {
  top: 12px;
}

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
}

.section-head {
  margin-bottom: 40px;
}

.hud-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.82), rgba(5, 8, 16, 0.9));
  border: 1px solid var(--border);
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}

.corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner--tr { top: -1px; right: -1px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.corner--bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

/* overlays */
.scanlines,
.vignette,
.lightning,
.fx-canvas {
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 229, 255, 0.035) 2px 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
}

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

.lightning {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: radial-gradient(circle at 70% 20%, rgba(180, 230, 255, 0.18), transparent 45%);
  opacity: 0;
}

.lightning.is-flash {
  animation: flash 180ms ease-out;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* cursor */
.cursor {
  display: none;
  position: fixed;
  z-index: 80;
  pointer-events: none;
  left: 0;
  top: 0;
}

body.has-cursor .cursor {
  display: block;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--glow);
}

.cursor__ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 229, 255, 0.55);
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease;
}

.cursor.is-hover .cursor__ring {
  width: 54px;
  height: 54px;
  border-color: var(--cyan);
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.03));
  border: 1px solid var(--border);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
  isolation: isolate;
  overflow: hidden;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--cyan);
  opacity: 0.85;
}

.btn::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.btn::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 22px var(--glow);
  color: #031018;
  background: var(--cyan);
}

.btn--primary {
  background: linear-gradient(180deg, #00e5ff, #0090b8);
  color: #031018;
  border-color: #7af6ff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #fff;
  box-shadow: 0 0 28px var(--glow);
}

.btn--ghost {
  background: transparent;
}

.btn--x {
  background: rgba(255, 255, 255, 0.03);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 11px;
}

.btn--lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 13px;
}

.btn.is-copied {
  box-shadow: 0 0 30px var(--glow);
  animation: copyPulse 700ms ease;
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 280ms ease, border-color 280ms ease, backdrop-filter 280ms ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav__brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  image-rendering: pixelated;
}

.nav__links {
  display: flex;
  gap: 22px;
}

.nav__links a {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: color 180ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--cyan);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__x {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav__x:hover {
  color: var(--cyan);
  box-shadow: 0 0 16px var(--glow);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--cyan);
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}

.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }

.nav.is-open .nav__toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.nav__hud {
  display: flex;
  justify-content: space-between;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0.8;
}

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 36px) 0 80px;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(26, 76, 255, 0.18), transparent 40%),
    radial-gradient(ellipse at 80% 10%, rgba(0, 229, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #07101c 0%, #050810 55%, #02040a 100%);
}

.hero__city-photo {
  position: absolute;
  inset: 0;
  background: url("assets/banner.jpg") center / cover no-repeat;
  opacity: 0.22;
  filter: saturate(1.2) contrast(1.15);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

.hero__fog {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(90, 140, 180, 0.16), transparent 70%);
  filter: blur(24px);
  animation: fogDrift 18s ease-in-out infinite alternate;
}

.hero__fog--1 { bottom: 8%; animation-duration: 22s; }
.hero__fog--2 { bottom: 18%; opacity: 0.6; animation-duration: 16s; animation-delay: -6s; }

.hero__grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -8%;
  height: 42%;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(68deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  animation: gridPulse 8s linear infinite;
}

.hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  opacity: 0.9;
}

.hero__hud-frame {
  position: absolute;
  inset: 18px;
  z-index: 2;
  pointer-events: none;
}

.hero__hud-frame .corner {
  width: 42px;
  height: 42px;
}

.hero__layout {
  position: relative;
  z-index: 4;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  min-height: calc(100svh - var(--nav-h) - 90px);
}

.hero__copy {
  max-width: 640px;
  animation: heroIn 1.1s ease both;
}

.hero__title {
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin-bottom: 16px;
  text-shadow: 0 0 24px var(--glow);
}

.glitch-text {
  position: relative;
  color: var(--text);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.glitch-text::before {
  color: var(--magenta);
  clip-path: inset(0 0 58% 0);
  transform: translate(-2px, 0);
  opacity: 0.7;
  animation: glitchShift 4s infinite;
}

.glitch-text::after {
  color: var(--cyan);
  clip-path: inset(55% 0 0 0);
  transform: translate(2px, 0);
  opacity: 0.7;
  animation: glitchShift 4s infinite reverse;
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.hero__lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 28ch;
  margin-bottom: 18px;
}

.hero__ticker-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #031018;
  background: var(--cyan);
  padding: 6px 12px;
  margin-bottom: 22px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero__meta dd {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.hero__meta .live {
  color: var(--cyan);
}

.hero__meta .live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.4s infinite;
}

.hero__stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero__rings,
.hero__scan,
.hero__glow,
.hero__figure,
.hero__sparks {
  position: absolute;
}

.hero__rings {
  width: min(460px, 90%);
  aspect-ratio: 1;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(0, 229, 255, 0.28);
  border-radius: 50%;
}

.ring--a { animation: spin 28s linear infinite; }
.ring--b { inset: 10%; border-style: solid; border-color: rgba(0, 229, 255, 0.18); animation: spin 18s linear infinite reverse; }
.ring--c { inset: 22%; border-color: rgba(255, 106, 26, 0.22); animation: spin 12s linear infinite; }

.hero__scan {
  width: min(420px, 86%);
  height: 70%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 10px,
    rgba(0, 229, 255, 0.08) 10px 11px
  );
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  animation: scanMove 5.5s linear infinite;
  opacity: 0.7;
}

.hero__glow {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.32), transparent 68%);
  filter: blur(8px);
  animation: breathe 4.8s ease-in-out infinite;
}

.hero__figure {
  width: min(460px, 92%);
  margin: 0;
  filter:
    drop-shadow(0 0 18px rgba(0, 229, 255, 0.55))
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

.hero__figure img {
  width: 100%;
  animation: floatY 6s ease-in-out infinite;
}

.hero__sparks {
  inset: 12% 8%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(255, 106, 26, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px);
  animation: sparkTwinkle 2.8s ease-in-out infinite;
}

/* marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.04);
  padding: 10px 0;
}

.marquee--alt {
  background: rgba(255, 106, 26, 0.05);
  border-color: rgba(255, 106, 26, 0.25);
}

.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  white-space: nowrap;
}

.marquee__track--left { animation: marqueeLeft 28s linear infinite; }
.marquee__track--right { animation: marqueeRight 32s linear infinite; color: var(--orange); }

.marquee__track span { padding-right: 8px; }

main > section:not(.hero),
main > .marquee,
.footer {
  position: relative;
  z-index: 2;
}

/* transmission */
.transmission {
  padding: 110px 0 90px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.55), rgba(0, 229, 255, 0.04), rgba(5, 8, 16, 0.55));
}

.transmission__title {
  max-width: 16ch;
  margin: 0 auto 18px;
  -webkit-text-stroke: 1px rgba(232, 244, 255, 0.35);
  color: transparent;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.transmission.is-live .transmission__title {
  color: var(--text);
  -webkit-text-stroke: 0;
}

.transmission__copy {
  font-size: 20px;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto;
}

.cursor-blink {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  margin-left: 4px;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

/* about */
.about {
  padding: 40px 0 100px;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.4), rgba(8, 14, 28, 0.72));
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about__line {
  color: var(--muted);
  margin: 16px 0 28px;
  max-width: 32ch;
}

.hud-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hud-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.hud-list span {
  color: var(--muted);
}

.about__feed .hud-frame {
  padding: 12px;
}

.about__feed-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 10px;
}

.rec {
  color: var(--orange);
}

.rec::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1.2s infinite;
}

.about__banner-wrap {
  position: relative;
  overflow: hidden;
}

.about__banner-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.about__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.18), transparent);
  height: 40%;
  animation: scanWipe 3.8s linear infinite;
  pointer-events: none;
}

.about__seal {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px var(--glow);
  image-rendering: pixelated;
}

/* contract */
.contract {
  padding: 20px 0 90px;
  background: rgba(5, 8, 16, 0.55);
}

.contract__panel {
  padding: 48px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.08);
}

.contract__chain {
  font-family: var(--font-display);
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.contract__addr {
  font-family: var(--font-mono);
  font-size: clamp(32px, 8vw, 84px);
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: 0 0 24px var(--glow);
  margin-bottom: 28px;
  word-break: break-all;
}

/* command */
.command {
  padding: 20px 0 100px;
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.7), rgba(5, 8, 16, 0.75));
}

.command__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tilt-card {
  position: relative;
  display: block;
  min-height: 240px;
  padding: 28px 24px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(12, 28, 48, 0.96), rgba(5, 8, 16, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.38);
  transform-style: preserve-3d;
  transition: transform 160ms ease, box-shadow 160ms ease;
  overflow: hidden;
}

.tilt-card__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28), transparent 70%);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.tilt-card:hover,
.tilt-card:focus-visible {
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.18);
}

.tilt-card:hover .tilt-card__glow,
.tilt-card:focus-visible .tilt-card__glow {
  opacity: 1;
}

.tilt-card__idx {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.2em;
  font-size: 12px;
}

.tilt-card h3 {
  font-size: 28px;
  margin: 16px 0 10px;
}

.tilt-card p {
  color: var(--muted);
  margin-bottom: 22px;
}

.tilt-card__go {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

/* gallery */
.gallery {
  padding: 20px 0 100px;
  background: rgba(5, 8, 16, 0.72);
}

.gallery__stage {
  padding: 18px;
}

.gallery__viewport {
  position: relative;
  overflow: hidden;
  height: min(62vh, 560px);
  background: #000;
  outline: none;
}

.gallery__viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

.gallery__viewport img.is-out {
  opacity: 0;
  transform: scale(1.04);
  filter: contrast(1.8) saturate(1.6);
}

.gallery__wipe {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}

.gallery__wipe.is-on {
  animation: wipe 520ms ease;
}

.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0 8px;
}

.gallery__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 28px;
  line-height: 1;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.gallery__arrow:hover,
.gallery__arrow:focus-visible {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 16px var(--glow);
}

.gallery__count {
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  color: var(--muted);
  min-width: 90px;
  text-align: center;
}

.gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 6px;
}

.gallery__thumb {
  width: 64px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  opacity: 0.45;
  overflow: hidden;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb.is-active,
.gallery__thumb:hover,
.gallery__thumb:focus-visible {
  opacity: 1;
  border-color: var(--cyan);
}

/* howto */
.howto {
  padding: 20px 0 90px;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.6), rgba(8, 16, 32, 0.78));
}

.howto__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: none;
}

.howto__step {
  padding: 28px 22px 24px;
  background: rgba(10, 18, 32, 0.92);
}

.howto__num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.howto__step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.howto__step p,
.howto__step code {
  color: var(--muted);
}

.howto__step code {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.howto__cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* terminal */
.terminal-section {
  padding: 10px 0 80px;
  background: rgba(5, 8, 16, 0.7);
}

.terminal {
  max-width: 720px;
  margin: 0 auto;
}

.terminal__bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.terminal__body {
  min-height: 160px;
  padding: 18px 16px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--cyan);
  white-space: pre-wrap;
}

/* footer */
.footer {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.footer__horizon {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer__sun {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 180px;
  height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 106, 26, 0.55), rgba(0, 229, 255, 0.18) 40%, transparent 70%);
  filter: blur(6px);
}

.footer__grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -20%;
  height: 70%;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(500px) rotateX(72deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  animation: gridPulse 10s linear infinite;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--border);
  image-rendering: pixelated;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.18em;
}

.footer__tick {
  font-family: var(--font-display);
  color: var(--cyan);
  letter-spacing: 0.2em;
  font-size: 12px;
}

.footer__tag {
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 12px;
}

.footer__links {
  display: flex;
  gap: 22px;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 12px;
}

.footer__ca {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer__ca span {
  color: var(--cyan);
}

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* animations */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scanMove {
  0% { transform: translateY(-12%); }
  100% { transform: translateY(12%); }
}

@keyframes scanWipe {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(280%); }
}

@keyframes fogDrift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

@keyframes gridPulse {
  from { background-position: 0 0; }
  to { background-position: 0 48px; }
}

@keyframes sparkTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

@keyframes glitchShift {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, 0); }
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes flash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes wipe {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes copyPulse {
  0% { box-shadow: 0 0 0 0 var(--glow); }
  100% { box-shadow: 0 0 0 18px transparent; }
}

/* responsive */
@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__cta,
  .hero__meta {
    justify-content: center;
  }

  .hero__stage {
    min-height: 460px;
    order: -1;
  }

  .about__grid,
  .command__grid,
  .howto__steps {
    grid-template-columns: 1fr;
  }

  .about__banner-wrap img {
    height: 260px;
  }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 1;
  }

  .nav.is-open .nav__links {
    transform: none;
  }

  .nav__links a {
    font-size: 18px;
    color: var(--text);
  }

  .nav__toggle {
    display: block;
    z-index: 2;
  }

  .nav__hud {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 12px);
  }

  .hero__hud-frame {
    inset: 8px;
  }

  .gallery__viewport {
    height: 52vh;
  }
}

@media (max-width: 640px) {
  .section-wrap {
    width: min(1180px, calc(100% - 24px));
  }

  body {
    font-size: 16px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__figure {
    width: min(360px, 100%);
  }

  .contract__panel {
    padding: 32px 16px;
  }

  .gallery__thumb {
    width: 48px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .nav__brand span {
    display: none;
  }

  .nav__inner {
    width: min(1280px, calc(100% - 16px));
    gap: 8px;
  }

  .btn--sm {
    padding: 0 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .scanlines,
  .cursor {
    display: none !important;
  }

  .hero__figure {
    animation-duration: 8s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__figure {
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.55));
  }
}
