@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/silkscreen-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/silkscreen-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/red-hat-text-latin-wght-normal.woff2") format("woff2");
}

:root {
  --night: #0b1028;
  --night-2: #141b3d;
  --panel: #1b2450;
  --line: #2c3770;
  --text: #e8ecff;
  --muted: #aab4dd;
  --blue: #3aa0f0;
  --gold: #f5b700;
  --green: #4ade80;
  --pixel: "Silkscreen", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--night);
  background-image: radial-gradient(
      circle at 15% 10%,
      rgba(58, 160, 240, 0.16),
      transparent 40%
    ),
    radial-gradient(circle at 85% 30%, rgba(245, 183, 0, 0.1), transparent 35%);
  color: var(--text);
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--blue);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--gold);
  color: #1a1400;
  font-family: var(--pixel);
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 4px 0 #a87d00,
    0 0 0 3px #1a1400;
  transition: transform 0.1s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #a87d00,
    0 0 0 3px #1a1400;
}
.btn-small {
  padding: 10px 16px;
  font-size: 14px;
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 2px solid var(--line);
  background: var(--night-2);
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--muted);
}
.dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  animation: blink 1.4s steps(2) infinite;
}
.title {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(40px, 13vw, 168px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow:
    4px 4px 0 var(--blue),
    8px 8px 0 #1d4f8f,
    12px 12px 0 rgba(0, 0, 0, 0.35);
  animation: hop 3.2s steps(1) infinite;
}
.tagline {
  margin: 28px 0 0;
  font-family: var(--pixel);
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.35;
}
.tagline em {
  font-style: normal;
  color: var(--gold);
}
.lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
}

/* The animated factory */
.screen {
  border: 4px solid #000;
  box-shadow:
    0 0 0 4px var(--line),
    0 18px 50px rgba(0, 0, 0, 0.45);
  background: #0e1533;
  line-height: 0;
}
#belt {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.stages {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.stages li {
  background: var(--night-2);
  border: 2px solid var(--line);
  padding: 18px;
}
.step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: #04121f;
  font-family: var(--pixel);
  font-weight: 700;
}
.stages h3 {
  margin: 10px 0 6px;
  font-family: var(--pixel);
  font-size: 20px;
}
.stages p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Features */
.section-title {
  margin: 0 0 24px;
  font-family: var(--pixel);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
}
.features {
  padding-top: 88px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 22px;
  box-shadow: 6px 6px 0 #070b1e;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #070b1e;
}
.card h3 {
  margin: 0 0 8px;
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--gold);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Terminal */
.terminal-section {
  padding-top: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
}
.terminal-copy {
  flex: 1 1 320px;
  min-width: 0;
}
.terminal-copy p {
  color: var(--muted);
  margin: 0;
}
.terminal {
  flex: 1.4 1 460px;
  min-width: 0;
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  background: #05081a;
  border: 2px solid var(--line);
  color: #c7f9d4;
  font-size: 14px;
  line-height: 1.6;
}
.terminal code {
  background: none;
  padding: 0;
}
.prompt {
  color: var(--gold);
}

/* Threats */
.threats {
  padding-top: 88px;
}
.threat-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.threat-list div {
  border-left: 6px solid var(--green);
  background: var(--night-2);
  padding: 16px 18px;
}
.threat-list dt {
  font-weight: 700;
}
.threat-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Call to action */
.cta {
  margin-top: 88px;
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
  background: var(--panel);
  border: 4px solid #000;
  box-shadow: 0 0 0 4px var(--line);
}
.cta h2 {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(28px, 4vw, 44px);
}
.cta p {
  max-width: 620px;
  margin: 14px auto 28px;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 15px;
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
@keyframes hop {
  0%,
  92% {
    transform: translateY(0);
  }
  94% {
    transform: translateY(-6px);
  }
  96% {
    transform: translateY(0);
  }
  98% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .dot,
  .title {
    animation: none;
  }
}
