:root {
  --bg: #0b0d14;
  --bg-rgb: 11, 13, 20;
  --bg-elevated: #12151f;
  --bg-card: #171b28;
  --border: #262b3a;
  --text: #eef0f6;
  --text-dim: #9aa2b8;
  --accent: #ffd400;
  --accent-2: #ff9f1c;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

/* Header artwork banner: sits at the very top of the page, behind the nav,
   and dissolves into --bg so there is no seam. */

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      rgba(var(--bg-rgb), 0.55) 0%,
      rgba(var(--bg-rgb), 0.45) 30%,
      rgba(var(--bg-rgb), 0.88) 75%,
      rgb(var(--bg-rgb)) 100%
    ),
    url("../assets/header.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body.page-home::before {
  height: clamp(560px, 62vw, 860px);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav.scrolled {
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #08090d;
  box-shadow: 0 8px 24px -8px rgba(255, 212, 0, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(255, 212, 0, 0.12), transparent 60%),
    radial-gradient(600px 380px at 90% 10%, rgba(255, 159, 28, 0.09), transparent 60%);
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Reveal-on-scroll */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */

section {
  padding: 90px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

/* Feature grid */

/* 320px tracks give exactly 3 columns at the 1072px content width, so the nine
   cards form a full 3x3 rather than stranding one on a fourth row. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #08090d;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Screenshot gallery */

.gallery {
  background: var(--bg-elevated);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}

/* No fixed aspect-ratio: these are real screenshots, so the tile takes the
   image's own shape rather than cropping the side panels away. */

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
  font-size: 0.85rem;
  color: var(--text);
}

/* CTA band */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 14px;
}

.cta-band p {
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

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

footer a {
  text-decoration: none;
  color: var(--text-dim);
}

footer a:hover {
  color: var(--text);
}

/* Legal notices. flex-basis: 100% forces a line of its own below the copyright
   row, which is a space-between flex line the block would otherwise join. */
.footer-legal {
  flex-basis: 100%;
  max-width: 78ch;
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.55;
  opacity: 0.75;
}

.footer-legal p {
  margin: 0 0 8px;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-legal a {
  text-decoration: underline;
}

/* Download page */

.download-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}

.download-hero p {
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 auto;
}

.platform-primary {
  max-width: 420px;
  margin: 40px auto 0;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 16px 40px -20px rgba(255, 212, 0, 0.6);
  transition: transform 0.2s ease;
}

.platform-primary:hover {
  transform: translateY(-4px);
}

.platform-primary .platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
}

.platform-primary .platform-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-2);
}

.platform-primary h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.platform-primary .meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 6px;
}

.platform-grid {
  max-width: 760px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}

.platform-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
}

.platform-tile.disabled {
  opacity: 0.45;
  pointer-events: none;
  position: relative;
}

.platform-tile .platform-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
}

.platform-tile .platform-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--text-dim);
}

.platform-tile h3 {
  margin: 0;
  font-size: 0.95rem;
}

.badge-soon {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 56px auto 0;
  text-align: center;
  width: 100%;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--text);
}

/* Legal page */

.legal-doc {
  padding: 72px 0 40px;
}

/* Narrower than --max-width: long-form prose is unreadable at 1120px. */
.legal-doc .wrap {
  max-width: 760px;
}

.legal-doc h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}

.legal-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.legal-doc h2 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-doc h3 {
  font-size: 1rem;
  margin: 26px 0 8px;
  color: var(--accent-2);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-dim);
  margin: 0 0 14px;
}

.legal-doc strong {
  color: var(--text);
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
}

/* The shared .back-link already centres itself; only the rule above would
   otherwise tint it accent-yellow, so it opts back out. */
.legal-doc a.back-link {
  color: var(--text-dim);
  text-decoration: none;
}

.legal-doc a.back-link:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 700px) {
  /* Four links plus the wordmark need ~445px on one row, so below that the
     links drop to their own row rather than pushing the page sideways. */
  .nav .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    row-gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  /* .nav-links a sets its own size, so shrinking the parent would do nothing. */
  .nav-links a {
    font-size: 0.85rem;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 96px 0 64px;
  }
}
