:root {
  --bg: #f7fbfa;
  --ink: #0f172a;
  --muted: #526278;
  --line: rgba(15, 23, 42, 0.12);
  --surface: rgba(255, 255, 255, 0.86);
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --mint: #e7fffa;
  --lavender: #a78bfa;
  --sky: #0ea5e9;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --slate: #0f172a;
  --deep: #020617;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.topbar.dark {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.88);
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), #4ade80 58%, var(--lavender));
  color: white;
  font-weight: 950;
  letter-spacing: -0.05em;
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.28);
}

.brand-title {
  display: block;
  font-size: 1.22rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.dark .brand-subtitle {
  color: #7dd3fc;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.dark .nav-links {
  color: #cbd5e1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 950;
  line-height: 1.1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #22d3ee);
  color: #031716;
  box-shadow: 0 18px 38px rgba(20, 184, 166, 0.22);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--slate);
}

.dark .btn-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--teal-dark);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 76px 0 70px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 84% 22%, rgba(167, 139, 250, 0.28), transparent 30%),
    radial-gradient(circle at 8% 24%, rgba(20, 184, 166, 0.22), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  gap: 54px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.82);
  padding: 9px 14px;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.12);
}

.hero h1,
.section-heading h2,
.demo-headline {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.055em;
  color: var(--slate);
}

.hero h1 {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
}

.accent {
  color: var(--teal-dark);
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: #334155;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 850;
}

.product-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.product-card.dark-card {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(3, 47, 43, 0.92)),
    var(--slate);
  color: white;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px;
}

.card-kicker {
  color: #99f6e4;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-pill {
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  padding: 8px 12px;
  color: #ccfbf1;
  font-size: 0.8rem;
  font-weight: 950;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.metric,
.module-tile,
.agent-card,
.role-card,
.flow-card,
.legal-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 2.15rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-weight: 850;
}

.queue {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}

.queue-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  padding: 14px;
}

.priority {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--teal);
}

.priority.hot {
  background: var(--rose);
}

.priority.warn {
  background: var(--amber);
}

.queue-title {
  font-weight: 950;
}

.queue-meta {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 0.98;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.module-tile {
  min-height: 220px;
  background: white;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.tile-icon,
.agent-icon,
.role-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 950;
}

.module-tile h3,
.agent-card h3,
.role-card h3,
.flow-card h3 {
  margin: 16px 0 8px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.module-tile p,
.agent-card p,
.role-card p,
.flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dark-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.17), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 58%, #032f2b);
  color: white;
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: white;
}

.agent-grid,
.role-grid,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-card,
.role-card,
.flow-card {
  background: rgba(255, 255, 255, 0.06);
}

.agent-card p,
.role-card p,
.flow-card p {
  color: #cbd5e1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: 32px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #334155;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), #22d3ee);
}

.demo-preview {
  display: grid;
  gap: 14px;
}

.preview-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.preview-row strong {
  display: block;
}

.preview-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.cta-band {
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 20%, rgba(167, 139, 250, 0.2), transparent 34%),
    linear-gradient(135deg, #0f172a, #064e3b);
  padding: 42px;
  color: white;
  box-shadow: var(--shadow);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 24px;
  align-items: center;
}

.lead-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
}

.lead-card h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.lead-card p {
  margin: 0;
}

.lead-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 13px;
  color: var(--slate);
  font: inherit;
  font-weight: 760;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: rgba(45, 212, 191, 0.9);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-line {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.checkbox-line input {
  width: auto;
  margin-top: 3px;
}

.form-status {
  min-height: 20px;
  color: #ccfbf1;
  font-weight: 850;
}

.impact-board {
  display: grid;
  gap: 12px;
}

.pilot-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 18px;
  background: rgba(240, 253, 250, 0.84);
  padding: 16px;
  color: #334155;
  line-height: 1.5;
}

.pilot-note strong {
  color: #0f766e;
  min-width: max-content;
}

