/* ============================================================
   QUANTUM LEAPS — SHARED STYLESHEET
   Used by: privacy.html, terms.html, 404.html
   index.html keeps its own inline styles for performance.
   ============================================================ */

:root {
  /* Palette */
  --void:          #030508;
  --cosmos:        #070c17;
  --cosmos-2:      #0d1628;
  --forest-deep:   #060f0a;
  --forest:        #0e1e13;
  --forest-mid:    #17301e;
  --forest-light:  #224d2f;
  --teal-deep:     #061f1f;
  --teal-dark:     #0f3535;
  --teal:          #1e7070;
  --teal-bright:   #2ba3a3;
  --teal-glow:     #4ecdc4;
  --gold-dark:     #7a5c0a;
  --gold:          #b8860b;
  --gold-mid:      #c4953a;
  --gold-bright:   #d4af37;
  --cream:         #f2ede4;
  --cream-dim:     #c0b8a8;
  --cream-faint:   rgba(242, 237, 228, 0.55);
  --cream-ghost:   rgba(242, 237, 228, 0.12);

  /* Glass */
  --glass:         rgba(255,255,255,0.045);
  --glass-border:  rgba(255,255,255,0.09);
  --glass-hover:   rgba(255,255,255,0.075);
  --teal-glass:    rgba(43,163,163,0.08);
  --teal-border:   rgba(78,205,196,0.18);
  --gold-glass:    rgba(196,149,58,0.08);
  --gold-border:   rgba(212,175,55,0.18);

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast: 0.25s var(--ease);
  --t-mid:  0.45s var(--ease);
  --t-slow: 0.7s  var(--ease-out);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { line-height: 1.75; color: var(--cream-dim); }

.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

/* Layout */
.container         { width: min(1200px, 90vw); margin-inline: auto; }
.container--narrow { width: min(800px, 90vw);  margin-inline: auto; }
.section           { padding-block: clamp(4rem, 8vw, 7rem); flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--t-fast);
}
.btn-primary { background: var(--teal-bright); color: var(--forest-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(43,163,163,0.35); background: var(--teal-glow); }
.btn-ghost {
  border: 1px solid var(--glass-border);
  color: var(--cream);
  background: var(--glass);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--teal-border); transform: translateY(-2px); }
.btn-arrow::after { content: '→'; transition: transform var(--t-fast); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Divider */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  margin-block: 1.5rem;
}
.divider--center { margin-inline: auto; }

/* Navigation */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(7, 12, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-mark svg { width: 36px; height: 36px; }
.nav-logo-text { line-height: 1; }
.nav-logo-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.nav-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--cream); }
.nav-cta { margin-left: 1rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
}

/* Page header (for non-home pages) */
.page-header {
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(43,163,163,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--cosmos) 0%, var(--void) 100%);
  border-bottom: 1px solid var(--glass-border);
}
.page-header h1 { color: var(--cream); }
.page-header .label { margin-bottom: 1rem; }
.page-header p {
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* Long-form content (legal pages) */
.content-prose {
  max-width: 760px;
  margin-inline: auto;
}
.content-prose h2 {
  font-family: var(--serif);
  color: var(--cream);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}
.content-prose h2:first-of-type { margin-top: 0; }
.content-prose h3 {
  font-family: var(--serif);
  color: var(--cream);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-prose p,
.content-prose li {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--cream-dim);
  margin-bottom: 1.25rem;
}
.content-prose ul,
.content-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.content-prose li { margin-bottom: 0.5rem; }
.content-prose li::marker { color: var(--teal-bright); }
.content-prose ul { list-style: disc; }
.content-prose ol { list-style: decimal; }
.content-prose strong { color: var(--cream); font-weight: 500; }
.content-prose a {
  color: var(--teal-bright);
  border-bottom: 1px solid var(--teal-border);
  transition: color var(--t-fast);
}
.content-prose a:hover { color: var(--teal-glow); }
.content-prose .meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0.7;
  margin-bottom: 3rem;
}

/* Footer */
footer {
  background: var(--cosmos);
  border-top: 1px solid var(--glass-border);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.85rem; margin-top: 1rem; line-height: 1.7; }
.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--cream-dim);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 0.75rem; color: var(--cream-dim); }
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--cream-dim);
  opacity: 0.55;
  max-width: 600px;
  line-height: 1.5;
}

/* 404 specific */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  min-height: 80vh;
}
.error-code {
  font-family: var(--serif);
  font-size: clamp(8rem, 20vw, 16rem);
  line-height: 0.9;
  color: var(--teal-bright);
  letter-spacing: -0.04em;
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.error-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.error-text {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  color: var(--cream-dim);
}
.error-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
