:root {
  --sky-top: #cfeeff;
  --sky-bottom: #fff7e8;
  --navy: #123256;
  --ink: #1e2f43;
  --soft-ink: #62748a;
  --blue: #3d8dff;
  --card: #ffffff;
  --border: rgba(18, 50, 86, 0.08);
  --shadow: 0 10px 30px rgba(18, 50, 86, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  background-attachment: scroll;
  min-height: 100vh;
}

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

.site-body { overflow-x: hidden; }

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* --- Top nav --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--soft-ink);
  font-weight: 700;
}

/* --- Headings --- */
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
h3 { font-size: 1.1rem; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

p { line-height: 1.6; }

.lede,
.section-heading p,
.feature-card p,
.detail-copy p,
.crew-copy p,
.detail-list li,
.footer p,
.legal-card p,
.legal-card li {
  color: var(--soft-ink);
  font-size: 1rem;
}

/* --- Hero --- */
.hero { padding-bottom: 36px; }

.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 16px 0 24px;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-mascot {
  width: min(360px, 90%);
  height: auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  color: #fff;
  background: var(--blue);
}

.button-secondary {
  background: var(--card);
  color: var(--navy);
  border: 1px solid var(--border);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li {
  padding: 14px 14px 12px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.hero-stats span {
  color: var(--soft-ink);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* --- Sections --- */
main > section { padding: 24px 0 56px; }

.section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

/* --- Feature band --- */
.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-card h2 { font-size: 1.25rem; margin-bottom: 8px; }

/* --- Screenshots (aligned 4-up) --- */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.screen-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-card picture,
.screen-card picture img {
  display: block;
  width: 100%;
}

.screen-card img {
  aspect-ratio: 368 / 800;
  object-fit: cover;
  background: #dcecf6;
}

.screen-card figcaption {
  flex: 1;
  padding: 14px 16px 18px;
  color: var(--soft-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Crew strip --- */
.crew-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  align-items: center;
}

.crew-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.crew-figure {
  margin: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #e6f3fb 0%, #ffffff 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px 0;
  min-height: 220px;
}

.crew-figure img {
  width: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

/* --- Detail --- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-list > div {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-list ul {
  padding-left: 18px;
  margin: 10px 0 0;
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 40px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a { text-decoration: none; font-weight: 700; }

/* --- Legal pages (privacy / terms) --- */
.legal-body { min-height: 100vh; }
.legal { padding-bottom: 48px; }
.legal-topbar { padding-bottom: 16px; }

.legal-card {
  padding: 30px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.legal-card h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--navy);
}

.legal-card h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--navy);
}

.legal-card p,
.legal-card li { margin-top: 0; }

.legal-card p + p,
.legal-card p + ul {
  margin-top: 10px;
}

.legal-card ul {
  padding-left: 22px;
  margin: 8px 0 4px;
}

.legal-card ul li { margin-bottom: 6px; }

.legal-card a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta { margin-top: 8px; font-weight: 700; }

/* Legacy classes used elsewhere — keep harmless */
.sky-grid { display: none; }

code {
  font-family: "SFMono-Regular", "Menlo", monospace;
  color: var(--navy);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-panel,
  .crew-card,
  .detail {
    grid-template-columns: 1fr;
  }

  .hero-art { order: -1; }
  .hero-mascot { width: min(260px, 70%); }

  .feature-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .topbar { padding: 16px 0 12px; }

  .feature-band,
  .screen-grid,
  .detail-list,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .crew-gallery { grid-template-columns: 1fr 1fr; }
  .crew-figure { min-height: 180px; }
  .crew-figure img { max-height: 180px; }

  .footer { flex-direction: column; align-items: flex-start; }

  .legal-card { padding: 22px 18px; }
}
