/* Ex-Orbita — ex-orbita.com
   Tokens from docs/01-brand/color-system.md (Yent Family System v6).
   No external requests: fonts self-hosted, no analytics, no trackers. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --yent-orange: #FF7A3D;
  --yent-blue: #0A84FF;
  --yent-navy: #0B1D3A;
  --orbit-navy: #102B4E;
  --cyan: #18C7E8;
  --growth-green: #37C98B;
  --comet-slate: #40506A;
  --lunar-gray: #738197;
  --lunar-gray-dark: #76849A; /* lifted variant for dark surfaces */
  --light-gray: #E5E7EB;
  --cyan-mist: #E8F7FC;
  --mint-mist: #E8F8F0;
  --cosmos: #071A2F;
  --star-cloud: #F7FAFC;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--yent-navy);
  background: var(--star-cloud);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Manrope", "Inter", -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header — rides with you (sticky), wearing the cosmos */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 26, 47, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 199, 232, 0.18);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.brand span {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.14em; /* wordmark property only — never body text */
  color: var(--star-cloud);
}
/* Nav tabs: same three, same order, on every page — Home · For
   guardians · Privacy. When accounts ship, "Sign in" joins as a
   distinct button in the rightmost slot. */
.site-header nav {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}
.site-header nav a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
}
.site-header nav a:hover { background: rgba(24, 199, 232, 0.12); }
.site-header nav a.active {
  background: rgba(24, 199, 232, 0.16);
  color: var(--star-cloud);
}

/* Hero — cosmos surface, wearing the sky */
.hero {
  background: var(--cosmos);
  color: var(--star-cloud);
  text-align: center;
  padding: 7rem 0 7.5rem;
  /* Tall enough to command the window, capped so huge monitors don't
     stretch it into emptiness. */
  min-height: min(calc(88vh - 4rem), 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* A quiet starfield: two layers of fixed stars, one breathing softly.
   Deterministic, decorative, and gone for anyone who prefers less motion. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 480px 480px;
  background-image:
    radial-gradient(1.5px 1.5px at 40px 60px,  rgba(247,250,252,0.8) 50%, transparent 100%),
    radial-gradient(1px 1px     at 130px 200px, rgba(247,250,252,0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 220px 90px,  rgba(24,199,232,0.55) 50%, transparent 100%),
    radial-gradient(1px 1px     at 320px 300px, rgba(247,250,252,0.6) 50%, transparent 100%),
    radial-gradient(2px 2px     at 420px 160px, rgba(247,250,252,0.7) 50%, transparent 100%),
    radial-gradient(1px 1px     at 80px 380px,  rgba(24,199,232,0.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 260px 430px, rgba(247,250,252,0.55) 50%, transparent 100%),
    radial-gradient(1px 1px     at 380px 40px,  rgba(247,250,252,0.45) 50%, transparent 100%);
}
.hero::after {
  background-position: 240px 120px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.25; }
  to   { opacity: 0.9; }
}
.hero .container { position: relative; }
.hero .mark {
  width: 8.5rem;
  height: 8.5rem;
  margin-bottom: 2rem;
}
/* The ceremony, continued: the two ships ride the orbit, slowly. */
.hero-mark .mark-ships {
  transform-origin: 512px 512px;
  animation: orbit 90s linear infinite;
}
@keyframes orbit {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark .mark-ships { animation: none; }
  .hero::after { animation: none; }
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--star-cloud);
  max-width: 44rem;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: var(--star-cloud);
  max-width: 42rem;
  margin: 0 auto 2.25rem;
}
.hero .coming-soon {
  display: inline-block;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
/* Discovery turning into growth — the journey gradient, as the seam
   between the sky and the reading surfaces. */
.journey-seam {
  height: 3px;
  background: linear-gradient(90deg, var(--yent-blue), var(--cyan), var(--growth-green));
}
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.625rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--yent-blue), var(--cyan), var(--growth-green));
}

/* Light sections — star cloud reading surface */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--white); }
.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}
.section p {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  max-width: 44rem;
}
.section p:last-child { margin-bottom: 0; }
/* Centered rhythm (the Apple lesson): on big windows, symmetric space
   reads as intent — asymmetric space reads as unfinished. */
