/* BaseOrbit — Shared Design System
   Professional, restrained, trust-building.
   Dark theme with amber/gold accent (matches app identity).
   Mobile-first. No JS required. */

:root {
  --bg: #09090b;
  --bg-elevated: #111113;
  --fg: #f4f4f5;
  --fg-muted: rgba(244, 244, 245, 0.72);
  --fg-dim: rgba(244, 244, 245, 0.45);
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.15);
  --accent-glow: rgba(217, 119, 6, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.07);
  --ring: rgba(255, 255, 255, 0.12);
  --divider: rgba(255, 255, 255, 0.06);
  --max-width: 960px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--fg); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

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

/* ─── Navigation ─── */

.site-nav {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
}

.nav-brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--fg);
  background: var(--card-bg);
}

.nav-links a.active {
  color: var(--fg);
  background: var(--accent-soft);
}

/* Mobile nav */
@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
  }
  .nav-brand img {
    display: none;
  }
  .nav-brand::after {
    content: 'BaseOrbit';
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
  }
  .nav-links {
    justify-content: center;
    gap: 2px;
  }
  .nav-links a {
    font-size: 0.82rem;
    padding: 5px 8px;
  }
}

/* ─── Main content ─── */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .page { padding: 0 18px; }
}

/* ─── Hero sections ─── */

.hero {
  text-align: center;
  padding: 60px 0 48px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--card-border);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

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

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #b45309; border-color: #b45309; color: #fff; }

.btn-secondary {
  background: var(--card-bg);
  border-color: var(--ring);
  color: var(--fg);
}
.btn-secondary:hover { background: var(--card-hover); color: var(--fg); }

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Cards ─── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--ring);
  background: var(--card-hover);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.card .card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

/* ─── Sections ─── */

.section {
  padding: 48px 0;
}

.section + .section {
  border-top: 1px solid var(--divider);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section .lead {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .section { padding: 32px 0; }
  .section h2 { font-size: 1.35rem; }
}

/* ─── Feature list ─── */

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
}

.feature-list .text {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.feature-list .text strong {
  color: var(--fg);
  font-weight: 600;
}

/* ─── Legal / prose content ─── */

.prose {
  max-width: 740px;
}

.prose h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prose .meta {
  color: var(--fg-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.prose p {
  color: var(--fg-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.prose ul, .prose ol {
  color: var(--fg-muted);
  margin: 8px 0 16px;
  padding-left: 24px;
  line-height: 1.6;
}

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--fg); }

.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* ─── Footer ─── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--divider);
  padding: 28px 24px 36px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-brand {
  color: var(--fg-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 320px;
}

.footer-brand strong {
  color: var(--fg-muted);
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--fg-muted); }

.footer-legal {
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  color: var(--fg-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 18px; }
  .site-footer { padding: 24px 18px 32px; }
}

/* ─── Utilities ─── */

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.gap-sm { gap: 8px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Call-out box ─── */
.callout {
  background: var(--accent-glow);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.callout strong { color: var(--fg); }

/* ─── Two-column layout ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── FAQ accordion (CSS-only) ─── */
.faq details {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--fg-dim);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  content: '−';
}

.faq summary::-webkit-details-marker { display: none; }

.faq .answer {
  padding: 0 18px 16px;
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
