:root {
  --bg: #050505;
  --bg-soft: #110708;
  --panel: rgba(18, 8, 10, 0.88);
  --panel-strong: rgba(28, 8, 12, 0.96);
  --text: #f7efef;
  --muted: #d8bebe;
  --red: #ff3b4d;
  --red-soft: #ff7a88;
  --red-deep: #7a0f19;
  --line: rgba(255, 90, 108, 0.28);
  --glow: 0 0 24px rgba(255, 59, 77, 0.22);
  --glow-strong: 0 0 42px rgba(255, 59, 77, 0.35);
  --max-width: 1220px;
  --radius: 22px;
  --terminal: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", monospace;
  --display: "Courier New", "Lucida Console", monospace;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

*::selection {
  background: var(--red);
  color: #000;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(140, 0, 18, 0.24), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(255, 40, 72, 0.12), transparent 20%),
    linear-gradient(180deg, #050505, #090304 35%, #040404 100%);
  color: var(--text);
  font-family: var(--terminal);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
  z-index: 90;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.crt-overlay {
  position: fixed;
  inset: 0;
  background-image: url("./vaimp-assets/overlay.png");
  background-size: cover;
  background-position: center;
  opacity: 0.11;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 95;
}

.ambient-noise,
.particle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-noise {
  z-index: 3;
}

.particle-field {
  z-index: 4;
  overflow: hidden;
}

.particle {
  position: absolute;
  color: rgba(255, 110, 124, 0.28);
  font-size: clamp(10px, 1vw, 14px);
  animation: drift linear infinite;
  text-shadow: 0 0 12px rgba(255, 59, 77, 0.32);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 3, 4, 0.82);
  backdrop-filter: blur(12px);
}

.topbar-inner,
.section-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-kicker,
.eyebrow,
.microtag,
.terminal-stamp {
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.brand-kicker,
.eyebrow,
.terminal-stamp {
  color: var(--red-soft);
  font-size: 0.7rem;
}

.brand-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: var(--glow);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-cta,
.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.topbar-cta {
  justify-content: flex-end;
}

.section-cta {
  margin-top: 1.35rem;
}

.topbar-nav a {
  color: var(--muted);
  font-size: 0.74rem;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.topbar-nav a:hover,
.text-link:hover {
  color: var(--text);
  text-shadow: var(--glow);
}

.section {
  position: relative;
  padding: 7rem 0;
}

.section::before {
  content: attr(data-system);
  position: absolute;
  top: 1.2rem;
  right: max(1rem, calc((100vw - var(--max-width)) / 2));
  color: rgba(255, 122, 136, 0.16);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
}

.hero-media,
.finale-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img,
.finale-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 18s ease-in-out infinite alternate;
  filter: saturate(0.84) contrast(1.08) brightness(0.58);
}

.hero-media::after,
.finale-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.76)),
    radial-gradient(circle at center, transparent 20%, rgba(86, 0, 11, 0.32) 70%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
}

.glitch-wrap {
  display: inline-grid;
  gap: 0.4rem;
}

.hero-title {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(3.4rem, 15vw, 10rem);
  line-height: 0.84;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 59, 77, 0.75), 0 0 42px rgba(255, 59, 77, 0.28);
  animation: flicker 2.6s infinite steps(2);
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-title::before {
  color: rgba(255, 78, 110, 0.65);
  transform: translate(2px, 0);
  clip-path: inset(0 0 45% 0);
  animation: glitchShift 2.4s infinite linear alternate-reverse;
}

.hero-title::after {
  color: rgba(255, 255, 255, 0.45);
  transform: translate(-2px, 0);
  clip-path: inset(55% 0 0 0);
  animation: glitchShift 1.7s infinite linear alternate;
}

.hero-subtitle {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.type-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: var(--red-soft);
  font-size: 0.82rem;
}

.blinker {
  width: 0.7rem;
  height: 1.2rem;
  background: var(--red-soft);
  box-shadow: 0 0 12px rgba(255, 122, 136, 0.7);
  animation: blink 0.95s steps(1) infinite;
}

.hero-actions,
.finale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34, 8, 11, 0.92), rgba(12, 5, 6, 0.94));
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  box-shadow: var(--glow);
}

.button-compact {
  min-height: 42px;
  padding: 0.68rem 0.95rem;
  font-size: 0.7rem;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 110, 124, 0.72);
  box-shadow: var(--glow-strong);
}

.button-primary {
  background: linear-gradient(180deg, rgba(123, 16, 29, 0.96), rgba(64, 7, 13, 0.96));
}

.button-ghost {
  background: rgba(11, 4, 5, 0.76);
}

.hero-sidecar,
.terminal-box,
.incident-file,
.quiz-panel,
.stat-card,
.arch-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 8, 10, 0.92), rgba(8, 3, 4, 0.92));
  box-shadow: var(--glow);
}

