@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Serif+Display&display=swap');

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

:root {
  --navy: #1B4F72;
  --navy-light: #2471A3;
  --navy-pale: #D6E4F0;
  --navy-faint: #EBF5FB;
  --teal: #0E8A7A;
  --teal-pale: #E0F2EF;
  --amber: #B7770D;
  --amber-pale: #FEF5E4;
  --text-primary: #1A1A2E;
  --text-secondary: #5A6478;
  --text-muted: #9AA3B0;
  --border: rgba(26,26,46,0.1);
  --border-light: rgba(26,26,46,0.06);
  --bg: #F8F9FB;
  --white: #FFFFFF;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06), 0 1px 2px rgba(26,26,46,0.04);
  --shadow: 0 4px 16px rgba(26,26,46,0.08), 0 1px 4px rgba(26,26,46,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 20px; height: 20px; }

.logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.1;
}

.logo-tagline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--navy-faint); color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 500; }

.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--navy-light); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy-faint); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 40px 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--navy-pale) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-faint);
  border: 1px solid var(--navy-pale);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 46px;
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 600px;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--navy);
}

.hero-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Feature strip ───────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.feature-card {
  padding: 36px 32px;
  background: var(--white);
  border-right: 1px solid var(--border-light);
}

.feature-card:last-child { border-right: none; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-navy { background: var(--navy-faint); }
.icon-teal { background: var(--teal-pale); }
.icon-amber { background: var(--amber-pale); }

.feature-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Content sections ────────────────────────────────────── */
.section {
  padding: 72px 40px;
}

.section-alt { background: var(--white); }

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 14px;
  max-width: 420px;
}

.section-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Preview cards ───────────────────────────────────────── */
.preview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.preview-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.preview-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

.preview-body { padding: 20px; }

/* Dashboard preview */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.dash-map {
  background: linear-gradient(135deg, #D6E8F5 0%, #C2D9ED 100%);
  border-radius: var(--radius);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--navy-pale);
  flex-direction: column;
  gap: 6px;
}

.dash-chart-area {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 12px;
  height: 130px;
}

.chart-title { font-size: 10px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 82px; }

.mini-bar-group { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }

.mini-bar-stack {
  width: 100%;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mini-bar-seg { width: 100%; }
.mini-bar-label { font-size: 9px; color: var(--text-muted); }

/* Chat preview */
.chat-messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }

.chat-msg-row { display: flex; flex-direction: column; }
.chat-msg-row.user { align-items: flex-end; }

.chat-sender { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }

.chat-bubble {
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 88%;
}

.bubble-user { background: var(--navy); color: #fff; border-radius: 10px 10px 2px 10px; }
.bubble-ai { background: var(--bg); border: 1px solid var(--border-light); color: var(--text-primary); border-radius: 10px 10px 10px 2px; }

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-field {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
}

.chat-input-field:focus { border-color: var(--navy); }

.chat-send-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 52px 40px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Dashboard embed page ────────────────────────────────── */
.dashboard-container { padding: 40px; }

.dashboard-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.dash-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.dash-tab:hover { border-color: var(--navy); color: var(--navy); }
.dash-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.embed-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.embed-placeholder {
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  color: var(--text-muted);
}

.embed-placeholder svg { opacity: 0.3; }
.embed-placeholder p { font-size: 14px; }

.embed-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ── Needs Assessment page ───────────────────────────────── */
.assessment-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px - 140px);
}

.assessment-sidebar {
  padding: 36px 32px;
  background: var(--white);
  border-right: 1px solid var(--border-light);
}

.assessment-sidebar h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.form-field { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--navy); background: var(--white); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.form-divider {
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
  margin: 14px 0;
  position: relative;
}

.form-divider::before, .form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-light);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.assessment-chat {
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  background: var(--bg);
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  min-height: 400px;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 60px 0;
}

.chat-empty svg { opacity: 0.2; }
.chat-empty p { font-size: 14px; max-width: 300px; line-height: 1.6; }

.full-chat-bubble {
  font-size: 14px;
  line-height: 1.75;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 80%;
}

.full-bubble-user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
}

.full-bubble-ai {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-primary);
  align-self: flex-start;
  border-radius: 12px 12px 12px 2px;
  box-shadow: var(--shadow-sm);
}

.full-chat-input {
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  transition: border-color 0.15s;
}

.full-chat-input:focus-within { border-color: var(--navy); }

.full-chat-input input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  outline: none;
}

.full-chat-send {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.full-chat-send:hover { background: var(--navy-light); }
.full-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  background: var(--white);
}

.footer p { font-size: 12px; color: var(--text-muted); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }

/* ── Utilities ───────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 32px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 48px 20px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .assessment-layout { grid-template-columns: 1fr; }
  .dashboard-container { padding: 20px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}
