/* Cyberpunk POC — full-viewport sections, neon + scanlines + stock video under WebGL */

:root {
  --bg-deep: #030206;
  --bg-panel: rgba(12, 6, 22, 0.72);
  --text: #f0e8ff;
  --muted: #9b86b8;
  --neon-cyan: #00ffd5;
  --neon-magenta: #ff2aaa;
  --neon-purple: #b74dff;
  --accent: var(--neon-cyan);
  --accent-alt: var(--neon-magenta);
  --accent-dim: rgba(0, 255, 213, 0.18);
  --border: rgba(255, 0, 200, 0.22);
  --font: "Rajdhani", system-ui, sans-serif;
  --font-display: "Orbitron", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body.cyber-theme {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
}

/* Film grain + scanlines (subtle) */
body.cyber-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 44;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.cyber-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 213, 0.025) 2px,
    rgba(0, 255, 213, 0.025) 3px
  );
  animation: cyber-scan 10s linear infinite;
}

@keyframes cyber-scan {
  0% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    opacity: 0.65;
  }
  100% {
    transform: translateY(6px);
    opacity: 0.45;
  }
}

/* Fixed nav — neon frame */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(3, 2, 10, 0.94), transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 42, 170, 0.22);
  box-shadow: 0 0 24px rgba(0, 255, 213, 0.06);
}

.brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  text-shadow:
    0 0 18px rgba(255, 42, 170, 0.55),
    0 0 36px rgba(0, 255, 213, 0.25);
}

.brand span {
  color: var(--neon-cyan);
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-color: rgba(0, 255, 213, 0.45);
  background: rgba(0, 255, 213, 0.06);
  box-shadow: 0 0 16px rgba(0, 255, 213, 0.15);
}

.nav-links a.active {
  color: var(--neon-magenta);
  border-color: rgba(255, 42, 170, 0.55);
  background: rgba(255, 42, 170, 0.1);
  box-shadow:
    0 0 14px rgba(255, 42, 170, 0.35),
    inset 0 0 12px rgba(255, 42, 170, 0.08);
}

/* Full-screen sections */
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.section-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0.48;
  filter: saturate(1.35) contrast(1.15) brightness(0.78) hue-rotate(-6deg);
}

.section-media__video--platform {
  opacity: 0.4;
  filter: saturate(1.45) contrast(1.12) brightness(0.72) hue-rotate(12deg);
}

.section-media__video--metrics {
  opacity: 0.42;
  filter: saturate(1.2) contrast(1.2) brightness(0.65) hue-rotate(-18deg);
}

.section-media__video--culture {
  opacity: 0.38;
  filter: saturate(1.5) contrast(1.18) brightness(0.7) hue-rotate(25deg);
}

.section-media__video--cta {
  opacity: 0.45;
  filter: saturate(1.35) contrast(1.22) brightness(0.68);
}

.section-media__video--static {
  opacity: 0;
  visibility: hidden;
}

.section-media__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-media__scrim--hero {
  background: linear-gradient(
    145deg,
    rgba(12, 0, 22, 0.92) 0%,
    rgba(80, 0, 60, 0.35) 38%,
    rgba(0, 40, 45, 0.55) 62%,
    rgba(5, 0, 18, 0.94) 100%
  );
}

.section-media__scrim--platform {
  background: linear-gradient(
    190deg,
    rgba(8, 0, 28, 0.9) 0%,
    rgba(0, 60, 55, 0.38) 48%,
    rgba(18, 0, 35, 0.93) 100%
  );
}

.section-media__scrim--metrics {
  background: linear-gradient(
    165deg,
    rgba(25, 0, 45, 0.88) 0%,
    rgba(0, 25, 40, 0.42) 45%,
    rgba(10, 0, 22, 0.94) 100%
  );
}

.section-media__scrim--culture {
  background: radial-gradient(ellipse 90% 70% at 50% 40%, rgba(255, 42, 170, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(8, 0, 20, 0.88) 0%, rgba(0, 35, 45, 0.45) 50%, rgba(12, 0, 28, 0.93) 100%);
}

.section-media__scrim--cta {
  background: radial-gradient(circle at 50% 80%, rgba(0, 255, 213, 0.15), transparent 45%),
    linear-gradient(195deg, rgba(6, 0, 18, 0.93) 0%, rgba(60, 0, 80, 0.35) 55%, rgba(3, 0, 12, 0.96) 100%);
}

.section-webgl {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section-webgl canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(255, 42, 170, 0.7);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  text-shadow:
    0 0 42px rgba(255, 42, 170, 0.35),
    0 0 80px rgba(0, 255, 213, 0.18),
    2px 2px 0 rgba(0, 0, 0, 0.45);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  text-shadow:
    0 0 28px rgba(0, 255, 213, 0.25),
    0 0 48px rgba(255, 42, 170, 0.15);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  padding: 1.35rem 1.25rem;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow:
    0 0 0 1px rgba(0, 255, 213, 0.08),
    inset 0 0 40px rgba(255, 42, 170, 0.04);
}

.card:nth-child(even) {
  border-left-color: var(--neon-magenta);
}

.card:hover {
  border-color: rgba(0, 255, 213, 0.55);
  transform: translateY(-3px);
  box-shadow:
    0 0 28px rgba(0, 255, 213, 0.2),
    0 12px 40px rgba(80, 0, 120, 0.35);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--neon-cyan);
}

.card:nth-child(even) h3 {
  color: var(--neon-magenta);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: left;
  padding: 1rem 1rem 1.1rem;
  background: rgba(8, 2, 18, 0.55);
  border: 1px solid rgba(0, 255, 213, 0.22);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  box-shadow: inset 0 0 24px rgba(255, 42, 170, 0.06);
}

.stat:nth-child(even) {
  border-color: rgba(255, 42, 170, 0.28);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--neon-cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(0, 255, 213, 0.55);
}

.stat:nth-child(even) strong {
  color: var(--neon-magenta);
  text-shadow: 0 0 20px rgba(255, 42, 170, 0.45);
}

.stat span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    box-shadow 0.25s,
    transform 0.2s,
    filter 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--neon-magenta), #ff0066);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 24px rgba(255, 42, 170, 0.55),
    inset 0 0 20px rgba(255, 255, 255, 0.12);
}

.btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(255, 42, 170, 0.65);
}

.btn--ghost {
  background: transparent;
  color: var(--neon-cyan);
  border-color: rgba(0, 255, 213, 0.45);
  box-shadow: 0 0 16px rgba(0, 255, 213, 0.12);
}

.btn--ghost:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 28px rgba(0, 255, 213, 0.35);
}

.section--platform,
.section--metrics,
.section--culture,
.section--cta {
  position: relative;
}

.quote {
  font-size: 1.28rem;
  color: #d4c4e8;
  max-width: 34rem;
  margin: 0;
  font-style: normal;
  font-family: var(--font);
  border-left: 3px solid var(--neon-magenta);
  padding-left: 1.25rem;
  text-shadow: 0 0 20px rgba(255, 42, 170, 0.2);
}

.author {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-mini {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3rem;
}

.section--cta .section__inner {
  text-align: center;
}

.section--cta .lede {
  margin-left: auto;
  margin-right: auto;
}

.section--cta .cta-row {
  justify-content: center;
}

.section--cta .quote {
  margin-left: auto;
  margin-right: auto;
  border-left: none;
  border-bottom: 2px solid rgba(0, 255, 213, 0.35);
  padding-left: 0;
  padding-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .section {
    scroll-snap-align: none;
  }

  body.cyber-theme::after {
    animation: none;
    opacity: 0.35;
  }

  .card:hover {
    transform: none;
  }
}
