/* Space Force — landing + privacy + support pages
   Visual language matches the in-app palette: deep-space background, teal
   accent (#5eead4), Bungee-influenced header treatment via system fonts.
   Single-file CSS, no build step. */

:root {
  --bg:        #02020a;
  --bg-card:   rgba(20, 20, 40, 0.55);
  --fg:        #d8d8e8;
  --fg-muted:  #8a8aa3;
  --accent:    #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.6);
  --border:    rgba(94, 234, 212, 0.18);
  --max-w:     780px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Procedural starfield via radial-gradients — pure CSS, no images */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(70, 40, 150, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 72%, rgba(190, 50, 110, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, #0a0820 0%, #04030f 60%, #01010a 100%);
}
.starfield::before, .starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}
.starfield::before {
  background-image:
    radial-gradient(1px 1px at 12px 18px,  rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 42px 92px,  rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 75px 40px,  rgba(255,255,255,0.70), transparent),
    radial-gradient(1px 1px at 110px 130px, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 160px 60px, rgba(255,255,255,0.60), transparent),
    radial-gradient(1px 1px at 32px 168px, rgba(255,255,255,0.40), transparent),
    radial-gradient(1px 1px at 188px 192px, rgba(255,255,255,0.55), transparent);
  opacity: 0.85;
}
.starfield::after {
  background-image:
    radial-gradient(1.5px 1.5px at 55px 25px,  rgba(255,255,255,0.95), transparent),
    radial-gradient(1.5px 1.5px at 138px 105px, rgba(94,234,212,0.55), transparent),
    radial-gradient(1.5px 1.5px at 22px 110px, rgba(255,255,255,0.75), transparent);
  background-size: 320px 320px;
  opacity: 0.7;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 64px;
  position: relative;
}
main.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 32px);
  text-align: center;
}

/* Landing-page header */
header {
  text-align: center;
  margin-bottom: 48px;
}
h1 {
  font-size: clamp(40px, 9vw, 76px);
  margin: 0 0 12px 0;
  letter-spacing: 0.10em;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(94,234,212,0.30), 0 0 64px rgba(94,234,212,0.18);
  font-weight: 800;
}
.tag {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* CTA section */
.cta {
  text-align: center;
  margin: 16px 0 56px;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn.primary {
  background: rgba(94,234,212,0.10);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
}
.btn.primary:hover {
  background: rgba(94,234,212,0.20);
  border-color: var(--accent);
}
.btn.primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.cta-note {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: var(--fg-muted);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 56px 0;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.feature h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.55;
}

/* Document pages (privacy, support) */
.doc-header {
  text-align: left;
  margin-bottom: 32px;
}
.doc-header h1 {
  font-size: clamp(28px, 5vw, 40px);
  text-align: left;
  margin: 8px 0 4px 0;
}
.doc-header .updated {
  color: var(--fg-muted);
  font-size: 13px;
  margin: 0;
  letter-spacing: 0.03em;
}
.back {
  display: inline-block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.back:hover { color: var(--accent); }

article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
article h2 {
  font-size: 20px;
  margin: 28px 0 10px 0;
  color: var(--accent);
  letter-spacing: 0.03em;
}
article h2:first-child { margin-top: 0; }
article h3 {
  font-size: 16px;
  margin: 22px 0 6px 0;
  color: var(--fg);
}
article p { margin: 0 0 14px 0; }
article ul {
  margin: 0 0 16px 0;
  padding-left: 22px;
}
article li { margin: 4px 0; }
article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(94,234,212,0.30);
  transition: border-color 0.15s;
}
article a:hover { border-color: var(--accent); }
article code {
  background: rgba(94,234,212,0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
article strong { color: var(--fg); }

.doc-footer {
  text-align: center;
  margin: 32px 0 0 0;
  font-size: 14px;
  color: var(--fg-muted);
}
.doc-footer a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.doc-footer a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* Bottom links nav (landing page) */
.links {
  text-align: center;
  margin: 32px 0 16px;
  font-size: 14px;
}
.links a {
  color: var(--fg-muted);
  text-decoration: none;
  margin: 0 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.links a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.sep { color: var(--fg-muted); opacity: 0.5; margin: 0 4px; }

footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.7;
}

/* 404 page */
.big-404 {
  font-size: clamp(80px, 18vw, 144px);
  letter-spacing: 0.04em;
  margin: 0 0 4px 0;
}

/* Mobile */
@media (max-width: 640px) {
  main { padding: 36px 18px 48px; }
  .features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature { padding: 18px 18px 14px; }
  article { padding: 22px 20px; }
}

/* Reduced-motion respect (starfield ::before/::after are static, but
   keeping this clean for any future animations) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
