/* ==========================================================================
   WisdomX — Design tokens (brand: navy + orange, from the WisdomX logo)
   ========================================================================== */
:root {
  --navy: #33497e;
  --navy-dark: #1c2b4a;
  --navy-deep: #121b30;
  --orange: #f4923f;
  --orange-dark: #dd7a24;

  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-card: #ffffff;
  --bg-navy-soft: #eef1f8;
  --border: #e5e9f2;
  --border-light: #d6dcea;
  --text: #182236;
  --text-muted: #5b6478;
  --text-faint: #8890a1;

  --accent: var(--orange);
  --gradient: linear-gradient(135deg, #f4923f 0%, #33497e 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --shadow-sm: 0 2px 10px -4px rgba(18, 27, 48, 0.08);
  --shadow: 0 24px 60px -24px rgba(18, 27, 48, 0.28);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.eyebrow.on-dark { color: #ffc38a; }
.eyebrow.on-dark::before { background: #ffc38a; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--heading-color, var(--navy-dark)); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.2rem; }
p { color: var(--text-muted); margin: 0 0 16px; }
.lede { font-size: 1.13rem; color: var(--text-muted); max-width: 680px; }

.section { padding: 88px 0; position: relative; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-alt { background: var(--bg-alt); }
.section-border-top { border-top: 1px solid var(--border); }
.section-navy { background: var(--navy-dark); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #c3cbe0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(221, 122, 36, 0.5); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-light);
  color: var(--navy-dark);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-navy-soft); }
.btn-ghost-invert {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost-invert:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  /* The nav pill is always a light chrome element, regardless of the page's
     theme (dark pages included) — pin its tokens so link text never inherits
     a dark-theme's light-on-dark colors and washes out against the white pill. */
  --text: #182236;
  --text-muted: #5b6478;
  --text-faint: #8890a1;
  --navy: #33497e;
  --navy-dark: #1c2b4a;
  --orange-dark: #dd7a24;
  --orange-darker: #b85e12;
  --bg-navy-soft: #eef1f8;
  --bg-card: #ffffff;
  --border: #e5e9f2;
  --border-light: #d6dcea;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 18px 0 0;
  background: transparent;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 999px;
  padding: 6px 10px 6px 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 18px 40px -18px rgba(15, 20, 35, 0.35),
    0 2px 6px -2px rgba(15, 20, 35, 0.08);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img { height: 52px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav-links > a {
  font-size: calc(0.92rem + 1px);
  font-weight: 600;
  color: var(--navy-dark);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--orange-darker); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(0.92rem + 1px);
  font-weight: 600;
  color: var(--navy-dark);
  background: none;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}
.nav-dropdown-trigger .caret { width: 9px; height: 9px; transition: transform 0.18s ease; flex-shrink: 0; }
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--orange-darker); }
.nav-dropdown.open .nav-dropdown-trigger .caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav-dropdown:hover .nav-dropdown-trigger .caret { transform: rotate(180deg); }
}
.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--bg-navy-soft); color: var(--navy); }
.nav-dropdown-menu a small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.nav-dropdown-menu a:hover small { color: var(--navy); opacity: 0.8; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  padding: 6px 18px 18px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: 0 18px 40px -20px rgba(15, 20, 35, 0.28), 0 0 0 1px rgba(15, 20, 35, 0.04);
}
.mobile-panel.open { display: flex; }
.mobile-panel a.mobile-link {
  padding: 13px 4px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-panel a.mobile-link.active { color: var(--orange-dark); }
.mobile-group { border-bottom: 1px solid var(--border); }
.mobile-group-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.mobile-group-trigger .caret { width: 9px; height: 9px; transition: transform 0.18s ease; }
.mobile-group.open .mobile-group-trigger .caret { transform: rotate(180deg); }
.mobile-submenu {
  display: none;
  flex-direction: column;
  padding: 0 0 10px 14px;
  gap: 2px;
}
.mobile-group.open .mobile-submenu { display: flex; }
.mobile-submenu a {
  padding: 9px 4px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-submenu a:hover { color: var(--navy); }
.mobile-cta { margin-top: 14px; display: flex; gap: 10px; }

@media (max-width: 1150px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 108px 0 92px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-orbit {
  position: absolute;
  top: 50%; right: -220px;
  transform: translateY(-50%);
  width: 640px; height: 640px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(51,73,126,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51,73,126,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 10%, transparent 75%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 60px;
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.hero-stat .label { font-size: 0.85rem; color: var(--text-faint); }

.hero-trust { margin-top: 44px; }
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 28px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.hero-trust-item svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--orange-dark); }
.hero-trust-logo { width: 19px; height: 19px; flex-shrink: 0; }
.hero-trust-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--text-faint); }
.hero-sap-badge-wrap {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 8px;
}
.hero-sap-badge { height: 22px; width: auto; display: block; }

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .hero-trust-row { gap: 14px 20px; }
  .hero-trust-item { white-space: normal; }
}

