:root {
  --ink: #102027;
  --muted: #52666f;
  --soft: #f6f8f4;
  --panel: #ffffff;
  --panel-strong: #eef5f1;
  --line: #dbe5e2;
  --accent: #176b52;
  --accent-dark: #0f4c3b;
  --accent-soft: #dff1ea;
  --signal: #bf7b16;
  --danger: #b63d35;
  --shadow: 0 20px 60px rgba(16, 32, 39, 0.08);
  --shadow-strong: 0 24px 80px rgba(16, 32, 39, 0.14);
  --shadow-soft: 0 12px 34px rgba(16, 32, 39, 0.07);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(246, 248, 244, 0.94) 48%, #f3f7f5 100%),
    var(--soft);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 240px;
}

.brand-photo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--panel);
  box-shadow: 0 8px 24px rgba(16, 32, 39, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 700;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.site-nav .nav-cta {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.section,
.section-band,
.section-narrow {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-band {
  background: linear-gradient(180deg, #ffffff 0%, #eef5f1 100%);
}

.section-narrow {
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - 72px);
}

.hero-copy,
.section-heading {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(2.65rem, 6.1vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.hero-subtitle,
.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions,
.card-actions,
.pricing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(23, 107, 82, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
  outline: none;
}

.button.secondary {
  color: var(--accent-dark);
  background: var(--panel);
  border-color: var(--line);
}

.hero-proof {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-photo {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 8px;
}

.proof-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-proof h2 {
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.04;
}

.hero-proof p:last-child {
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 14px;
  background: var(--panel);
  color: var(--accent-dark);
  font-weight: 850;
  text-align: center;
}

.disclaimer {
  background: #102027;
  color: #eaf4f0;
}

.disclaimer p {
  max-width: 1080px;
  margin: 0 auto;
}

.speed-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.speed-block h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.speed-block p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.section-heading {
  margin-bottom: 28px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
  outline: none;
}

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

.demo-card,
.scope-card,
.snippet-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-card {
  min-height: 390px;
}

.demo-card[hidden] {
  display: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.price {
  color: var(--signal);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.demo-card p,
.scope-card p,
.snippet-card p,
.detail-list dd {
  margin: 0;
  color: var(--muted);
}

.demo-card .pain {
  color: var(--ink);
  font-weight: 780;
}

.feature-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.feature-list li {
  padding: 5px 8px;
  color: var(--muted);
  background: #f1f5f3;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.delivery-stages {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-stages span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
}

.delivery-stages b {
  color: var(--ink);
}

.text-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 4vw, 36px) 0;
  border-top: 1px solid var(--line);
}

.detail-panel.alternate .detail-copy {
  order: 2;
}

.detail-panel.alternate .mockup {
  order: 1;
}

.demo-disclaimer {
  padding: 12px 14px;
  color: #315148;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  font-weight: 760;
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

.detail-list dt {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.pricing-row {
  color: var(--muted);
}

.pricing-row strong {
  color: var(--ink);
}

.mockup {
  min-width: 0;
}

.mockup-window {
  overflow: hidden;
  background: #0f1d23;
  border: 1px solid #21353d;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 13px;
  background: #14262d;
  border-bottom: 1px solid #243b44;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7d949d;
}

.chat-layout,
.dashboard-shell,
.landing-preview,
.rescue-grid {
  min-height: 420px;
  padding: 18px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  background: #edf7f2;
}

.chat-column,
.admin-column,
.landing-preview section,
.landing-preview form,
.landing-preview ul,
.broken-state,
.fixed-state {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 92%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.chat-bubble.bot {
  color: #14382f;
  background: #dff1ea;
}

.chat-bubble.user {
  align-self: flex-end;
  color: #ffffff;
  background: var(--accent);
}

.lead-form,
.landing-preview form {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.lead-form label,
.landing-preview label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.lead-form input,
.landing-preview input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f8fbfa;
}

.lead-form button,
.landing-preview button,
.snippet-card button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.admin-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-column span,
.fixed-state span,
.broken-state span {
  display: block;
  padding: 9px;
  color: var(--muted);
  background: #f1f5f3;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  background: #f4f6f7;
}

.dashboard-shell aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  color: #dbe7e4;
  background: #102027;
  border-radius: 8px;
}

.dashboard-shell aside span {
  color: #a8bdc3;
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-main {
  display: grid;
  gap: 14px;
}

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

.metrics b {
  display: grid;
  min-height: 78px;
  place-items: center;
  color: var(--accent-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar-chart,
.table-lines {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar-chart {
  min-height: 150px;
}

.bar-chart span {
  flex: 1;
  min-height: 44px;
  background: linear-gradient(180deg, #2e8f70, #b8e4d3);
  border-radius: 6px 6px 0 0;
}

.bar-chart span:nth-child(2) {
  min-height: 92px;
}

.bar-chart span:nth-child(3) {
  min-height: 120px;
}

.bar-chart span:nth-child(4) {
  min-height: 70px;
}

.bar-chart span:nth-child(5) {
  min-height: 132px;
}

.table-lines {
  flex-direction: column;
  align-items: stretch;
}

.table-lines span {
  height: 18px;
  background: #e7eeee;
  border-radius: 6px;
}

.landing-preview {
  display: grid;
  gap: 14px;
  background: #f5f8f6;
}

.landing-preview section {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 160px;
  color: #ffffff;
  background: #102027;
}

.landing-preview section p {
  color: #dbe7e4;
}

.landing-preview button {
  width: fit-content;
  padding: 0 14px;
  background: #2e8f70;
}

.landing-preview ul {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.rescue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #f4f6f7;
}

.broken-state,
.fixed-state {
  display: grid;
  align-content: start;
  gap: 12px;
}

.broken-state {
  border-color: #f0c1bd;
}

.fixed-state {
  border-color: #b8e4d3;
}

.broken-state strong {
  color: var(--danger);
}

.fixed-state strong {
  color: var(--accent);
}

.broken-state code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px;
  color: #8f2e28;
  background: #fff1ef;
  border-radius: 6px;
}

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

.scope-card strong {
  margin-top: auto;
  color: var(--ink);
}

.snippet-card {
  justify-content: space-between;
}

.snippet-card button {
  width: fit-content;
  padding: 0 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #dbe7e4;
  background: #102027;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #dff1ea;
  font-weight: 900;
}

/* Premium visual-system pass for the Demo Lab hub. */
.site-header {
  box-shadow: 0 10px 34px rgba(16, 32, 39, 0.04);
}

.section-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 245, 241, 0.96) 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
}

.hero-copy {
  max-width: 940px;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: 0.96;
}

.proof-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.proof-stack span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 11px;
  color: var(--accent-dark);
  background: rgba(223, 241, 234, 0.82);
  border: 1px solid rgba(23, 107, 82, 0.13);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  box-shadow: 0 16px 42px rgba(23, 107, 82, 0.28);
}

.button.secondary {
  box-shadow: 0 8px 24px rgba(16, 32, 39, 0.06);
}

.hero-proof {
  position: relative;
  gap: 14px;
  padding: clamp(14px, 2.6vw, 22px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-mockup {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  color: #dbe7e4;
  background: #102027;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.proof-mockup-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.proof-mockup-row small {
  color: #9fb4bb;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e8f70;
  box-shadow: 0 0 0 6px rgba(46, 143, 112, 0.16);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.proof-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.proof-mini-grid span {
  padding: 9px;
  color: #173a31;
  background: #dff1ea;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 900;
}

.proof-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 64px;
}

.proof-bars span {
  flex: 1;
  min-height: 24px;
  background: linear-gradient(180deg, #86d0b6, #2e8f70);
  border-radius: 6px 6px 0 0;
}

.proof-bars span:nth-child(2) {
  min-height: 44px;
}

.proof-bars span:nth-child(3) {
  min-height: 58px;
}

.proof-bars span:nth-child(4) {
  min-height: 36px;
}

.trust-strip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.trust-strip span {
  min-height: 88px;
  transition: background 180ms ease, transform 180ms ease;
}

.trust-strip span:hover {
  background: var(--accent-soft);
}

.disclaimer {
  background: linear-gradient(135deg, #102027 0%, #173a31 100%);
}

.demo-card,
.scope-card,
.snippet-card,
.detail-panel .mockup-window {
  box-shadow: var(--shadow-soft);
}

.demo-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #86d0b6, var(--signal));
  opacity: 0;
  transition: opacity 180ms ease;
}

.demo-card:hover,
.demo-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(23, 107, 82, 0.22);
  box-shadow: var(--shadow-strong);
}

.demo-card:hover::before,
.demo-card:focus-within::before {
  opacity: 1;
}

.filter-button {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-1px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 5px rgba(46, 143, 112, 0.14);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(46, 143, 112, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1180px) {
  .demo-grid,
  .scope-grid,
  .snippet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .detail-panel,
  .detail-panel.alternate {
    grid-template-columns: 1fr;
  }

  .detail-panel.alternate .detail-copy,
  .detail-panel.alternate .mockup {
    order: initial;
  }

  .hero {
    min-height: auto;
  }

  .speed-block {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 220px;
  }

  .chat-layout,
  .dashboard-shell,
  .rescue-grid {
    grid-template-columns: 1fr;
  }

  .chat-layout,
  .dashboard-shell,
  .landing-preview,
  .rescue-grid {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .section,
  .section-band,
  .section-narrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.5rem);
  }

  .demo-grid,
  .scope-grid,
  .snippet-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
