/* ==========================================================================
   NEEM CREST — "Editorial Operator" design system, dark navy edition
   Brand system per content book v2.0 §1.4: deep navy + purple/lavender,
   Urbanist throughout (display and body). Index-list components, hairline
   rules, marquee tickers, oversized italic numerals.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800&display=swap');

:root{
  /* surfaces — brand spec: background #161826, cards #232332 / #1F1E30 */
  --bg: #161826;
  --surface: #232332;
  --surface-2: #1F1E30;
  --border: rgba(167,161,219,0.16);
  --border-strong: rgba(167,161,219,0.32);

  /* text — brand spec: headings #E9E9ED, body #C3C2CA, muted #9A99A8 */
  --heading: #E9E9ED;
  --body: #C3C2CA;
  --muted: #9A99A8;

  /* signal colours — brand spec: accent purple #9184D9, secondary lavender #A7A1DB, pills #423A6A */
  --accent: #9184D9;
  --secondary: #A7A1DB;
  --pill: #423A6A;
  --on-accent: #161826;
  --on-accent-soft: rgba(22,24,38,0.7);
  --accent-soft: rgba(145,132,217,0.16);
  --accent-glow: rgba(145,132,217,0.32);

  /* demo-widget semantics — success reuses the logo's brand cyan; danger is a matching warm red */
  --success: #33B5D3;
  --success-soft: rgba(51,181,211,0.14);
  --success-strong: rgba(51,181,211,0.4);
  --danger: #E1685C;
  --danger-soft: rgba(225,104,92,0.14);
  --danger-strong: rgba(225,104,92,0.4);
  --warn: #E8B84B;
  --warn-soft: rgba(232,184,75,0.14);
  --warn-strong: rgba(232,184,75,0.4);

  --radius: 8px;
  --radius-sm: 4px;
  --container: 1240px;

  --font-display: 'Urbanist', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Urbanist', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.22,.72,.2,1);
  --ease-out: cubic-bezier(.16,.84,.28,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p,blockquote{ margin: 0; }
button{ font-family: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea{ font-family: inherit; }
::selection{ background: var(--accent); color: var(--on-accent); }

/* custom cursor: fine-pointer devices only, never removes native cursor on touch */
@media (hover: hover) and (pointer: fine){
  body.has-cursor{ cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor input,
  body.has-cursor select, body.has-cursor textarea, body.has-cursor .index-row{ cursor: none; }
}
.cursor-dot, .cursor-ring{
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor-dot{ width: 7px; height: 7px; background: var(--accent); }
.cursor-ring{
  width: 34px; height: 34px; border: 1.4px solid var(--heading);
  opacity: .45; transition: width .25s var(--ease), height .25s var(--ease), opacity .25s ease, background .25s ease;
}
.cursor-ring.is-active{ width: 54px; height: 54px; background: rgba(145,132,217,0.18); opacity: .9; border-color: var(--accent); }

/* scroll progress bar */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 9998; transition: width .1s linear;
}

/* ---------- layout helpers ---------- */
.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section{ position: relative; padding: 120px 0; }
.section--tight{ padding: 84px 0; }
.section--alt{ background: var(--surface-2); }
.rule-top{ border-top: 1px solid var(--border); }
.rule-bottom{ border-bottom: 1px solid var(--border); }

/* kicker */
.kicker{
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.kicker .num{ font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: 0; color: var(--muted); }

h1,h2,h3,h4{ color: var(--heading); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.h-display{ font-size: clamp(46px, 7.4vw, 104px); line-height: 1.08; font-weight: 600; }
.h1{ font-size: clamp(38px, 5.4vw, 64px); line-height: 1.12; }
.h2{ font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
.h3{ font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--heading); }
.italic{ font-style: italic; font-weight: 500; }
.lede{ font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; color: var(--body); font-family: var(--font-body); font-weight: 400; }
.body-text{ font-size: 16px; line-height: 1.75; color: var(--body); }
.accent-text{ color: var(--accent); }

/* headline reveal masks (JS wraps each line in .reveal-line > .reveal-inner) */
.reveal-line{ overflow: hidden; display: block; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.reveal-inner{ display: block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.is-visible .reveal-inner{ transform: translateY(0); }

/* generic fade/slide reveal for non-headline elements */
[data-reveal]{ opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- buttons ---------- */
.btn{
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px;
  font-family: var(--font-body); border: 1px solid var(--accent); overflow: hidden;
  isolation: isolate; white-space: nowrap;
}
.btn::before{
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--secondary); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn-primary{ background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 32px -14px var(--accent-glow); }
.btn-primary:hover::before{ transform: scaleX(1); }
.btn-outline{ background: transparent; color: var(--heading); border-color: var(--border-strong); }
.btn-outline::before{ background: var(--accent); }
.btn-outline:hover::before{ transform: scaleX(1); }
.btn-outline:hover{ color: var(--on-accent); border-color: var(--accent); }
.btn-outline.on-ink{ border-color: var(--border-strong); color: var(--heading); }
.btn-outline.on-ink::before{ background: var(--accent); }
.btn-outline.on-ink:hover{ color: var(--on-accent); border-color: var(--accent); }
.btn svg{ width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover svg{ transform: translateX(4px); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 11px 20px; font-size: 13px; }

.link-arrow{
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px;
  color: var(--heading); border-bottom: 1px solid var(--border-strong); padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.link-arrow:hover{ color: var(--accent); border-color: var(--accent); }
.link-arrow svg{ width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover svg{ transform: translateX(4px); }

/* magnetic wrapper (JS adds transform) */
[data-magnetic]{ display: inline-block; will-change: transform; transition: transform .25s var(--ease-out); }

/* ---------- header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-row{ display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo{ display: flex; align-items: center; }
.logo-img{ display: block; height: 26px; width: auto; }

.nav-main{ display: flex; align-items: center; gap: 2px; }
.nav-main > li{ position: relative; }
.nav-link{
  position: relative; display: flex; align-items: center; gap: 5px;
  padding: 10px 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--body);
}
.nav-link::after{
  content:''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.is-active{ color: var(--heading); }
.nav-link:hover::after, .nav-link.is-active::after{ transform: scaleX(1); }
.nav-link svg{ width: 11px; height: 11px; opacity: .6; transition: transform .2s ease; }
.has-dropdown:hover .nav-link svg{ transform: rotate(180deg); }

.dropdown{
  position: absolute; top: calc(100% + 10px); left: 8px; min-width: 260px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(8px);
  box-shadow: 0 24px 48px -20px rgba(6,7,14,0.6);
  transition: opacity .25s ease, transform .25s var(--ease), visibility .25s ease;
}
.has-dropdown:hover .dropdown{ opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a{ display: block; padding: 13px 14px; font-size: 14px; font-weight: 600; color: var(--heading); border-radius: var(--radius-sm); }
.dropdown a:hover{ background: var(--accent); color: var(--on-accent); }
.dropdown a span{ display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 3px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.dropdown a:hover span{ color: var(--on-accent-soft); }

.header-actions{ display: flex; align-items: center; gap: 14px; }
.icon-btn{
  width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--heading);
  transition: border-color .25s ease;
}
.icon-btn:hover{ border-color: var(--accent); }
.icon-btn svg{ width: 16px; height: 16px; }

.nav-toggle{
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 50%; flex-shrink: 0; position: relative;
}
.nav-toggle .bars{ position: relative; width: 16px; height: 10px; }
.nav-toggle .bars span{
  position: absolute; left: 0; width: 100%; height: 1.4px; background: var(--heading);
  transition: transform .3s var(--ease), opacity .3s ease, top .3s var(--ease);
}
.nav-toggle .bars span:nth-child(1){ top: 0; }
.nav-toggle .bars span:nth-child(2){ top: 8px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1){ top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2){ top: 4px; transform: rotate(-45deg); }

/* ---------- utility strip (timezone ticker) ---------- */
.util-strip{ background: var(--surface-2); color: var(--body); font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--border); }
.util-strip .wrap{ display: flex; align-items: center; justify-content: space-between; height: 34px; }
.util-clock{ display: flex; align-items: center; gap: 10px; letter-spacing: 0.02em; }
.util-clock b, .dock-clock b{ color: var(--heading); font-weight: 600; }
.clock-part{ white-space: nowrap; }
.clock-dot{ opacity: .4; }
.util-strip .util-msg{ text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; color: var(--accent); font-weight: 700; }

/* ---------- mobile nav (full-screen takeover) ---------- */
.mobile-nav{
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--surface-2); color: var(--heading); overflow-y: auto;
  opacity: 0; transition: opacity .4s var(--ease);
}
.mobile-nav.is-open{ display: block; opacity: 1; }
.mobile-nav-top{ display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 32px; border-bottom: 1px solid var(--border); }
.mobile-nav-top .logo-img{ height: 24px; }
.mobile-close{ width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-close svg{ width: 15px; height: 15px; stroke: var(--heading); }
.mobile-nav-list{ padding: 48px 32px; }
.mobile-nav-list a{
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 9vw, 44px); padding: 14px 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .25s ease;
}
.mobile-nav-list a:hover{ color: var(--accent); }
.mobile-nav.is-open .mobile-nav-list a{ opacity: 1; transform: translateY(0); }
.mobile-nav-list .sub-link{ font-size: 20px; font-style: normal; font-family: var(--font-body); font-weight: 500; color: var(--body); padding-left: 18px; }
.mobile-nav-list .btn{ margin-top: 32px; }

/* ---------- hero ---------- */
.hero{ padding: 72px 0 96px; position: relative; }
.hero-num{
  position: absolute; top: 8px; right: 32px; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(90px, 13vw, 200px); color: var(--accent); opacity: .16; line-height: 1; pointer-events: none;
}
.hero-inner{ max-width: 920px; position: relative; }
.hero-actions{ display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- marquee ---------- */
.marquee{ overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.marquee__track{ display: flex; width: max-content; gap: 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track{ animation-play-state: paused; }
.marquee__item{
  display: flex; align-items: center; gap: 40px; padding-right: 40px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--body);
  white-space: nowrap;
}
.marquee__item .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- index list (signature component: pillars, modules, problems, steps) ---------- */
.index-list{ border-top: 1px solid var(--border); }
.index-row{
  border-bottom: 1px solid var(--border); padding: 30px 4px; display: flex; align-items: baseline; gap: 24px;
  transition: background .35s var(--ease), color .35s var(--ease), padding .35s var(--ease);
  position: relative;
}
.index-row.is-clickable{ cursor: pointer; }
.index-row.is-clickable:hover, .index-row.is-open{ background: var(--accent); color: var(--on-accent); padding-left: 24px; padding-right: 24px; }
.index-row .num{ font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 26px; color: var(--accent); min-width: 56px; flex-shrink: 0; transition: color .35s var(--ease); }
.index-row.is-clickable:hover .num, .index-row.is-open .num{ color: var(--on-accent); }
.index-row .row-head{ flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.index-row .title{ font-family: var(--font-body); font-weight: 700; font-size: 19px; color: var(--heading); transition: color .35s var(--ease); }
.index-row.is-clickable:hover .title, .index-row.is-open .title{ color: var(--on-accent); }
.index-row .toggle{
  width: 30px; height: 30px; border: 1px solid var(--border-strong); border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease), border-color .3s ease;
}
.index-row.is-clickable:hover .toggle, .index-row.is-open .toggle{ border-color: var(--on-accent); }
.index-row.is-open .toggle{ transform: rotate(45deg); }
.index-row .toggle svg{ width: 12px; height: 12px; }
.index-row .toggle svg path{ stroke: var(--heading); }
.index-row.is-clickable:hover .toggle svg path, .index-row.is-open .toggle svg path{ stroke: var(--on-accent); }
.index-panel{
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease);
  width: 100%;
}
.index-row.is-open .index-panel{ grid-template-rows: 1fr; }
.index-panel-inner{ overflow: hidden; }
.index-panel-body{ padding: 4px 0 6px 80px; font-size: 15.5px; line-height: 1.75; color: var(--on-accent-soft); max-width: 640px; }
.index-row .tag-row{ display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 6px 80px; }
.tag{
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(22,24,38,0.3); color: var(--on-accent);
  background: rgba(22,24,38,0.1);
}

/* simple (non-expandable) index rows, e.g. problems list */
.index-row.is-static{ cursor: default; }
.index-row.is-static:hover{ background: transparent; color: inherit; padding-left: 4px; padding-right: 4px; }
.index-row.is-static:hover .title{ color: var(--accent); }
.index-row.is-static .body-text{ margin-top: 6px; }

/* ---------- stat strip ---------- */
.stat-strip{ display: flex; flex-wrap: wrap; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-strip__item{ flex: 1 1 0; min-width: 180px; padding: 44px 32px; background: var(--surface); }
.stat-strip__num{ font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 60px); color: var(--heading); line-height: 1; }
.stat-strip__num .unit{ color: var(--accent); }
.stat-strip__label{ font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.5; max-width: 220px; }
.stat-strip__src{ font-size: 11.5px; color: var(--muted); margin-top: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* stat-strip laid out as a fixed 2x2 quad (used beside a column of body text) */
.stat-strip--quad .stat-strip__item{ flex: 1 1 50%; }
.stat-strip--quad .stat-strip__item:nth-child(3),
.stat-strip--quad .stat-strip__item:nth-child(4){ border-top: 1px solid var(--border); }

/* two-column split: body copy alongside a stat block / figure, stacks on tablet+ */
.split-2col{ display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* ---------- pull quote ---------- */
.pull-quote{ position: relative; padding-left: 44px; }
.pull-quote::before{
  content: '\201C'; position: absolute; left: -6px; top: -12px; font-family: Georgia, 'Times New Roman', serif; font-size: 120px;
  color: var(--accent-soft); font-style: normal; font-weight: 700; line-height: 1;
}
.pull-quote p{ font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: var(--heading); position: relative; z-index: 1; }

/* ---------- two paths / feature panels ---------- */
.panel-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel{ padding: 48px 44px; background: var(--surface); }
.panel-ink{ background: var(--surface-2); border-top: 2px solid var(--accent); }
.panel .tag-index{ font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 22px; margin-bottom: 18px; display: block; }
.panel h3{ font-family: var(--font-display); font-weight: 600; font-size: 26px; margin-bottom: 16px; color: var(--heading); }
.panel p{ font-size: 15.5px; line-height: 1.7; color: var(--body); }
.panel .link-arrow{ margin-top: 24px; }

/* why-neem-crest simple 3-up */
.reason-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.reason-grid--2up{ grid-template-columns: repeat(2, 1fr); }
.reason{ padding: 40px 36px; background: var(--surface); }
.reason .num{ font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 24px; display: block; margin-bottom: 18px; }
.reason h3{ font-size: 18px; margin-bottom: 10px; color: var(--heading); }
.reason p{ font-size: 14.5px; line-height: 1.65; color: var(--body); }

/* ---------- checklist (simple ticks, editorial) ---------- */
.tick-list{ display: grid; gap: 0; }
.tick-list li{
  display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 16px; color: var(--heading); font-weight: 500;
}
.tick-list li:first-child{ border-top: 1px solid var(--border); }
.tick-list .mark{ width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tick-list .mark svg{ width: 10px; height: 10px; }
.tick-list .mark svg path{ stroke: var(--accent); }

/* ---------- CTA strip (elevated surface, marquee texture, accent glow) ---------- */
.cta-strip{ background: var(--surface-2); color: var(--heading); padding: 108px 0; position: relative; overflow: hidden; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-strip::before{
  content: ''; position: absolute; top: 50%; left: 50%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%); pointer-events: none; z-index: 0;
}
.cta-strip .bg-marquee{
  position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%);
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 160px; color: rgba(145,132,217,0.07);
  white-space: nowrap; pointer-events: none; z-index: 0;
}
.cta-strip > .wrap{ position: relative; z-index: 1; }
.cta-strip .kicker{ color: var(--accent); justify-content: center; }
.cta-strip h2{ color: var(--heading); }
.cta-strip p{ color: var(--body); max-width: 560px; margin: 20px auto 0; font-size: 16px; line-height: 1.7; }
.cta-strip .btn{ margin-top: 36px; }
.cta-strip .cta-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- section head ---------- */
.section-head{ max-width: 720px; margin-bottom: 64px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- leadership tilt cards ---------- */
.leader-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.leader-card{
  background: var(--surface); padding: 36px 30px; position: relative; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
}
.leader-card::before{
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), var(--accent-soft), transparent 70%);
}
.leader-card:hover::before{ opacity: 1; }
.leader-avatar{
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 20px; color: var(--accent); margin-bottom: 22px; position: relative; z-index: 1;
}
.leader-name{ font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--heading); position: relative; z-index: 1; }
.leader-title{ font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin: 6px 0 16px; position: relative; z-index: 1; }
.leader-bio{ font-size: 14.5px; line-height: 1.65; color: var(--body); position: relative; z-index: 1; }
.leader-cred{ margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); position: relative; z-index: 1; }

/* ---------- split slider widget (NimbaOne operating model) ---------- */
.split-slider{
  position: relative; height: 460px; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.split-pane{ position: absolute; inset: 0; padding: 44px; overflow: auto; }
.split-pane.pane-a{ background: var(--surface); color: var(--heading); z-index: 1; }
.split-pane.pane-b{ background: var(--accent); color: var(--on-accent); clip-path: inset(0 0 0 50%); z-index: 2; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.split-pane .op-label{ font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.pane-a .op-label{ color: var(--accent); }
.pane-b .op-label{ color: var(--on-accent-soft); }
.split-pane h4{ font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 18px; }
.pane-a h4{ color: var(--heading); }
.pane-b h4{ color: var(--on-accent); }
.split-pane ul{ display: grid; gap: 12px; }
.split-pane li{ font-size: 14.5px; line-height: 1.5; padding-left: 18px; position: relative; }
.pane-a li::before{ content:''; position:absolute; left:0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pane-b li{ padding-left: 0; padding-right: 18px; }
.pane-b li::before{ content:''; position:absolute; right:0; left:auto; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--on-accent); }
.split-handle{
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 2;
  transform: translateX(-50%); cursor: ew-resize; display: flex; align-items: center; justify-content: center;
}
.split-handle::before{ content:''; position:absolute; top:0; bottom:0; left:50%; width: 2px; background: var(--on-accent); transform: translateX(-50%); }
.split-grip{
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--heading); display: flex; align-items: center; justify-content: center;
  gap: 4px; box-shadow: 0 6px 18px rgba(6,7,14,0.35); position: relative; z-index: 3;
}
.split-grip span{ width: 2.5px; height: 16px; background: var(--accent); border-radius: 2px; }
.split-caption{ text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.split-caption b{ color: var(--heading); }

/* ---------- module explorer (tabs) ---------- */
.explorer{ border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.explorer-tabs{ display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.explorer-tab{
  flex: 1; min-width: 140px; padding: 20px 18px; text-align: left; border-right: 1px solid var(--border);
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted);
  transition: background .3s ease, color .3s ease;
}
.explorer-tab:last-child{ border-right: none; }
.explorer-tab .tab-title{ display:block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.explorer-tab.is-active{ background: var(--accent); color: var(--on-accent); }
.explorer-tab.is-active .tab-title{ color: var(--on-accent); }
.explorer-panels{ padding: 44px; min-height: 220px; }
.explorer-panel{ display: none; }
.explorer-panel.is-active{ display: block; animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform: translateY(0);} }
.explorer-panel p{ font-size: 15.5px; line-height: 1.7; color: var(--body); max-width: 560px; margin-bottom: 24px; }
.explorer-panel .tag-row{ display: flex; flex-wrap: wrap; gap: 10px; }
.explorer-panel .tag{ border: 1px solid var(--border-strong); color: var(--heading); background: var(--pill); }

/* ---------- NimbaOne demo widgets: shared tag variants ---------- */
.tag--nimba{ background: var(--success-soft); color: var(--success); border-color: var(--success-strong); }
.tag--today{ background: var(--danger-soft); color: var(--danger); border-color: var(--danger-strong); }
.tag--neutral{ background: var(--surface-2); color: var(--body); border-color: var(--border-strong); }

/* ---------- NimbaOne demo widgets: journey compare ---------- */
.journey-legend{ display: flex; align-items: center; gap: 22px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 18px; }
.journey-legend span{ display: inline-flex; align-items: center; gap: 8px; }
.journey-dot{ width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.journey-dot--today{ background: var(--danger); }
.journey-dot--nimba{ background: var(--success); }
.journey-status{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.journey-chip{ display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--body); transition: color .35s var(--ease); }
.index-row.is-clickable:hover .journey-chip, .index-row.is-open .journey-chip{ color: var(--on-accent); }
.journey-arrow{ width: 15px; height: 15px; flex-shrink: 0; }
.journey-arrow path{ stroke: var(--muted); transition: stroke .35s var(--ease); }
.index-row.is-clickable:hover .journey-arrow path, .index-row.is-open .journey-arrow path{ stroke: var(--on-accent); }
.journey-list .index-panel-body{ max-width: none; padding-top: 10px; }
.journey-compare{ display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.journey-col{ background: var(--surface-2); padding: 24px 28px; }
.journey-col h6{ font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.journey-col--today h6{ color: var(--danger); }
.journey-col--nimba h6{ color: var(--success); }
.journey-col ul{ display: grid; gap: 10px; }
.journey-col li{ font-size: 14px; line-height: 1.55; color: var(--body); padding-left: 22px; position: relative; }
.journey-col--today li::before{ content:'\2715'; position: absolute; left: 0; top: 0; font-size: 11px; font-weight: 700; color: var(--danger); }
.journey-col--nimba li::before{ content:'\2713'; position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 700; color: var(--success); }
@media (max-width: 640px){
  .journey-compare{ grid-template-columns: 1fr; }
  .journey-status{ display: none; }
}

/* ---------- NimbaOne demo widgets: AI inbox ---------- */
.inbox-demo{ display: grid; grid-template-columns: 328px 1fr; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); overflow: hidden; min-height: 520px; }
.inbox-list{ border-right: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; }
.inbox-list-head{ padding: 20px 22px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); display: flex; justify-content: space-between; flex-shrink: 0; }
.inbox-list-head span{ color: var(--success); }
.inbox-items{ display: flex; flex-direction: column; }
.inbox-item{ display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 18px 22px 22px; text-align: left; border-top: 1px solid var(--border); transition: background .25s ease; }
.inbox-item:hover{ background: rgba(145,132,217,0.08); }
.inbox-item.is-active{ background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.inbox-item .avatar{
  width: 34px; height: 34px; border-radius: 50%; background: var(--pill); color: var(--heading);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.inbox-item-body{ flex: 1; min-width: 0; }
.inbox-item-title{ display: block; font-size: 13.5px; font-weight: 700; color: var(--heading); line-height: 1.4; }
.inbox-item-meta{ display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.inbox-item .tag{ display: inline-flex; align-items: center; margin-top: 12px; font-size: 10.5px; padding: 4px 9px; }
.inbox-detail{ padding: 32px 36px; }
.inbox-detail-panel{ display: none; }
.inbox-detail-panel.is-active{ display: block; animation: fadeUp .5s var(--ease-out); }
.inbox-thread{ display: grid; gap: 14px; margin-bottom: 28px; }
.inbox-msg{ font-size: 14px; line-height: 1.6; padding: 14px 18px; border-radius: var(--radius); max-width: 88%; }
.inbox-msg b{ color: var(--heading); }
.inbox-msg--in{ background: var(--surface-2); border: 1px solid var(--border); color: var(--body); }
.inbox-msg--out{ background: var(--accent-soft); border: 1px solid var(--border-strong); color: var(--heading); margin-left: auto; }
.inbox-translate{ display: block; color: var(--muted); font-style: italic; margin-top: 4px; }
.inbox-action-panel{ border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: 22px 24px; }
.inbox-action-panel h5{ font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--success); margin-bottom: 16px; }
.inbox-action-row{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.inbox-action-row span{ color: var(--muted); }
.inbox-action-row b{ color: var(--heading); font-weight: 700; text-align: right; }
.inbox-confidence{ flex-wrap: wrap; }
.inbox-bar{ flex-basis: 100%; height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 8px; }
.inbox-bar-fill{ display: block; height: 100%; width: 0; background: var(--success); transition: width 1.3s var(--ease-out); }
.inbox-demo.is-visible .inbox-bar-fill{ width: var(--val); }
.inbox-guardrails{ display: grid; gap: 9px; margin-top: 14px; }
.inbox-guardrails li{ font-size: 13px; line-height: 1.5; color: var(--body); padding-left: 22px; position: relative; }
.inbox-guardrails li::before{ content:'\2713'; position: absolute; left: 0; top: 0; font-size: 11px; font-weight: 700; color: var(--success); }
@media (max-width: 900px){
  .inbox-demo{ grid-template-columns: 1fr; min-height: 0; }
  .inbox-list{ border-right: none; border-bottom: 1px solid var(--border); }
  .inbox-items{ flex-direction: row; overflow-x: auto; }
  .inbox-item{ flex-direction: column; min-width: 220px; border-top: none; border-right: 1px solid var(--border); }
  .inbox-item.is-active{ box-shadow: inset 0 -3px 0 var(--accent); }
  .inbox-detail{ padding: 28px 22px; }
  .inbox-msg{ max-width: 100%; }
}

/* ---------- NimbaOne demo widgets: OTP simulator ---------- */
.otp-sim{ display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.otp-sim > div{ background: var(--surface); padding: 36px 40px; }
.otp-sim h4{ font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--heading); margin-bottom: 22px; }
.otp-label{ display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 9px; }
.otp-phone{ display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); margin-bottom: 20px; overflow: hidden; }
.otp-phone span{ padding: 14px 16px; font-size: 14px; color: var(--body); }
.otp-phone .otp-country{ color: var(--heading); font-weight: 700; border-right: 1px solid var(--border-strong); }
.otp-send{ width: 100%; justify-content: center; position: relative; }
.otp-send.is-sent{ background: var(--success); border-color: var(--success); color: var(--on-accent); }
.otp-status{ margin-top: 16px; font-size: 13px; color: var(--muted); min-height: 18px; display: flex; align-items: center; gap: 8px; }
.otp-status .otp-check{ color: var(--success); opacity: 0; transition: opacity .3s ease; }
.otp-status.is-done .otp-check{ opacity: 1; }
.otp-flow{ display: grid; gap: 0; }
.otp-flow-step{ display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); opacity: .45; transition: opacity .4s var(--ease); }
.otp-flow-step:last-child{ border-bottom: none; }
.otp-flow-step.is-active{ opacity: 1; }
.otp-flow-dot{
  width: 22px; height: 22px; border-radius: 50%; border: 1.4px solid var(--border-strong); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.otp-flow-step.is-active .otp-flow-dot{ background: var(--success); border-color: var(--success); color: var(--on-accent); }
.otp-flow-body code{ font-size: 12px; font-weight: 700; color: var(--secondary); background: var(--pill); padding: 3px 8px; border-radius: 4px; }
.otp-flow-body p{ font-size: 13.5px; color: var(--body); margin-top: 6px; line-height: 1.5; }
.otp-flow-body b{ font-size: 13.5px; color: var(--heading); font-weight: 700; }
.otp-meta{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.otp-meta div span{ display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.otp-meta div b{ font-size: 13.5px; color: var(--heading); }
@media (max-width: 800px){
  .otp-sim{ grid-template-columns: 1fr; }
  .otp-sim > div{ padding: 28px 24px; }
}

/* ---------- NimbaOne demo widgets: live flow diagram ---------- */
.live-flow{ max-width: 640px; margin: 0 auto; display: grid; justify-items: center; gap: 0; }
.flow-connector{ width: 1px; height: 32px; background: var(--border-strong); }
.flow-node--pill{
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 700; color: var(--heading);
}
.flow-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.flow-channels{ display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flow-channel{
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--heading);
}
.flow-channel svg{ width: 15px; height: 15px; }
.flow-channel--muted{ color: var(--muted); border-style: dashed; }
.flow-card{ width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.flow-card--agent{ background: linear-gradient(160deg, var(--success-soft), var(--surface) 60%); border-color: var(--success-strong); }
.flow-card-head{ display: flex; align-items: center; gap: 14px; margin-bottom: 18px; justify-content: space-between; flex-wrap: wrap; }
.flow-card-head-left{ display: flex; align-items: center; gap: 14px; }
.flow-card-icon{
  width: 38px; height: 38px; border-radius: var(--radius); background: var(--success); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.flow-card-icon svg{ width: 18px; height: 18px; }
.flow-card h4{ font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--heading); }
.flow-card-head p{ font-size: 13px; color: var(--muted); margin-top: 3px; }
.flow-tag-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.flow-tag{ font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 100px; background: var(--success-soft); color: var(--success); border: 1px solid var(--success-strong); }
.flow-tag--muted{ background: var(--surface-2); color: var(--body); border: 1px solid var(--border); }
.flow-split{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.flow-badge{ font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.flow-badge--warn{ background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-strong); }
.flow-badge--live{ background: var(--success-soft); color: var(--success); border: 1px solid var(--success-strong); }
.flow-card ul{ display: grid; gap: 8px; }
.flow-card li{ font-size: 13.5px; color: var(--body); }
.flow-output{ width: 100%; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 24px 28px; }
.flow-output-label{ display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 640px){
  .flow-split{ grid-template-columns: 1fr; }
}

/* ---------- NimbaOne demo widgets: customer 360 profile ---------- */
.c360{ border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 32px; }
.c360-head{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.c360-avatar{
  width: 54px; height: 54px; border-radius: 50%; background: var(--pill); color: var(--heading);
  font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.c360-head-body{ flex: 1; min-width: 200px; }
.c360-head-body h4{ font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--heading); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c360-id{ font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); }
.c360-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.c360-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.c360-card{ background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.c360-card-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--heading); }
.c360-card-head span{ font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.c360-row{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.c360-row:last-child{ border-bottom: none; }
.c360-row span{ color: var(--muted); }
.c360-row b{ color: var(--heading); font-weight: 700; text-align: right; }
.c360-score{ margin-top: 6px; }
.c360-score-bar{ position: relative; height: 6px; border-radius: 3px; margin: 10px 0 6px; background: linear-gradient(to right, var(--danger) 0 60%, var(--warn) 60% 80%, var(--success) 80% 100%); }
.c360-score-marker{ position: absolute; top: -3px; width: 2px; height: 12px; background: var(--heading); transform: translateX(-1px); }
.c360-score-legend{ display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.c360-cache-note{ font-size: 12px; color: var(--warn); line-height: 1.5; margin-bottom: 10px; }
.c360-bottom{ display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.c360-timeline h5, .c360-ai-box h5{ font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.c360-timeline ul{ display: grid; gap: 14px; }
.c360-timeline li{ display: flex; gap: 12px; align-items: flex-start; }
.c360-tl-icon{
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--success);
}
.c360-tl-icon svg{ width: 13px; height: 13px; }
.c360-tl-body{ font-size: 13.5px; color: var(--heading); line-height: 1.5; }
.c360-tl-body span{ display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.c360-ai-box{ background: var(--accent-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 22px 24px; align-self: start; }
.c360-ai-box h5{ color: var(--accent); }
.c360-ai-box p{ font-size: 13.5px; line-height: 1.6; color: var(--heading); margin-bottom: 18px; }
@media (max-width: 800px){
  .c360-grid, .c360-bottom{ grid-template-columns: 1fr; }
  .c360{ padding: 24px 22px; }
}

/* ---------- NimbaOne demo widgets: failed delivery recovery ---------- */
.recovery-flow{ border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 32px 36px; }
.recovery-head{ display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.recovery-head > div:first-child{ flex: 1 1 240px; min-width: 0; }
.recovery-head h4{ font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.recovery-head p{ font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.recovery-actions{ display: flex; gap: 10px; }
.recovery-actions .btn{ padding: 10px 20px; font-size: 13px; }
.recovery-actions .btn:disabled{ opacity: .4; cursor: not-allowed; pointer-events: none; }
.recovery-timeline{ position: relative; display: grid; gap: 0; }
.recovery-step{ display: flex; gap: 18px; padding-bottom: 30px; position: relative; opacity: .4; transition: opacity .4s var(--ease); }
.recovery-step > div{ flex: 1 1 auto; min-width: 0; }
.recovery-step:last-child{ padding-bottom: 0; }
.recovery-step::before{
  content: ''; position: absolute; left: 15px; top: 32px; bottom: -6px; width: 1px; background: var(--border-strong);
}
.recovery-step:last-child::before{ display: none; }
.recovery-step.is-active, .recovery-step.is-done{ opacity: 1; }
.recovery-dot{
  width: 32px; height: 32px; border-radius: 50%; border: 1.4px solid var(--border-strong); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); transition: all .3s ease; position: relative; z-index: 1;
}
.recovery-dot svg{ width: 15px; height: 15px; }
.recovery-step.is-active .recovery-dot{ background: var(--danger); border-color: var(--danger); color: var(--on-accent); }
.recovery-step.is-done .recovery-dot{ background: var(--success); border-color: var(--success); color: var(--on-accent); }
.recovery-step > div b{ display: block; font-size: 14.5px; color: var(--heading); }
.recovery-step > div span{ display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 640px){
  .recovery-flow{ padding: 26px 20px; }
  .recovery-actions{ width: 100%; }
  .recovery-actions .btn{ flex: 1; }
}

/* ---------- NimbaOne demo widgets: risk & reputation scoring ---------- */
.risk-tabs{ display: flex; gap: 10px; margin-bottom: 28px; }
.risk-tab{
  padding: 11px 22px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--muted); transition: all .25s ease;
}
.risk-tab.is-active{ background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.risk-panel{ display: none; }
.risk-panel.is-active{ display: block; animation: fadeUp .5s var(--ease-out); }
.risk-body{ display: grid; grid-template-columns: 340px 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.risk-body > div{ background: var(--surface); padding: 30px 32px; }
.risk-gauge{ position: relative; width: 140px; height: 140px; margin: 0 auto 20px; }
.risk-gauge-svg{ width: 140px; height: 140px; transform: rotate(-90deg); }
.risk-gauge-track{ fill: none; stroke: var(--border); stroke-width: 10; }
.risk-gauge-arc{ fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 364.4px; stroke-dashoffset: 364.4px; transition: stroke-dashoffset 1.3s var(--ease-out); }
.risk-panel.is-visible .risk-gauge-arc{ stroke-dashoffset: var(--offset); }
.risk-gauge-value{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.risk-gauge-value b{ font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--heading); line-height: 1; }
.risk-gauge-value span{ font-size: 11px; color: var(--muted); margin-top: 4px; }
.risk-member{ text-align: center; margin-bottom: 18px; }
.risk-member b{ display: block; font-size: 14.5px; color: var(--heading); }
.risk-member span{ display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.risk-band{ display: block; text-align: center; margin: 0 auto 18px; width: fit-content; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 14px; border-radius: 100px; }
.risk-action{ font-size: 13px; font-weight: 700; color: var(--heading); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; text-align: center; margin-bottom: 18px; }
.risk-evidence{ display: grid; gap: 9px; }
.risk-evidence li{ font-size: 13px; line-height: 1.5; color: var(--body); padding-left: 20px; position: relative; }
.risk-evidence li::before{ content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.risk-bars{ display: grid; gap: 20px; }
.risk-bar-row{ display: grid; gap: 8px; }
.risk-bar-label{ display: flex; justify-content: space-between; font-size: 13px; }
.risk-bar-label b{ color: var(--heading); font-weight: 700; }
.risk-bar-label span{ color: var(--muted); font-size: 12px; }
.risk-bar-track{ height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.risk-bar-fill{ display: block; height: 100%; width: 0; border-radius: 3px; transition: width 1.1s var(--ease-out); }
.risk-panel.is-visible .risk-bar-fill{ width: var(--val); }
@media (max-width: 800px){
  .risk-body{ grid-template-columns: 1fr; }
  .risk-body > div{ padding: 26px 24px; }
}

/* ---------- kicker pill (contact page hero badge) ---------- */
.kicker--pill{
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent);
  padding: 9px 18px 9px 14px; border-radius: 100px;
}
.kicker--pill svg{ width: 15px; height: 15px; }
.kicker--pill svg path{ stroke: var(--accent); }

/* ---------- reusable icon badge ---------- */
.icon-badge{ width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-badge svg{ width: 19px; height: 19px; }
.icon-badge svg path, .icon-badge svg circle{ stroke: var(--accent); }

/* ---------- contact info column ---------- */
.office-card{ border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.office-card-head{ display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.office-card-head h4{ font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--heading); }
.office-name{ font-weight: 700; color: var(--heading); }
.office-reg{ color: var(--muted); font-weight: 500; }
.office-address{ margin-top: 6px; color: var(--body); font-size: 14px; line-height: 1.7; }
.office-actions{ display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.office-actions a{
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; color: var(--heading);
  transition: border-color .2s ease, color .2s ease;
}
.office-actions a:hover{ border-color: var(--accent); color: var(--accent); }
.office-actions svg{ width: 14px; height: 14px; }
.office-actions svg path{ stroke: currentColor; }

.mini-stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mini-stat{ background: var(--surface); padding: 22px 18px; }
.mini-stat .icon-badge{ margin-bottom: 16px; }
.mini-stat .stat-label{ font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mini-stat .stat-value{ font-size: 14px; font-weight: 700; color: var(--heading); margin-top: 5px; line-height: 1.4; }

/* ---------- form ---------- */
.contact-grid{ display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: stretch; }
.contact-info-col{ display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.form-panel{ border: 1px solid var(--border-strong); border-top: 2px solid var(--accent); border-radius: var(--radius); padding: 40px; background: var(--surface); }
.form-panel .form-head{ margin-bottom: 28px; }
.form-panel .form-head h3{ font-size: 20px; }
.form-panel .form-head p{ font-size: 14px; color: var(--muted); margin-top: 6px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field{ margin-bottom: 20px; }
.field label{ display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea{
  width: 100%; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 16px; color: var(--heading); transition: border-color .25s ease, box-shadow .25s ease;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--muted); }
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea{ resize: vertical; min-height: 160px; }

/* enquiry-type intent tiles: bigger, scannable, routes the request before it's sent */
.enquiry-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.enquiry-option{
  text-align: left; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .25s ease, background .25s ease;
}
.enquiry-option .opt-title{ display: block; font-size: 13.5px; font-weight: 700; color: var(--heading); transition: color .25s ease; }
.enquiry-option .opt-desc{ display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.enquiry-option.is-selected{ border-color: var(--accent); background: var(--accent-soft); }
.enquiry-option.is-selected .opt-title{ color: var(--accent); }

.form-note{ font-size: 12.5px; color: var(--muted); margin-top: 16px; text-align: center; }
.form-success{ display: none; text-align: center; padding: 40px 10px; }
.form-success.is-visible{ display: block; }
.form-success .tick-lg{
  width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; color: var(--accent);
}
.form-success .tick-lg svg{ width: 24px; height: 24px; }
.form-success .tick-lg svg path{ stroke: var(--accent); }

.contact-people{ display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.person-card{ background: var(--surface); padding: 24px 26px; transition: background .25s ease; }
.person-card:hover{ background: var(--accent-soft); }
.person-top{ display: flex; align-items: center; gap: 16px; }
.person-avatar{ width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--accent); flex-shrink: 0; background: var(--bg); }
.person-name{ font-weight: 700; font-size: 15px; color: var(--heading); }
.person-role{ font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.person-actions{ display: flex; gap: 8px; margin-top: 16px; }
.person-actions a{
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 600; color: var(--heading);
  transition: border-color .2s ease, color .2s ease;
}
.person-actions a:hover{ border-color: var(--accent); color: var(--accent); }
.person-actions svg{ width: 13px; height: 13px; flex-shrink: 0; }
.person-actions svg path{ stroke: currentColor; }


/* ---------- command palette ---------- */
.cmdk-overlay{
  position: fixed; inset: 0; z-index: 300; background: rgba(8,9,16,0.72);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 0;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.cmdk-overlay.is-open{ opacity: 1; visibility: visible; }
.cmdk{
  width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(6,7,14,0.6), 0 0 60px -20px var(--accent-glow); transform: translateY(-12px); transition: transform .3s var(--ease);
  overflow: hidden;
}
.cmdk-overlay.is-open .cmdk{ transform: translateY(0); }
.cmdk-input-row{ display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.cmdk-input-row svg{ width: 17px; height: 17px; stroke: var(--muted); flex-shrink: 0; }
.cmdk-input-row input{ flex: 1; border: none; background: none; font-size: 17px; font-family: var(--font-body); color: var(--heading); }
.cmdk-input-row input::placeholder{ color: var(--muted); }
.cmdk-input-row input:focus{ outline: none; }
.cmdk-input-row kbd{ font-size: 11px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 3px 6px; }
.cmdk-list{ max-height: 320px; overflow-y: auto; padding: 8px; }
.cmdk-item{ display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; color: var(--heading); }
.cmdk-item span.hint{ font-size: 12px; font-weight: 400; color: var(--muted); }
.cmdk-item.is-active{ background: var(--accent); color: var(--on-accent); }
.cmdk-item.is-active span.hint{ color: var(--on-accent-soft); }
.cmdk-empty{ padding: 30px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- floating dock ---------- */
.dock{
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  z-index: 150; display: flex; align-items: stretch; gap: 0;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--heading); border-radius: 100px; padding: 6px;
  box-shadow: 0 20px 44px -14px rgba(6,7,14,0.5), 0 0 40px -16px var(--accent-glow);
  transition: transform .5s var(--ease-out);
}
.dock.is-visible{ transform: translate(-50%, 0); }
.dock-clock{
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--body); white-space: nowrap;
  padding: 0 16px 0 16px;
}
.dock .btn{ padding: 11px 22px; font-size: 13px; border-radius: 100px; }

/* ---------- footer ---------- */
.site-footer{ background: var(--surface-2); color: var(--body); padding-top: 0; border-top: 1px solid var(--border); }
.footer-top{ display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 80px 0 56px; border-bottom: 1px solid var(--border); }
.footer-brand .logo{ margin-bottom: 18px; }
.footer-brand .logo-img{ height: 24px; }
.footer-position{ font-size: 14px; line-height: 1.6; color: var(--body); max-width: 280px; }
.footer-col h5{ font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul{ display: grid; gap: 12px; }
.footer-col a{ font-size: 14.5px; color: var(--body); transition: color .2s ease; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; padding: 26px 0; flex-wrap: wrap; gap: 14px; }
.footer-legal{ font-size: 12px; color: var(--muted); line-height: 1.6; }
.footer-social{ display: flex; gap: 10px; }
.footer-social a{ width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: border-color .2s ease; }
.footer-social a:hover{ border-color: var(--accent); }
.footer-social svg{ width: 15px; height: 15px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero{ padding: 60px 0 84px; position: relative; }
.breadcrumb{ display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover{ color: var(--accent); }
.breadcrumb .sep{ opacity: .5; }
.callout{ border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; font-size: 15px; line-height: 1.75; color: var(--body); background: var(--surface); }
.callout strong{ color: var(--heading); }
.center-col{ max-width: 700px; margin: 0 auto; }

/* utility */
.mt-16{ margin-top: 16px; } .mt-24{ margin-top: 24px; } .mt-32{ margin-top: 32px; } .mt-48{ margin-top: 48px; } .mt-64{ margin-top: 64px; }
.text-center{ text-align: center; }

/* ================= responsive ================= */
@media (max-width: 1080px){
  .stat-strip__item{ flex: 1 1 50%; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .explorer-tab{ min-width: 33%; }
}
@media (max-width: 900px){
  .nav-main{ display: none; }
  .nav-toggle{ display: flex; }
  .panel-grid, .reason-grid, .leader-grid, .split-2col{ grid-template-columns: 1fr; }
  .split-2col{ gap: 40px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .split-slider{ height: 640px; }
  .split-pane{ padding: 30px; }
  .util-clock{ display: none; }
}
@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  .header-row{ height: 68px; }
  .logo-img{ height: 20px; }
  .header-actions{ gap: 8px; }
  .header-actions .icon-btn, .header-actions .btn-primary{ display: none; }
  .nav-toggle{ width: 44px; height: 44px; }
  .mobile-close{ width: 44px; height: 44px; }
  .util-strip .wrap{ height: 30px; }
  .util-strip .util-msg{ font-size: 9.5px; letter-spacing: 0.08em; }
  .section{ padding: 76px 0; }
  .cta-strip{ padding: 76px 0; }
  .hero-num{ font-size: 80px; opacity: .14; }
  .field-row{ grid-template-columns: 1fr; gap: 0; }
  .mini-stats{ grid-template-columns: 1fr 1fr; }
  .mini-stat:nth-child(3){ grid-column: 1 / -1; }
  .stat-strip__item{ flex: 1 1 100%; padding: 32px 24px; }
  .stat-strip--quad .stat-strip__item{ flex: 1 1 100%; }
  .stat-strip--quad .stat-strip__item:nth-child(2){ border-top: 1px solid var(--border); }
  .index-row{ flex-wrap: wrap; }
  .index-row .row-head{ flex: 1 0 100%; width: 100%; margin-top: 10px; }
  .index-panel-body, .index-row .tag-row{ padding-left: 0; }
  .footer-top{ grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .explorer-tabs{ flex-direction: column; }
  .explorer-tab{ border-right: none; border-bottom: 1px solid var(--border); }
  .explorer-panels{ padding: 28px 22px; }
  .form-panel{ padding: 28px 22px; }
  .dock{ left: 50%; right: auto; width: auto; transform: translate(-50%, 140%); }
  .dock.is-visible{ transform: translate(-50%, 0); }
  .dock-clock{ display: none; }

  /* split-slider: a horizontal drag-reveal doesn't work at phone widths (half the
     track is narrower than the pane's own text) — stack both panes full-width instead */
  .split-slider{ height: auto; user-select: auto; -webkit-user-select: auto; }
  .split-pane{ position: static; padding: 30px 24px; overflow: visible; }
  .split-pane.pane-b{ clip-path: none; text-align: left; align-items: flex-start; border-top: 1px solid var(--border-strong); }
  .pane-b li{ padding-left: 18px; padding-right: 0; }
  .pane-b li::before{ left: 0; right: auto; }
  .split-handle{ display: none; }
  .split-caption{ display: none; }
}
