:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f4fb;
  --text: #18253a;
  --muted: #5f6f86;
  --line: #d9e2ef;
  --line-strong: #bfd0e8;
  --accent: #195ed8;
  --accent-soft: #eaf2ff;
  --good: #0b7c4f;
  --good-soft: #e9f8f1;
  --warn: #9b5b00;
  --warn-soft: #fff4df;
  --shadow: 0 10px 35px rgba(24, 37, 58, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1240px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, #f2f6fc 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4, p, li, span, strong, small, a, button {
  overflow-wrap: anywhere;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(191, 208, 232, 0.7);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, #195ed8 0%, #4ea0ff 100%);
  box-shadow: var(--shadow);
}
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 15px; }
.brand-copy span { font-size: 12px; color: var(--muted); }

.topnav {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 8px;
}
.topnav a {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 999px;
  transition: 160ms ease;
}
.topnav a:hover, .topnav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.page {
  width: min(calc(100% - 40px), var(--max));
  margin: 24px auto 60px;
  display: grid;
  gap: 24px;
}

.slide {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 208, 232, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px;
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  padding: 8px 12px; background: var(--accent-soft); border-radius: 999px;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06; margin: 16px 0 14px;
  max-width: 12ch;
}
.lead {
  font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 20px;
  max-width: 60ch;
}
.hero-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 18px;
}
.hero-points div, .metric-row div, .fact-grid div, .mini-list div, .role-detail-grid div, .calc-result div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.hero-points span, .metric-row span, .fact-grid span, .mini-list span, .role-detail-grid span, .calc-result span {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.hero-points strong, .metric-row strong, .fact-grid strong, .mini-list strong, .role-detail-grid strong, .calc-result strong { font-size: 15px; }
.mini-note, .final-note {
  background: linear-gradient(180deg, #f8fbff, #f0f5fd);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 24px; align-items: start;
  margin-bottom: 24px;
}
.section-head.compact { grid-template-columns: 1fr; margin-bottom: 20px; }
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  max-width: 16ch;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.placeholder-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px dashed #9fb6d8;
  border-radius: 24px;
  padding: 20px;
  min-height: 280px;
}
.placeholder-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(25,94,216,0.04) 25%, transparent 25%, transparent 50%, rgba(25,94,216,0.04) 50%, rgba(25,94,216,0.04) 75%, transparent 75%, transparent);
  background-size: 28px 28px;
  pointer-events: none;
}
.placeholder-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 18px; position: relative; z-index: 1; }
.placeholder-label, .placeholder-tag {
  display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  max-width: 100%;
}
.placeholder-label { background: var(--accent-soft); color: var(--accent); }
.placeholder-tag { background: #edf2f8; color: #49627f; }
.placeholder-card h3, .doc-card p, .timeline-step p { position: relative; z-index: 1; }
.placeholder-card ul, .placeholder-card p { position: relative; z-index: 1; color: var(--muted); line-height: 1.6; }
.screen-xl { min-height: 420px; }
.screen-lg { min-height: 340px; }
.screen-md { min-height: 250px; }

.screenshot-card {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(24, 37, 58, 0.1);
}
.screenshot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.screenshot-label, .screenshot-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}
.screenshot-label { color: var(--accent); background: var(--accent-soft); }
.screenshot-tag { color: #49627f; background: #edf2f8; }
.screenshot-media {
  overflow: hidden;
  border: 1px solid rgba(191, 208, 232, 0.85);
  border-radius: 18px;
  background: #eef3fa;
}
.screenshot-media img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot-card figcaption {
  margin: 10px 4px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.screenshot-card.screen-md .screenshot-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.screenshot-focus-right .screenshot-media img {
  object-position: right center;
}

.pain-grid, .flow-grid, .status-list, .tab-row, .screenshot-row {
  display: grid; gap: 12px;
}
.pain-grid { grid-template-columns: repeat(4, 1fr); }
.pain-card, .flow-step, .status-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.pain-card:hover, .flow-step:hover, .status-card:hover,
.pain-card.active, .flow-step.active, .status-card.active {
  transform: translateY(-1px);
  border-color: #7ca7e4;
  box-shadow: 0 8px 24px rgba(25, 94, 216, 0.08);
}
.pain-card span, .flow-step span {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 12px;
}
.pain-card strong, .flow-step strong, .status-card strong { display: block; margin-bottom: 6px; }
.pain-card small, .flow-step small, .status-card small { color: var(--muted); line-height: 1.45; }

.insight-panel {
  margin-top: 18px;
  display: grid; grid-template-columns: 1.2fr 0.95fr; gap: 16px;
  background: linear-gradient(180deg, #f7fbff, #eff5fd);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 20px;
}
.insight-panel.slim { margin-top: 16px; }
.kicker, .doc-meta {
  color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.insight-panel h3, .tender-sheet h3, .role-panel h3, .calculator-card h3 { margin: 8px 0 10px; font-size: 24px; line-height: 1.2; }
.insight-panel p, .tender-sheet p, .role-panel p, .doc-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.metric-row, .fact-grid, .mini-list, .role-detail-grid, .calc-result { display: grid; gap: 12px; }
.metric-row, .fact-grid, .mini-list, .role-detail-grid, .calc-result { grid-template-columns: repeat(3, 1fr); }

.compare-grid, .two-col, .pilot-grid, .next-grid, .roles-layout { display: grid; gap: 18px; }
.compare-grid { grid-template-columns: repeat(2, 1fr); }
.compare-card {
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare-card.muted { background: linear-gradient(180deg, #fafcff, #f4f7fb); }
.compare-card.strong {
  background: linear-gradient(180deg, #f6faff, #edf4ff);
  border-color: #a8c3eb;
}
.compare-card h3 { font-size: 24px; margin: 12px 0 14px; }
.compare-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.chip {
  display: inline-flex; padding: 7px 10px; border-radius: 999px;
  background: #edf2f8; color: #49627f; font-size: 12px; font-weight: 700;
}
.tip-strip {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.tooltip-card {
  position: relative; padding: 15px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; color: var(--text);
  cursor: help;
}
.tooltip-card::after {
  content: attr(data-tip);
  position: absolute; left: 16px; right: 16px; bottom: calc(100% + 10px);
  padding: 12px 14px; border-radius: 14px; background: #15233a; color: white;
  font-size: 13px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: 140ms ease;
  box-shadow: var(--shadow);
}
.tooltip-card:hover::after { opacity: 1; transform: translateY(0); }

.flow-grid { grid-template-columns: repeat(4, 1fr); }
.two-col { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
.showcase .two-col { grid-template-columns: 1.02fr 0.98fr; }
.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}
.status-list { margin-bottom: 14px; }
.status-card { padding: 14px 16px; }
.status { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.status.good { background: var(--good-soft); color: var(--good); }
.status.mix { background: var(--accent-soft); color: var(--accent); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.verdict-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0;
}
.confidence, .verdict {
  display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.confidence { background: #edf2f8; color: #49627f; }
.verdict { background: #eef6ff; color: var(--accent); }

.proof-tabs, .role-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tab-row button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--muted);
}
.tab-row button.active { color: var(--accent); background: var(--accent-soft); border-color: #b4c9ea; }
.doc-card {
  background: linear-gradient(180deg, #f7fbff, #f1f5fd);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 18px;
}
.more-block {
  margin-top: 12px;
  background: var(--surface-2);
  border-radius: 18px;
  padding: 0 16px;
  border: 1px solid var(--line);
}
.more-block summary {
  list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600;
}
.more-block[open] summary { padding-bottom: 8px; }
.more-block p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }

.roles-layout { grid-template-columns: 1fr; }
.role-panel {
  background: linear-gradient(180deg, #f8fbff, #eff4fd);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 22px;
}
.role-detail-grid { margin-top: 16px; }
.screenshot-row { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }

.pilot-grid { grid-template-columns: 0.95fr 1.05fr; }
.timeline-card, .ready-card, .calculator-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}
.timeline-step { display: grid; grid-template-columns: 46px 1fr; gap: 14px; }
.timeline-step + .timeline-step { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.timeline-step span {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.timeline-step strong { display: block; margin-bottom: 4px; }
.timeline-step small { display: inline-block; margin-bottom: 8px; color: var(--muted); }
.calc-head h3 { margin: 0 0 6px; }
.calc-head p { margin: 0 0 16px; color: var(--muted); }
.calculator-card label { display: block; margin-bottom: 16px; overflow-x: clip; }
.calculator-card label span { display: block; margin-bottom: 8px; color: var(--muted); }
.calculator-card input[type="range"] { width: 100%; accent-color: var(--accent); }
.calculator-card label strong { display: inline-block; margin-top: 6px; }
.calc-result { margin-top: 6px; }

.next-grid { grid-template-columns: repeat(2, 1fr); }
.ready-card h3 { margin: 0 0 14px; font-size: 24px; }
.ready-card ul, .ready-card ol { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.ready-card.accent { background: linear-gradient(180deg, #f8fbff, #eef5ff); border-color: #b4c9ea; }

.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 15;
  width: 46px; height: 46px; border-radius: 16px; border: 1px solid var(--line);
  background: white; color: var(--accent); box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: 160ms ease;
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 1100px) {
  .hero, .section-head, .compare-grid, .two-col, .showcase .two-col, .pilot-grid, .next-grid, .insight-panel { grid-template-columns: 1fr; }
  .pain-grid, .flow-grid, .tip-strip, .hero-points, .metric-row, .fact-grid, .mini-list, .role-detail-grid, .calc-result, .screenshot-row { grid-template-columns: repeat(2, 1fr); }
  .topbar { align-items: flex-start; }
}

@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .topnav { gap: 6px; }
  .topnav a { font-size: 12px; padding: 7px 10px; }
  .page { width: min(calc(100% - 20px), var(--max)); margin-top: 16px; }
  .slide { padding: 22px; border-radius: 22px; }
  .hero h1 { max-width: 100%; }
  .pain-grid, .flow-grid, .tip-strip, .hero-points, .metric-row, .fact-grid, .mini-list, .role-detail-grid, .calc-result, .screenshot-row { grid-template-columns: 1fr; }
  .section-head h2 { max-width: 100%; }
}
