/* Space Dodge 3D: marketing site styles
 *
 * Hand-written CSS, no build step, same structure as /timemark/styles.css.
 * Colours follow the game: deep space background (#0A0A1A) and the royal
 * blue used across its menus. Dark is the default, as in the game.
 */

:root {
  --brand: #4169e1;          /* royal blue fill */
  --brand-hi: #6f8ff0;
  --brand-ink: #ffffff;      /* text on blue */
  --brand-text: #7c9bff;     /* blue used as text */
  --accent: #ff8a3d;         /* engine glow */

  --bg: #0a0a1a;
  --bg-2: #12122a;
  --bg-3: #1b1b3a;
  --text: #f4f5fb;
  --text-2: #b8bcd4;
  --text-3: #7d82a0;
  --border: rgba(244, 245, 251, 0.09);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 40px rgba(65, 105, 225, 0.35);

  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: light) {
  :root {
    --brand-text: #2c4fc4;
    --bg: #ffffff;
    --bg-2: #f4f5fa;
    --bg-3: #eaecf4;
    --text: #0a0a1a;
    --text-2: #444a63;
    --text-3: #767c96;
    --border: rgba(10, 10, 26, 0.09);
    --shadow-card: 0 4px 24px rgba(10, 10, 26, 0.08);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ----------------- Header ----------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

nav.primary {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-2);
}

@media (max-width: 720px) { nav.primary { display: none; } }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}

.cta-ghost { color: var(--text-2); font-weight: 600; }

/* ----------------- Hero ----------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 120px) clamp(40px, 8vw, 80px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%,
      color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(1px 1px at 12% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 82% 22%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 68% 64%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 26% 78%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 92% 70%, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.hero > .container { position: relative; }

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  margin: 0 auto 28px;
  box-shadow:
    0 24px 60px -16px color-mix(in srgb, var(--brand) 60%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

h1.headline {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 .accent { color: var(--brand-text); }

.lede {
  margin: 0 auto 28px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
  flex-wrap: wrap;
}

.hero-meta strong { color: var(--text); font-weight: 700; }

/* ----------------- Sections ----------------- */

section.block { padding-block: clamp(40px, 7vw, 80px); }
section.block + section.block { border-top: 1px solid var(--border); }

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-lede {
  color: var(--text-2);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 0 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p, .card li { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin-bottom: 4px; }

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}

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

.facts li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

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

.inline-link { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------- Footer ----------------- */

footer.site {
  border-top: 1px solid var(--border);
  padding-block: 32px 24px;
  color: var(--text-3);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

/* ----------------- Reduced motion ----------------- */

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