/* ============================================================
   PromptWorks AI — landing page
   Retro 8/16-bit game-interface styling. No JS, no frameworks.
   Palette and type pulled from the PromptWorks brand.
   ============================================================ */

@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/PressStart2P.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #10171a;   /* screen-off near-black, teal cast */
  --bg2:       #0b1113;   /* deeper base behind panels        */
  --panel:     #17241f;   /* lifted teal-charcoal panel       */
  --edge:      #2d433c;   /* panel border                     */
  --teal:      #5fb0a6;   /* brand teal (primary action)      */
  --teal-dim:  #3f7d76;
  --gold:      #e0ac2b;   /* brand gold (highlight / price)   */
  --cream:     #efe7d6;   /* brand cream (text)               */
  --dim:       #93a7a1;   /* muted secondary text             */
  --ink:       #0b1113;   /* dark text on light buttons       */

  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --maxw: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle static CRT scanlines across the whole screen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.16) 3px
  );
  opacity: 0.35;
}

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

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

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

/* crisp pixel edges on brand marks */
.pixelate { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- shared pixel UI pieces ---------- */

.panel {
  background: var(--panel);
  border: 3px solid var(--edge);
  box-shadow: 7px 7px 0 #000;            /* hard offset shadow, not soft */
}

.pixel-label {
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.6;
}

.sel { color: var(--gold); margin-right: 0.1em; }

.blink { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.btn {
  font-family: var(--pixel);
  font-size: 0.72rem;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--teal);
  border: 3px solid var(--cream);
  box-shadow: 4px 4px 0 #000;
  padding: 0.95em 1.25em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  transition: transform 0.05s steps(2), box-shadow 0.05s steps(2),
              background-color 0.1s;
}
.btn .sel { color: var(--ink); }
.btn:hover, .btn:focus-visible {
  background: var(--gold);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
  outline: none;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--teal); }
.btn--ghost .sel { color: var(--gold); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--teal); color: var(--ink); }
.btn--ghost:hover .sel { color: var(--ink); }

/* visible keyboard focus everywhere */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- top menu bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg2);
  border-bottom: 3px solid var(--edge);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand span {
  font-family: var(--pixel); font-size: 0.62rem; color: var(--cream);
  letter-spacing: 0.02em;
}
.brand span b { color: var(--gold); font-weight: 400; }
.menu { display: flex; gap: 18px; }
.menu a {
  font-family: var(--pixel); font-size: 0.56rem; text-transform: uppercase;
  color: var(--dim); text-decoration: none; padding: 6px 2px;
}
.menu a:hover, .menu a:focus-visible { color: var(--gold); outline: none; }

/* ---------- hero / title screen ---------- */

.hero { text-align: center; padding: 56px 0 40px; }

.comms {
  width: min(360px, 82vw);
  margin: 0 auto 26px;
}
.comms__bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--teal-dim); color: var(--ink);
  font-family: var(--pixel); font-size: 0.5rem; text-transform: uppercase;
  padding: 7px 10px; border-bottom: 3px solid var(--edge);
}
.comms__bar .dot { width: 8px; height: 8px; background: var(--gold); display: inline-block; }
.comms__screen {
  background: #0d1816; padding: 14px;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.comms__screen img { width: 100%; height: 100%; object-fit: contain; }

.hero__h1 { margin: 0 0 18px; }
.hero__wordmark { width: min(380px, 78vw); margin: 0 auto; }
.hero__tag {
  font-family: var(--pixel); font-size: clamp(0.72rem, 3.2vw, 1.05rem);
  color: var(--cream); line-height: 1.7; margin: 0 auto 14px; max-width: 18ch;
}
.hero__sub { color: var(--dim); max-width: 48ch; margin: 0 auto 10px; }
.hero__start { font-family: var(--pixel); font-size: 0.58rem; color: var(--gold); margin: 18px 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }

/* ---------- status strip ---------- */

.strip {
  border-top: 3px solid var(--edge); border-bottom: 3px solid var(--edge);
  background: var(--bg2); text-align: center;
}
.strip p { margin: 0; padding: 16px 20px; color: var(--dim); }
.strip b { color: var(--cream); font-weight: 600; }

/* ---------- generic section ---------- */

section { padding: 48px 0; }
.sec-head { font-family: var(--pixel); font-size: clamp(0.8rem, 3.4vw, 1.15rem);
  color: var(--cream); line-height: 1.6; margin: 0 0 6px; }
.sec-sub { color: var(--dim); margin: 0 0 26px; }

/* free guide */
.guide__panel { padding: 26px; }
.guide__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pill {
  font-family: var(--pixel); font-size: 0.55rem; text-transform: uppercase;
  background: var(--gold); color: var(--ink); padding: 5px 9px; border: 2px solid var(--cream);
}
.guide__title { font-family: var(--pixel); font-size: clamp(0.78rem, 3.4vw, 1.05rem); color: var(--cream); line-height: 1.5; }
.diag-list { list-style: none; padding: 0; margin: 20px 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.diag-list li { border-left: 3px solid var(--teal); padding: 6px 0 6px 12px; }
.diag-list .n { font-family: var(--pixel); font-size: 0.6rem; color: var(--gold); display: block; margin-bottom: 4px; }
.diag-list .t { color: var(--cream); font-size: 0.95rem; }
.guide__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.note { color: var(--dim); font-size: 0.9rem; }

/* products */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { padding: 24px; display: flex; flex-direction: column; position: relative; }
.card--best { border-color: var(--gold); }
.card__ribbon {
  position: absolute; top: -3px; right: -3px;
  font-family: var(--pixel); font-size: 0.5rem; text-transform: uppercase;
  background: var(--gold); color: var(--ink); padding: 6px 9px; border: 3px solid var(--edge);
}
.card__name { font-family: var(--pixel); font-size: 0.82rem; color: var(--cream); line-height: 1.6; margin: 4px 0 2px; }
.card__ver { color: var(--teal); font-family: var(--pixel); font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 14px; }
.card__price { font-family: var(--pixel); font-size: 1.5rem; color: var(--gold); margin: 6px 0 16px; }
.card__desc { color: var(--dim); font-size: 0.97rem; margin: 0 0 20px; flex: 1; }
.card__desc strong { color: var(--cream); font-weight: 600; }
.card .btn { align-self: flex-start; }

/* about */
.about p { max-width: 60ch; color: var(--cream); }
.about .contact { color: var(--dim); margin-top: 14px; }
.about a { color: var(--gold); }

/* footer */
footer { border-top: 3px solid var(--edge); background: var(--bg2); padding: 26px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 22px; height: 22px; }
.foot-brand span { font-family: var(--pixel); font-size: 0.55rem; color: var(--dim); }
footer a { color: var(--gold); font-size: 0.9rem; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .menu { gap: 12px; }
  .brand span { font-size: 0.54rem; }
  .hero { padding: 36px 0 28px; }
}

@media (max-width: 380px) {
  .menu a { font-size: 0.5rem; }
}

/* ---------- motion / contrast preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blink { animation: none; }
  .btn { transition: none; }
  body::after { opacity: 0.18; }   /* keep faint, no reliance on motion */
}
