/* ── TOKENS ─────────────────────────────────────── */
:root {
  --navy:        #1A2B52;
  --navy-dark:   #111C38;
  --gold:        #C4933F;
  --cream:       #F7F8FA;
  --ink:         #1C1C1E;
  --surface:     #EDF0F7;
  --muted:       #5A6478;
  --alert-bg:    #FFF8F0;
  --alert-border:#C0392B;
  --alert-text:  #6B1818;
  --white:       #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --max-w: 1100px;
  --px: 1.25rem;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── UTILITY ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SKIP LINK ──────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -9999px; left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--r-sm);
  z-index: 9999;
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── LAYOUT ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 0.75rem 1.625rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ── NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247,248,250,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,43,82,0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }
.nav-links { display: none; align-items: center; gap: 0.15rem; }
.nav-links a {
  display: flex; align-items: center;
  min-height: 44px; padding: 0.5rem 0.75rem;
  font-size: 0.9375rem; color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--navy); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-links .btn { margin-left: 0.5rem; padding: 0.55rem 1.25rem; font-size: 0.9375rem; }

.hamburger {
  display: flex; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none;
  border-radius: var(--r-sm);
}
.hamburger:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { background: var(--cream); border-top: 1px solid rgba(26,43,82,0.08); overflow: hidden; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex; align-items: center;
  min-height: 48px; padding: 0.75rem var(--px);
  color: var(--ink); font-size: 1rem;
  border-bottom: 1px solid rgba(26,43,82,0.06);
  transition: background 0.15s;
}
.mobile-menu a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.mobile-menu a:hover { background: var(--surface); }
.mobile-menu a:focus-visible { outline: 3px solid var(--gold); outline-offset: -2px; }
.mobile-menu .btn-primary { margin: 0.75rem var(--px) 1rem; justify-content: center; border-bottom: none; }

