/* ── Fonts (bundled from the app, see frontend/src/style.css) ───────────── */
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('./assets/fonts/Satoshi-Black.woff2') format('woff2');
}

@font-face {
  font-family: 'Excon';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/Excon-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Ranade';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/Ranade-Regular.woff2') format('woff2');
}

/* ── Design tokens — mirrors frontend/src/style.css's dark theme + motion
   vocabulary exactly, so the site reads as the same product. ──────────── */
:root {
  --bg-base: #05060a;
  --bg-elevated: rgba(18, 20, 30, 0.82);
  --bg-surface: rgba(255, 255, 255, 0.025);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-faint: rgba(255, 255, 255, 0.25);
  --hover-surface: rgba(255, 255, 255, 0.05);
  --accent-rgb: 74 222 128;
  --accent: rgb(var(--accent-rgb));
  --danger-rgb: 248 113 113;
  --danger: rgb(var(--danger-rgb));
  --sun-rgb: 255 216 77;
  --sun: rgb(var(--sun-rgb));

  --duration-fast: 150ms;
  --duration-panel: 280ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Ranade', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --font-title: 'Excon', var(--font-sans);
  --font-display: 'Satoshi', var(--font-sans);

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background: rgb(var(--accent-rgb) / 0.3);
}

/* Custom scrollbar — matches the app */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 0.5px solid transparent;
  background: transparent;
  transition:
    background-color var(--duration-panel) var(--ease-standard),
    border-color var(--duration-panel) var(--ease-standard),
    padding var(--duration-panel) var(--ease-standard);
}

.nav.scrolled {
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
  padding: 12px 24px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 16px rgb(var(--accent-rgb) / 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 18px;
  border: 0.5px solid var(--border-subtle);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #05060a;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.4), 0 8px 24px rgb(var(--accent-rgb) / 0.25);
}

.btn-secondary {
  background: var(--hover-surface);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

/* ── Reveal-on-scroll (progressive enhancement; visible by default) ─────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--duration-panel) var(--ease-standard),
    transform var(--duration-panel) var(--ease-standard);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal,
.reduce-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 32px rgb(var(--accent-rgb) / 0.4);
}

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-tag {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* Solar-system motif — pure CSS, transform/opacity only, GPU-friendly.
   Anchored to the bottom of the hero so it reads as an ambient arc behind
   the content rather than a shape competing with the headline. */
.solar {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.solar-orbit {
  position: absolute;
  border: 0.5px solid var(--border-subtle);
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.solar-orbit-1 {
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
}
.solar-orbit-2 {
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
}
.solar-orbit-3 {
  width: 210px;
  height: 210px;
  margin: -105px 0 0 -105px;
}

.solar-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun), rgb(var(--sun-rgb) / 0.35));
  box-shadow: 0 0 44px 8px rgb(var(--sun-rgb) / 0.25);
}

.solar-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  margin: -50% 0 0 -50%;
  animation: solar-spin linear infinite;
  will-change: transform;
}

.solar-orbit-1 .solar-planet {
  animation-duration: 18s;
}
.solar-orbit-2 .solar-planet {
  animation-duration: 30s;
  animation-direction: reverse;
}
.solar-orbit-3 .solar-planet {
  animation-duration: 46s;
}

.solar-planet::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(var(--accent-rgb) / 0.95), var(--accent));
  box-shadow: 0 0 10px 1px rgb(var(--accent-rgb) / 0.35);
}

.solar-orbit-3 .solar-planet::after {
  background: radial-gradient(circle at 35% 35%, #fff, var(--text-muted));
  box-shadow: none;
  width: 6px;
  height: 6px;
  margin-left: -3px;
}

@keyframes solar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ── Section shell ────────────────────────────────────────────────────── */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* ── Feature grid ─────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tile-card {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

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

.tile-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border-subtle);
}

.tile-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease-standard);
}

.tile-card:hover .tile-card-media img {
  transform: scale(1.04);
}

/* ── Feature-tile mini scenes — decorative, animate only on hover ────────
   Shared base + per-scene styles. Glyph "text" throughout uses the fixed
   box-drawing set ╦╔╣╚╟╖╬ instead of real words. */
