/* ══════════════════════════════════════════════
   Prompt-Ed Design System — base.css
   v2.1 palette reset (April 15 2026):
   Primary teal + marigold pop, all pulled from the
   hero wildflower art. Reverses the April 14 v2
   rollout which replaced teal with royal indigo —
   that broke harmony with the hero graphic. The
   teal here is retuned (deeper than the old teal)
   to match the hero background specifically.
   ══════════════════════════════════════════════ */

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

:root {
  /* ── PREMIUM COLOR SYSTEM ── */

  /* Dark palette — tinted to match hero art's deep teal */
  --dark:          #0a1619;
  --dark-surface:  #0f1f22;
  --gray-900:      #152a2d;

  /* Neutral grays */
  --gray-600:      #6b7280;
  --gray-400:      #9ca3af;
  --gray-200:      #e5e7eb;
  --gray-50:       #f9fafb;

  /* Surfaces */
  --bg:            #f4f4f8;
  --surface:       #ffffff;
  --surface2:      #f3f4f6;
  --border:        rgba(0,0,0,0.08);

  /* Primary: teal — CTAs, links, light-context accent
     Pulled from the hero art background. Used everywhere on light surfaces. */
  --primary:       #0d9488;
  --primary-light: #14b8a6;
  --primary-hover: #0f766e;
  --primary-faint: rgba(13,148,136,0.08);

  /* Accent: deep teal — third-weight variant for framework cards + depth accents */
  --accent:        #134e4a;
  --accent-light:  #0d9488;
  --accent-hover:  #0f3a37;
  --accent-faint:  rgba(19,78,74,0.08);

  /* Pop: marigold — pulled from the central flower in the hero art.
     Used for DARK-context eyebrows/CTAs and the rare card-free stripe pop.
     Retired copper gold #c9952e on Apr 15 2026 — it was tuned to circuit
     traces but read dingy on white card surfaces. The first marigold pick
     (#d97706, Apr 15 afternoon) read muddy-brown on sRGB-only monitors
     like Dell; bumped to #f59e0b (amber-500) Apr 15 evening for better
     cross-display punch. Same hue family, 10% brighter lightness. */
  --pop:           #f59e0b;
  --pop-faint:     rgba(245,158,11,0.12);

  /* Legacy aliases — all repointed to the new palette so unmigrated pages
     inherit teal + marigold automatically. */
  --teal:      #0d9488;                   /* → primary */
  --teal-lt:   #14b8a6;                   /* → primary-light */
  --teal-hover: #0f766e;                  /* → primary-hover */
  --teal-faint: rgba(13,148,136,0.08);    /* → primary-faint */
  --amber:     #f59e0b;                   /* → pop (marigold, amber-500) */
  --purple:    #0d9488;                   /* → primary */
  --blue:      #0d9488;                   /* → primary */
  --white:     #0f172a;                   /* dark text (misleading name, kept) */
  --muted:     #4b5563;                   /* → text-muted */
  --faint:     #6b7280;                   /* → text-faint */

  /* Text */
  --text:          #0f172a;
  --text-muted:    #4b5563;
  --text-faint:    #6b7280;
  --text-on-dark:  #f1f5f9;
  --muted-on-dark: rgba(241,245,249,0.65);

  /* Dark section accents */
  --dark-bg:       #0a0a0f;
  --dark-mid:      #141420;
  --dark-light:    #1a1a2e;
  --dark-accent:   #4c1d95;
  --accent-on-dark: #c4b5fd;

  /* Typography */
  --serif:  'Libre Baskerville', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }


/* ══════════════════════════════════════════════
   GRAIN TEXTURE OVERLAY
   Subtle noise — still current in 2026, signals
   craftsmanship over flat AI-generated perfection
   ══════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}


/* ══════════════════════════════════════════════
   ACCESSIBILITY
   Focus states + reduced motion
   ══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ══════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249,250,251,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 14px; border-radius: 8px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}


/* ══════════════════════════════════════════════
   LAYOUT — Premium spacing (100px between sections)
   ══════════════════════════════════════════════ */
.section { padding: 100px 24px; }
.section-sm { padding: 64px 24px; }
.container { max-width: 960px; margin: 0 auto; }
.container-narrow { max-width: 680px; margin: 0 auto; }
.container-wide { max-width: 1060px; margin: 0 auto; }
.container-reading { max-width: 800px; margin: 0 auto; }


/* ══════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════ */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 14px;
}
.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 24px;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 20px 0;
}
.body-text { font-size: 16px; color: var(--text-muted); line-height: 1.8; }
.body-text p + p { margin-top: 16px; }
.body-text strong { color: var(--text); font-weight: 600; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 18px;
}


/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 9px;
  transition: background 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(79,91,216,0.25);
}

/* Legacy alias */
.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 9px;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-teal:hover { background: var(--primary-hover); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9px;
  border: 1px solid var(--gray-200);
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--gray-400); background: rgba(0,0,0,0.02); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }


/* ══════════════════════════════════════════════
   DARK SECTION — near-black, not gradient
   ══════════════════════════════════════════════ */
.section-dark {
  background: var(--dark);
  color: var(--text-on-dark);
}
.section-dark .section-label { color: var(--pop); }
.section-dark .section-h2 { color: var(--text-on-dark); }
.section-dark .section-lead { color: var(--muted-on-dark); }
.section-dark .eyebrow { color: var(--pop); }
/* Hero/dark-context CTA buttons use marigold pop instead of teal primary —
   this is the Scenario 3 "hybrid" rule: cool on light, warm on dark. */
.section-dark .btn-primary,
.section-dark .btn-teal {
  background: var(--pop);
}
.section-dark .btn-primary:hover,
.section-dark .btn-teal:hover {
  background: #d97706; /* darker marigold — the old default, now the hover state */
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}


/* ══════════════════════════════════════════════
   FULL-WIDTH PULL QUOTE
   ══════════════════════════════════════════════ */
.pull-quote {
  background: var(--dark);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 5%;
  font-family: var(--serif);
  font-size: clamp(120px, 20vw, 240px);
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}
.pull-quote-inner {
  max-width: 800px;
  margin: 0 auto;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(18px, 2.8vw, 26px);
  font-style: italic;
  color: var(--text-on-dark);
  line-height: 1.6;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}
.pull-quote .attribution {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(241,245,249,0.4);
  margin-top: 16px;
}
.pull-quote .pull-quote-body {
  font-size: 16px;
  color: var(--muted-on-dark);
  line-height: 1.75;
  margin: 24px 0;
  max-width: 620px;
}
.pull-quote .pull-quote-accent {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--pop);
  font-style: italic;
  line-height: 1.65;
}


/* ══════════════════════════════════════════════
   NETWORK SVG GRAPHIC
   Constellation/neural-network for hero
   ══════════════════════════════════════════════ */
.network-graphic {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.network-graphic svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  .network-graphic {
    width: 100%;
    opacity: 0.25;
  }
}

/* Subtle pulse animation on network nodes */
@keyframes node-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.network-node-glow {
  animation: node-pulse 4s ease-in-out infinite;
}
.network-node-glow:nth-child(2) { animation-delay: 1.2s; }
.network-node-glow:nth-child(3) { animation-delay: 2.4s; }
.network-node-glow:nth-child(4) { animation-delay: 0.8s; }


/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 2px solid var(--primary);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.footer-logo span { color: var(--primary); }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ══════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════ */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