.hero-sidecar {
  padding: 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.hero-sidecar img {
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sidecar-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.finale-copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-heading p,
.finale-copy p,
.incident-copy,
.quiz-result p {
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.8;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.report-frame {
  position: relative;
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(17, 7, 9, 0.72);
  box-shadow: var(--glow-strong);
}

.report-frame img {
  border-radius: 18px;
  width: 100%;
}

.report-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(10, 2, 4, 0.9);
  color: var(--red-soft);
  font-size: 0.72rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1rem;
  border-radius: 18px;
}

.stat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-value {
  font-family: var(--display);
  font-size: 1.4rem;
}

.stat-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-deep), var(--red), #ffd3d7);
  box-shadow: 0 0 18px rgba(255, 59, 77, 0.5);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.feed-shell {
  display: grid;
  gap: 1.1rem;
}

.terminal-box {
  position: relative;
  min-height: 340px;
  padding: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-head,
.file-head,
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.window-dots {
  display: inline-flex;
  gap: 0.45rem;
}

.window-dots span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.window-dots span:first-child {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots span:last-child {
  background: #28c840;
}

.terminal-title {
  font-size: 0.82rem;
  color: var(--red-soft);
}

.log-list {
  display: grid;
  gap: 0.6rem;
  min-height: 220px;
  color: #ffe0e3;
}

.log-line {
  opacity: 0;
  transform: translateY(6px);
  animation: logIn 260ms ease forwards;
}

.log-line code {
  color: var(--red-soft);
}

.feed-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 8, 10, 0.78);
  font-size: 0.74rem;
  color: var(--muted);
}

.incident-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.incident-frame img,
.arch-card img,
.sun-media img {
  width: 100%;
  border-radius: 18px;
}

.incident-file {
  padding: 1rem;
  border-radius: var(--radius);
}

.incident-copy {
  margin-bottom: 1rem;
}

.redacted {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: #000;
  color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.file-tag {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(12, 4, 5, 0.8);
  color: var(--red-soft);
  font-size: 0.72rem;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.arch-card {
  position: relative;
  padding: 1rem;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.arch-card:hover {
  border-color: rgba(255, 110, 124, 0.72);
  box-shadow: var(--glow-strong);
}

.arch-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1rem;
}

.arch-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arch-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0.8rem 0 1rem;
}

.danger-row {
  display: grid;
  gap: 0.45rem;
}

.danger-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--red-soft);
}

.danger-meter {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.danger-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6e0a16, var(--red), #ffe0e3);
}

.sun-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: center;
}

.sun-media {
  position: relative;
}

.sun-warning {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(9, 1, 2, 0.88);
  color: var(--red-soft);
  font-size: 0.72rem;
  box-shadow: var(--glow);
}

.quiz-panel {
  padding: 1rem;
  border-radius: var(--radius);
}

.quiz-form {
  display: grid;
  gap: 1rem;
}

.quiz-field {
  display: grid;
  gap: 0.45rem;
}

.quiz-field label {
  color: var(--muted);
  font-size: 0.86rem;
}

.quiz-field select {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 4, 5, 0.88);
  color: var(--text);
}

.quiz-result {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 8, 12, 0.72);
}

.quiz-result strong {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-soft);
}

.finale {
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: clip;
}

.finale-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.finale-copy h2 {
  margin-bottom: 1rem;
}

.footer-note {
  color: rgba(255, 224, 227, 0.62);
  font-size: 0.76rem;
}

.microtext {
  position: absolute;
  color: rgba(255, 122, 136, 0.24);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  animation: pulseFade 4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flicker {
  0%, 18%, 22%, 62%, 64%, 100% {
    opacity: 1;
  }
  20%, 24%, 63% {
    opacity: 0.64;
  }
}

@keyframes glitchShift {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2px, -1px);
  }
  40% {
    transform: translate(-3px, 1px);
  }
  60% {
    transform: translate(3px, 0);
  }
  80% {
    transform: translate(-1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

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

@keyframes slowZoom {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.12) translateY(-1.5%);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 110vh, 0);
  }
  to {
    transform: translate3d(0, -120vh, 0);
  }
}

@keyframes floatCode {
  from {
    transform: translate3d(0, 108%, 0);
    opacity: 0;
  }
  8%, 82% {
    opacity: 1;
  }
  to {
    transform: translate3d(0, -115%, 0);
    opacity: 0;
  }
}

@keyframes pulseFade {
  0%, 100% {
    opacity: 0.14;
  }
  50% {
    opacity: 0.36;
  }
}

@keyframes logIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .report-grid,
  .incident-layout,
  .sun-grid {
    grid-template-columns: 1fr;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .topbar-inner {
    align-items: flex-start;
    padding: 0.8rem 0;
    flex-direction: column;
  }

  .topbar-nav {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .section {
    padding: 5.5rem 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .section::before {
    right: 1rem;
    top: 0.8rem;
  }

  .topbar-nav {
    font-size: 0.7rem;
  }

  .topbar-cta,
  .section-cta {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2.8rem, 21vw, 5rem);
  }

  .hero-actions,
  .finale-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .terminal-box {
    min-height: 300px;
  }

  .report-status,
  .sun-warning {
    position: static;
    margin-top: 0.8rem;
    display: inline-flex;
  }
}

@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;
  }
}
