:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5d6b7d;
  --line: #dce3ee;
  --panel: #ffffff;
  --canvas: #f5f7fb;
  --blue: #1664d9;
  --green: #247a45;
  --amber: #9a6500;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}

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

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { min-height: 72px; }
.site-footer { min-height: 64px; color: var(--muted); font-size: .9rem; }

.brand { font-weight: 800; }
nav { display: flex; gap: 20px; color: var(--muted); font-weight: 700; }

.hero-panel,
.panel,
.safety-band,
.workflow-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.hero-panel {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 28px;
  padding: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1, h2, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.05;
}
h2 { margin-bottom: 10px; font-size: 1.35rem; }

.hero-text,
.workflow-grid p,
.panel p,
.safety-band p {
  color: var(--muted);
  line-height: 1.7;
}
.hero-text { max-width: 680px; font-size: 1.1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
}
.button.primary { background: var(--blue); color: white; }
.button.secondary { border: 1px solid var(--line); background: #eef3fa; }

.status-board { display: grid; gap: 12px; }
.status-board > div,
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafd;
}

.metric-label,
.session-row span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill.healthy { background: #e8f5ed; color: var(--green); }
.status-pill.attention { background: #fff5db; color: var(--amber); }
.status-pill.muted { background: #eef3fa; color: var(--muted); }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.workflow-grid article,
.panel,
.safety-band { padding: 22px; }
.workflow-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #eef3fa;
  color: var(--blue);
  font-weight: 900;
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  margin-top: 16px;
}
.panel-heading { margin-bottom: 18px; }
.session-list, .agent-steps { display: grid; gap: 12px; }
.agent-steps div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafd;
  font-weight: 700;
}
.safety-band { margin-top: 16px; background: #fffaf0; border-color: #ead6a8; }

@media (max-width: 900px) {
  .site-header,
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px 0; }
  .hero-panel,
  .workflow-grid,
  .console-layout { grid-template-columns: 1fr; }
  .hero-panel { padding: 24px; }
}