.tile-scene {
  position: relative;
  width: 100%;
  height: 100%;
  font-family:
    ui-monospace, 'Cascadia Code', 'SF Mono', 'Segoe UI Mono', Consolas, monospace;
  color: var(--text-faint);
  user-select: none;
}

/* 1. Tile dashboard — 4 tiles continuously rotating through 4 slots */
.dash-tile {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 38%;
  height: 38%;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: dash-swap 12s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.tile-card:hover .dash-tile {
  animation-play-state: running;
}

.dash-tile-bar {
  display: block;
  width: 40%;
  height: 3px;
  border-radius: 2px;
  background: var(--border-hover);
}

.dash-tile-a .dash-tile-bar {
  background: var(--accent);
}
.dash-tile-c .dash-tile-bar {
  background: rgb(var(--accent-rgb) / 0.5);
}

.dash-tile-glyph {
  font-size: 10px;
  letter-spacing: 1px;
}

.dash-tile-b {
  animation-delay: -3s;
}
.dash-tile-c {
  animation-delay: -6s;
}
.dash-tile-d {
  animation-delay: -9s;
}

@keyframes dash-swap {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(118%, 0);
  }
  50% {
    transform: translate(118%, 118%);
  }
  75% {
    transform: translate(0, 118%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* 2. Live console — streaming lines, JS-appended on hover (see scenes.js) */
.tile-scene--console {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 12px;
  overflow: hidden;
}

.console-line {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--duration-panel) var(--ease-standard),
    transform var(--duration-panel) var(--ease-standard);
}

.console-line.in {
  opacity: 1;
  transform: translateY(0);
}

.console-line--accent {
  color: var(--accent);
}
.console-line--danger {
  color: var(--danger);
}
.console-line--muted {
  color: var(--text-muted);
}

/* 3. World management — small orbit system + alternating popup labels */
.tile-scene--world {
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun), rgb(var(--sun-rgb) / 0.35));
  box-shadow: 0 0 18px 3px rgb(var(--sun-rgb) / 0.25);
}

.world-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0.5px solid var(--border-subtle);
  border-radius: 50%;
}

.world-orbit-1 {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
}
.world-orbit-2 {
  width: 148px;
  height: 148px;
  margin: -74px 0 0 -74px;
}

.world-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  margin: -50% 0 0 -50%;
  animation: solar-spin 9s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.world-orbit-2 .world-planet {
  animation-duration: 15s;
  animation-direction: reverse;
}

.tile-card:hover .world-planet {
  animation-play-state: running;
}

.world-planet::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(var(--accent-rgb) / 0.95), var(--accent));
  box-shadow: 0 0 8px 1px rgb(var(--accent-rgb) / 0.4);
}

.world-orbit-2 .world-planet::after {
  background: radial-gradient(circle at 35% 35%, #fff, var(--text-muted));
  box-shadow: none;
  width: 6px;
  height: 6px;
  margin-left: -3px;
}

.world-popup {
  position: absolute;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-hover);
  border-radius: 5px;
  padding: 2px 6px;
  opacity: 0;
  animation-duration: 8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.tile-card:hover .world-popup {
  animation-play-state: running;
}

.world-popup-a {
  top: 20%;
  left: 10%;
  animation-name: world-popup-a;
}

.world-popup-b {
  bottom: 16%;
  right: 8%;
  animation-name: world-popup-b;
}

@keyframes world-popup-a {
  0%,
  4% {
    opacity: 0;
    transform: translateY(3px);
  }
  10%,
  38% {
    opacity: 1;
    transform: translateY(0);
  }
  46%,
  100% {
    opacity: 0;
    transform: translateY(3px);
  }
}

@keyframes world-popup-b {
  0%,
  50% {
    opacity: 0;
    transform: translateY(3px);
  }
  56%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(3px);
  }
}

/* 4. Backups — endless drifting row of backup chips, decelerate easing */
.tile-scene--backups {
  overflow: hidden;
}

.backup-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 10px;
  animation: backup-drift 12s cubic-bezier(0.05, 0.7, 0.1, 1) infinite;
  animation-play-state: paused;
  will-change: transform;
}

.tile-card:hover .backup-chip {
  animation-play-state: running;
}

