@font-face {
  font-family: "Press Start 2P";
  src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Jersey 15";
  src: url("assets/fonts/Jersey15-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #081426;
  --navy-deep: #040b18;
  --panel: rgba(8, 20, 38, 0.88);
  --field: #0d2240;
  --frame: #6fd6ee;
  --cyan: #5ecbe6;
  --cyan-dim: rgba(111, 214, 238, 0.28);
  --cyan-glow: rgba(111, 214, 238, 0.4);
  --text: #e8e8e4;
  --muted: #9ab0bf;
  --amber: #e0c868;
  --green: #5be07a;
  --heading: "Press Start 2P", monospace;
  --body: "Jersey 15", "Courier New", monospace;
  --gutter: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--navy-deep)
    radial-gradient(ellipse at 50% 0%, rgba(111, 214, 238, 0.06), transparent 60%);
  color: var(--text);
  font-family: var(--body);
  font-size: 22px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }
a:hover { color: #fff; }
p { margin: 0 0 0.9em; }
strong { color: #fff; font-weight: 400; }
.muted { color: var(--muted); }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2 {
  font-family: var(--heading);
  font-weight: 400;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px var(--cyan-glow), 0 0 18px rgba(111, 214, 238, 0.18);
  margin: 0 0 0.9em;
}
h1 { font-size: clamp(15px, 2.4vw, 26px); line-height: 1.65; color: #fff; }
h2 { font-size: clamp(12px, 1.5vw, 16px); line-height: 1.5; }

/* the cut corner cyan frame used by the hero card and the contact card */
.card {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--frame);
  outline: 1px solid rgba(111, 214, 238, 0.25);
  outline-offset: 4px;
  box-shadow: 0 0 0 1px rgba(111, 214, 238, 0.15) inset, 0 0 30px var(--cyan-glow);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px var(--gutter) 60px;
  min-height: 72vh;
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--frame);
  box-shadow: 0 2px 24px var(--cyan-glow);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 11, 24, 0.45) 0%, rgba(4, 11, 24, 0.2) 35%, rgba(4, 11, 24, 0.92) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(4, 11, 24, 0.75) 100%);
}
/* CRT: scanlines, faint RGB stripe, slow rolling band */
.scanlines {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 0, 0, 0.03) 0 1px, rgba(0, 255, 0, 0.02) 1px 2px, rgba(0, 0, 255, 0.03) 2px 3px);
  mix-blend-mode: multiply;
}
.scanlines::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(111, 214, 238, 0.08), transparent);
  animation: roll 7s linear infinite;
}
@keyframes roll { from { top: -120px; } to { top: 100%; } }

.hero-inner {
  z-index: 3;
  width: 100%;
  max-width: 780px;
  text-align: center;
  padding: 0 34px 26px;
  margin-top: 70px;
}
.logo {
  width: 190px;
  max-width: 60%;
  height: auto;
  display: block;
  margin: -78px auto 6px;
  filter: drop-shadow(0 0 14px rgba(111, 214, 238, 0.5));
}
.eyebrow {
  font-family: var(--heading);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.6em;
}
.tagline { margin-bottom: 0.7em; }
.cursor {
  display: inline-block;
  width: 0.55em; height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.12em;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lede { color: var(--muted); font-size: 24px; max-width: 30em; margin: 0 auto 1.4em; }

.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 18px;
}
.btn {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--frame);
  padding: 2px;
  border: 0;
  font: inherit;
  cursor: pointer;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  text-align: left;
}
.btn-in {
  display: block;
  background: var(--field);
  padding: 16px 16px 14px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  transition: background 0.12s;
}
.btn:hover .btn-in, .btn:focus-visible .btn-in { background: #15406a; }
.btn:focus-visible { outline: none; }
.btn-title {
  display: block;
  font-family: var(--heading);
  font-size: 11px;
  line-height: 1.5;
  color: var(--cyan);
  text-transform: uppercase;
}
.btn-meta { display: block; color: var(--muted); font-size: 19px; line-height: 1.25; margin-top: 6px; }
.btn-title::before { content: "> "; color: var(--green); }
.btn:hover .btn-title { color: #fff; }

.note {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.3;
  text-align: left;
  margin: 0 0 0.4em;
  padding-left: 1em;
  text-indent: -1em;
}
.note::before { content: "> "; color: var(--green); }
.release-line { color: var(--muted); font-size: 19px; margin: 14px 0 0; }

/* contact */
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px var(--gutter) 24px;
}
.contact { padding: 30px 34px 28px; }
.contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.contact label { display: grid; gap: 6px; }
.contact label span {
  font-family: var(--heading);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}
.contact input, .contact textarea {
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 2px solid var(--cyan-dim);
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: var(--frame);
  box-shadow: 0 0 14px var(--cyan-glow);
}
.contact .full { grid-column: 1 / -1; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.actions .btn { min-width: 180px; }
.actions .btn-in { padding: 14px 18px 12px; text-align: center; }
.status { color: var(--amber); font-size: 20px; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 19px;
  padding: 24px var(--gutter) 40px;
  border-top: 2px solid var(--cyan-dim);
  max-width: 780px;
  margin: 24px auto 0;
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .scanlines::after { animation: none; }
}
@media (max-width: 720px) {
  body { font-size: 20px; }
  .hero { padding: 56px var(--gutter) 36px; min-height: 0; }
  .hero-inner { padding: 0 18px 20px; margin-top: 60px; }
  .logo { width: 140px; margin-top: -66px; }
  .downloads, .contact form { grid-template-columns: 1fr; }
  .lede { font-size: 21px; }
  .contact { padding: 22px 18px 20px; }
  main { padding-top: 36px; }
}
