/* ============================================================
   Lander — base.css
   Shared foundation for all pages: design tokens, reset,
   deep-space backdrop, buttons, focus, motion.
   Page-specific styles live in styles.css (home) / pages.css.
   ============================================================ */

:root {
  /* ── Space base ── */
  --navy: #0E1B2A;
  --navy-deep: #0A1420;
  --space: #070C14;
  --space-black: #05080E;

  /* ── Warm brand accents ── */
  --sunset: #E55A28;
  --amber: #FF8C00;
  --gold: #FFD700;
  --ember: #C14242;
  --nebula: #8B4B84;
  --teal: #4A9B8E;

  /* ── Ink ── */
  --cream: #F5F1E8;
  --text: #ECE7DA;
  --text-muted: rgba(245, 241, 232, 0.70);
  --text-faint: rgba(245, 241, 232, 0.66); /* ≥7:1 on dark backdrop (WCAG AAA) */

  /* ── Glass surfaces ── */
  --glass: rgba(20, 32, 48, 0.55);
  --glass-strong: rgba(20, 32, 48, 0.78);
  --glass-hi: rgba(255, 244, 230, 0.05);
  --line: rgba(229, 90, 40, 0.16);
  --line-soft: rgba(245, 241, 232, 0.10);
  --line-strong: rgba(229, 90, 40, 0.34);

  /* ── Horizon (the signature gradient) ── */
  --horizon: linear-gradient(90deg, var(--gold) 0%, var(--amber) 26%, var(--sunset) 52%, var(--nebula) 78%, var(--navy) 100%);
  --horizon-warm: linear-gradient(135deg, var(--gold) 0%, var(--amber) 40%, var(--sunset) 100%);

  --shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
  --shadow-device: 0 40px 90px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.45);

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --container: 1200px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--space);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

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

/* ── Deep-space backdrop (starfield + horizon glow) ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(245,241,232,0.9), transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 9%, rgba(245,241,232,0.7), transparent 100%),
    radial-gradient(1px 1px at 33% 42%, rgba(245,241,232,0.6), transparent 100%),
    radial-gradient(1px 1px at 64% 27%, rgba(255,215,0,0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 89% 53%, rgba(245,241,232,0.55), transparent 100%),
    radial-gradient(1px 1px at 22% 71%, rgba(245,241,232,0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 51% 83%, rgba(255,215,0,0.4), transparent 100%),
    radial-gradient(1px 1px at 8% 91%, rgba(245,241,232,0.5), transparent 100%),
    radial-gradient(circle at 50% -10%, rgba(139,75,132,0.18), transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--space) 44%, var(--space-black) 100%);
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: -34vh;
  width: 150vw;
  height: 70vh;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(ellipse at center top, rgba(229,90,40,0.18) 0%, rgba(255,140,0,0.09) 28%, transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── App header (shared glass) ── */
.site-header,
.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  background: rgba(7, 12, 20, 0.66);
  border-bottom: 1px solid var(--line-soft);
}

/* ── Brand mark (shared shell) ── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-icon,
.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 0, 0.18);
}

.brand-wordmark,
.brand span {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
.button:hover { transform: translateY(-2px); }

.button-primary {
  background: var(--horizon-warm);
  color: var(--space-black);
  box-shadow: 0 16px 38px rgba(229, 90, 40, 0.34);
}
.button-primary:hover { box-shadow: 0 22px 50px rgba(229, 90, 40, 0.46); }

.button-secondary {
  background: var(--glass);
  border-color: var(--line);
  color: var(--cream);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.button-secondary:hover { background: var(--glass-strong); border-color: var(--line-strong); }

.button-tertiary {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--text);
  min-height: 2.9rem;
}
.button-tertiary:hover { border-color: var(--line-strong); color: var(--cream); }

.button .glyph { font-size: 1.1em; line-height: 1; }

/* ── Motion / interaction ── */
@media (hover: none) {
  .button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── Focus ── */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
