/* ROBOZ landing page. Direction A: CRT phosphor, VT323, VHS. No build step, no trackers. */
@font-face {
  font-family: "VT323";
  src: url("assets/fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #0b0a0f;
  --slate: #1c1b24;
  --panel: rgba(11, 10, 15, 0.88);
  --phos: #7cff6b;
  --phos-dim: rgba(124, 255, 107, 0.55);
  --phos-faint: rgba(124, 255, 107, 0.14);
  --pink: #ff3ea5;
  --amber: #ffc23b;
  --red: #ff3b30;
  --teal: #2ed3c6;
  --paper: #f2e8d5;
  --paper-ink: #1c1a1f;
  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #17161f 0%, var(--ink) 60%) fixed;
  color: var(--phos);
  font-family: "VT323", ui-monospace, "Courier New", monospace;
  font-size: 22px;
  line-height: 1.3;
  text-shadow: 0 0 6px rgba(124, 255, 107, 0.35);
  overflow-x: hidden;
}

/* Scanlines + vignette over everything (never catches clicks). */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
body::before {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.28) 3px, rgba(0, 0, 0, 0) 4px);
  animation: roll 9s linear infinite;
}
body::after {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
}
@keyframes roll { from { background-position: 0 0; } to { background-position: 0 64px; } }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .blink, .cursor { animation: none !important; }
}

a { color: var(--teal); }
a:hover { color: var(--phos); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- phone note ---------- */
.phone-note {
  display: none;
  background: var(--amber);
  color: var(--ink);
  text-shadow: none;
  padding: 10px var(--gutter);
  text-align: center;
  font-size: 22px;
}
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  .phone-note { display: block; }
}

/* ---------- hero ---------- */
.hero {
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero .logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 62, 165, 0.45));
}
.pitch {
  font-size: 30px;
  color: #e9ffe5;
  margin: 18px 0 10px;
}
.sub { color: var(--phos-dim); margin: 0 0 24px; }

.play {
  display: inline-block;
  font: inherit;
  font-size: 56px;
  letter-spacing: 4px;
  line-height: 1;
  padding: 16px 44px 14px;
  color: var(--ink);
  background: var(--phos);
  text-decoration: none;
  text-shadow: none;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--phos), 0 0 32px rgba(124, 255, 107, 0.55);
  transition: transform 0.08s, box-shadow 0.08s;
}
.play:hover, .play:focus-visible {
  color: var(--ink);
  background: var(--pink);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--pink), 0 0 32px rgba(255, 62, 165, 0.6);
  outline: none;
  transform: translateY(-1px);
}
.play .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1.4s steps(1) infinite; }

.hero-meta { margin-top: 14px; color: var(--phos-dim); font-size: 20px; }

.crt {
  position: relative;
  background: #2e2c2a;
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), inset 0 0 0 2px #45423e;
}
.crt img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  filter: saturate(1.1) contrast(1.05);
}
.crt::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
}

/* ---------- sections ---------- */
section { padding: 28px 0; }
h2 {
  font-size: 44px;
  font-weight: normal;
  letter-spacing: 2px;
  margin: 0 0 16px;
  color: var(--phos);
}
h2::before { content: "> "; color: var(--pink); }
h3 { font-weight: normal; font-size: 30px; margin: 0 0 6px; }

.card {
  background: var(--panel);
  border: 2px solid var(--phos-faint);
  border-radius: 10px;
  padding: 20px;
}

.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.steps li { counter-increment: s; }
.steps li .card { height: 100%; }
.steps li h3::before {
  content: counter(s) " ";
  color: var(--ink);
  background: var(--phos);
  text-shadow: none;
  padding: 0 8px;
  margin-right: 6px;
  border-radius: 3px;
}
.code-demo {
  display: inline-block;
  font-size: 34px;
  letter-spacing: 6px;
  color: var(--pink);
  border: 2px dashed var(--pink);
  padding: 0 10px;
  margin-top: 6px;
  text-shadow: 0 0 8px rgba(255, 62, 165, 0.5);
}

.callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.callout { border-color: rgba(255, 194, 59, 0.45); }
.callout h3 { color: var(--amber); text-shadow: 0 0 6px rgba(255, 194, 59, 0.35); }
.callout p { margin: 0 0 8px; color: #e9ffe5; }
.callout p:last-child { margin-bottom: 0; }

/* Landlord receipt (paper) */
.receipt {
  background: var(--paper);
  color: var(--paper-ink);
  text-shadow: none;
  max-width: 360px;
  padding: 18px 22px 22px;
  margin: 20px auto 0;
  transform: rotate(-1.5deg);
  filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.5));
  font-size: 24px;
  line-height: 1.2;
  position: relative;
}
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 16px 10px repeat-x,
              linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 16px 10px repeat-x;
}
.receipt .stamp { color: var(--pink); font-size: 30px; }

/* Controls */
.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 28px;
  margin: 0;
}
.controls div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--phos-faint);
  padding: 4px 0;
}
.controls dt { color: #e9ffe5; }
.controls dd { margin: 0; text-align: right; color: var(--phos-dim); }
kbd {
  font: inherit;
  color: var(--ink);
  background: var(--phos);
  text-shadow: none;
  padding: 0 7px;
  border-radius: 3px;
  box-shadow: 0 2px 0 #3c8a33;
}
.note { color: var(--phos-dim); font-size: 20px; margin: 14px 0 0; }

/* Requirements */
.req { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.req ul { margin: 0; padding-left: 20px; }
.req li { margin-bottom: 4px; }
.check { list-style: none; padding: 0 !important; }
.check li::before { content: "[ .. ] "; color: var(--phos-dim); }
.check li.ok::before { content: "[ OK ] "; color: var(--phos); }
.check li.bad::before { content: "[FAIL] "; color: var(--red); }
.check li.warn::before { content: "[ ?? ] "; color: var(--amber); }

/* Monster gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.monster {
  margin: 0;
  background: var(--panel);
  border: 2px solid var(--phos-faint);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.monster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: #111;
  filter: grayscale(0.25) brightness(0.9);
  transition: filter 0.2s;
}
.monster:hover img { filter: none; }
.monster figcaption { padding: 12px 14px 14px; }
.monster h3 { color: var(--pink); text-shadow: 0 0 6px rgba(255, 62, 165, 0.4); }
.monster .line { color: #e9ffe5; margin: 0 0 8px; }
.monster .sound { margin: 0; color: var(--teal); text-shadow: 0 0 6px rgba(46, 211, 198, 0.35); }
.monster .sound b { font-weight: normal; color: var(--ink); background: var(--teal); text-shadow: none; padding: 0 5px; margin-right: 4px; }

/* Downloads */
.downloads { display: flex; flex-wrap: wrap; gap: 16px; }
.dl {
  font: inherit;
  font-size: 28px;
  padding: 10px 22px;
  color: var(--phos-dim);
  background: transparent;
  border: 2px dashed var(--phos-dim);
  border-radius: 6px;
  text-decoration: none;
  cursor: not-allowed;
}

/* Credits + footer */
.credits { color: var(--phos-dim); }
.credits p { margin: 0 0 6px; }
footer {
  padding: 28px 0 48px;
  color: var(--phos-dim);
  font-size: 20px;
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .steps, .callouts, .req { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .play { font-size: 44px; padding: 14px 32px 12px; }
  h2 { font-size: 36px; }
  .pitch { font-size: 26px; }
}
