:root {
  color-scheme: dark;
  --bg: #060a12;
  --panel: #0a111c;
  --panel-edge: #16202f;
  --fg: #f4f7fa;
  --muted: #9aabb9;
  --accent-1: #35e6cf;
  --accent-2: #1c8fa8;
  --focus: #6ff2e0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;

  /* Dark fallback (also set above for html,body) shows before the image
     loads or if it fails. No scrim: .card below is opaque, so the image
     never sits behind readable text and doesn't need to be dimmed for
     legibility - shown plainly per instruction to keep any overlay
     "substantially lighter than necessary rather than hiding the image",
     which here means no overlay at all. */
  background-color: var(--bg);
  background-image: url('/_wrong-turn-assets/assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.card {
  width: 100%;
  max-width: 520px;

  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;

  padding: clamp(2rem, 6vw, 3.5rem);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 1rem;
}

.brand-logo {
  display: block;
  /* Same 380px cap used on the 404 page for the same reasoning: this is a
     wide (~3:1) horizontal lockup, not the old compact icon+wordmark, and
     380px keeps it narrower than this card's own 520px max-width. */
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  margin: 0 0 0.5rem;
}

h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  font-weight: 750;
}

.lead-sub {
  margin: 0;
  color: var(--fg);
  font-size: 1.1rem;
}

.description {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 1rem;
}

.actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.6rem;
}

.btn {
  display: inline-block;
  text-decoration: none;

  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;

  padding: 0.9em 1.5em;

  border-radius: 10px;
  border: 1px solid transparent;

  cursor: pointer;

  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}

.btn.primary {
  background: linear-gradient(
    135deg,
    var(--accent-1),
    var(--accent-2)
  );

  color: #06201d;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.features {
  width: 100%;

  margin-top: 1.3rem;
  padding-top: 1.5rem;

  border-top: 1px solid var(--panel-edge);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feature-title {
  color: var(--accent-1);
  font-weight: 700;
  font-size: 0.95rem;
}

.feature-text {
  color: var(--muted);
  font-size: 0.82rem;
}

footer {
  width: 100%;

  margin-top: 1.2rem;
  padding-top: 1.2rem;

  border-top: 1px solid var(--panel-edge);

  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 0.3rem 0;
  }
}
