/* GTX Therapy — Design System
   Clean clinical light theme: white surfaces, deep blue accents,
   Montserrat display + Open Sans UI (Blueline-inspired) */

:root {
  /* Core palette.
     NOTE: var names kept from the original dark theme so components keep
     working — semantics are remapped: ink-* = SURFACES (light), cream-* =
     TEXT (dark), gold-* = ACCENT (blue). */
  --ink-900: #ffffff;   /* page background */
  --ink-800: #f4f8fc;   /* card background */
  --ink-700: #e8eff7;   /* raised / hover surface */
  --ink-600: #d9e4ef;   /* deep surface */
  --ink-500: #c7d5e3;
  --line: rgba(15, 18, 21, 0.08);
  --line-strong: rgba(15, 18, 21, 0.16);

  --cream-50: #0f1215;  /* primary text */
  --cream-100: #22262a;
  --cream-200: #3b4045; /* secondary text */
  --cream-300: #565c62;
  --cream-400: #6b7278; /* muted text */
  --cream-500: #949ba1; /* faint text */

  --gold-300: #4a9fe8;  /* light blue */
  --gold-400: #2c87d8;
  --gold-500: #0d6ec9;  /* primary blue */
  --gold-600: #0b5ba6;
  --gold-700: #0a4d8c;  /* deep blue */

  --paper: #eef4fa;     /* tinted section background */
  --paper-2: #e2ebf4;

  --success: #2e9e6b;
  --danger: #c4574a;

  /* Type */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(15, 40, 70, 0.08);
  --shadow-card-hover: 0 10px 36px rgba(15, 40, 70, 0.14);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-900);
  color: var(--cream-50);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ───── Typography utility ───── */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-style: normal;
}
/* Legacy italic-accent class — now bold blue emphasis, no italics */
.serif-italic { font-family: var(--font-display); font-style: normal; font-weight: 700; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.label-sm {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-400);
}
.tab-num { font-variant-numeric: tabular-nums; }

/* ───── Layout ───── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}

.hairline { height: 1px; background: var(--line); width: 100%; }
.hairline-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-500) 70%, transparent); }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold-500);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 110, 201, 0.30);
}
.btn-primary:hover { background: var(--gold-400); box-shadow: 0 8px 24px rgba(13, 110, 201, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.btn-ghost:hover { background: rgba(13, 110, 201, 0.07); }

/* On dark/photo backgrounds (hero) */
.btn-ghost-onphoto {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost-onphoto:hover { background: rgba(255, 255, 255, 0.22); }

.btn-dark {
  background: var(--cream-50);
  color: #ffffff;
}
.btn-dark:hover { background: var(--cream-100); }

.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 18px 34px; font-size: 15px; }

.arrow-icn {
  width: 14px; height: 14px;
  display: inline-block;
}

/* ───── Chips / Pills ───── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(13, 110, 201, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-600);
  background: rgba(13, 110, 201, 0.06);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

/* Chip variant that sits on the photo hero */
.chip-onphoto {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* ───── Cards ───── */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card-light {
  background: var(--paper);
  color: var(--cream-50);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ───── Nav ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(15, 40, 70, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-200);
}
.nav-links a { transition: color 120ms; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-500); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ───── Footer ───── */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  color: var(--cream-300);
  font-size: 13px;
}
.footer a:hover { color: var(--gold-500); }

/* ───── Sections ───── */
section { position: relative; }
.sec-pad { padding: 96px 0; }
.sec-pad-sm { padding: 72px 0; }

.section-light {
  background: var(--paper);
  color: var(--cream-50);
}
.section-light .eyebrow { color: var(--gold-600); }
.section-light .label-sm { color: var(--cream-400); }
.section-light .hairline { background: var(--line); }

/* Deep-blue band (bottom CTA, callouts) */
.section-blue {
  background: linear-gradient(135deg, #0a4d8c, #0d6ec9);
  color: #ffffff;
}
.section-blue .eyebrow { color: rgba(255, 255, 255, 0.85); }

/* ───── Grain texture overlay (disabled in light theme) ───── */
.grain::before { content: none; }

/* ───── Form fields ───── */
.input {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--cream-50);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 120ms, box-shadow 120ms;
}
.input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(13, 110, 201, 0.15); }
.input::placeholder { color: var(--cream-500); }

/* ───── Misc ───── */
.fade-in {
  animation: fadeIn 600ms ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.scrim-bottom {
  position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(to top, rgba(4, 16, 28, 0.75) 10%, transparent);
  pointer-events: none;
}
.scrim-top {
  position: absolute; inset: 0 0 auto 0; height: 40%;
  background: linear-gradient(to bottom, rgba(4, 16, 28, 0.55) 5%, transparent);
  pointer-events: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Mobile */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  body { font-size: 15px; }
  .container, .container-narrow { padding: 0 20px; }
  .nav-inner { padding: 0 20px; height: 62px; }
  .nav-links { display: none; }
  .sec-pad { padding: 64px 0; }
  .sec-pad-sm { padding: 48px 0; }
  .footer { padding: 48px 0 24px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
  .btn { padding: 12px 20px; }

  /* Hide native scrollbars on horizontal scrollers (dashboard tab strip) */
  .scroll-x::-webkit-scrollbar { display: none; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
}
