:root {
  --bg: #f4f6ef;
  --ink: #0e1e1a;
  --muted: #4f5f59;
  --panel: #fbfcf9;
  --line: #d8e0d7;
  --brand: #0e7a5f;
  --brand-dark: #0b5f4a;
  --accent: #ffb03a;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #dbefe7 0%, transparent 60%), var(--bg);
  color: var(--ink);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.bg-orb { position: fixed; width: 460px; height: 460px; border-radius: 999px; filter: blur(70px); z-index: -1; opacity: 0.38; }
.orb-a { background: #9fdcc8; top: -180px; left: -120px; }
.orb-b { background: #ffe3b4; right: -120px; top: 220px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--brand); }
.nav-links { display: flex; gap: 18px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.hero { padding: 52px 0 24px; }
.eyebrow { display: inline-block; margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-dark); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; background: #f8fcf8; }
h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.07; margin: 16px 0 14px; max-width: 980px; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.agent-ui {
  margin: 10px 0 24px;
  background: linear-gradient(145deg, #f9fdfb, #eef8f2);
  border: 1px solid #c8ddd1;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(13, 74, 58, 0.08);
}
.agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.agent-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}
.agent-live {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d5f49;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.agent-live i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #18bb80;
  animation: pulse 1.2s ease-in-out infinite;
}
.agent-chat {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.bubble {
  font-size: 0.84rem;
  padding: 9px 10px;
  border-radius: 10px;
  max-width: 86%;
  animation: slideIn 0.65s ease both;
}
.user-bubble {
  background: #ffffff;
  border: 1px solid #d5e1da;
  color: #304942;
  justify-self: start;
}
.agent-bubble {
  background: #123b30;
  color: #ecfff7;
  justify-self: end;
}
.agent-chat .bubble:nth-child(1) { animation-delay: 0.05s; }
.agent-chat .bubble:nth-child(2) { animation-delay: 0.22s; }
.agent-chat .bubble:nth-child(3) { animation-delay: 0.4s; }
.agent-chat .bubble:nth-child(4) { animation-delay: 0.58s; }
.agent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.agent-meta span {
  font-size: 0.72rem;
  color: #5a6c65;
  margin-right: 5px;
}
.agent-meta strong {
  font-size: 0.8rem;
  color: #173a30;
}
.agent-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  min-width: 42px;
}
.agent-bars b {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: #1c9a77;
  animation: barHop 1s ease-in-out infinite;
}
.agent-bars b:nth-child(1) { height: 9px; animation-delay: 0s; }
.agent-bars b:nth-child(2) { height: 13px; animation-delay: 0.1s; }
.agent-bars b:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.agent-bars b:nth-child(4) { height: 11px; animation-delay: 0.3s; }
.agent-widgets {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.widget {
  background: #ffffff;
  border: 1px solid #d7e3dc;
  border-radius: 12px;
  padding: 10px;
}
.widget h4 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #476258;
}
.widget table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}
.widget th,
.widget td {
  text-align: left;
  padding: 5px 0;
  border-bottom: 1px dashed #e3ece7;
}
.widget th:last-child,
.widget td:last-child { text-align: right; }
.widget tbody tr:last-child td { border-bottom: none; }
.widget td:nth-child(4) { text-align: right; }
.sparkline {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}
.sparkline i {
  width: 3px;
  height: calc(var(--v) * 0.6px);
  border-radius: 3px;
  opacity: 0.95;
}
.up-line i { background: #109a6d; }
.down-line i { background: #cc6540; }
.up { color: #0e8a61; font-weight: 700; }
.down { color: #b73c3c; font-weight: 700; }
.score-list {
  display: grid;
  gap: 6px;
}
.score-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
}
.score-list span { color: #5c6f67; }
.score-list strong { font-size: 0.88rem; color: #133c31; }
.score-list em {
  font-style: normal;
  font-size: 0.72rem;
  margin-left: 4px;
}
.sync-item + .sync-item { margin-top: 8px; }
.sync-item p {
  margin: 0 0 5px;
  font-size: 0.75rem;
  color: #3f5550;
}
.chip {
  display: inline-block;
  font-size: 0.69rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf4f1;
  color: #2f5750;
  border: 1px solid #d6e4dd;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.section-sub {
  margin: 0 0 14px;
  color: #4a6259;
}
.chip.ok {
  background: #e8f7f0;
  color: #0d6a4f;
  border-color: #bce6d4;
}
.alert-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.alert-list li {
  font-size: 0.74rem;
  color: #3f5550;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 3px;
  flex: 0 0 auto;
}
.dot.good { background: #0c9d6d; }
.dot.warn { background: #d9802f; }
.widget-wide {
  grid-column: 1 / -1;
}
.sensitivity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sensitivity-row p {
  margin: 0;
  font-size: 0.76rem;
  color: #415952;
}
.sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sens-card {
  border-radius: 10px;
  border: 1px solid #d7e5de;
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}
.sens-card span {
  font-size: 0.72rem;
  color: #4a6259;
}
.sens-card strong {
  font-size: 1rem;
}
.sens-card.good {
  background: #ebf8f2;
  border-color: #bfe8d4;
}
.sens-card.good strong { color: #0c7c59; }
.sens-card.warn {
  background: #fff3ea;
  border-color: #f0d3bd;
}
.sens-card.warn strong { color: #a5572c; }
.sens-note {
  margin: 8px 0 0;
  font-size: 0.7rem;
  color: #567066;
}
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border-radius: 12px; text-decoration: none; font-weight: 700; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: linear-gradient(180deg, #149772, var(--brand)); color: #fff; box-shadow: 0 10px 24px rgba(14, 122, 95, 0.24); }
.btn-outline { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.65); }
.btn-ghost { border-color: var(--line); color: var(--brand-dark); background: #f8fbf6; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-metrics article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.hero-metrics strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; display: block; }
.hero-metrics span { color: var(--muted); font-size: 0.92rem; }
.section { padding: 36px 0; }
.section-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card a { color: var(--brand-dark); text-decoration: none; }
.card a:hover { text-decoration: underline; }
.outcome-panel { border-radius: 24px; padding: 28px; border: 1px solid #113d31; color: #eff9f4; background: linear-gradient(160deg, rgba(255, 176, 58, 0.12), transparent 38%), linear-gradient(145deg, #123d31, #0e2a22 70%); }
.outcome-panel h2 { margin: 0 0 14px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.outcome-panel ul { margin: 0; padding-left: 18px; }
.outcome-panel li { margin: 8px 0; }
.cta-banner { border-radius: 24px; border: 1px solid #e6d0a9; background: linear-gradient(145deg, #fff4de, #fefcf7); padding: 28px; }
.cta-banner h2 { margin: 0 0 8px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.cta-banner p { margin: 0 0 16px; color: #685d4a; }
.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfdf9; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }
details a { color: var(--brand-dark); }
.tldr { border-radius: 16px; padding: 18px 20px; border: 1px solid #c8d7ce; background: #f4fbf7; }
.tldr h2 { margin: 0 0 8px; font-size: 1.15rem; }
.tldr p { margin: 0; color: #305448; }
.footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 24px 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; color: var(--muted); }
.footer a { color: var(--brand-dark); text-decoration: none; font-weight: 700; }
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 700ms ease forwards; }
.reveal:nth-child(2) { animation-delay: 90ms; }
.reveal:nth-child(3) { animation-delay: 140ms; }
.reveal:nth-child(4) { animation-delay: 180ms; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(24, 187, 128, 0.45); }
  100% { box-shadow: 0 0 0 9px rgba(24, 187, 128, 0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes barHop {
  0%, 100% { transform: scaleY(0.65); opacity: 0.6; }
  50% { transform: scaleY(1.04); opacity: 1; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-metrics, .cards { grid-template-columns: 1fr; }
  .agent-widgets { grid-template-columns: 1fr; }
  .sensitivity-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 100%; }
  .agent-meta { flex-direction: column; align-items: flex-start; }
}