.backup-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgb(var(--accent-rgb) / 0.6);
  flex-shrink: 0;
}

@keyframes backup-drift {
  0% {
    transform: translate(-260%, -50%);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translate(160%, -50%);
    opacity: 0;
  }
}

/* 5. Config editor — slow auto-scroll + randomly-flipping toggles/values */
.tile-scene--config {
  overflow: hidden;
  padding: 10px 12px;
}

.config-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: config-scroll 16s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.tile-card:hover .config-list {
  animation-play-state: running;
}

@keyframes config-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 1px;
}

.config-toggle {
  position: relative;
  width: 18px;
  height: 10px;
  border-radius: 6px;
  background: var(--hover-surface);
  border: 0.5px solid var(--border-subtle);
  flex-shrink: 0;
  transition:
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

.config-toggle::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  transition:
    transform var(--duration-fast) ease,
    background-color var(--duration-fast) ease;
}

.config-toggle.on {
  background: rgb(var(--accent-rgb) / 0.15);
  border-color: var(--accent);
}

.config-toggle.on::after {
  transform: translateX(8px);
  background: var(--accent);
}

.config-value {
  color: var(--text-muted);
}

/* 6. Mods & plugins — stacked tiles, one randomly cycles out/in via JS */
.tile-scene--mods {
  padding: 6% 8%;
}

.mods-tile {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 17%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10.5px;
  letter-spacing: 1px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-subtle);
  border-radius: 6px;
  box-sizing: border-box;
  transition:
    transform var(--duration-panel) var(--ease-standard),
    opacity var(--duration-panel) var(--ease-standard);
}

.mods-tile[data-slot='0'] {
  top: 6%;
}
.mods-tile[data-slot='1'] {
  top: 30%;
}
.mods-tile[data-slot='2'] {
  top: 54%;
}
.mods-tile[data-slot='3'] {
  top: 78%;
}

.mods-tile--exit {
  transform: translateX(140%);
  opacity: 0;
}

.mods-tile--enter-from {
  transform: translateX(-140%);
  opacity: 0;
  transition: none;
}

.tile-card-body {
  padding: 20px 22px 24px;
}

.tile-card-body h3 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 8px;
}

.tile-card-body p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Scheduler spotlight ──────────────────────────────────────────────── */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.spotlight-media {
  border-radius: 16px;
  border: 0.5px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.spotlight-copy h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.01em;
  margin: 12px 0 14px;
}

.spotlight-copy p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 24px;
}

.spotlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.spotlight-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgb(var(--accent-rgb) / 0.6);
}

/* ── CTA / Notify me ──────────────────────────────────────────────────── */
.cta {
  padding: 96px 0;
}

.cta-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-subtle);
  border-radius: 20px;
  padding: 56px 40px;
}

.cta-panel h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 0 0 12px;
}

.cta-panel p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0 0 28px;
}

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.notify-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--hover-surface);
  border: 0.5px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color var(--duration-fast) ease;
}

.notify-input::placeholder {
  color: var(--text-muted);
}

.notify-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.15);
}

.notify-input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(var(--danger-rgb) / 0.15);
}

.notify-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 10px;
  min-height: 14px;
}

.notify-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  font-family: var(--font-title);
}

.notify-success.visible {
  display: flex;
}

.notify-form.hidden {
  display: none;
}

.notify-note {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  border-top: 0.5px solid var(--border-subtle);
  padding: 40px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-tag {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  color: var(--sun);
  border: 0.5px solid rgb(var(--sun-rgb) / 0.35);
  background: rgb(var(--sun-rgb) / 0.08);
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) ease;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .spotlight {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 120px 20px;
  }

  .notify-form {
    flex-direction: column;
  }

  .solar-orbit-2,
  .solar-orbit-3 {
    display: none;
  }

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

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .solar-planet {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover,
  .tile-card:hover,
  .tile-card:hover .tile-card-media img {
    transform: none !important;
  }

  /* Feature-tile scenes stay fully static, even on hover. */
  .dash-tile,
  .world-planet,
  .world-popup,
  .backup-chip,
  .config-list {
    animation: none !important;
  }

  .console-line,
  .mods-tile {
    transition: none !important;
  }
}
