/*
  Neon Void — shared styles.

  Palette is lifted directly from the game (Sources/Data/Palette.swift) so the
  site and the app read as one thing. Type is a monospace stack, matching the
  Menlo the game's HUD uses.

  No external requests: no web fonts, no CDN, no analytics. That is a deliberate
  match for the app's "collects nothing" promise — a privacy page that loads a
  tracker would be self-refuting.
*/

:root {
  --void: #0b0b2a;
  --void-deep: #07071c;
  --shadow: #2a2a5e;
  --cyan: #22e6ff;
  --magenta: #ff3ea5;
  --lime: #b6ff3e;
  --amber: #ffd23e;
  --white: #f2f7ff;
  --muted: #9aa3c7;

  --measure: 68ch;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  /* Faint nebula wash, drawn in CSS so there is nothing extra to load. */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 62, 165, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 45% at 85% 15%, rgba(34, 230, 255, 0.09), transparent 60%);
  background-attachment: fixed;
}

/* Skip link: keyboard users shouldn't have to tab the whole nav. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--void);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------------------------------------------------------------- header */

.site-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(42, 42, 94, 0.7);
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-decoration: none;
  font-size: 1.05rem;
}
.wordmark span { color: var(--magenta); }

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--cyan); border-bottom-color: var(--cyan); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--magenta); }

/* ---------------------------------------------------------------- hero */

.hero { padding: 4.5rem 0 3rem; text-align: center; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
  line-height: 1.05;
  text-shadow: 0 0 28px rgba(34, 230, 255, 0.28);
}

.hero .tagline {
  margin: 1rem 0 0;
  color: var(--magenta);
  letter-spacing: 0.22em;
  font-size: clamp(0.72rem, 2.6vw, 0.95rem);
}

.hero .pitch {
  margin: 2rem auto 0;
  max-width: 52ch;
  color: var(--white);
  opacity: 0.86;
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--cyan); color: var(--void); }

.btn.primary { border-color: var(--lime); color: var(--lime); }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--lime); color: var(--void); }

/* Disabled until the App Store listing exists. Rendered as a non-link so it
   cannot be clicked through to a dead page. */
.btn.pending {
  border-color: var(--shadow);
  color: var(--muted);
  cursor: default;
}

/* ---------------------------------------------------------------- shots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  padding: 1rem 0 3.5rem;
}

.shots figure { margin: 0; }

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(42, 42, 94, 0.9);
  border-radius: 10px;
  background: var(--void-deep);
}

.shots figcaption {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------- sections */

section { padding: 3rem 0; border-top: 1px solid rgba(42, 42, 94, 0.55); }

h2 {
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 1.6rem;
}

h3 {
  font-size: 1rem;
  color: var(--cyan);
  margin: 2rem 0 0.6rem;
  letter-spacing: 0.04em;
}

p { max-width: var(--measure); }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.features li { border-left: 2px solid var(--magenta); padding-left: 1rem; }
.features strong { display: block; color: var(--white); letter-spacing: 0.04em; }
.features span { color: var(--muted); font-size: 0.9rem; }

.story p { color: var(--muted); }
.story p:first-of-type { color: var(--white); }

/* A short, loud statement of the privacy position. */
.promise {
  border: 1px solid var(--lime);
  padding: 1.6rem;
  border-radius: 10px;
  background: rgba(182, 255, 62, 0.04);
}
.promise p { margin: 0; max-width: none; }
.promise strong { color: var(--lime); }

/* ---------------------------------------------------------------- prose */

.prose { padding: 3rem 0 1rem; }
.prose h1 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
}
.prose .updated {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
}
.prose h2 {
  color: var(--magenta);
  font-size: 0.85rem;
  margin-top: 2.6rem;
}
.prose ul { max-width: var(--measure); color: var(--muted); padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }
.prose a { color: var(--cyan); }

dl.faq { max-width: var(--measure); }
dl.faq dt {
  color: var(--white);
  margin-top: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
dl.faq dd { margin: 0.5rem 0 0; color: var(--muted); }

code {
  background: rgba(42, 42, 94, 0.55);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--amber);
  font-size: 0.9em;
}

a.mail { color: var(--amber); }

/* ---------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid rgba(42, 42, 94, 0.7);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--cyan); }
.site-foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- a11y */

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
