/* The Finder landing page. The game's own palette: cool and luminous for the alien, gold only for the human
   artifact. */
:root {
  color-scheme: dark;
  --bg: #0b0a1f;
  --bg-raised: #14122e;
  --bg-sunk: #08071a;
  --line: #2a2750;
  --text: #dcdcf2;
  --text-dim: #9391b8;
  --cyan: #4ff0c4;
  --violet: #9b7bff;
  --gold: #e8b64a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(155, 123, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(79, 240, 196, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--gutter);
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.bar.solid { background: rgba(11, 10, 31, 0.92); border-color: var(--line); backdrop-filter: blur(8px); }
.brand { font-family: var(--serif); font-size: 1.15rem; color: var(--text); text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.92rem; }
.bar nav a { color: var(--text-dim); text-decoration: none; }
.bar nav a:hover { color: var(--text); }
.bar nav a.cta { color: var(--bg); background: var(--cyan); padding: 0.35rem 0.95rem; border-radius: 6px; font-weight: 600; }
.bar nav a.cta:hover { background: #7cf6d5; color: var(--bg); }
@media (max-width: 720px) { .bar nav a:not(.cta) { display: none; } }

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0.8rem; }
.button {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 7px;
  border: 1px solid var(--cyan); color: var(--cyan); text-decoration: none; font-weight: 500;
}
.button:hover { background: rgba(79, 240, 196, 0.1); color: var(--cyan); }
.button.primary { background: var(--cyan); color: var(--bg); font-weight: 600; }
.button.primary:hover { background: #7cf6d5; color: var(--bg); }
.button.quiet { border-color: var(--line); color: var(--text-dim); }
.button.quiet:hover { color: var(--text); border-color: var(--text-dim); background: none; }

/* hero */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: 6rem var(--gutter) 4rem; max-width: 1500px; margin: 0 auto;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem;
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(232, 182, 74, 0.45); border-radius: 99px; padding: 0.45rem 0.8rem;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.pitch { font-size: 1.2rem; color: var(--text); }
.sub { color: var(--text-dim); }
.fine { color: var(--text-dim); font-size: 0.85rem; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 5.5rem; }
}

/* a framed screen for every clip */
.screen { margin: 0; }
.screen video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--bg-sunk);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(155, 123, 255, 0.06);
}
.screen figcaption { margin-top: 0.7rem; color: var(--text-dim); font-size: 0.85rem; font-family: var(--mono); }
.hero-screen video { box-shadow: 0 40px 120px -30px rgba(79, 240, 196, 0.18), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }

/* premise */
.premise { max-width: 46rem; margin: 2rem auto 5rem; padding: 0 var(--gutter); }
.premise p { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.5; }

/* chapters */
.chapter {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  max-width: 1400px; margin: 0 auto 7rem; padding: 0 var(--gutter);
}
.chapter.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.chapter.flip .screen { order: 2; }
.kicker { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9rem; }
.copy p { color: var(--text); }
.copy .data { color: var(--text-dim); font-size: 0.86rem; border-left: 2px solid var(--gold); padding-left: 0.8rem; }
@media (max-width: 900px) {
  .chapter, .chapter.flip { grid-template-columns: 1fr; margin-bottom: 4.5rem; }
  .chapter.flip .screen { order: 0; }
}

/* checked */
.checked, .made, .final { max-width: 1100px; margin: 0 auto 6rem; padding: 0 var(--gutter); }
.checked { border-top: 1px solid var(--line); padding-top: 5rem; }
.lead { font-size: 1.15rem; max-width: 48rem; }
.facts { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.facts li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem 1.4rem; }
.facts b { display: block; font: 400 2.3rem/1.1 var(--serif); color: var(--gold); margin-bottom: 0.5rem; }
.facts span { color: var(--text-dim); font-size: 0.93rem; }

/* how it was made */
.made { border-top: 1px solid var(--line); padding-top: 5rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.cols p { color: var(--text-dim); }
.who { margin-top: 2rem; color: var(--text-dim); font-size: 0.92rem; }

.final { text-align: center; padding-top: 2rem; }
.final .buttons { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 2rem var(--gutter) 3rem; color: var(--text-dim); font-size: 0.82rem; }
footer p { max-width: 1100px; margin: 0 auto; }
