/* One shared stylesheet: the browser caches it once for all pages. No web fonts (owner decision). */
:root {
  --night: #140f35;
  --purple: #3a1a5e;
  --pink: #b8306f;
  --sunset: #ff6a6a;
  --sun: #ff9a3d;
  --cyan: #3df2ff;
  --magenta: #ff3df2;
  --gold: #f5c542;
  --text: #efeaff;
  --muted: #c9c0ea;
  --card: rgba(20, 15, 53, 0.82);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--night);
  background-image: linear-gradient(180deg, var(--night) 0, var(--night) 55%, var(--purple) 100%);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}

a { color: var(--cyan); text-underline-offset: 0.18em; }
a:hover { color: #9ff8ff; }

/* A thick, high-contrast ring: the neon glow alone is not a sufficient focus cue. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header ---------------------------------------------------------------- */
.site-head { padding: 1rem 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font: 700 1rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand img { border-radius: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-family: var(--mono); font-size: 0.95rem; }

main { flex: 1; }

/* Splash ---------------------------------------------------------------- */
/* The splash is exactly as tall as the logo, and its background repeats the logo's
   own sky gradient and scanlines, so on wide screens the art continues to the edges. */
.splash {
  position: relative;
  display: flex;
  justify-content: center;
  height: min(100vw, 100svh);
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, var(--night) 0, var(--purple) 45%, var(--pink) 75%, var(--sunset) 100%);
}
.splash picture { display: block; }
.splash img {
  display: block;
  width: min(100vw, 100svh);
  height: min(100vw, 100svh);
}
/* On a landscape screen the logo sits between two CSS-drawn side areas. The
   scanline phase and the PNG colours differ a little, so fade the edges. */
@media (min-aspect-ratio: 1/1) {
  .splash img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
}
.splash-next {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--text);
  font: 700 0.85rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--cyan), 0 0 14px rgba(61, 242, 255, 0.5);
}
.splash-next:hover { color: var(--cyan); }

/* The grid floor under the sunset: decorative, pure CSS, no image request. */
.floor {
  height: 3.5rem;
  overflow: hidden;
  background: var(--night);
  perspective: 10rem;
}
.floor::before {
  content: "";
  display: block;
  height: 100%;
  margin: 0 -50%;
  background-image:
    linear-gradient(90deg, rgba(255, 61, 242, 0.7) 2px, transparent 2px),
    linear-gradient(0deg, rgba(255, 61, 242, 0.7) 2px, transparent 2px);
  background-size: 3rem 0.9rem;
  background-position: center top;
  transform: rotateX(40deg);
  transform-origin: top;
}

.intro-block { text-align: center; padding: 1.5rem 0 0.5rem; }
.pitch {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.3rem;
  line-height: 1.45;
  font-weight: 600;
}
.badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--magenta);
  border-radius: 999px;
  color: var(--text);
  font: 700 0.85rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255, 61, 242, 0.45);
}

/* Headings get a soft glow; body text never does, so it stays crisp. */
h1, h2, h3 { line-height: 1.25; }
h1, h2 { color: var(--cyan); text-shadow: 0 0 10px rgba(61, 242, 255, 0.45); }
h1 { font-size: 2rem; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
h3 { color: var(--magenta); font-size: 1.15rem; margin: 0 0 0.4rem; font-family: var(--mono); letter-spacing: 0.04em; }

/* Features -------------------------------------------------------------- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.features li {
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid rgba(61, 242, 255, 0.4);
  border-radius: 10px;
}
.features p { margin: 0; color: var(--muted); }
.promise {
  margin: 2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  background: var(--card);
  border-radius: 0 10px 10px 0;
}

/* Legal pages (privacy, credits) ------------------------------------------ */
/* Same shape as the PolyTiks legal pages: plain semantic text, made to be read. */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0; text-wrap: balance; }
.legal .updated { margin: 0.5rem 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.legal .intro { margin: 1.5rem 0 0; font-size: 1.05rem; color: var(--muted); }
.legal section { margin-top: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 0; }
.legal section p { margin: 0.6rem 0 0; font-size: 1rem; color: var(--muted); }
.legal code { font-family: var(--mono); color: var(--text); }

/* Retrowave horizon: decorative only (aria-hidden), pure CSS, no image request. */
.horizon {
  position: relative;
  height: 11.5rem;
  overflow: hidden;
  margin-top: 1rem;
  background: linear-gradient(180deg, transparent 0, var(--pink) 70%, var(--sunset) 100%);
}
.horizon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  width: 8rem;
  height: 8rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    repeating-linear-gradient(180deg, transparent 0 0.9rem, var(--pink) 0.9rem 1.15rem),
    linear-gradient(180deg, var(--sun), var(--sunset));
  opacity: 0.95;
}
.horizon::after {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 2.8rem;
  background-color: var(--night);
  background-image:
    linear-gradient(90deg, rgba(255, 61, 242, 0.75) 2px, transparent 2px),
    linear-gradient(0deg, rgba(255, 61, 242, 0.75) 2px, transparent 2px);
  background-size: 3rem 0.9rem;
  background-position: center bottom;
  transform: perspective(8rem) rotateX(35deg);
  transform-origin: bottom;
}

/* Footer ---------------------------------------------------------------- */
.site-foot {
  background: var(--night);
  padding: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-family: var(--mono); }
.site-foot p { margin: 0; }

/* 404 ------------------------------------------------------------------- */
.lost { text-align: center; padding: 3rem 0; }
.lost .code { font: 700 4rem/1 var(--mono); color: var(--magenta); text-shadow: 0 0 14px rgba(255, 61, 242, 0.6); margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
