@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e5e7eb;
  --text: #1a1a1a;
  --muted: #667085;
  --accent: #1e88ff;
  --accent-strong: #0073e6;
  --accent-soft: #eef6ff;
  --shadow: 0 8px 24px rgba(2, 32, 71, 0.08);
  --radius: 16px;
  --container: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(30, 136, 255, 0.08);
  font-family: "Cascadia Mono", Consolas, monospace;
}
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}
.header-inner, .section-inner, .footer-inner { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--accent);
  font-weight: 800; font-size: 1.06rem; line-height: 1.02; letter-spacing: 0.01em;
  text-align: left;
}
.brand span { display: block; max-width: none; }
.nav-toggle {
  display: none; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 12px; padding: 10px 14px; font: inherit;
}
.site-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-nav a {
  padding: 9px 13px; border-radius: 12px; color: var(--muted); font-size: 0.92rem;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--surface-alt); color: var(--text); }
main { flex: 1; }
.section { padding: 48px 0; }
.hero { padding: 40px 0 12px; }
.hero-grid, .two-column, .split-panel {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start;
}
.course-setup-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
}
.info-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.hero-copy h1, .page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 16px; font-weight: 800;
}
.hero-copy p, .page-hero p { margin: 0; font-size: clamp(1rem, 2.6vw, 1.18rem); color: var(--muted); max-width: 65ch; }
.cta-row, .card-actions, .page-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 14px 18px; font-weight: 700;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow);
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
}
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.surface-card, .info-card, .module-block, .demo-player, .hero-panel, .page-hero, .viewer-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-panel, .page-hero { padding: 20px; }
.hero-stat-list, .quick-list, .bullet-list { list-style: none; padding: 0; margin: 0; }
.hero-stat-list li, .quick-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.hero-stat-list li:last-child, .quick-list li:last-child { border-bottom: 0; }
.quick-list li { flex-direction: column; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem;
  color: var(--muted); font-weight: 700; margin-bottom: 10px;
}
h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 1.06rem; margin: 0 0 10px; letter-spacing: -0.01em; }
h4 { margin: 0 0 10px; font-size: 1rem; }
.section-intro { color: var(--muted); max-width: 70ch; margin-bottom: 20px; font-size: 0.98rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { padding: 20px; }
.info-card p { color: var(--muted); margin: 0; }
.info-card.featured { background: linear-gradient(180deg, #f8fbff, #ffffff); }
.compact-card p { font-size: 0.98rem; }
.bullet-list { margin-top: 16px; }
.bullet-list li {
  position: relative; padding-left: 18px; margin-bottom: 10px; color: var(--muted);
}
.bullet-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.demo-player { padding: 20px; }
.demo-topbar, .module-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.pill-button {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 9px 13px; border-radius: 12px; font: inherit; cursor: pointer;
  box-shadow: var(--shadow);
}
.pill-button.is-selected, .pill-button:hover {
  border-color: #cfe3ff; background: var(--accent-soft); color: var(--text);
}
.chat-frame {
  margin-top: 18px; background: #fbfdff; border: 1px solid var(--border); border-radius: 18px;
  min-height: 340px; max-height: 560px; overflow: auto; padding: 16px;
}
.compact .chat-frame { min-height: 260px; max-height: 420px; }
.message { display: flex; margin-bottom: 14px; }
.message.agent { justify-content: flex-end; }
.message.coach { justify-content: center; }
.message-bubble {
  max-width: min(82%, 650px); border-radius: 16px; padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--border); white-space: pre-wrap;
}
.message.agent .message-bubble { background: #eef6ff; border-color: #cfe3ff; }
.message.coach .message-bubble { background: #f8fafc; border-color: var(--border); }
.message-label { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; text-align: center; }
.evaluation-card {
  margin-top: 18px; padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px;
}
.evaluation-topline { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); margin-bottom: 18px; }
.score-grid, .score-total { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.score-grid > div, .score-total > div { padding: 14px; border-radius: 14px; background: var(--surface-alt); }
.score-grid span, .score-total span { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.score-grid strong, .score-total strong { font-size: 1.1rem; }
.score-total { margin-top: 12px; }
.evaluation-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.evaluation-columns ul, .evaluation-metrics ul { margin: 0; padding-left: 18px; color: var(--muted); }
.evaluation-metrics { margin-top: 18px; }
.compact .evaluation-columns, .compact .evaluation-metrics { display: none; }
.module-block { padding: 20px; margin-top: 22px; }
.module-header p, .module-outcome { color: var(--muted); margin: 0; }
.module-outcome { margin: 8px 0 18px; }
.viewer-card { padding: 20px; margin-top: 22px; }
.transcript-shell {
  background: #fbfdff; border: 1px solid var(--border); border-radius: 18px;
  padding: 16px; max-height: 520px; overflow: auto;
}
.transcript-shell pre {
  margin: 0; font-family: "Cascadia Mono", Consolas, monospace; font-size: 0.92rem;
  line-height: 1.55; white-space: pre-wrap; color: var(--text);
}
.cta-band {
  padding: 22px; border-radius: var(--radius);
  background: #fbfdff;
  border: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 42px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--muted);
}
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--text); }
.note { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 980px) {
  .hero-grid, .two-column, .split-panel, .evaluation-columns, .card-grid, .card-grid.three-col { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 100% 16px auto 16px; background: rgba(255,255,255,0.98);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    border-radius: 18px; padding: 14px; display: none; flex-direction: column; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }
}

@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .hero { padding-top: 40px; }
  .header-inner, .section-inner, .footer-inner { width: min(var(--container), calc(100% - 20px)); }
  .brand { font-size: 0.98rem; }
  .demo-player, .module-block, .info-card, .page-hero, .viewer-card { padding: 16px; }
  .score-grid, .score-total { grid-template-columns: 1fr; }
  .chat-frame { padding: 12px; }
  .message-bubble { max-width: 92%; }
}