/* ── HERO ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .hero-content { animation: none !important; } }

.hero { padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-content { animation: fadeUp 0.55s ease-out both; }
.hero-ruled { border-left: 3px solid var(--gold); padding-left: 1.875rem; }
.hero-annotation {
  display: block;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.0625rem; color: var(--gold);
  letter-spacing: 0.06em; margin-bottom: 0.875rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  font-weight: 600; color: var(--navy);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 1.375rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  color: var(--muted); max-width: 54ch;
  line-height: 1.7; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem; }
.hero-signal {
  font-size: 0.875rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.45em;
}
.hero-signal::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%; background: #27AE60; flex-shrink: 0;
}

/* ── ALERT BANNER ────────────────────────────────── */
.alert-banner {
  padding: 1rem 0; background: var(--alert-bg);
  border-top: 3px solid var(--alert-border);
  border-bottom: 1px solid rgba(192,57,43,0.14);
}
.alert-inner { display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-icon { font-size: 1.125rem; line-height: 1.65; color: var(--alert-border); flex-shrink: 0; }
.alert-text { font-size: 0.9375rem; color: var(--alert-text); line-height: 1.55; }
.alert-text strong { font-weight: 600; }

/* ── SECTION SCAFFOLDING ─────────────────────────── */
.section-eyebrow {
  display: block; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.625rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  font-weight: 600; color: var(--navy);
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 0.625rem;
}
.section-lead {
  font-size: 1.0625rem; color: var(--muted);
  max-width: 52ch; line-height: 1.7; margin-bottom: 3rem;
}

/* ── FEATURES (index only) ───────────────────────── */
.features { padding: 5.5rem 0; background: var(--white); }
.feature-grid {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid rgba(26,43,82,0.12);
  border-radius: var(--r-md); overflow: hidden;
}
.feature-item {
  padding: 1.625rem 1.5rem;
  border-bottom: 1px solid rgba(26,43,82,0.08);
  transition: background 0.15s;
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover { background: var(--cream); }
.feature-name { display: block; font-weight: 600; font-size: 1rem; color: var(--navy); margin-bottom: 0.3rem; }
.feature-desc { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

/* ── WHY NOW (index only) ────────────────────────── */
.why-now { padding: 5.5rem 0; background: var(--navy); }
.why-now .section-title { color: var(--white); }
.why-now .section-lead  { color: rgba(255,255,255,0.6); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.why-item { border-left: 3px solid var(--gold); padding-left: 1.625rem; }
.why-stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 600; color: var(--white);
  line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.why-label { font-weight: 600; color: var(--white); font-size: 1.0625rem; margin-bottom: 0.4rem; }
.why-desc { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── ROLES (index only) ──────────────────────────── */
.roles { padding: 5.5rem 0; background: var(--cream); }
.roles-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.role-card {
  background: var(--white); border: 1px solid rgba(26,43,82,0.1);
  border-radius: var(--r-md); padding: 1.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.role-card:hover { border-color: rgba(26,43,82,0.3); box-shadow: 0 4px 20px rgba(26,43,82,0.09); }
.role-icon {
  width: 48px; height: 48px; background: var(--surface);
  border-radius: var(--r-sm); display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.125rem;
}
.role-title { font-weight: 600; font-size: 1.125rem; color: var(--navy); margin-bottom: 0.5rem; }
.role-desc { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.375rem; }
.role-link {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-size: 0.9375rem; font-weight: 600; color: var(--navy);
  border-bottom: 1.5px solid var(--gold); padding-bottom: 1px;
  transition: color 0.15s;
}
.role-link:hover { color: var(--gold); }
.role-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ── DEMO CTA (index only) ───────────────────────── */
.demo-cta { padding: 5.5rem 0; background: var(--white); }
.demo-card {
  background: var(--navy); border-radius: var(--r-lg); padding: 3.5rem 2rem; text-align: center;
}
.demo-card .section-eyebrow { display: block; margin-bottom: 0.875rem; }
.demo-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  font-weight: 600; color: var(--white);
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 0.75rem;
}
.demo-card p { color: rgba(255,255,255,0.65); font-size: 1.0625rem; line-height: 1.65; max-width: 42ch; margin: 0 auto 2.25rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; justify-content: center; }

/* ── SCENARIOS (subpages) ────────────────────────── */
.scenarios { padding: 4.5rem 0; background: var(--cream); }
.scenarios-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.scenario-card {
  background: var(--white);
  border: 1px solid rgba(26,43,82,0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.375rem 1.5rem;
  transition: box-shadow 0.18s;
}
.scenario-card:hover { box-shadow: 0 4px 16px rgba(26,43,82,0.08); }
.scenario-q { font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: 0.35rem; }
.scenario-ref { font-size: 0.8125rem; color: var(--gold); font-weight: 500; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.scenario-hint { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

/* ── CHAT STUB (subpages) ────────────────────────── */
.chat-section { padding: 4.5rem 0 5.5rem; background: var(--white); }
.chat-card {
  background: var(--white);
  border: 1px solid rgba(26,43,82,0.12);
  border-radius: var(--r-lg); overflow: hidden;
  max-width: 680px; margin: 0 auto;
  box-shadow: 0 4px 32px rgba(26,43,82,0.07);
}
.chat-head {
  background: var(--navy); padding: 0.875rem 1.375rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.chat-head-dot { width: 8px; height: 8px; background: #27AE60; border-radius: 50%; flex-shrink: 0; }
.chat-head-title { font-weight: 600; color: var(--white); font-size: 0.9375rem; }
.chat-messages {
  min-height: 260px; max-height: 360px; overflow-y: auto;
  padding: 1.375rem; display: flex; flex-direction: column;
  gap: 0.875rem; background: var(--cream);
}
.msg {
  max-width: 88%; padding: 0.8rem 1.0625rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem; line-height: 1.6;
}
.msg-assistant {
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(26,43,82,0.08);
  align-self: flex-start; border-bottom-left-radius: 2px;
}
.msg-user {
  background: var(--navy); color: var(--white);
  align-self: flex-end; border-bottom-right-radius: 2px;
}
.msg-typing { display: flex; gap: 5px; align-items: center; padding: 0.875rem 1.0625rem; }
@keyframes msgBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.msg-typing span {
  display: block; width: 7px; height: 7px;
  background: var(--muted); border-radius: 50%;
  animation: msgBounce 1.1s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.18s; }
.msg-typing span:nth-child(3) { animation-delay: 0.36s; }

.chat-examples {
  padding: 0.75rem 1.375rem 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  background: var(--cream);
}
.chat-example-btn {
  font-size: 0.8125rem; color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(26,43,82,0.14);
  border-radius: 100px; padding: 0.3rem 0.875rem;
  cursor: pointer; font-family: var(--font-body);
  min-height: 32px; display: inline-flex; align-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chat-example-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chat-example-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.chat-input-row {
  padding: 0.875rem 1.375rem 0;
  background: var(--cream);
  border-top: 1px solid rgba(26,43,82,0.08);
  display: flex; gap: 0.625rem; align-items: flex-end;
}
.chat-textarea {
  flex: 1; padding: 0.65rem 0.9375rem;
  border: 1px solid rgba(26,43,82,0.18);
  border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 0.9375rem;
  line-height: 1.5; resize: none;
  min-height: 44px; color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s; overflow: hidden;
}
.chat-textarea:focus { outline: none; border-color: var(--navy); }
.chat-textarea::placeholder { color: var(--muted); }
.chat-footer-note {
  padding: 0.75rem 1.375rem 1.25rem;
  font-size: 0.8125rem; color: var(--muted);
  text-align: center; background: var(--cream);
}
.chat-footer-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.chat-footer-note a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--navy-dark); padding: 2.75rem 0 2rem; }
.footer-top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; color: var(--white); display: block; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.45); margin-top: 0.25rem; }
.footer-nav-links { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.footer-nav-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); padding: 0.25rem 0.5rem; border-radius: var(--r-sm); transition: color 0.15s; }
.footer-nav-links a:hover { color: var(--white); }
.footer-nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.09); margin-bottom: 1.5rem; }
.footer-legal { font-size: 0.8125rem; color: rgba(255,255,255,0.38); line-height: 1.65; max-width: 68ch; margin-bottom: 1.25rem; }
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }

/* ── PILOT NOTICE ────────────────────────────────── */
.pilot-notice {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  background: var(--surface);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 0.9375rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}
.pilot-notice strong { color: var(--ink); font-weight: 600; }
.pilot-notice a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.pilot-notice a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ── LEGAL / PROSE PAGE ──────────────────────────── */
.legal-page { padding: 4.5rem 0 6rem; background: var(--white); }
.prose { max-width: 680px; }
.prose-date { font-size: 0.875rem; color: var(--muted); margin-bottom: 2.25rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 600;
  color: var(--navy); letter-spacing: -0.01em;
  margin: 2.75rem 0 0.625rem;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { font-size: 0.9375rem; color: var(--ink); line-height: 1.75; margin-bottom: 0.875rem; }
.prose ul { margin: 0.375rem 0 1rem 1.375rem; list-style: disc; }
.prose ul li { font-size: 0.9375rem; color: var(--ink); line-height: 1.7; margin-bottom: 0.3rem; }
.prose strong { font-weight: 600; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.prose a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.prose .notice-box {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── RESPONSIVE: 640px ───────────────────────────── */
@media (min-width: 640px) {
  :root { --px: 2rem; }
  .hamburger { display: none; }
  .nav-links { display: flex; }
  .hero { padding: 6rem 0 6.5rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: 1px solid rgba(26,43,82,0.08); border-bottom: 1px solid rgba(26,43,82,0.08); }
  .feature-item:nth-child(2n)        { border-right: none; }
  .feature-item:nth-last-child(-n+2) { border-bottom: none; }
  .why-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0; }
  .why-item { padding: 0 2rem; border-left: 1px solid rgba(255,255,255,0.12); }
  .why-item:first-child { border-left: none; padding-left: 0; }
  .why-item:last-child  { padding-right: 0; }
  .roles-grid { grid-template-columns: 1fr 1fr 1fr; }
  .demo-card { padding: 4.5rem 3.5rem; }
  .scenarios-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ── RESPONSIVE: 1024px ──────────────────────────── */
@media (min-width: 1024px) {
  :root { --px: 3rem; }
  .hero { padding: 8rem 0 8rem; }
  .hero-content { max-width: 740px; }
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .feature-item                       { border-right: 1px solid rgba(26,43,82,0.08); border-bottom: 1px solid rgba(26,43,82,0.08); }
  .feature-item:nth-child(2n)         { border-right: 1px solid rgba(26,43,82,0.08); }
  .feature-item:nth-child(3n)         { border-right: none; }
  .feature-item:nth-last-child(-n+2)  { border-bottom: 1px solid rgba(26,43,82,0.08); }
  .feature-item:nth-last-child(-n+3)  { border-bottom: none; }
}
