:root {
  --ink: #10151f;
  --ink-2: #263246;
  --muted: #667085;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --cyan: #0ea5c6;
  --cyan-2: #e6f7fb;
  --green: #148564;
  --green-2: #e8f7ef;
  --amber: #b86e00;
  --amber-2: #fff4d7;
  --rose: #bd3856;
  --rose-2: #ffe8ee;
  --violet: #5b4cc4;
  --header-h: 72px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(16, 21, 31, 0.08);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 146px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a,
.ghost-link {
  transition: color 180ms ease;
}

.main-nav a:hover,
.ghost-link:hover {
  color: var(--cyan);
}

.header-actions,
.hero-actions,
.cta-actions,
.demo-top-actions,
.surface-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button-primary:hover {
  background: #1f2937;
}

.button-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.button-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(112deg, rgba(6, 11, 20, 0.98) 0%, rgba(9, 19, 33, 0.98) 44%, rgba(238, 244, 250, 0.2) 44.2%, rgba(244, 247, 251, 0.08) 100%),
    #070b12;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 72%);
}

.hero-inner {
  width: min(1280px, 100%);
  min-height: calc(100svh - var(--header-h) - 112px);
  margin: 0 auto;
  padding: 58px 32px 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.12fr);
  gap: 46px;
  align-items: center;
}

.hero-stage {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.hero-product-frame,
.screenshot-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 234, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(3, 8, 18, 0.3);
}

