/* ==========================================================================
   HostedERP — marketing site
   A light editorial system built around the official navy / red / grey mark,
   with the product's indigo (#4f5fe8) as the interactive accent.
   ========================================================================== */

:root {
  --navy-950: #06152e;
  --navy-900: #0a1f44;
  --navy-800: #102b5c;
  --navy-700: #173a78;
  --blue-700: #1b4b9e;
  --blue-600: #245fc4;
  --indigo: #4f5fe8;
  --indigo-600: #4050d6;
  --indigo-050: #eef0ff;
  --red: #e2231a;
  --red-050: #fdeceb;
  --ink: #0d1b2e;
  --muted: #5b7089;
  --muted-2: #7d8da3;
  --line: #dfe7f0;
  --line-strong: #c9d6e5;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --soft: #eef4fb;
  --soft-2: #e7eef8;
  --shadow: 0 28px 70px rgba(8, 30, 70, 0.13);
  --shadow-soft: 0 14px 38px rgba(8, 30, 70, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --header-h: 78px;
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
svg { display: block; vertical-align: middle; }
.float-card .dot svg { width: 15px; height: 15px; }
.mini-avatar svg { width: 14px; height: 14px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection { background: rgba(79, 95, 232, 0.18); }

h1, h2, h3, h4 {
  font-family: "Manrope", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.55em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.15rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.65rem); font-weight: 800; }
h3 { font-size: clamp(1.06rem, 1.7vw, 1.28rem); font-weight: 750; }
h4 { font-size: 1rem; font-weight: 750; }

p { margin: 0 0 1.15em; color: var(--muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 14px;
  top: -90px;
  padding: 12px 18px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--indigo-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.eyebrow.light { color: #a9c3ea; }
.eyebrow.light::before { background: #ff6b64; }

.lead {
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.section { padding: clamp(72px, 9vw, 112px) 0; }
.section.tight { padding: clamp(52px, 6vw, 76px) 0; }
.section.soft { background: var(--surface); }
.section.alt { background: linear-gradient(180deg, var(--bg), #f1f6fc); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 52px);
}
.section-head h2 { margin-bottom: 0; max-width: 18ch; }
.section-head p { margin: 0 0 4px; max-width: 46ch; }

.section-head.center {
  display: block;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.section-head.center h2 { margin-inline: auto; max-width: 22ch; }
.section-head.center p { margin-inline: auto; max-width: 58ch; }

/* ---------- Buttons ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.94rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-600));
  color: #fff;
  box-shadow: 0 14px 30px rgba(79, 95, 232, 0.28);
}
.btn-primary:hover { box-shadow: 0 18px 36px rgba(79, 95, 232, 0.34); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--indigo); color: var(--indigo-600); }

.btn-light { background: #fff; color: var(--navy-900); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 750;
  color: var(--indigo-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 95, 232, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { border-color: var(--indigo-600); }
.text-link::after { content: "→"; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 249, 252, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 231, 240, 0.85);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(8, 30, 70, 0.07);
}
.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-link img { width: clamp(168px, 19vw, 214px); height: auto; display: block; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.desktop-nav > a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  color: #33465e;
  padding: 6px 0;
  white-space: nowrap;
}
.desktop-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: right 0.22s ease;
}
.desktop-nav > a:hover::after,
.desktop-nav > a[aria-current="page"]::after { right: 0; }
.desktop-nav > a[aria-current="page"] { color: var(--navy-900); }

/* Product dropdown ------------------------------------------------------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #33465e;
  font-size: 0.9rem;
  font-weight: 650;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: right 0.22s ease;
}
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.is-current::after { right: 0; }
.nav-dropdown-toggle.is-current { color: var(--navy-900); }
.nav-chevron { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 20px);
  left: -24px;
  width: 470px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(8, 30, 70, 0.18);
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 42px;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-dropdown-head span:last-child {
  color: var(--muted-2);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.nav-dropdown-item {
  display: grid;
  grid-template-columns: 38px 1fr 16px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.nav-dropdown-item:hover,
.nav-dropdown-item[aria-current="page"] { background: var(--soft); }
.nav-dropdown-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--indigo-050);
  color: var(--indigo-600);
}
.nav-dropdown-icon svg { width: 19px; height: 19px; }
.nav-dropdown-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
}
.nav-dropdown-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}
.nav-dropdown-arrow { color: var(--muted-2); font-size: 1rem; }
.nav-dropdown-item:hover .nav-dropdown-arrow { color: var(--indigo-600); }

[data-theme="dark"] .nav-dropdown-toggle { color: #c2d0e0; }
[data-theme="dark"] .nav-dropdown-toggle.is-current { color: #fff; }
[data-theme="dark"] .nav-dropdown-toggle::after { background: #9aa7ff; }
[data-theme="dark"] .nav-dropdown-menu {
  background: #0b1b31;
  border-color: rgba(154, 167, 255, 0.22);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
}
[data-theme="dark"] .nav-dropdown-menu::before {
  background: #0b1b31;
  border-color: rgba(154, 167, 255, 0.22);
}
[data-theme="dark"] .nav-dropdown-head { color: #8fa4bd; }
[data-theme="dark"] .nav-dropdown-head span:last-child { color: #657b94; }
[data-theme="dark"] .nav-dropdown-item { color: #e7eef7; }
[data-theme="dark"] .nav-dropdown-item:hover,
[data-theme="dark"] .nav-dropdown-item[aria-current="page"] { background: rgba(154, 167, 255, 0.09); }
[data-theme="dark"] .nav-dropdown-icon {
  background: rgba(154, 167, 255, 0.12);
  color: #aab7ff;
}
[data-theme="dark"] .nav-dropdown-copy strong { color: #fff; }
[data-theme="dark"] .nav-dropdown-copy small { color: #b3c2d6; }
[data-theme="dark"] .nav-dropdown-arrow { color: #7d8da3; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-signin {
  font-size: 0.88rem;
  font-weight: 700;
  color: #33465e;
  text-decoration: none;
  white-space: nowrap;
}
.nav-signin:hover { color: var(--indigo-600); }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: 0.86rem; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--navy-800);
}
.lang-switch:hover { border-color: var(--indigo); color: var(--indigo-600); }

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.mobile-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 40px rgba(8, 30, 70, 0.12);
}
.mobile-panel.is-open { display: block; }
.mobile-panel nav {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
  padding: 14px 0 22px;
  display: grid;
}
.mobile-panel a {
  padding: 14px 2px;
  text-decoration: none;
  font-weight: 650;
  color: #33465e;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a:last-of-type { border-bottom: 0; }
.mobile-panel .mobile-cta {
  margin-top: 12px;
  text-align: center;
  border: 0;
  color: #fff;
}
.mobile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.mobile-product-group { border-bottom: 1px solid var(--line); padding: 2px 0 4px; }
.mobile-group-label {
  display: block;
  padding: 10px 2px 4px;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mobile-panel .mobile-sub {
  display: block;
  padding: 9px 2px 9px 16px;
  border-bottom: 0;
  font-size: 0.88rem;
  font-weight: 650;
}
.mobile-panel .mobile-sub span { display: block; }
.mobile-panel .mobile-sub small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.4;
}
.mobile-panel .mobile-sub[aria-current="page"] { color: var(--indigo-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 clamp(50px, 6vw, 76px);
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 95, 232, 0.12), transparent 34%),
    radial-gradient(circle at 92% 22%, rgba(227, 6, 19, 0.06), transparent 30%),
    linear-gradient(150deg, #f8fbff 0%, #eef4fb 55%, #e8eef9 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 43, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 43, 92, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
}
.hero-copy { max-width: 650px; min-width: 0; }
.hero-grid > *, .split > *, .feature-grid > *, .tab-panel-grid > *, .contact-grid > *, .flow-card > * { min-width: 0; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--indigo-600); }
.hero .lead { max-width: 56ch; margin-bottom: 30px; }
.hero .button-row { margin-bottom: 28px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 43, 92, 0.12);
  font-size: 0.82rem;
  font-weight: 650;
  color: #4a6079;
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--indigo-600); }

/* Product stage */
.product-stage { position: relative; padding: 20px 0 30px; min-width: 0; max-width: 100%; }
.stage-glow {
  position: absolute;
  inset: 6% -4% 0 8%;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(27, 75, 158, 0.2), rgba(79, 95, 232, 0.08) 55%, rgba(227, 6, 19, 0.08));
  filter: blur(2px);
  transform: rotate(2.5deg);
}
.browser {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 36px 80px rgba(8, 30, 70, 0.24), 0 6px 18px rgba(8, 30, 70, 0.08);
  transform: rotate(-1deg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #f1f5fa;
  border-bottom: 1px solid #e3eaf3;
}
.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8d4e2;
  display: block;
}
.browser-bar i:nth-child(1) { background: #ff6b62; }
.browser-bar i:nth-child(2) { background: #ffc24b; }
.browser-bar i:nth-child(3) { background: #4cc38a; }
.browser-url {
  margin-left: 10px;
  flex: 1;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e1e9f2;
  font-size: 0.62rem;
  color: #7d8da3;
  display: flex;
  align-items: center;
  padding: 0 9px;
  letter-spacing: 0.02em;
}
.browser img { display: block; width: 100%; aspect-ratio: 830 / 675; object-fit: cover; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 231, 240, 0.9);
  box-shadow: 0 16px 34px rgba(8, 30, 70, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  backdrop-filter: blur(8px);
  animation: float 6.5s ease-in-out infinite;
  z-index: 3;
}
.float-card small {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--muted-2);
}
.float-card .dot {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--indigo-050);
  color: var(--indigo-600);
  flex: 0 0 auto;
}
.float-card .dot.green { background: #e7f8ef; color: #0f9f5f; }
.float-card .dot.red { background: var(--red-050); color: var(--red); }
.float-card.fc-1 { top: 4%; left: -6%; }
.float-card.fc-2 { bottom: 12%; right: -5%; animation-delay: -2.2s; }
.float-card.fc-3 { top: 48%; left: -9%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Trust strip / industry strip ---------- */
.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -26px;
}
.trust-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.trust-card > div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.83rem;
  font-weight: 650;
  color: #33465e;
}
.trust-card > div:last-child { border-right: 0; }
.trust-card svg { width: 19px; height: 19px; color: var(--indigo-600); flex: 0 0 auto; }

/* ---------- Value / problem section ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.value-list { display: grid; gap: 20px; margin-top: 28px; }
.value-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
}
.value-item .num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--navy-800);
  font-weight: 800;
  font-size: 0.82rem;
}
.value-item h3 { margin-bottom: 5px; }
.value-item p { margin: 0; font-size: 0.92rem; }

.fragmentation {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.fragment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fragment {
  padding: 16px;
  border-radius: 13px;
  border: 1px dashed var(--line-strong);
  background: #fafcff;
  font-size: 0.78rem;
  font-weight: 650;
  color: #4a6079;
}
.fragment small { display: block; font-weight: 500; color: var(--muted-2); margin-top: 3px; }
.fragment strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 0.84rem; }
.fragment-arrow {
  display: grid;
  place-items: center;
  margin: 16px 0;
  color: var(--indigo-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fragment-arrow::before,
.fragment-arrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.fragment-arrow span { padding: 0 12px; }
.unified-box {
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.unified-box strong { color: #fff; font-size: 0.95rem; display: block; margin-bottom: 8px; }
.unified-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.unified-chips span {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dbe6f6;
}

/* ---------- Capability cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 27px 25px 23px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.cap-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c8d6e8; }
.cap-card:hover::after { transform: scaleX(1); }
.cap-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--indigo-050);
  color: var(--indigo-600);
  margin-bottom: 18px;
}
.cap-icon svg { width: 23px; height: 23px; }
.cap-card h3 { margin-bottom: 8px; }
.cap-card p { font-size: 0.9rem; margin-bottom: 16px; }
.cap-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.cap-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  color: #4a6079;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.cap-card .text-link { margin-top: auto; font-size: 0.8rem; }

/* ---------- Home discovery cards --------------------------------------- */
.discover-head {
  max-width: 700px;
  margin: 0 auto clamp(34px, 5vw, 48px);
  text-align: center;
}
.discover-head h2 { margin-bottom: 12px; }
.discover-head p { max-width: 58ch; margin: 0 auto; }
.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.discover-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.discover-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.discover-media {
  position: relative;
  height: 208px;
  overflow: hidden;
  background: var(--navy-900);
}
.discover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.discover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 46, 0.02) 40%, rgba(6, 21, 46, 0.56) 100%);
}
.discover-media-label {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.discover-media-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: #ff6b64;
  border-radius: 2px;
}
.discover-body { display: flex; flex: 1; flex-direction: column; padding: 25px 24px 24px; }
.discover-kicker {
  margin-bottom: 9px;
  color: var(--indigo-600);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.discover-body h3 { margin-bottom: 10px; font-size: 1.18rem; }
.discover-body p { margin-bottom: 18px; font-size: 0.9rem; line-height: 1.65; }
.discover-body .text-link { margin-top: auto; }
.role-visual {
  display: grid;
  align-content: center;
  gap: 8px;
  height: 208px;
  padding: 26px 24px;
  background:
    radial-gradient(circle at 82% 15%, rgba(79, 95, 232, 0.28), transparent 38%),
    linear-gradient(140deg, #0b1b31, #102b5c);
}
.role-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.role-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(154, 167, 255, 0.2);
  color: #d9e1ff;
  font-size: 0.7rem;
  font-weight: 800;
}
.role-row strong { display: block; color: #fff; font-size: 0.76rem; }
.role-row small { display: block; color: #9eb0c7; font-size: 0.64rem; }
.role-pill {
  padding: 4px 7px;
  border: 1px solid rgba(154, 167, 255, 0.25);
  border-radius: 999px;
  color: #c7d1ff;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .discover-grid { grid-template-columns: 1fr; }
  .discover-card { max-width: 560px; width: 100%; margin-inline: auto; }
  .discover-media, .role-visual { height: 220px; }
}

/* ---------- Tabs / solutions ---------- */
.tab-shell { margin-top: 10px; }
.tab-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #4a6079;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { background: var(--soft); color: var(--navy-800); }
.tab[aria-selected="true"] {
  background: var(--navy-900);
  color: #fff;
}
.tab-panel { padding: 34px 0 6px; }
.tab-panel[hidden] { display: none; }
.tab-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.tab-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.tab-panel .tagline { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo-600); margin-bottom: 12px; }
.tab-panel ul.checks { margin-top: 20px; }
.tab-panel .button-row { margin-top: 24px; }
.tab-visual {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, #eef4fb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}
.mini-board { display: grid; gap: 9px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 650;
  color: #33465e;
  box-shadow: 0 3px 10px rgba(8, 30, 70, 0.04);
}
.mini-row > span:not(.mini-avatar):not(.status) { flex: 1; min-width: 0; }
.mini-row small { display: block; }
.mini-row .status {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f8ef;
  color: #0f7a4a;
  white-space: nowrap;
}
.mini-row .status.warn { background: #fff4df; color: #9a6410; }
.mini-row .status.info { background: var(--indigo-050); color: var(--indigo-600); }
.mini-row .status.red { background: var(--red-050); color: #b31b14; }
.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--navy-800);
  font-size: 0.62rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.mini-meta { display: block; font-size: 0.63rem; font-weight: 500; color: var(--muted-2); }
.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mini-header span { color: var(--muted-2); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------- Checks ---------- */
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.checks li {
  position: relative;
  padding-left: 27px;
  font-size: 0.9rem;
  color: #4a6079;
}
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--indigo-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f5fe8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
ul.checks.light li { color: #c5d5e8; }
ul.checks.light li::before { background-color: rgba(255,255,255,.12); }

/* ---------- Dark band ---------- */
.dark-band {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 104px) 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(79, 95, 232, 0.28), transparent 34%),
    radial-gradient(circle at 94% 80%, rgba(227, 6, 19, 0.14), transparent 30%),
    linear-gradient(145deg, var(--navy-950), #0b2147 58%, #102b5c);
  color: #fff;
}
.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.dark-band .container { position: relative; z-index: 1; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band p { color: #b9cbe1; }
.dark-band .lead { color: #c4d4e7; }
.dark-band .section-head p { color: #b9cbe1; }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.arch-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.23s ease, transform 0.23s ease;
}
.arch-card:hover { background: rgba(255, 255, 255, 0.085); transform: translateY(-3px); }
.arch-card .arch-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #7f93ff;
  margin-bottom: 12px;
  display: block;
}
.arch-card h3 { font-size: 1rem; margin-bottom: 7px; }
.arch-card p { font-size: 0.82rem; margin: 0; color: #aebfd6; }

/* ---------- Workflow chains ---------- */
.flow-stack { display: grid; gap: 16px; margin-top: 36px; }
.flow-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.flow-card h3 { margin: 0; font-size: 1.02rem; }
.flow-card .flow-sub { font-size: 0.76rem; color: var(--muted-2); margin-top: 4px; }
.flow-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.flow-chain span {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: #33465e;
  white-space: nowrap;
}
.flow-chain span:last-child { background: var(--navy-900); color: #fff; }
.flow-chain i { color: var(--muted-2); font-style: normal; font-size: 0.72rem; }

/* ---------- Stats / principles ---------- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.principle {
  padding: 26px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.principle .p-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
.principle h3 { font-size: 1rem; margin-bottom: 7px; }
.principle p { font-size: 0.82rem; margin: 0; }

/* ---------- Roles ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.role-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.role-card:hover { border-color: #bfd0e4; transform: translateY(-3px); }
.role-card .role-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.role-card h3 { margin: 0; font-size: 0.98rem; }
.role-card .role-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: #4a6079;
  white-space: nowrap;
}
.role-card p { font-size: 0.8rem; margin: 0; }

/* ---------- Small layout utilities ---------- */
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }

/* ---------- Architecture diagram ---------- */
.tenant-map {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.tenant-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 9px;
}
.tenant-requests { display: grid; gap: 8px; }
.tenant-chip {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fbfdff;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.68rem;
  color: #33465e;
}
.tenant-arrow { text-align: center; color: var(--indigo-600); font-size: 1.1rem; line-height: 1.6; }
.tenant-router {
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed var(--indigo);
  background: var(--indigo-050);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--navy-800);
}
.tenant-router small { display: block; font-weight: 500; color: var(--muted); font-size: 0.66rem; margin-top: 2px; }
.tenant-dbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tenant-db {
  padding: 12px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
}
.tenant-db strong { color: #fff; display: block; font-size: 0.78rem; }
.tenant-db small { color: #a9bed8; font-size: 0.64rem; }
.tenant-deny {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--red-050);
  color: #a51c15;
  font-size: 0.68rem;
  font-weight: 700;
}
.tenant-note {
  margin-top: 10px;
  font-size: 0.68rem;
  color: var(--muted-2);
}

/* ---------- Chart mock ---------- */
.chart-card {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 5px 16px rgba(8, 30, 70, 0.05);
}
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.chart-head span { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted-2); }
.chart-head strong { font-family: "Manrope", "Segoe UI", sans-serif; font-size: 1.25rem; color: var(--navy-900); }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.chart-bars i {
  flex: 1;
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--indigo), #8b96f3);
  min-height: 6px;
}
.chart-bars i:nth-child(6) { background: linear-gradient(180deg, var(--red), #f08a84); }
.chart-axis { display: flex; gap: 6px; padding-top: 7px; }
.chart-axis span { flex: 1; text-align: center; font-size: 0.58rem; color: var(--muted-2); }

/* ---------- Mobility device composition ---------- */
.mobility-visual {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.mobility-visual img { display: block; width: 100%; height: auto; }
.mobility-visual .mobility-dark { display: none; }
[data-theme="dark"] .mobility-visual .mobility-light { display: none; }
[data-theme="dark"] .mobility-visual .mobility-dark { display: block; }
.mobility-visual figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

/* ---------- Phone mock ---------- */
.phone {
  width: min(260px, 100%);
  margin-inline: auto;
  padding: 9px;
  border-radius: 30px;
  background: var(--navy-950);
  box-shadow: var(--shadow);
}
.phone-screen {
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  padding: 14px 12px 16px;
}
.phone-notch { width: 60px; height: 5px; border-radius: 4px; background: #203656; margin: 0 auto 12px; }
.phone-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.phone-head strong { font-size: 0.76rem; color: var(--navy-900); }
.phone-head span { font-size: 0.58rem; color: var(--muted-2); }

/* ---------- Notes / current scope ---------- */
.note {
  padding: 18px 20px;
  border-radius: 13px;
  background: #fff8e9;
  border: 1px solid #f1d9a8;
  border-left: 4px solid #d99a15;
}
.note strong { display: block; font-size: 0.8rem; color: #6e4a06; margin-bottom: 4px; }
.note p { font-size: 0.82rem; color: #775c25; margin: 0; }
.note.blue { background: #eef4fb; border-color: #cddff0; border-left-color: var(--blue-600); }
.note.blue strong { color: var(--navy-800); }
.note.blue p { color: #4a6079; }

/* ---------- Step list ---------- */
.steps { display: grid; gap: 0; margin: 28px 0 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 24px 48px;
  border-left: 2px solid var(--line);
  margin-left: 14px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -15px;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--indigo);
  color: var(--indigo-600);
  font-size: 0.68rem;
  font-weight: 800;
}
.step h3 { margin-bottom: 4px; font-size: 0.95rem; }
.step p { margin: 0; font-size: 0.86rem; }

/* ---------- Matrix / role table ---------- */
.matrix-note { font-size: 0.72rem; color: var(--muted-2); margin-top: 10px; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.price-card.featured {
  border-color: var(--indigo);
  box-shadow: 0 24px 60px rgba(79, 95, 232, 0.18);
}
.price-card.dark {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800));
  border-color: transparent;
  color: #fff;
}
.price-card.dark h3, .price-card.dark .plan-price, .price-card.dark .plan-price strong { color: #fff; }
.price-card.dark p, .price-card.dark li { color: #c4d4e7; }
.price-card.dark li::before { background-color: rgba(255,255,255,.14); }
.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--indigo-050);
  color: var(--indigo-600);
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan-for { font-size: 0.78rem; min-height: 2.6em; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; color: var(--navy-900); margin-bottom: 4px; }
.plan-price strong { font-family: "Manrope", "Segoe UI", sans-serif; font-size: 2rem; line-height: 1; letter-spacing: -0.04em; }
.plan-price span { font-size: 0.74rem; color: var(--muted); }
.plan-from { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.plan-billed { font-size: 0.66rem; color: var(--muted-2); margin-bottom: 15px; min-height: 2.5em; }
.price-card ul.checks { margin: 0 0 18px; gap: 8px; }
.price-card ul.checks li { font-size: 0.79rem; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card.dark .btn-ghost { border-color: rgba(255,255,255,.35); }
.price-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
  font-size: 0.74rem;
  color: var(--muted-2);
}
.price-note span { display: inline-flex; align-items: center; gap: 7px; }
.price-note svg { width: 14px; height: 14px; color: var(--indigo-600); }
.price-toggle-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--indigo-050);
  color: var(--indigo-600);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.price-table th:first-child, .price-table td:first-child { width: 34%; }
.price-table td, .price-table th { text-align: center; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.addon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.addon {
  padding: 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.addon strong { display: block; font-size: 0.86rem; margin-bottom: 5px; }
.addon p { font-size: 0.78rem; margin: 0; }
.addon span { display: block; font-size: 0.68rem; color: var(--indigo-600); font-weight: 800; margin-top: 9px; }

@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
}

/* ---------- Callout ---------- */
.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 32px 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef2ff, #f7f9fc);
  border: 1px solid #dbe2f5;
}
.callout h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 8px; }
.callout p { margin: 0; max-width: 60ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 90px) 0 clamp(44px, 5vw, 64px);
  background:
    radial-gradient(circle at 88% 4%, rgba(79, 95, 232, 0.12), transparent 33%),
    linear-gradient(150deg, #f8fbff, #eef4fb);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -220px;
  width: 560px;
  height: 560px;
  border: 90px solid rgba(27, 75, 158, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 18ch; margin-bottom: 18px; }
.page-hero .lead { max-width: 64ch; }
.page-hero .button-row { margin-top: 28px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--indigo-600); }
.breadcrumb span { color: var(--line-strong); }

/* ---------- Feature sections ---------- */
.feature-section {
  padding: clamp(56px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--line);
}
.feature-section:last-child { border-bottom: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}
.feature-section:nth-child(even) .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.65rem, 2.9vw, 2.25rem); margin-bottom: 14px; }
.feature-copy p { font-size: 0.96rem; }
.feature-copy ul.checks { margin: 22px 0 26px; }
.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 14px;
}
.feature-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.feature-visual {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, #fff, #eef4fb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 330px;
  display: grid;
  align-content: center;
}
.feature-visual.dark {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800));
  border-color: transparent;
}
.feature-visual img { border-radius: 11px; display: block; width: 100%; }

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mini-stat {
  padding: 15px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(8, 30, 70, 0.04);
}
.mini-stat small { display: block; font-size: 0.64rem; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.mini-stat strong { font-size: 1.15rem; color: var(--navy-900); font-family: "Manrope", "Segoe UI", sans-serif; }
.mini-stat span { font-size: 0.66rem; color: var(--muted); display: block; margin-top: 2px; }

/* ---------- Sticky subnav ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-top: 9px;
  padding-bottom: 9px;
  scrollbar-width: thin;
}
.subnav a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a6079;
  padding: 7px 12px;
  border-radius: 999px;
}
.subnav a:hover { background: var(--soft); color: var(--navy-900); }

/* ---------- Workflow timeline ---------- */
.timeline { position: relative; margin-top: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--indigo), rgba(79, 95, 232, 0.08));
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 58px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .t-dot {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--indigo);
  color: var(--indigo-600);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
}
.timeline-item h3 { margin-bottom: 5px; font-size: 1rem; }
.timeline-item p { margin: 0; font-size: 0.88rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.86rem; }
table.data th, table.data td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: #f1f6fc; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #4a6079; font-weight: 800; }
table.data tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--ink); }
table.data.matrix { min-width: 0; font-size: 0.76rem; }
table.data.matrix th, table.data.matrix td { padding: 10px 8px; }
table.data.matrix th { font-size: 0.62rem; letter-spacing: 0.05em; }
table.data.matrix td small { font-size: 0.66rem; }
table.data .yes { color: #0f7a4a; font-weight: 800; }
table.data .no { color: #9a6410; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 32px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding: 0 18px;
  box-shadow: 0 4px 14px rgba(8, 30, 70, 0.035);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 30px 15px 0;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.2rem;
  color: var(--indigo-600);
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; font-size: 0.87rem; margin: 0; }

/* ---------- Resource cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.resource-card:hover { transform: translateY(-4px); border-color: #bfd0e4; }
.resource-card .r-tag { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.resource-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.resource-card p { font-size: 0.8rem; margin-bottom: 16px; }
.resource-card .text-link { margin-top: auto; font-size: 0.78rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact-aside { position: sticky; top: calc(var(--header-h) + 26px); }
.contact-aside h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: #4a6079; }
.contact-item svg { width: 19px; height: 19px; color: var(--indigo-600); flex: 0 0 auto; margin-top: 2px; }
.contact-item strong { display: block; color: var(--ink); font-size: 0.84rem; }
.contact-item a { color: var(--indigo-600); text-decoration: none; }

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 700; color: #33465e; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fbfdff;
  color: var(--ink);
  font-size: 0.88rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 95, 232, 0.14);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.7rem; color: var(--muted-2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.76rem; color: var(--muted); margin: 16px 0 0; }
.consent input { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--indigo); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: 0.72rem; color: var(--muted-2); }
.form-status { max-width: 680px; padding: 34px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-status h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-status .button-row { margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5vw, 64px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 340px;
  height: 340px;
  border: 60px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { color: #c7d8ea; margin: 0; max-width: 60ch; }
.cta-band .button-row { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
  padding: 66px 0 28px;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -280px;
  width: 560px;
  height: 560px;
  border: 90px solid rgba(79, 95, 232, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.55fr 0.8fr 0.8fr 0.9fr;
  gap: 42px;
}
.footer-brand img { width: 218px; margin-bottom: 18px; }
.footer-brand p { color: #a9bdd4; font-size: 0.85rem; max-width: 34ch; }
.footer-col h3 {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 800;
}
.footer-links { display: grid; gap: 9px; }
.footer-links a {
  text-decoration: none;
  font-size: 0.84rem;
  color: #b7c8dc;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: #fff; }
.footer-links span { font-size: 0.8rem; color: #8fa6c0; }
.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.75rem;
  color: #8fa6c0;
}
.footer-bottom a { color: #c8d8ea; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Keep anchored sections clear of the sticky header and feature subnav. */
[id] { scroll-margin-top: calc(var(--header-h) + 22px); }

/* ---------- Reveal ----------
   Content is visible by default. The class only exists as a hook for a future
   progressive enhancement; hiding it would make the site depend on JavaScript
   and would break full-page capture and print. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Responsive ---------- */
/* The header carries seven links plus the theme, language and account actions.
   It needs the mobile disclosure earlier than the rest of the layout. */
@media (max-width: 1240px) {
  .desktop-nav, .nav-actions .nav-signin, .nav-actions .lang-switch, .nav-actions .nav-cta { display: none; }
  .nav-actions { gap: 8px; }
  .mobile-toggle { display: grid; }
}

@media (max-width: 1100px) {
  .nav-actions { gap: 8px; }
  .mobile-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .product-stage { max-width: 720px; margin-inline: auto; width: 100%; }
  .float-card.fc-1 { left: 0; }
  .float-card.fc-2 { right: 0; }
  .float-card.fc-3 { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-head p { margin-left: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-card { grid-template-columns: repeat(2, 1fr); }
  .trust-card > div:nth-child(2) { border-right: 0; }
  .trust-card > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .feature-section:nth-child(even) .feature-copy { order: 0; }
  .flow-card { grid-template-columns: 1fr; gap: 14px; }
  .tab-panel-grid { grid-template-columns: 1fr; }
  .tab-visual { min-height: 0; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 70px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 66px 0; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 1; }
  .split.reverse .split-media { order: 2; }
  .card-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-section:nth-child(even) .feature-copy { order: 0; }
  .flow-card { padding: 20px; }
  .flow-chain span { font-size: 0.66rem; }
  .cta-band { padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: 10px; }
  .trust-card > div { padding: 15px 16px; font-size: 0.78rem; }
  .callout { grid-template-columns: 1fr; padding: 26px; }
  .mini-stat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .trust-card { grid-template-columns: 1fr; }
  .trust-card > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-card > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .trust-card > div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.25rem, 12vw, 3rem); }
  .hero { padding-top: 46px; }
  .hero .button-row .btn { width: 100%; }
  .hero-note { gap: 8px 14px; font-size: 0.76rem; }
  .float-card { padding: 9px 11px; font-size: 0.68rem; }
  .float-card small { font-size: 0.58rem; }
  .float-card .dot { width: 24px; height: 24px; }
  .float-card.fc-1 { top: 2%; left: 2px; }
  .float-card.fc-2, .float-card.fc-3 { display: none; }
  .browser { transform: none; }
  .tab-list { gap: 2px; }
  .tab { padding: 10px 12px; font-size: 0.78rem; }
  .role-grid, .resource-grid, .principle-grid { grid-template-columns: 1fr; }
  .fragment-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta-band .button-row .btn { width: 100%; }
  .footer-brand img { width: 190px; }
  .contact-form { padding: 22px 18px; }
  .callout { padding: 22px 18px; }
  .timeline-item { padding-left: 46px; }
  .timeline::before { left: 15px; }
  .timeline-item .t-dot { left: 2px; width: 26px; height: 26px; }
}

/* ==========================================================================
   Theme toggle and dark theme
   The dark palette follows the app's dark dashboard: blue-black surfaces,
   low-glare cards and indigo/red accents. Content stays identical; only the
   surfaces, contrast and shadows change.
   ========================================================================== */

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--indigo); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

.brand-link .logo-for-dark { display: none; }
[data-theme="dark"] .brand-link .logo-for-light { display: none; }
[data-theme="dark"] .brand-link .logo-for-dark { display: block; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --navy-950: #040a13;
  --navy-900: #081426;
  --navy-800: #0d2036;
  --navy-700: #143151;
  --blue-700: #7fa9e6;
  --blue-600: #8db6f5;
  --indigo: #6576ff;
  --indigo-600: #5261e8;
  --indigo-050: #18244a;
  --red: #ff7a73;
  --red-050: #33181a;
  --ink: #eef4fb;
  --muted: #a8b9cc;
  --muted-2: #7f94ab;
  --line: #20344b;
  --line-strong: #2d4661;
  --bg: #070e19;
  --surface: #0c1726;
  --surface-2: #101e30;
  --soft: #111f32;
  --soft-2: #15273c;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] ::selection { background: rgba(101, 118, 255, 0.32); }

[data-theme="dark"] .site-header {
  background: rgba(7, 14, 25, 0.88);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(9, 19, 33, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}
[data-theme="dark"] .desktop-nav > a { color: #c2d0e0; }
[data-theme="dark"] .desktop-nav > a[aria-current="page"] { color: #fff; }
[data-theme="dark"] .desktop-nav > a::after { background: #9aa7ff; }
[data-theme="dark"] .nav-signin { color: #c2d0e0; }
[data-theme="dark"] .nav-signin:hover { color: #fff; }
[data-theme="dark"] .lang-switch,
[data-theme="dark"] .mobile-toggle,
[data-theme="dark"] .theme-toggle {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
[data-theme="dark"] .mobile-panel {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .mobile-panel a { color: #c2d0e0; border-color: var(--line); }
[data-theme="dark"] .mobile-meta { border-color: var(--line); }

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(101, 118, 255, 0.22), transparent 34%),
    radial-gradient(circle at 92% 22%, rgba(255, 122, 115, 0.08), transparent 30%),
    linear-gradient(150deg, #07101e 0%, #0a1729 55%, #0b1b30 100%);
}
[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}
[data-theme="dark"] .hero-note { border-top-color: rgba(255, 255, 255, 0.12); color: var(--muted); }
[data-theme="dark"] .hero h1 .accent { color: #9aa7ff; }
[data-theme="dark"] .hero .lead { color: var(--muted); }
[data-theme="dark"] .browser {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .browser-bar { background: #101e30; border-color: #1e334a; }
[data-theme="dark"] .browser-url { background: #0a1422; border-color: #22374e; color: #8fa4ba; }
[data-theme="dark"] .float-card {
  background: rgba(12, 23, 38, 0.96);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .float-card small { color: var(--muted-2); }
[data-theme="dark"] .float-card .dot { background: var(--indigo-050); color: #a9b3ff; }
[data-theme="dark"] .float-card .dot.green { background: #0d3427; color: #6ee7b7; }
[data-theme="dark"] .float-card .dot.red { background: #3a1a1e; color: #ff9b96; }
[data-theme="dark"] .stage-glow {
  background: linear-gradient(135deg, rgba(101, 118, 255, 0.32), rgba(101, 118, 255, 0.08) 55%, rgba(255, 122, 115, 0.12));
}
[data-theme="dark"] .trust-card { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .trust-card > div { color: #c2d0e0; border-color: var(--line); }

[data-theme="dark"] .section.soft { background: var(--surface); }
[data-theme="dark"] .section.alt { background: linear-gradient(180deg, var(--bg), #0a1524); }
[data-theme="dark"] .site-footer { background: #040a13; }

[data-theme="dark"] .fragmentation,
[data-theme="dark"] .tenant-map,
[data-theme="dark"] .cap-card,
[data-theme="dark"] .role-card,
[data-theme="dark"] .principle,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .faq details,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .addon,
[data-theme="dark"] .price-card,
[data-theme="dark"] .form-status,
[data-theme="dark"] .mini-stat,
[data-theme="dark"] .flow-card {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .fragment {
  background: var(--soft);
  border-color: var(--line-strong);
  color: var(--muted);
}
[data-theme="dark"] .fragment strong { color: var(--ink); }
[data-theme="dark"] .fragment-arrow { color: #9aa7ff; }
[data-theme="dark"] .value-item .num { background: var(--soft); color: #cfe0f2; }
[data-theme="dark"] .fragment-arrow::before,
[data-theme="dark"] .fragment-arrow::after { background: var(--line); }

[data-theme="dark"] .cap-card p,
[data-theme="dark"] .cap-list li,
[data-theme="dark"] .role-card p,
[data-theme="dark"] .principle p,
[data-theme="dark"] .resource-card p,
[data-theme="dark"] .flow-card .flow-sub,
[data-theme="dark"] ul.checks li,
[data-theme="dark"] .feature-copy p,
[data-theme="dark"] .timeline-item p,
[data-theme="dark"] .step p { color: var(--muted); }
[data-theme="dark"] .cap-icon { background: var(--indigo-050); color: #a9b3ff; }
[data-theme="dark"] .role-badge { background: var(--soft); color: #b7c8dd; }

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .text-link,
[data-theme="dark"] .feature-kicker,
[data-theme="dark"] .contact-item a,
[data-theme="dark"] .subnav a:hover,
[data-theme="dark"] .breadcrumb a:hover,
[data-theme="dark"] .tab:hover,
[data-theme="dark"] .tab[aria-selected="true"] { color: #9aa7ff; }
[data-theme="dark"] .text-link { border-bottom-color: rgba(154, 167, 255, 0.3); }
[data-theme="dark"] .tab:hover { background: var(--soft); }
[data-theme="dark"] .tab[aria-selected="true"] { background: var(--indigo); color: #fff; }

[data-theme="dark"] .feature-visual,
[data-theme="dark"] .tab-visual {
  background: linear-gradient(155deg, var(--surface), #0a1524);
  border-color: var(--line);
}
[data-theme="dark"] .mini-row {
  background: #0a1422;
  border-color: var(--line);
  color: #c2d0e0;
}
[data-theme="dark"] .mini-avatar { background: var(--soft); color: #cfe0f2; }
[data-theme="dark"] .mini-header { color: #d7e4f2; border-color: var(--line); }
[data-theme="dark"] .mini-stat { background: #0a1422; border-color: var(--line); }
[data-theme="dark"] .mini-stat strong,
[data-theme="dark"] .chart-head strong,
[data-theme="dark"] .plan-price strong { color: var(--ink); }
[data-theme="dark"] .chart-card { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .chart-bars { border-color: var(--line); }

[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 88% 4%, rgba(101, 118, 255, 0.2), transparent 33%),
    linear-gradient(150deg, #07101e, #0a1729);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .page-hero::before { border-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .breadcrumb { color: var(--muted-2); }
[data-theme="dark"] .breadcrumb a { color: var(--muted); }

[data-theme="dark"] .subnav {
  background: rgba(9, 19, 33, 0.95);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .subnav a { color: var(--muted); }

[data-theme="dark"] .feature-section { border-bottom-color: var(--line); }
[data-theme="dark"] .flow-chain span { background: var(--soft); color: #c2d0e0; }
[data-theme="dark"] .flow-chain span:last-child { background: var(--indigo); color: #fff; }
[data-theme="dark"] .flow-chain i { color: var(--muted-2); }

[data-theme="dark"] table.data th { background: #101e30; color: #b7c8dd; }
[data-theme="dark"] table.data th,
[data-theme="dark"] table.data td { border-color: var(--line); }
[data-theme="dark"] table.data.matrix td small { color: var(--muted-2); }

[data-theme="dark"] .callout {
  background: linear-gradient(135deg, #101d31, #0c1726);
  border-color: var(--line);
}
[data-theme="dark"] .note {
  background: #2b2415;
  border-color: #4a3a1b;
  border-left-color: #d99a15;
}
[data-theme="dark"] .note strong { color: #f0c56a; }
[data-theme="dark"] .note p { color: #d8c394; }
[data-theme="dark"] .note.blue { background: #0e2036; border-color: #1e3a55; border-left-color: #6f9fe8; }
[data-theme="dark"] .note.blue strong { color: #cfe0f2; }
[data-theme="dark"] .note.blue p { color: #a8b9cc; }

[data-theme="dark"] .step { border-left-color: var(--line); }
[data-theme="dark"] .step::before {
  background: var(--surface);
  border-color: var(--indigo);
  color: #9aa7ff;
}
[data-theme="dark"] .timeline::before { background: linear-gradient(var(--indigo), rgba(101, 118, 255, 0.08)); }
[data-theme="dark"] .timeline-item .t-dot {
  background: var(--surface);
  border-color: var(--indigo);
  color: #9aa7ff;
}

[data-theme="dark"] .contact-item { color: var(--muted); }
[data-theme="dark"] .contact-item strong { color: var(--ink); }
[data-theme="dark"] .field label { color: #c2d0e0; }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: #0a1422;
  border-color: var(--line-strong);
  color: var(--ink);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
  background: #0d1a2b;
  border-color: var(--indigo);
}
[data-theme="dark"] .field .hint,
[data-theme="dark"] .form-note,
[data-theme="dark"] .consent { color: var(--muted-2); }

[data-theme="dark"] .price-toggle-note { background: var(--indigo-050); color: #9aa7ff; }
[data-theme="dark"] .plan-badge { background: var(--indigo-050); color: #9aa7ff; }
[data-theme="dark"] .plan-from,
[data-theme="dark"] .plan-billed,
[data-theme="dark"] .price-note { color: var(--muted-2); }
[data-theme="dark"] .price-card.dark {
  background: linear-gradient(155deg, #0b1a2e, #102b5c);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .price-card.featured { border-color: var(--indigo); }

[data-theme="dark"] .tenant-chip { background: #0a1422; border-color: var(--line); color: #c2d0e0; }
[data-theme="dark"] .tenant-router { background: var(--indigo-050); color: #d7e4f2; }
[data-theme="dark"] .tenant-router small { color: var(--muted); }
[data-theme="dark"] .tenant-deny { background: var(--red-050); color: #ffb3ae; }
[data-theme="dark"] .tenant-note { color: var(--muted-2); }

[data-theme="dark"] .chart-bars i { background: linear-gradient(180deg, #6576ff, #8b96f3); }
[data-theme="dark"] .chart-bars i:nth-child(6) { background: linear-gradient(180deg, #ff7a73, #f08a84); }

[data-theme="dark"] .btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
[data-theme="dark"] .btn-secondary:hover { border-color: var(--indigo); color: #9aa7ff; }
[data-theme="dark"] .btn-light { background: #eef4fb; color: #081426; }

[data-theme="dark"] .form-status { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .plan-price { color: var(--ink); }

/* Product screenshot frame */
.screen-frame {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0f16;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
[data-theme="dark"] .screen-frame {
  border-color: #34506b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), var(--shadow);
}
.screen-frame img { display: block; width: 100%; height: auto; }
.screen-frame figcaption {
  padding: 10px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted-2);
}

@media (max-width: 380px) {
  .theme-toggle { width: 34px; height: 34px; }
}

/* Print always uses the light palette, even if the reader chose dark. */
@media print {
  :root[data-theme="dark"] {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #fff;
    --soft: #f4f7fa;
    --soft-2: #eef2f7;
    --ink: #000;
    --muted: #333;
    --muted-2: #555;
    --line: #ccc;
    --line-strong: #999;
  }
  [data-theme="dark"] body { background: #fff; color: #000; }
  [data-theme="dark"] .site-header, [data-theme="dark"] .site-footer { background: #fff; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-panel, .cta-band, .float-card, .subnav { display: none !important; }
  body { background: #fff; }
  .hero, .page-hero, .dark-band { background: #fff !important; color: #000 !important; }
  .dark-band h2, .dark-band h3, .dark-band p { color: #000 !important; }
  .reveal { opacity: 1; transform: none; }
}