.section.centered { text-align: center; }
.section.centered p { margin-left: auto; margin-right: auto; }
.section.centered h2::after { margin-left: auto; margin-right: auto; }
.promise-card { text-align: left; }
.muted { color: var(--lunar-gray); }
.container-wide {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.promise-card {
  background: var(--cyan-mist);
  border-radius: 1.25rem;
  padding: 1.75rem;
}
.promise-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--yent-navy);
}
.promise-card p {
  font-size: 1rem;
  color: var(--comet-slate);
  margin: 0;
}

/* Screens — the product, shown honestly, on its own sky.
   One square card at a time, centered, snap-scrolling to the next. */
.screens {
  background: var(--cosmos);
  color: var(--star-cloud);
  padding: 5.5rem 0 6rem;
}
.screens h2 {
  color: var(--star-cloud);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.screens h2::after { margin-left: auto; margin-right: auto; }
.gallery-hint {
  text-align: center;
  color: var(--lunar-gray-dark);
  font-size: 0.9375rem;
}
.gallery {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Side padding of half-viewport-minus-half-slide keeps the snapped
     slide dead center, with its neighbors peeking in from the edges. */
  padding: 2.5rem calc(50% - min(44vw, clamp(12rem, 18vw, 20rem))) 1.75rem;
}
.slide {
  flex: 0 0 auto;
  /* Scales with the window: phones get most of the width, big monitors
     get genuinely big cards instead of small ones adrift in space. */
  width: min(88vw, clamp(24rem, 36vw, 40rem));
  aspect-ratio: 1 / 1;
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem 1.25rem;
  /* Comet Slate to Orbit Navy: same tone family as the cosmos behind it,
     two clear steps lighter — the card separates instead of dissolving. */
  background: linear-gradient(180deg, var(--comet-slate), var(--orbit-navy));
  border: 1px solid rgba(24, 199, 232, 0.4);
  border-radius: 1.5rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.45);
}
.slide-link {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  cursor: zoom-in;
}

/* The in-page lightbox — pure CSS (:target), no scripts. Clicking the
   image, the backdrop, or the × all return to the gallery. */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 13, 26, 0.94);
}
.lightbox:target {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox-shell {
  display: flex;
  cursor: zoom-out;
}
.lightbox-shell img {
  /* Comfortable, not consuming: tall phone shots cap at 3/4 of the
     window's height and never overwhelm small screens. */
  max-width: min(88vw, 34rem);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  color: var(--star-cloud);
  font-size: 2.25rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.5rem;
}
.lightbox-close:hover { color: var(--cyan); }
.slide img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.875rem;
}
.slide figcaption {
  margin-top: 1.125rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--star-cloud);
  text-align: center;
}

/* Footer — navy structure */
.site-footer {
  background: var(--cosmos);
  color: var(--star-cloud);
  padding: 3rem 0;
  text-align: center;
}
.site-footer .mark { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.site-footer .endorsement {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--star-cloud);
}
.site-footer p {
  font-size: 0.875rem;
  color: var(--lunar-gray-dark);
}
.site-footer a { color: var(--cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .meaning {
  margin-top: 1rem;
  font-style: italic;
}

/* Document pages (privacy, consent) — light reading surface */
.doc { padding: 3.5rem 0 4.5rem; }
.doc h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.doc .updated { color: var(--lunar-gray); font-size: 0.875rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.doc p, .doc li { margin-bottom: 0.75rem; }
.doc ul { padding-left: 1.25rem; }

.draft-banner {
  background: var(--cyan-mist);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

/* The guardian's glossary — the product's words, defined in a minute */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.term-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 1rem;
  padding: 1.25rem;
}
.term-card h3 {
  font-size: 1.0625rem;
  color: var(--yent-navy);
  margin-bottom: 0.375rem;
}
.term-card p {
  font-size: 0.9375rem;
  color: var(--comet-slate);
  margin: 0;
}

/* How a quest travels — the flow, drawn on its own piece of sky */
.flow-figure {
  margin: 1.5rem 0 1rem;
  background: var(--cosmos);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem 1rem;
  overflow-x: auto;
}
.flow-figure svg {
  display: block;
  width: 100%;
  min-width: 34rem;
  height: auto;
  font-family: "Inter", -apple-system, sans-serif;
}

.notice-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
}