.referral-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.referral-panel div {
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.referral-panel strong,
.referral-panel span {
  display: block;
}

.referral-panel strong {
  color: var(--teal-dark);
  font-size: 1rem;
}

.referral-panel span {
  margin-top: 7px;
  color: #475569;
  line-height: 1.45;
}

.impact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.impact-row strong {
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1;
}

.impact-row span {
  color: #334155;
  font-weight: 850;
  line-height: 1.45;
}

.cta-band h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.cta-band p {
  max-width: 700px;
  margin: 18px 0 0;
  color: #dbeafe;
  line-height: 1.65;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.demo-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(20, 184, 166, 0.16), transparent 30%),
    radial-gradient(circle at 88% 6%, rgba(167, 139, 250, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f0fdfa 44%, #f8fafc);
  color: var(--ink);
}

.demo-body [id] {
  scroll-margin-top: 104px;
}

.demo-body .status-pill {
  border-color: rgba(20, 184, 166, 0.3);
  background: #ccfbf1;
  color: #0f766e;
}

.demo-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.demo-sidebar,
.demo-main,
.demo-panel {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.demo-sidebar {
  position: sticky;
  top: 96px;
  height: calc(100vh - 118px);
  border-radius: 28px;
  padding: 18px;
  overflow: auto;
}

.demo-main {
  min-width: 0;
  border-radius: 28px;
  padding: 20px;
}

.role-switcher,
.module-switcher,
.feature-switcher {
  display: grid;
  gap: 8px;
}

.switch-label {
  margin: 18px 0 10px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.switch-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  padding: 12px;
  color: #475569;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.switch-btn.active {
  border-color: rgba(20, 184, 166, 0.4);
  background: #ccfbf1;
  color: #0f172a;
}

.demo-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.demo-headline {
  color: var(--slate);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
}

.demo-copy {
  max-width: 760px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
}

.demo-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: max-content;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.demo-panel {
  border-radius: 24px;
  padding: 18px;
}

.demo-panel h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.panel-note {
  margin: -6px 0 14px;
  color: #64748b;
  line-height: 1.45;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.demo-kpi {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px;
}

.demo-kpi strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.demo-kpi span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 850;
}

.work-list {
  display: grid;
  gap: 10px;
}

.work-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  padding: 14px;
}

.work-item h3 {
  margin: 0;
  font-size: 1rem;
}

.work-item p {
  margin: 5px 0 0;
  color: #64748b;
  line-height: 1.45;
}

.source-line {
  color: #0f766e !important;
  font-size: 0.86rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  padding: 6px 10px;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.agent-console {
  display: grid;
  gap: 10px;
}

.agent-line {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px;
}

.agent-line strong {
  display: block;
  color: var(--slate);
}

.agent-line span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  line-height: 1.45;
}

.action-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(20, 184, 166, 0.36);
  border-radius: 12px;
  background: #ccfbf1;
  padding: 10px 12px;
  color: #0f766e;
  font-weight: 950;
  cursor: pointer;
}

.action-btn:hover {
  background: #99f6e4;
}

.review-drawer {
  margin-top: 16px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(167, 139, 250, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #f0fdfa);
  padding: 20px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.review-drawer[hidden] {
  display: none;
}

.review-drawer:focus {
  outline: 3px solid rgba(20, 184, 166, 0.24);
  outline-offset: 3px;
}

.review-drawer-head,
.review-footer,
.review-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-drawer-head {
  justify-content: space-between;
}

.review-drawer h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.review-drawer p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.review-grid div {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

.review-grid span {
  display: block;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--slate);
  line-height: 1.35;
}

.review-footer {
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}

.icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.icon-btn:hover {
  background: #f8fafc;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 12px;
}

.timeline-item time {
  color: #0f766e;
  font-weight: 950;
}

.timeline-item strong {
  display: block;
}

.timeline-item p {
  margin: 5px 0 0;
  color: #64748b;
}

.legal-main {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.legal-card {
  background: white;
}

.legal-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.legal-card h2 {
  margin-top: 28px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .pilot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-grid,
  .role-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .demo-main {
    order: 1;
  }

  .demo-sidebar {
    order: 2;
  }

  .role-switcher,
  .module-switcher,
  .feature-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1,
  .demo-headline {
    letter-spacing: -0.04em;
  }

  .hero-grid,
  .section,
  .nav,
  .footer-inner,
  .demo-shell {
    width: min(100% - 28px, 1180px);
  }

  .overview-grid,
  .module-grid,
  .pilot-grid,
  .agent-grid,
  .role-grid,
  .flow-grid,
  .kpi-grid,
  .referral-panel,
  .review-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid,
  .impact-row,
  .pilot-note {
    grid-template-columns: 1fr;
  }

  .pilot-note {
    display: block;
  }

  .role-switcher,
  .module-switcher,
  .feature-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-topline,
  .review-drawer-head,
  .footer-inner {
    flex-direction: column;
  }

  .review-drawer-head {
    align-items: flex-start;
  }

  .review-footer {
    justify-content: stretch;
  }

  .review-footer .btn {
    width: 100%;
  }

  .demo-status {
    justify-content: flex-start;
    min-width: 0;
  }

  .demo-sidebar {
    padding: 14px;
  }

  .demo-sidebar .brand {
    display: none;
  }

  .switch-btn {
    min-height: 42px;
    padding: 10px;
    font-size: 0.9rem;
  }

  .switch-btn span {
    display: none;
  }

  .work-item,
  .preview-row,
  .queue-item {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 26px;
  }
}
