/*
 * GaiaLab Brand Tokens
 * Single source of truth for color, typography, and motion across all pages.
 * Import BEFORE any page-level <style> block.
 *
 * Usage:
 *   <link rel="stylesheet" href="/brand.css" />
 *
 * Pages currently importing this: (add yours here as you migrate)
 *   — none yet; pages use inline :root mirrors until migration is complete
 */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800;12..96,900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ── Color palette ────────────────────────────────────────────────────────── */
:root {
  /* Primary — teal */
  --brand-teal:       #0d9488;
  --brand-teal-light: #14b8a6;
  --brand-teal-dark:  #0f766e;
  --brand-teal-glow:  rgba(13,148,136,0.22);

  /* Secondary — ocean blue */
  --brand-blue:       #0891b2;
  --brand-blue-dark:  #0369a1;

  /* Neutrals */
  --brand-navy:       #0f172a;
  --brand-slate:      #1e293b;
  --brand-slate2:     #334155;
  --brand-muted:      #64748b;
  --brand-muted-light:#94a3b8;
  --brand-border:     #e2e8f0;
  --brand-surface:    #ffffff;
  --brand-soft:       #f8fafc;
  --brand-ink:        #0f172a;

  /* ── Typography ─────────────────────────────────────────────────────────── */
  --font-display: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* ── Spacing ─────────────────────────────────────────────────────────────── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ── Shadows ─────────────────────────────────────────────────────────────── */
  --shadow-card:  0 4px 24px rgba(15,23,42,0.08);
  --shadow-hover: 0 12px 40px rgba(13,148,136,0.18);

  /* ── Motion ──────────────────────────────────────────────────────────────── */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;
}

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

body {
  font-family: var(--font-body);
  background: var(--brand-soft);
  color: var(--brand-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

/* ── Brand keyframes (available to all pages) ────────────────────────────── */
@keyframes gaiaFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gaiaLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

@keyframes gaiaCtaRing {
  0%   { box-shadow: 0 0 0 0 rgba(13,148,136,0.35); }
  70%  { box-shadow: 0 0 0 10px rgba(13,148,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
}

/* ── Site Navigation (injected by /nav.js) ───────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 60px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brand-border);
  gap: 16px;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--brand-muted);
}

.site-nav__links a {
  text-decoration: none;
  color: var(--brand-muted);
  transition: color var(--duration-fast) ease;
  white-space: nowrap;
}

.site-nav__links a:hover { color: var(--brand-ink); }

.site-nav__links a.active {
  color: var(--brand-teal);
  font-weight: 600;
}

.site-nav__cta {
  background: var(--brand-teal) !important;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--duration-fast) ease;
}

.site-nav__cta:hover {
  opacity: 0.88;
  color: #fff !important;
}

@media (max-width: 768px) {
  .site-nav { padding: 0 16px; }
  .site-nav__links { gap: 12px; font-size: 12px; }
  .site-nav__cta { padding: 6px 14px; }
}

@media (max-width: 520px) {
  /* Hide lower-priority links on small screens, keep core ones */
  .site-nav__links a[href="/pilot-offer.html"] { display: none; }
  .site-nav__links a[href="/msi"] { display: none; }
}
