:root {
  --teal: #1D9E75; --teal-light: #E1F5EE; --teal-dark: #085041;
  --navy: #1A3A5C; --navy-light: #EBF1F8;
  --amber: #BA7517; --amber-light: #FAEEDA;
  --orange: #E85D24; --orange-light: #FEF0E8;
  --purple: #534AB7; --purple-light: #EEEDFE;
  --coral: #993C1D; --coral-light: #FAECE7;
  --gray-50: #F8F7F4; --gray-100: #F1EFE8; --gray-200: #D3D1C7;
  --gray-500: #888780; --gray-700: #444441; --gray-900: #1A1A18;
  --white: #FFFFFF;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--gray-50); color: var(--gray-900); line-height: 1.6; }

/* Layout */
.app { min-height: 100vh; }
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-200); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark { width: 32px; height: 32px; background: var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-logo-mark svg { width: 18px; height: 18px; fill: white; }
.nav-brand { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.nav-brand span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 13px; color: var(--gray-500); text-decoration: none; cursor: pointer; transition: color .15s; }
.nav-link:hover, .nav-link.active { color: var(--teal); }
.nav-badge { font-size: 10px; background: var(--orange-light); color: var(--orange); padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.main { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* Hero */
.hero { padding: 5rem 0 4rem; text-align: center; }
.hero-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--teal); text-transform: uppercase; margin-bottom: 1rem; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 1.25rem; }
.hero-title em { font-style: italic; color: var(--teal); }
.hero-subtitle { font-size: 1.05rem; color: var(--gray-500); max-width: 640px; margin: 0 auto 1rem; line-height: 1.7; }
.hero-quote { font-family: var(--font-serif); font-size: 14px; font-style: italic; color: var(--gray-500); max-width: 480px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all .15s; text-decoration: none; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--gray-200); }
.btn-outline:hover { background: var(--gray-100); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--coral); }

/* Confidential banner */
.conf-banner { background: var(--amber-light); border: 1px solid var(--amber); border-radius: var(--radius-md); padding: .75rem 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 2rem; font-size: 13px; color: #412402; }
.conf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* Section */
.section { margin-bottom: 4rem; }
.section-header { margin-bottom: 2rem; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--teal); text-transform: uppercase; margin-bottom: .4rem; }
.section-title { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.section-desc { font-size: 14px; color: var(--gray-500); max-width: 600px; line-height: 1.7; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-accent { border-top: 3px solid var(--teal); }
.card-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 1rem; }
.card-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.card-desc { font-size: 13px; color: var(--gray-500); line-height: 1.65; }
.card-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500; margin-bottom: 8px; }

