/* ============================================================
   INNERFORM — REVISED DESIGN SYSTEM
   Fixes: contrast, typography hierarchy, interactive states
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Backgrounds */
  --bg-deep:        #04060D;
  --bg-card:        #0D1018;
  --bg-card-alt:    #111520;
  --bg-overlay:     rgba(4, 6, 13, 0.96);

  /* Primary text — FIXED from original low-contrast values */
  --text-primary:   #D8E8F8;          /* was same, kept */
  --text-secondary: #A8C0D8;          /* was rgb(42,64,96) — now readable */
  --text-muted:     #7090A8;          /* was rgb(106,138,170) at 9px — now larger */
  --text-italic:    rgba(216,232,248,0.88); /* was 0.52 — boosted */

  /* Accent colors */
  --gold:           #C8A96E;
  --gold-light:     #E8C98E;
  --gold-dim:       rgba(200, 169, 110, 0.35);
  --teal:           #4ECDC4;
  --teal-dim:       rgba(78, 205, 196, 0.2);

  /* Environment colors */
  --env-engine:     #E05A5A;
  --env-boutique:   #9B7FD4;
  --env-growth:     #4ECDC4;
  --env-family:     #F4A261;
  --env-collab:     #74B9FF;

  /* Fit colors */
  --fit-strong:     #4ECDC4;
  --fit-good:       #A8D8A8;
  --fit-moderate:   #F4A261;
  --fit-friction:   #E05A5A;

  /* Borders */
  --border:         rgba(216, 232, 248, 0.12);
  --border-hover:   rgba(200, 169, 110, 0.5);

  /* Typography */
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'Space Mono', monospace;

  /* Spacing */
  --section-gap:    120px;
  --card-radius:    12px;
  --nav-h:          64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- Starfield Canvas ---- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  background: rgba(4, 6, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--bg-deep) !important;
  background: var(--gold);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* ---- Page Wrapper ---- */
.page {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

/* ---- Section Layout ---- */
.section {
  padding: var(--section-gap) 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: var(--section-gap) 48px;
}

/* ---- Typography ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text-primary);
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
}

h2 em {
  font-style: italic;
  color: var(--gold);
}

h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1.15;
}

h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

p {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
}

p.lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-style: italic;
  color: var(--text-italic);
  line-height: 1.6;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold-dim);
  margin: 32px 0;
}

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 1;
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .footer-logo {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-decoration: none;
}

footer nav {
  display: flex;
  gap: 24px;
}

footer nav a {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

footer nav a:hover { color: var(--gold); }

footer .footer-legal {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1.6;
}

/* ---- Starfield JS ---- */
/* (canvas handled by shared.js) */

/* ---- Scroll indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-indicator svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root { --section-gap: 72px; }
  .nav { padding: 0 24px; }
  .section { padding: var(--section-gap) 24px; }
  .nav-links { display: none; }
}