.page-hero {
  padding: 68px 0 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-hero h1 { max-width: 760px; }
.page-hero .lede { max-width: 640px; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--navy); }

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-navy-soft);
  border: 1px solid var(--border-light);
  display: grid; place-items: center;
  color: var(--orange-dark);
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.stat-card .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange-dark);
  margin-bottom: 6px;
}
.stat-card .label { font-size: 0.86rem; color: var(--text-muted); }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 6px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.step-list { counter-reset: step; }
.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--navy);
}
.step-num::before { content: counter(step); }
.step-body h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step-body p { margin-bottom: 0; }

/* ---- Two column layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-navy-soft);
  color: var(--navy);
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
}

/* ---- Team ---- */
.team-card { text-align: left; }
.avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 18px;
}
.role { color: var(--orange-dark); font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; }

/* ---- Case studies ---- */
.case-card { display: flex; flex-direction: column; height: 100%; }
.case-card .tag { align-self: flex-start; }
.case-card h3 { margin-bottom: 12px; }
.case-card .situation-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 8px;
}
.case-card p { flex-grow: 1; }
.case-card .btn { align-self: flex-start; margin-top: 12px; }

/* ---- Article / blog ---- */
.article-card { padding: 30px; }
.article-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.article-date { font-size: 0.82rem; color: var(--text-faint); }
.article-body p { white-space: pre-line; }
.hashtags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hashtags span {
  font-size: 0.78rem;
  color: var(--navy);
  background: var(--bg-navy-soft);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy-dark);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  --heading-color: #fff;
}
.cta-band p { max-width: 560px; margin-left: auto; margin-right: auto; color: #c3cbe0; }
.cta-band .hero-actions { justify-content: center; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.field .req { color: var(--orange-dark); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 16px; }
.form-status { margin-top: 16px; font-size: 0.9rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #1a8a5f; font-weight: 600; }

.contact-info-card { display: flex; flex-direction: column; gap: 22px; }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-row .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-row h3 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-row p { margin-bottom: 0; font-size: 0.9rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--navy-deep);
  color: #c3cbe0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.94; }
.footer-brand p { font-size: 0.88rem; max-width: 320px; color: #8f9ab8; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7896;
  margin-bottom: 16px;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 0.9rem;
  color: #b7c0da;
  padding: 6px 0;
}
.footer-col a:hover { color: var(--orange); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  font-size: 0.8rem;
  color: #6d7896;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-disclaimer p { margin: 0; max-width: 620px; font-size: 0.8rem; color: #6d7896; }
.footer-disclaimer a { color: #9aa5c4; }
.footer-disclaimer a:hover { color: var(--orange); }
.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #6d7896;
}
.footer-credit a { display: inline-flex; padding: 0; }
.footer-credit img { height: 22px; width: auto; display: block; opacity: 0.85; transition: opacity 0.2s; }
.footer-credit a:hover img { opacity: 1; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.fade-in { animation: fadeIn 0.6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Scroll reveal (site-wide utility)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Dark luxe theme — scoped to body.theme-dark-lux (homepage direction)
   ========================================================================== */
body.theme-dark-lux {
  --bg: #0a0e1a;
  --bg-alt: #0d1322;
  --bg-card: #121a2c;
  --bg-navy-soft: rgba(244, 146, 63, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --text: #f4f1ea;
  --text-muted: #b7c0da;
  --text-faint: #79839e;
  --navy: #a9bce8;
  --orange-dark: #ffb673;
  --heading-color: var(--text);
  --shadow-sm: 0 2px 14px -6px rgba(0, 0, 0, 0.5);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
}
body.theme-dark-lux .card:hover { box-shadow: var(--shadow-sm), 0 0 0 1px rgba(244, 146, 63, 0.18); }
body.theme-dark-lux .btn-ghost { color: var(--text); }
body.theme-dark-lux .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
body.theme-dark-lux .field input,
body.theme-dark-lux .field textarea { background: rgba(255, 255, 255, 0.04); color: var(--text); }
body.theme-dark-lux .cta-band {
  background: linear-gradient(160deg, rgba(244, 146, 63, 0.14), rgba(18, 26, 44, 0.4));
  border: 1px solid var(--border-light);
}
/* Reusable dark glow panel — same background treatment as the CTA band,
   for content sections (left-aligned) rather than centered calls to action. */
.section-glow-panel {
  background: linear-gradient(160deg, rgba(244, 146, 63, 0.14), rgba(18, 26, 44, 0.4));
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 72px 48px;
}
@media (max-width: 700px) { .section-glow-panel { padding: 48px 24px; border-radius: 20px; } }
body.theme-dark-lux .step-num,
body.theme-dark-lux .stat-card .num { color: var(--orange-dark); border-color: rgba(244, 146, 63, 0.4); }
body.theme-dark-lux .hero-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
}
body.theme-dark-lux .hero { background: var(--bg); }
body.theme-dark-lux .page-hero { background: var(--bg-alt); }

/* Ambient glow blobs */
.glow-field { position: relative; isolation: isolate; }
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}
.glow-blob-orange { background: radial-gradient(circle, #f4923f 0%, transparent 70%); }
.glow-blob-navy { background: radial-gradient(circle, #33497e 0%, transparent 70%); }

/* ==========================================================================
   Device frame — floating browser-style mockup with a glow halo
   ========================================================================== */
.hero-orbit-visual { width: 100%; max-width: 620px; margin: 0 auto; transform: translateY(-132px); }
.hero-orbit-visual svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .hero-orbit-visual { max-width: 380px; } }

.device-frame-wrap { position: relative; }
.device-frame-wrap::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(244, 146, 63, 0.35) 0%, rgba(244, 146, 63, 0) 65%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.device-frame {
  position: relative;
  z-index: 1;
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}
.device-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.device-frame-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.device-frame-bar .url-pill {
  margin-left: 10px;
  flex: 1;
  max-width: 220px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.device-frame-body {
  padding: 36px 32px 40px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(244, 146, 63, 0.14), transparent 70%),
    linear-gradient(180deg, #0d1322 0%, #0a0e1a 100%);
}

/* Orbis abstract dashboard visual (built from data we know, not a real screenshot) */
.orbis-viz { display: flex; flex-direction: column; gap: 18px; }
.orbis-viz-top { display: flex; align-items: center; justify-content: space-between; }
.orbis-viz-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffb673; background: rgba(244, 146, 63, 0.12); border: 1px solid rgba(244, 146, 63, 0.3);
  padding: 5px 12px; border-radius: 999px;
}
.orbis-viz-score { font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.orbis-viz-bars { display: flex; flex-direction: column; gap: 12px; }
.orbis-viz-row { display: flex; align-items: center; gap: 12px; }
.orbis-viz-label { width: 132px; flex-shrink: 0; font-size: 0.78rem; color: #b7c0da; }
.orbis-viz-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.orbis-viz-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f4923f, #ffb673); }
.orbis-viz-fill.navy { background: linear-gradient(90deg, #33497e, #7f93c9); }
.orbis-viz-pct { width: 38px; text-align: right; font-size: 0.78rem; color: #fff; font-weight: 700; }
.orbis-viz-foot { display: flex; gap: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.orbis-viz-stat .n { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.orbis-viz-stat .l { font-size: 0.72rem; color: #79839e; text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   Intelligence network visual (orbit/node motif used on the dark homepage)
   ========================================================================== */
.network-visual { position: relative; }
.network-visual svg { width: 100%; height: auto; }

/* ==========================================================================
   Ivory contrast section — the bright inset used for rhythm on dark pages
   ========================================================================== */
.section-ivory {
  /* Re-establish the light token set so nested components (.card, .card-icon, .tag…)
     render as a light island, independent of a dark ancestor theme. */
  --bg-card: #ffffff;
  --bg-navy-soft: #eef1f8;
  --border: #e5e9f2;
  --border-light: #d6dcea;
  --text: #182236;
  --text-muted: #5b6478;
  --text-faint: #8890a1;
  --navy: #33497e;
  --orange-dark: #dd7a24;
  --heading-color: #1c2b4a;
  --shadow-sm: 0 2px 10px -4px rgba(18, 27, 48, 0.08);
  background: #faf7f2;
  border-radius: 28px;
  padding: 72px 48px;
  color: var(--text);
}
.section-ivory p { color: var(--text-muted); }
@media (max-width: 700px) { .section-ivory { padding: 48px 24px; border-radius: 20px; } }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.faq-question .caret { width: 11px; height: 11px; flex-shrink: 0; color: var(--orange-dark); transition: transform 0.2s ease; }
.faq-item.open .faq-question .caret { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 22px 20px; }
.faq-answer-inner p { margin: 0; font-size: 0.92rem; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ==========================================================================
   Flow diagram — inputs converging into the Orbis decision layer
   ========================================================================== */
.flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 0; }
.flow-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 880px;
}
@media (max-width: 800px) { .flow-inputs { grid-template-columns: 1fr 1fr; } }
.flow-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  justify-content: center;
}
.flow-chip::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  box-shadow: 0 0 10px 2px rgba(244, 146, 63, 0.6);
}
.flow-connector {
  width: 2px;
  height: 56px;
  background: linear-gradient(180deg, rgba(244, 146, 63, 0.5), rgba(244, 146, 63, 0.05));
  position: relative;
  overflow: hidden;
}
.flow-connector::after {
  content: "";
  position: absolute;
  left: -2px; top: -20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffb673;
  box-shadow: 0 0 12px 3px rgba(244, 146, 63, 0.8);
  animation: flowPulse 2.2s linear infinite;
}
@keyframes flowPulse { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(76px); opacity: 0; } }
.flow-core {
  width: 128px; height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffb673, #f4923f 55%, #c9691f 100%);
  box-shadow: 0 0 0 1px rgba(244, 146, 63, 0.4), 0 30px 60px -16px rgba(244, 146, 63, 0.55), 0 0 80px 10px rgba(244, 146, 63, 0.25);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #1c1206;
  flex-shrink: 0;
}
.flow-chip-output {
  margin-top: 4px;
  max-width: 360px;
  background: linear-gradient(160deg, rgba(244, 146, 63, 0.16), var(--bg-card));
  border-color: rgba(244, 146, 63, 0.35);
  font-size: 0.92rem;
}
@media (prefers-reduced-motion: reduce) { .flow-connector::after { animation: none; opacity: 0.8; top: 50%; } }
