/* Orrery — shared styles. Design language mirrors the app:
   deep-space dark, warm sun glow from below, gold accent, serif display,
   heavily tracked small labels, ultra-thin glass panels. */

:root {
  --bg:        #070912;
  --bg-top:    #05070F;
  --bg-mid:    #0A0E22;
  --gold:      #FFD98A;
  --gold-warm: #FFB84D;
  --orange:    #FF7A1A;
  --cream:     #D8CBAF;
  --blue:      #8FB8F0;

  --text:      rgba(255, 255, 255, 0.92);
  --text-dim:  rgba(255, 255, 255, 0.70);
  --text-fade: rgba(255, 255, 255, 0.50);

  --glass-fill:   rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.14);

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
           "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Cosmic backdrop (fixed, behind everything) ---- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-top) 100%);
}
.sky::after {
  /* warm sun glow rising from the bottom, as on the title screen */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30vh;
  width: 140vw;
  height: 100vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
              rgba(255, 184, 77, 0.30),
              rgba(255, 122, 26, 0.10) 45%,
              transparent 70%);
  pointer-events: none;
}
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---- Typography helpers ---- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-fade);
}
.gold  { color: var(--gold); }
.serif { font-family: var(--serif); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav .brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.42em;
  color: #fff;
  padding-left: 0.42em;
}
.nav .links { display: flex; gap: 26px; }
.nav .links a {
  color: var(--text-dim);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.nav .links a:hover { color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .nav .links { gap: 18px; }
  .nav .links a.hide-sm { display: none; }
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}
.hero .eyebrow { margin-bottom: 26px; }
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, var(--cream));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--text-dim);
  margin: 28px auto 0;
  max-width: 30ch;
}
.hero .tagline {
  margin-top: 14px;
  color: var(--text-fade);
  font-family: var(--serif);
  font-size: 1rem;
}

/* App Store button */
.cta-row {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: #1a1204;
  box-shadow: 0 0 28px rgba(255, 217, 138, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 6px 34px rgba(255, 217, 138, 0.30); }
.btn-ghost {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: var(--glass-fill);
}
.btn-ghost:hover { text-decoration: none; border-color: rgba(255,255,255,0.28); }

/* ---- Hero device strip ---- */
.shots {
  margin-top: 72px;
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.shot {
  width: 210px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: block;
}
.shot.raise { margin-bottom: 34px; }
@media (max-width: 720px) {
  .shot { width: 150px; }
  .shot.raise { margin-bottom: 20px; }
}

/* ---- Glass card ---- */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- Feature grid ---- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
  margin-top: 14px;
}
.section-head p {
  color: var(--text-dim);
  max-width: 48ch;
  margin: 16px auto 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 26px 24px;
}
.feature .glyph {
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: block;
}
.feature h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* ---- Privacy band ---- */
.band {
  text-align: center;
  padding: 44px 32px;
}
.band .eyebrow { margin-bottom: 18px; }
.band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: #fff;
  line-height: 1.35;
  max-width: 20ch;
  margin: 0 auto;
}
.band p { color: var(--text-dim); margin-top: 18px; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 54px 0 70px;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
footer .brand {
  font-family: var(--serif);
  letter-spacing: 0.36em;
  color: #fff;
  font-size: 1rem;
}
footer .fnote { color: var(--text-fade); font-size: 0.82rem; margin-top: 12px; max-width: 34ch; }
footer nav { display: flex; flex-direction: column; gap: 10px; }
footer nav a { color: var(--text-dim); font-size: 0.9rem; }
footer nav a:hover { color: #fff; text-decoration: none; }
footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }

/* ---- Legal / document pages ---- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}
.doc .eyebrow { margin-bottom: 16px; }
.doc h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.doc .updated { color: var(--text-fade); font-size: 0.85rem; margin-bottom: 40px; }
.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: #fff;
  margin: 40px 0 12px;
}
.doc p, .doc li { color: var(--text-dim); margin-bottom: 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .back {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.doc .lead {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  padding: 22px 24px;
  border-radius: 18px;
  margin-bottom: 36px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #stars { display: none; }
}
