/* TenantBridge — Marketing Landing Page Styles
   Standalone; does not share tokens with web/css/app.css.
   Target: web/index.html (TenantBridge marketing site; separate repo)
*/

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  /* Match primary section stripe (Features / Security) for overscroll */
  background: var(--slate-100);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
/* Unstyled button — inherits surrounding text style, used for interactive text links */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --green-100: #dcfce7;
  --green-600: #16a34a;
  --amber-100: #fef9c3;
  --amber-700: #b45309;

  /* Semantic */
  --bg:          #ffffff;
  --bg-subtle:   var(--slate-50);
  --bg-muted:    var(--slate-100);
  --text:        var(--slate-900);
  --text-muted:  var(--slate-600);
  --text-subtle: var(--slate-400);
  --border:      var(--slate-200);
  --border-strong: var(--slate-300);
  --accent:      var(--blue-600);
  --accent-dark: var(--blue-700);
  --accent-light: var(--blue-50);

  /* Layout */
  --max-w: 1120px;
  --section-gap: 2.75rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .08), 0 1px 2px -1px rgb(0 0 0 / .06);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / .10), 0 2px 4px -2px rgb(0 0 0 / .06);
  --shadow-lg: 0 10px 30px -6px rgb(0 0 0 / .12), 0 4px 8px -4px rgb(0 0 0 / .08);
}

/* ── Layout helpers ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
/* Only page sections — modal .ld-cap-section must not inherit 7.5rem block padding */
#main-content > section { padding-block: var(--section-gap); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: .25rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--blue-200);
  margin-bottom: 1rem;
}
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6875rem 1.375rem;
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: background .15s, box-shadow .15s, transform .1s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 4px 0 rgb(37 99 235 / .25);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px 0 rgb(37 99 235 / .30); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--blue-200);
}
.btn-outline:hover { background: var(--accent-light); border-color: var(--blue-300, var(--blue-200)); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-muted); }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Push content below the fixed nav (nav height = 60px) */
#main-content {
  padding-top: 60px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
/* Matches the in-app wordmark: Barlow Condensed, Tenant=light-blue, Bridge=green */
.nav-brand-wm,
.footer-wm {
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tb-wm-t {
  color: #2f8dff;
  font-weight: 200;
}
.tb-wm-b {
  color: #24cc76;
  font-weight: 800;
}
.nav-brand-version {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .125rem .5rem;
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .375rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .12s, background .12s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
/* Mobile drawer CTA — hidden in horizontal desktop nav */
.nav-cta-mobile {
  display: none;
  list-style: none;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.nav-cta-mobile .btn { width: 100%; justify-content: center; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .375rem .5rem;
  color: var(--text-muted);
}

/* ── Nav dropdown ──────────────────────────────────────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .375rem .75rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"] { color: var(--text); background: var(--bg-muted); }
.nav-dropdown-chevron { transition: transform .18s; flex-shrink: 0; }
.nav-dropdown-btn[aria-expanded="true"] .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + .375rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 244px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .3rem;
  list-style: none;
  z-index: 200;
}
.nav-dropdown-panel[data-open] { display: block; }
.nav-dropdown-panel li { display: block; }
.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5625rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.nav-dropdown-panel a:hover { color: var(--text); background: var(--bg-muted); }
.nav-dd-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.nav-dd-icon img { display: block; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
/* Match nav and hero content width so horizontal margins align */
.site-nav .container,
.hero .container {
  max-width: 1440px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 3.75rem;
  /* Slightly darker than --slate-900 (#0f172a) for a deeper fold */
  background: #0a0f1c;
}
/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37,99,235,.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99,102,241,.20) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(16,185,129,.12) 0%, transparent 50%);
  pointer-events: none;
}
/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 999px;
  padding: .3125rem .875rem;
  margin-bottom: 1.25rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: #60a5fa; }
