:root {
  --ink: #f2ead3;
  --muted: #b9ad91;
  --void: #0b0d0c;
  --panel: #141713;
  --panel-2: #1d211b;
  --hazard: #ffb000;
  --acid: #ccff00;
  --rust: #d45220;
  --line: rgba(242, 234, 211, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 176, 0, 0.14), transparent 32rem),
    radial-gradient(circle at 85% 0%, rgba(204, 255, 0, 0.08), transparent 28rem),
    linear-gradient(135deg, #050605 0%, var(--void) 42%, #17110c 100%);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.noise,
.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.noise {
  z-index: 10;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanline {
  z-index: 11;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,0.035) 8px);
  mix-blend-mode: overlay;
}

.masthead {
  position: relative;
  padding: 28px clamp(20px, 5vw, 72px) 76px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.72);
  backdrop-filter: blur(14px);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.brand span {
  color: var(--hazard);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--hazard);
  border-color: var(--hazard);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: start;
  max-width: 1180px;
  min-height: 68vh;
  padding-top: clamp(60px, 9vw, 140px);
}

.eyebrow,
.section-kicker,
.module__code {
  color: var(--acid);
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-weight: 700;
  font-size: 0.78rem;
}

.hero h1,
.coverage h2,
.runbook h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(5rem, 17vw, 13rem);
  text-shadow: 8px 8px 0 rgba(255, 176, 0, 0.12);
  animation: slam 900ms cubic-bezier(.19, 1, .22, 1) both;
}

.hero__copy {
  max-width: 780px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.75;
}

.hero__copy strong {
  color: var(--ink);
  font-family: "Instrument Serif", serif;
  font-size: 1.25em;
  font-style: italic;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--rust);
}

.button--hot {
  background: var(--hazard);
  color: #17110c;
  border-color: var(--hazard);
}

.button--ghost {
  background: rgba(242, 234, 211, 0.04);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.metrics article {
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(145deg, rgba(29,33,27,0.96), rgba(13,15,13,0.96));
}

.metric__value {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.85;
  color: var(--hazard);
}

.metric__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
}

.coverage,
.runbook {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.coverage h2,
.runbook h2 {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(3.5rem, 9vw, 8rem);
}

.coverage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, auto);
  gap: 14px;
  margin-top: 44px;
}

.module {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 176, 0, 0.09), transparent 42%),
    rgba(20, 23, 19, 0.88);
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.module::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 176, 0, 0.32);
  transform: rotate(45deg);
}

.module:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  border-color: var(--hazard);
  background: rgba(29, 33, 27, 0.98);
}

.module--wide {
  grid-column: span 2;
}

.module--tall {
  grid-row: span 2;
}

.module h3 {
  margin: 42px 0 12px;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.module p:last-child,
.runbook p,
.footer p {
  color: var(--muted);
  line-height: 1.75;
}

.runbook {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.terminal {
  border: 1px solid var(--line);
  background: #060706;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.terminal__bar span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--hazard);
  border-radius: 999px;
}

.terminal pre {
  margin: 0;
  padding: clamp(22px, 4vw, 42px);
  overflow-x: auto;
  color: var(--acid);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  line-height: 1.8;
}

.terminal__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.terminal__actions button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 16px;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 160ms ease, color 160ms ease;
}

.terminal__actions button:last-child {
  border-right: 0;
}

.terminal__actions button:hover,
.terminal__actions button:focus-visible {
  background: var(--hazard);
  color: #0b0d0c;
}

.footer {
  padding: 36px clamp(20px, 5vw, 72px) 54px;
  border-top: 1px solid var(--line);
}

@keyframes slam {
  from {
    opacity: 0;
    transform: translateY(36px) skewY(4deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .metrics,
  .runbook,
  .coverage__grid {
    grid-template-columns: 1fr;
  }

  .module--wide,
  .module--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