.hero-product-frame {
  transform: perspective(1200px) rotateY(-7deg) rotateX(1.5deg);
  transform-origin: left center;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-product-frame img,
.screenshot-frame img,
.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.hero-signal-row {
  position: absolute;
  right: 7%;
  bottom: -24px;
  width: min(520px, 82%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(3, 8, 18, 0.24);
  backdrop-filter: blur(16px);
}

.hero-signal-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hero-signal-row b {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.screen {
  position: absolute;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.screen-main {
  right: 2%;
  top: 9%;
  width: min(740px, 58vw);
  min-height: 520px;
  padding: 18px;
}

.screen-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot.ok {
  background: var(--green);
}

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

.dot.risk {
  background: var(--rose);
}

.screen-title {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
}

.metric,
.activity-panel,
.queue-panel,
.screen-side,
.screen-chip,
.product-shot,
.demo-surface,
.demo-kpi,
.tenant-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric {
  padding: 16px;
  min-height: 118px;
}

.metric span,
.metric em,
.queue-item span,
.queue-item em,
.panel-head,
.control-row span,
.demo-kpi span,
.demo-kpi em,
.tenant-card span,
.tenant-card em,
.surface-head span,
.screening-box span,
.money-grid span,
.money-grid em {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.metric em,
.queue-item em,
.demo-kpi em,
.tenant-card em,
.money-grid em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
}

.activity-panel,
.queue-panel {
  grid-column: span 2;
  padding: 16px;
}

.queue-panel {
  grid-column: span 1;
}

.panel-head,
.product-toolbar,
.surface-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel-head b,
.product-toolbar b {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--green);
  background: var(--green-2);
}

.timeline-row,
.queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.timeline-row:first-of-type,
.queue-item:first-of-type {
  margin-top: 12px;
}

.timeline-row i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.timeline-row.attention i {
  background: var(--amber);
}

.timeline-row strong {
  color: var(--muted);
  font-size: 12px;
}

.queue-item {
  grid-template-columns: 42px 1fr auto;
}

.queue-item span {
  font-weight: 800;
}

.queue-item.high em {
  color: var(--rose);
}

.screen-side {
  right: 12%;
  bottom: 8%;
  width: 270px;
  padding: 18px;
}

.screen-side span,
.screen-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.screen-side strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  height: 64px;
  margin-top: 14px;
}

.mini-bars i {
  display: block;
  background: var(--cyan);
  border-radius: 6px 6px 0 0;
}

.mini-bars i:nth-child(1) {
  height: 36%;
}

.mini-bars i:nth-child(2) {
  height: 76%;
  background: var(--green);
}

.mini-bars i:nth-child(3) {
  height: 54%;
  background: var(--amber);
}

.mini-bars i:nth-child(4) {
  height: 88%;
  background: var(--violet);
}

.screen-chip {
  right: 45%;
  bottom: 12%;
  width: 230px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.screen-chip span {
  width: 100%;
}

.screen-chip b {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--cyan-2);
  color: #075f72;
}

.hero-copy {
  width: min(760px, 100%);
  padding: 0;
  margin: 0;
  color: #fff;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

.eyebrow-light {
  color: #8ee8ff;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: 54px;
  line-height: 1;
  font-weight: 850;
}

h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 850;
}

h3 {
  margin: 10px 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.section {
  padding: 92px 32px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: var(--soft);
}

.section-ink {
  background: var(--ink);
  color: #fff;
}

.section-copy,
.section p,
.capability-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.section-ink p {
  color: #cad5e4;
}

.intro-grid,
.split-section,
.product-strip,
.evidence-layout,
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

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

.capability-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.card-kicker {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
}

.control-list {
  display: grid;
  gap: 12px;
}

.control-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.control-row strong {
  line-height: 1.45;
}

.product-strip {
  align-items: center;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}

.product-shot {
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(16, 21, 31, 0.14);
}

.product-shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.gallery-intro,
.client-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.product-gallery-section {
  border-top: 1px solid var(--line);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.screenshot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(16, 21, 31, 0.08);
}

.screenshot-card img {
  border-bottom: 1px solid var(--line);
}

.screenshot-meta {
  padding: 20px;
}

.screenshot-meta span {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

.screenshot-meta h3 {
  margin-top: 8px;
}

.screenshot-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-proof-grid {
  align-items: center;
}

.client-screens {
  position: relative;
  min-height: 430px;
}

.client-screens .screenshot-frame:first-child {
  width: 88%;
}

.client-screens .screenshot-frame {
  box-shadow: 0 26px 80px rgba(16, 21, 31, 0.14);
}

.inset-screen {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  border-color: rgba(14, 165, 198, 0.28);
}

.product-toolbar {
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.product-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 330px;
}

.product-body aside {
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.product-body aside span {
  display: block;
  padding: 10px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-body aside .active {
  background: var(--ink);
  color: #fff;
}

.product-main {
  padding: 20px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.badge-ok {
  color: var(--green);
  background: var(--green-2);
}

.badge-warn {
  color: var(--amber);
  background: var(--amber-2);
}

.badge-risk {
  color: var(--rose);
  background: var(--rose-2);
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.demo-metrics span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.demo-metrics b {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.ledger-table {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.ledger-table span,
.ledger-table strong,
.ledger-table em {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.ledger-table span:nth-last-child(-n + 3),
.ledger-table strong:nth-last-child(-n + 2),
.ledger-table em:nth-last-child(-n + 1) {
  border-bottom: 0;
}

.ledger-table em {
  font-style: normal;
  color: var(--muted);
}

.evidence-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.evidence-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.evidence-table div:last-child {
  border-bottom: 0;
}

.evidence-table span {
  color: var(--cyan);
  font-weight: 850;
}

.evidence-table strong {
  line-height: 1.5;
}

.section-cta {
  background: #f9fbfd;
}

.cta-band {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  background: #fff;
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.contact-notes {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-notes span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-weight: 750;
  line-height: 1.4;
}

.contact-notes span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16, 21, 31, 0.08);
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form label.full,
.lead-form .form-status,
.lead-form button {
  grid-column: 1 / -1;
}

.lead-form label span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lead-form textarea {
  resize: vertical;
  min-height: 132px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 198, 0.12);
}

.form-status {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
  background: var(--green-2);
  border: 1px solid rgba(20, 133, 100, 0.2);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer > div,
.site-footer nav {
  width: min(540px, 100%);
}

.site-footer img {
  width: 130px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 750;
}

.seo-hub {
  border-bottom: 1px solid var(--line);
}

.seo-card-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.seo-card,
.blog-card,
.topic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(16, 21, 31, 0.06);
}

.seo-card,
.blog-card {
  display: block;
  padding: 22px;
  min-height: 210px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.seo-card:hover,
.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 198, 0.42);
  box-shadow: 0 22px 70px rgba(16, 21, 31, 0.1);
}

.seo-card span,
.blog-card span,
.breadcrumb,
.article-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.seo-card span,
.blog-card span {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0;
}

.seo-card p,
.blog-card p {
  color: var(--muted);
  line-height: 1.6;
}

.content-hero {
  padding: 76px 32px;
  background:
    linear-gradient(112deg, rgba(6, 11, 20, 0.98) 0%, rgba(9, 19, 33, 0.98) 45%, rgba(244, 247, 251, 0.08) 45.2%, rgba(244, 247, 251, 0.02) 100%),
    #070b12;
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.content-hero.compact {
  padding: 76px 32px 64px;
}

.content-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.content-hero h1 {
  font-size: 50px;
}

.content-hero .screenshot-frame {
  box-shadow: 0 28px 90px rgba(3, 8, 18, 0.34);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 18px;
  color: #8ee8ff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: start;
}

.article-body,
.article-content {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.75;
}

.article-body h2,
.article-content h2 {
  margin-top: 38px;
  color: var(--ink);
  font-size: 30px;
}

.article-body p,
.article-content p {
  color: var(--ink-2);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.feature-list span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink-2);
  font-weight: 750;
}

.topic-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 10px;
  padding: 20px;
}

.topic-card h3 {
  margin-top: 0;
}

.topic-card a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 750;
  background: #fbfdff;
}

.topic-card a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.article-page {
  width: min(860px, calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0 92px;
}

.article-header {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: 860px;
  color: var(--ink);
  font-size: 48px;
}

.article-meta {
  margin-top: 18px;
}

.article-content {
  padding-top: 34px;
}

.article-cta {
  margin-top: 36px;
  padding: 20px;
  border: 1px solid rgba(14, 165, 198, 0.22);
  border-radius: 8px;
  background: var(--cyan-2);
  font-weight: 750;
}

.article-cta a,
.article-content a {
  color: #075f72;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-body {
  background: #eef3f8;
  min-height: 100svh;
}

.demo-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100svh;
}

.demo-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
}

.demo-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.demo-nav {
  display: grid;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d9e5f3;
  padding: 0 12px;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}

.demo-nav-item:hover,
.demo-nav-item.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
}

.tenant-card {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 16px;
}

.tenant-card strong {
  display: block;
  margin-top: 8px;
}

.demo-workspace {
  padding: 26px;
}

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

.demo-topbar h1 {
  font-size: 34px;
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

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

.demo-kpi {
  padding: 16px;
}

.demo-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.demo-surface {
  padding: 20px;
}

.demo-surface.wide {
  grid-column: 1 / -1;
}

.surface-head {
  margin-bottom: 18px;
}

.surface-head h2 {
  margin-top: 4px;
  font-size: 23px;
}

.review-stack,
.event-feed,
.document-stack,
.rule-list,
.audit-log {
  display: grid;
  gap: 10px;
}

.review-row,
.event-feed div,
.document-stack span,
.rule-list span,
.audit-log div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.review-row strong {
  white-space: nowrap;
}

.review-row.done strong,
.text-ok {
  color: var(--green);
}

.review-row.warn strong,
.text-warn {
  color: var(--amber);
}

.text-risk {
  color: var(--rose);
}

.surface-actions {
  margin-top: 18px;
}

.event-feed b,
.audit-log b {
  color: var(--cyan);
  min-width: 48px;
}

.event-feed span,
.audit-log span {
  flex: 1;
  color: var(--ink-2);
}

.audit-log em {
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.queue-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.queue-table > div {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.queue-table > div:last-child {
  border-bottom: 0;
}

.queue-head {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.queue-table em {
  color: var(--muted);
  font-style: normal;
}

.document-stack b {
  color: var(--green);
}

.screening-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.screening-box div,
.money-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.screening-box strong,
.money-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.rule-list span {
  align-items: flex-start;
}

.rule-list b {
  display: block;
}

.rule-list em {
  color: var(--muted);
  font-style: normal;
}

.money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.queue-table.compact {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .site-header {
    padding: 0 18px;
  }

  .hero {
    min-height: auto;
    background: #070b12;
  }

  .hero::before {
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 76px 22px 64px;
  }

  .hero-product-frame {
    transform: none;
  }

  .hero-copy {
    width: min(760px, 100%);
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 31px;
  }

  .intro-grid,
  .split-section,
  .product-strip,
  .gallery-intro,
  .client-proof-grid,
  .content-hero-grid,
  .article-layout,
  .evidence-layout,
  .cta-band,
  .contact-layout,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .screenshot-grid,
  .seo-card-grid,
  .blog-grid,
  .demo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-card {
    position: relative;
    top: auto;
  }

  .client-screens {
    min-height: 390px;
  }

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

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

  .demo-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .demo-nav-item {
    min-width: 130px;
    flex: 0 0 130px;
  }

  .tenant-card {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    width: 118px;
  }

  .ghost-link {
    display: none;
  }

  .button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  h2 {
    font-size: 27px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .content-hero {
    padding: 56px 18px;
  }

  .content-hero h1,
  .article-header h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .article-page {
    width: calc(100% - 36px);
    padding: 56px 0 68px;
  }

  .article-body,
  .article-content {
    font-size: 16px;
  }

  .article-body h2,
  .article-content h2 {
    font-size: 25px;
  }

  .hero-inner {
    gap: 24px;
    padding: 42px 18px 18px;
  }

  .hero-signal-row {
    position: static;
    width: 100%;
    margin-top: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
  }

  .hero-signal-row span {
    font-size: 11px;
  }

  .hero-signal-row b {
    font-size: 18px;
  }

  .trust-strip {
    gap: 8px;
    margin-top: 22px;
  }

  .trust-strip span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .section {
    padding: 64px 18px;
  }

  .capability-grid,
  .screenshot-grid,
  .seo-card-grid,
  .blog-grid,
  .demo-kpi-grid,
  .demo-metrics,
  .money-grid,
  .screening-box {
    grid-template-columns: 1fr;
  }

  .client-screens {
    min-height: auto;
  }

  .client-screens .screenshot-frame:first-child,
  .inset-screen {
    width: 100%;
  }

  .inset-screen {
    position: relative;
    margin-top: 14px;
  }

  .product-body {
    grid-template-columns: 1fr;
  }

  .product-body aside {
    display: none;
  }

  .ledger-table,
  .evidence-table div,
  .queue-table > div,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .control-row {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .demo-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .demo-workspace {
    padding: 18px;
  }

  .demo-topbar h1 {
    font-size: 28px;
  }
}