.hero-sub {
  font-size: 1.0625rem;
  color: #94a3b8;
  max-width: 46ch;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.hero-actions .btn-primary {
  background: #2563eb;
  box-shadow: 0 0 0 0 rgba(37,99,235,0);
}
.hero-actions .btn-primary:hover {
  background: #1d4ed8;
}
.hero-actions .btn-ghost {
  color: #cbd5e1;
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.10); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  font-size: 1rem;
  color: #64748b;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-trust-item svg {
  color: #475569;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* ── Hero platform bridge ──────────────────────────────────────────────────── */
.hero-bridge {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.hb-platform {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.hb-icons {
  display: flex;
  gap: .375rem;
  flex-shrink: 0;
}

.hb-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hb-icon-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.hb-platform-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.hb-role {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hb-source .hb-role { color: #60a5fa; }
.hb-dest   .hb-role { color: #4ade80; }

.hb-name {
  font-size: .9rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.hb-connector {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .75rem;
  min-width: 40px;
}

.hb-arrow-wrap {
  background: rgba(15,23,42,.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero panel (right side) */
.hero-panel {
  background: rgba(15,23,42,.6);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero-panel-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
/* Neutral title-bar accent (not OS-specific window controls) */
.hp-chrome-grip {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 2px;
  flex-shrink: 0;
}
.hp-grip-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}
.hp-title {
  flex: 1;
  text-align: center;
  font-size: .75rem;
  color: #475569;
  font-weight: 500;
  letter-spacing: .04em;
}
.hp-badge {
  font-size: .6875rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 999px;
  padding: .125rem .5rem;
}

/* Decorative throughput strip (Migrate-style; illustrative only) */
.hero-throughput {
  margin: 0 0 1.125rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .032);
  border: 1px solid rgba(255, 255, 255, .07);
}
.ht-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.625rem 0.3rem;
}
.ht-period {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ht-period-lbl {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(148, 163, 184, .55);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ht-period-faux {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(203, 213, 225, .65);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 5px;
  padding: 0.15rem 0.4rem 0.15rem 0.45rem;
}
.ht-period-faux::after {
  content: '';
  display: inline-block;
  margin-left: 0.3rem;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid rgba(148, 163, 184, .45);
}
.ht-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.875rem;
  font-size: 0.575rem;
  font-weight: 500;
  color: rgba(148, 163, 184, .6);
}
.ht-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
/* Line-segment swatch instead of square block */
.ht-swatch {
  width: 12px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: .75;
}
.ht-swatch--email {
  background: #4ade80;
}
.ht-swatch--files {
  background: #fb923c;
}
.ht-swatch--payload {
  background: #60a5fa;
}
.ht-leg-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(226, 232, 240, .8);
}
.ht-chart-surface {
  height: 68px;
  line-height: 0;
}
.ht-svg {
  width: 100%;
  height: 68px;
  display: block;
}
.ht-fill {
  stroke: none;
}
.ht-fill--email   { fill: url(#ht-grad-email); }
.ht-fill--files   { fill: url(#ht-grad-files); }
.ht-fill--payload { fill: url(#ht-grad-payload); }
.ht-line {
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ht-line--email {
  stroke: rgba(74, 222, 128, .75);
}
.ht-line--files {
  stroke: rgba(251, 146, 60, .70);
}
.ht-line--payload {
  stroke: rgba(96, 165, 250, .65);
}

.hp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.hp-row:last-child { border-bottom: none; }
.hp-row-info { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.hp-row-name { font-size: .8125rem; font-weight: 500; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-row-sub  { font-size: .6875rem; color: #475569; }
.hp-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .6875rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .2rem .55rem;
  white-space: nowrap;
}
.hp-status.running { color: #4ade80; background: rgba(74,222,128,.10); border: 1px solid rgba(74,222,128,.2); }
.hp-status.queued  { color: #60a5fa; background: rgba(96,165,250,.10); border: 1px solid rgba(96,165,250,.2); }
.hp-status.done    { color: #94a3b8; background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.15); }
.hp-progress-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  overflow: hidden;
  margin-top: -.25rem;
}
.hp-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.hp-progress-fill.green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.hp-footer {
  margin-top: 1rem;
  padding-top: .875rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hp-footer-text { font-size: .6875rem; color: #334155; }
.hp-footer-link { font-size: .6875rem; color: #3b82f6; }

/* ── What it is / isn't ────────────────────────────────────────────────────── */
.whatis {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  container-type: inline-size;
  container-name: whatis;
}
.whatis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.whatis-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.whatis-card.is { border-color: #bfdbfe; }
.whatis-card.isnt { border-color: var(--slate-200); }
.whatis-card-header {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.whatis-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.whatis-icon.blue { background: var(--blue-100); color: var(--blue-600); }
.whatis-icon.slate { background: var(--slate-100); color: var(--slate-500); }
.whatis-card-title { font-size: .875rem; font-weight: 700; color: var(--text); }
.whatis-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.whatis-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.whatis-list li svg { flex-shrink: 0; margin-top: .1rem; }

/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
  background: var(--slate-100);
  container-type: inline-size;
  container-name: features;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .375rem;
}
.feature-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Workflow steps ─────────────────────────────────────────────────────────── */
.workflow {
  background: var(--slate-200);
  border-top: 1px solid var(--slate-300);
  border-bottom: 1px solid var(--slate-300);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-200), var(--slate-200));
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2rem;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  width: 48px; height: 48px;
  background: var(--bg);
  border: 2px solid var(--blue-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.step-body { padding-top: .75rem; }
.step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .375rem; }
.step-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; max-width: 58ch; }
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .625rem;
}
.tag {
  font-size: .6875rem;
  font-weight: 600;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .1875rem .625rem;
  color: var(--text-muted);
  letter-spacing: .03em;
}

/* ── Architecture / trust ──────────────────────────────────────────────────── */
.trust {
  background: var(--slate-100);
  container-type: inline-size;
  container-name: trust;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.trust-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.trust-card-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .875rem;
}
.trust-icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-title { font-size: .9375rem; font-weight: 700; color: var(--text); }
.trust-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* Metrics strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin-top: 3rem;
}
.metric-item { text-align: center; }
.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: .25rem;
}
.metric-label { font-size: .8125rem; color: rgba(255,255,255,.65); font-weight: 500; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { background: var(--slate-200); border-top: 1px solid var(--slate-300); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 2rem;
  max-width: 720px;
  margin-inline: auto;
}
details.faq-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .15s;
}
details.faq-item[open] { border-color: var(--blue-200); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: transform .2s;
}
details.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: .875rem;
}

/* ── Final CTA ─────────────────────────────────────────────────────────────── */
.final-cta {
  background: var(--slate-900);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 110%, rgba(37,99,235,.35) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: 4rem;
}
.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.final-cta p {
  font-size: 1.0625rem;
  color: #94a3b8;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.final-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.final-cta .btn-primary { background: #2563eb; }
.final-cta .btn-primary:hover { background: #1d4ed8; }
.final-cta .btn-ghost { color: #cbd5e1; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,.10); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-wm {
  font-size: 1.125rem;
}
.footer-legal { font-size: .8125rem; color: #94a3b8; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-links a { font-size: .8125rem; color: #94a3b8; transition: color .12s; }
.footer-links a:hover { color: #cbd5e1; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
/* Feature / whatis / trust grids follow section width (container queries) */
@container features (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@container features (max-width: 767px) {
  .features-grid { grid-template-columns: 1fr; }
}
@container whatis (max-width: 767px) {
  .whatis-grid { grid-template-columns: 1fr; }
}
@container trust (max-width: 767px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Browsers without container queries: match grid behavior to viewport */
@supports not (container-type: inline-size) {
  @media (max-width: 1023px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 767px) {
    .features-grid,
    .whatis-grid,
    .trust-grid { grid-template-columns: 1fr; }
  }
}

/* ── Workload deep-dive cards ──────────────────────────────────────────────── */
.workload-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.workload-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.workload-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.workload-card-icons {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.workload-card-icon-wrap {
  width: 38px;
  height: 38px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.workload-card-icon-wrap img { display: block; }
.workload-card-arrow-small { color: var(--text-subtle); flex-shrink: 0; }
.workload-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.workload-card-desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.workload-card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: .25rem;
}
.workload-card:hover .workload-card-link { color: var(--accent-dark); }

@media (max-width: 900px) {
  .nav-inner { gap: .75rem; }
  .nav-brand-wm { font-size: 1.5rem; }
  .hero-inner { gap: 2.5rem; }
  .hero { padding-block: 3.5rem 3rem; }
  .workload-cards { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --section-gap: 2rem; }
  .container { padding-inline: 1.25rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: block; }
  .nav-mobile-toggle { display: flex; align-items: center; }
  /* Nav drawer open state */
  .nav-links[data-open] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.25rem 1rem;
    gap: .25rem;
    z-index: 99;
  }
  .nav-links[data-open] a {
    padding: .625rem .75rem;
    font-size: 1rem;
  }
  .hero { padding-block: 3rem 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero-bridge { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hb-connector { padding: 0; width: 48px; height: 28px; }
  .hb-arrow-wrap svg { transform: rotate(90deg); }
  .hb-name { font-size: .8125rem; }
  .hero h1 { font-size: 2rem; }
  .features { background: #e8edf3; }
  .workflow { background: #dde3ec; }
  .faq { background: #dde3ec; }
  .metrics-strip { grid-template-columns: 1fr; padding: 1.5rem; gap: 1rem; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  html { font-size: 100%; }
  .container { padding-inline: 1rem; }
  :root { --section-gap: 1.75rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-actions .btn-lg { padding: .75rem 1.25rem; font-size: .9375rem; }
  .metrics-strip { border-radius: var(--radius-md); padding: 1.25rem 1rem; }
  .ld-modal-header { padding: 1rem 1rem .875rem; }
  .ld-form { padding: 1rem 1rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Modal system ──────────────────────────────────────────────────────────── */

/* Prevent body scroll while a modal is open */
html.ld-modal-open { overflow: hidden; }

.ld-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  opacity: 1;
  transition: opacity .4s ease;
}
.ld-overlay[hidden] { display: none; }
.ld-overlay--fading { opacity: 0; pointer-events: none; }

.ld-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px -12px rgba(0,0,0,.35), 0 8px 24px -4px rgba(0,0,0,.18);
  width: 100%;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  position: relative;
}

.ld-modal--form { max-width: 560px; }
.ld-modal--cap  { max-width: 860px; }

.ld-modal-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
  padding: 1.75rem 1.75rem 1.25rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.ld-modal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.ld-modal-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.ld-modal-sub {
  font-size: .875rem;
  color: var(--text-muted);
  margin: .25rem 0 0;
  line-height: 1.5;
}

.ld-modal-sub--below-title {
  margin: 0 0 0.375rem;
  max-width: 52ch;
}

.ld-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .12s, color .12s;
}
.ld-modal-close:hover { background: var(--slate-200); color: var(--text); }
.ld-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Demo form ─────────────────────────────────────────────────────────────── */
.ld-form {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ld-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .ld-field-row { grid-template-columns: 1fr; }
}

.ld-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.ld-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--slate-700);
}
.ld-label-opt {
  font-weight: 400;
  color: var(--text-subtle);
}

.ld-input {
  width: 100%;
  padding: .5625rem .75rem;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.ld-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.ld-input::placeholder { color: var(--text-subtle); }
.ld-textarea { resize: vertical; min-height: 96px; }

.ld-form-status {
  font-size: .875rem;
  line-height: 1.5;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
}
.ld-form-status[hidden] { display: none; }
.ld-form-status--ok {
  background: var(--green-100);
  color: var(--green-600);
  border: 1px solid rgba(22,163,74,.2);
}
.ld-form-status--error {
  background: var(--amber-100);
  color: var(--amber-700);
  border: 1px solid rgba(180,83,9,.2);
}

.ld-form-footer {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.ld-form-legal {
  font-size: .75rem;
  color: var(--text-subtle);
  text-align: center;
  margin: 0;
}

/* ── Capabilities modal body ───────────────────────────────────────────────── */
.ld-cap-body {
  padding: 0 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.ld-cap-tagline {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.ld-cap-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ld-cap-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.ld-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .875rem;
}
@media (max-width: 680px) {
  .ld-cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .ld-cap-grid { grid-template-columns: 1fr; }
}

.ld-cap-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ld-cap-card:hover {
  border-color: var(--blue-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Icon: inline SVG inside the card, sized and colored via CSS */
.ld-cap-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.ld-cap-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ld-cap-headline {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.ld-cap-copy {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.ld-cap-cta {
  display: flex;
  justify-content: center;
  padding-top: .5rem;
}

/* dark-mode tweaks for modals */
@media (prefers-color-scheme: dark) {
  .ld-modal {
    background: #1e293b;
    border-color: rgba(255,255,255,.08);
  }
  .ld-modal-header { background: #1e293b; border-color: rgba(255,255,255,.08); }
  .ld-modal-close { background: #0f172a; border-color: rgba(255,255,255,.08); }
  .ld-modal-close:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
  .ld-input { background: #0f172a; border-color: rgba(255,255,255,.10); color: #e2e8f0; }
  .ld-input:focus { border-color: #3b82f6; }
  .ld-cap-card { background: #0f172a; border-color: rgba(255,255,255,.07); }
  .ld-cap-card:hover { border-color: rgba(59,130,246,.3); }
  .ld-cap-icon { background-color: #60a5fa; }
  .ld-cap-section-title { border-color: rgba(255,255,255,.07); }
  .ld-cap-tagline { color: #cbd5e1; }
  .ld-label { color: #94a3b8; }
}
@media (prefers-color-scheme: dark) {
  /* Minimal dark-mode pass — keeps the page readable without a full redesign */
  body {
    background: var(--bg);
  }
  :root {
    --bg:          #0f172a;
    --bg-subtle:   #1e293b;
    --bg-muted:    #1e293b;
    --text:        #e2e8f0;
    /* Body copy on dark cards: lighter than before for WCAG contrast on #1e293b */
    --text-muted:  #cbd5e1;
    --text-subtle: #94a3b8;
    --border:      rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.12);
    --accent-light: rgba(37,99,235,.15);
    --blue-100:    rgba(219,234,254,.08);
    --blue-200:    rgba(191,219,254,.15);
    --green-100:   rgba(220,252,231,.08);
    --slate-50:    #1e293b;
    --slate-100:   #1e293b;
    --slate-200:   rgba(255,255,255,.08);
    --slate-300:   rgba(255,255,255,.12);
  }
  .whatis-card, .feature-card, .trust-card, .faq-item { background: #1e293b; }

  /* Section stripes: light mode uses slate-100/200; dark tokens remap slate-200 to a border tint — reset here */
  .features,
  .trust {
    background: var(--bg);
  }
  .workflow,
  .faq {
    background: var(--bg-subtle);
  }
  .workflow {
    border-top-color: var(--border);
    border-bottom-color: var(--border);
  }
  .faq {
    border-top-color: var(--border);
  }
}