/* Framework tabs */
.fw-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.fw-tab { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-500); transition: all .15s; }
.fw-tab.active { color: white; border-color: transparent; }
.fw-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.fw-panel-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); }
.fw-panel-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.fw-panel-origin { font-size: 11px; color: var(--gray-500); margin-bottom: 8px; }
.fw-panel-desc { font-size: 13px; color: var(--gray-700); line-height: 1.65; }
.fw-panel-body { padding: 1.25rem 1.5rem; }
.fw-inner-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--gray-100); margin: 0 -1.5rem 1rem; padding: 0 1.5rem; }
.fw-inner-tab { font-size: 12px; padding: 8px 14px; cursor: pointer; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; }
.fw-inner-tab.active { color: var(--navy); font-weight: 500; }
.info-box { background: var(--gray-50); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 10px; font-size: 12px; color: var(--gray-700); line-height: 1.65; }
.info-box-title { font-size: 11px; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.ex-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; }
.ex-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.ex-body { font-size: 12px; color: var(--gray-700); line-height: 1.65; margin-bottom: 8px; }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: var(--gray-100); color: var(--gray-700); }
.ai-note { background: var(--amber-light); border-radius: var(--radius-md); padding: 8px 12px; font-size: 11px; color: #412402; line-height: 1.6; }

/* Workflow explorer */
.wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 1.25rem; }
.wf-btn { padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; background: var(--white); text-align: left; font-size: 12px; line-height: 1.4; transition: all .15s; }
.wf-btn:hover { background: var(--gray-50); }
.wf-btn.active { border-width: 2px; }
.wf-wing-tag { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 8px; margin-bottom: 4px; font-weight: 500; }
.wf-name { font-size: 12px; font-weight: 500; color: var(--navy); display: block; margin-bottom: 3px; }
.wf-ai-tag { font-size: 10px; padding: 1px 7px; border-radius: 8px; display: inline-block; font-weight: 500; }
.wf-detail { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.mini-card { background: var(--gray-50); border-radius: var(--radius-md); padding: 10px 12px; }
.mini-title { font-size: 10px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.mini-list { font-size: 11px; color: var(--gray-900); line-height: 1.7; padding-left: 14px; }
.risk-item { font-size: 11px; color: #C62828; padding: 4px 0; border-bottom: 1px solid var(--gray-100); }
.risk-item:last-child { border: none; }
.serve-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.serve-cell { border-radius: var(--radius-md); padding: 8px 4px; text-align: center; }
.serve-letter { font-size: 18px; font-weight: 600; display: block; }
.serve-sub { font-size: 9px; display: block; margin-top: 1px; font-weight: 500; }
.serve-score { font-size: 11px; font-weight: 500; display: block; }

/* Journey */
.journey { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.journey-step { flex: 1; min-width: 160px; padding: 1.25rem; position: relative; }
.journey-step:not(:last-child)::after { content: '→'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--gray-200); z-index: 1; }
.journey-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.journey-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.journey-desc { font-size: 11px; color: var(--gray-500); line-height: 1.6; }

/* SERVE */
.serve-big { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.serve-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; }
.serve-letter-big { font-size: 2.5rem; font-weight: 600; display: block; margin-bottom: .25rem; }
.serve-name { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.serve-desc { font-size: 11px; color: var(--gray-500); line-height: 1.6; }

/* Demo org switcher */
.org-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.org-tab { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; background: var(--white); transition: all .15s; }
.org-tab:hover { border-color: var(--teal); }
.org-tab.active { border-color: var(--teal); background: var(--teal-light); }
.org-emoji { font-size: 18px; }
.org-name { font-size: 13px; font-weight: 500; color: var(--navy); }
.org-type { font-size: 10px; color: var(--gray-500); }

/* AI Advisor */
.advisor-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.advisor-header { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); padding: 1.25rem 1.5rem; }
.advisor-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: white; margin-bottom: .25rem; }
.advisor-sub { font-size: 12px; color: rgba(255,255,255,.7); }
.advisor-body { padding: 1.25rem 1.5rem; }
.advisor-starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 1rem; }
.starter-btn { padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; background: var(--gray-50); font-size: 12px; color: var(--gray-700); text-align: left; line-height: 1.4; transition: all .15s; }
.starter-btn:hover { border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input { flex: 1; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); font-size: 13px; font-family: var(--font-body); outline: none; }
.chat-input:focus { border-color: var(--teal); }
.chat-messages { max-height: 400px; overflow-y: auto; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; line-height: 1.65; }
.msg-user { background: var(--teal); color: white; align-self: flex-end; max-width: 80%; }
.msg-ai { background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-900); align-self: flex-start; max-width: 90%; }
.msg-thinking { color: var(--gray-500); font-style: italic; }

/* Heatmap */
.hm-container { overflow-x: auto; }
.hm-table { border-collapse: separate; border-spacing: 3px; }
.hm-th { font-size: 11px; font-weight: 500; color: var(--gray-500); padding: 4px 8px; text-align: center; min-width: 70px; }
.hm-row-label { font-size: 11px; color: var(--gray-700); padding: 4px 12px 4px 0; white-space: nowrap; }
.hm-cell { width: 70px; height: 32px; border-radius: var(--radius-sm); text-align: center; font-size: 11px; font-weight: 600; vertical-align: middle; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 2.5rem 0; margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 1rem; }
.footer-brand { font-family: var(--font-serif); font-size: 15px; color: white; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: none; }
.footer-note { font-size: 11px; }

/* Responsive */
@media (max-width: 768px) {
  .serve-big { grid-template-columns: repeat(3, 1fr); }
  .row-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .journey { flex-direction: column; }
  .journey-step::after { display: none; }
}

/* Utility */
.tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 10px; font-weight: 500; }
.divider { height: 1px; background: var(--gray-200); margin: 2rem 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--gray-500); }
.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 600; }
