/* ==========================================================================
   Dezhino — landing redesign
   Vanilla CSS, RTL-first, light/dark via [data-theme] on <html>
   ========================================================================== */

/* ── Font ────────────────────────────────────────────────────────────────
   Vazirmatn v33.003 is vendored in assets/fonts/ — no CDN, no network. */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Vazirmatn[wght].woff2') format('woff2');
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --brand:        #6259CA;
  --brand-600:    #524AB4;
  --brand-700:    #423B95;
  --brand-400:    #8A83DD;
  --brand-300:    #A9A3E9;
  --brand-100:    #E5E3FA;
  --brand-050:    #F2F1FD;

  --teal:         #12B39F;
  --rose:         #EE5C79;
  --amber:        #F0A62B;

  --font: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 112px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .28s;

  --header-h: 68px;
}

:root[data-theme='light'] {
  --bg:           #FFFFFF;
  --bg-soft:      #F6F6FC;
  --surface:      #FFFFFF;
  --surface-2:    #FAFAFE;
  --border:       #E6E5F3;
  --border-strong:#D5D3EA;
  --text:         #13122B;
  --text-2:       #4B4A6B;
  --text-3:       #77769A;
  --tint:         var(--brand-050);
  --shadow-sm:    0 1px 2px rgba(19, 18, 43, .05), 0 1px 3px rgba(19, 18, 43, .04);
  --shadow-md:    0 4px 12px rgba(19, 18, 43, .06), 0 12px 32px rgba(19, 18, 43, .06);
  --shadow-lg:    0 12px 28px rgba(19, 18, 43, .08), 0 32px 64px rgba(19, 18, 43, .10);
  --shadow-brand: 0 10px 24px rgba(98, 89, 202, .28);
  --glow-1:       rgba(98, 89, 202, .22);
  --glow-2:       rgba(155, 93, 229, .16);
  --grid-line:    rgba(19, 18, 43, .045);
  --header-bg:    rgba(255, 255, 255, .78);
}

:root[data-theme='dark'] {
  --bg:           #0A0917;
  --bg-soft:      #100E20;
  --surface:      #15132A;
  --surface-2:    #1A1832;
  --border:       #272444;
  --border-strong:#332F57;
  --text:         #F3F2FE;
  --text-2:       #B7B4D6;
  --text-3:       #8A87AC;
  --brand:        #7F77E0;
  --brand-600:    #6F66D6;
  --brand-700:    #5C53C3;
  --tint:         rgba(127, 119, 224, .12);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg:    0 12px 28px rgba(0, 0, 0, .45), 0 32px 64px rgba(0, 0, 0, .5);
  --shadow-brand: 0 10px 24px rgba(98, 89, 202, .45);
  --glow-1:       rgba(110, 100, 230, .28);
  --glow-2:       rgba(155, 93, 229, .20);
  --grid-line:    rgba(255, 255, 255, .04);
  --header-bg:    rgba(10, 9, 23, .72);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, audio { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 { line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -100px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* Icon defaults — every inline SVG is stroke-based unless overridden. */
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-weight: 600; font-size: .95rem; line-height: 1.5;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 14px 30px; font-size: 1rem; }

.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { --btn-bg: var(--brand-600); }

.btn--outline { --btn-bd: var(--border-strong); --btn-fg: var(--text); background: var(--surface); }
.btn--outline:hover { --btn-bd: var(--brand); --btn-fg: var(--brand); }

.btn--ghost { --btn-fg: var(--text-2); }
.btn--ghost:hover { --btn-fg: var(--brand); background: var(--tint); }

.btn--light { --btn-bg: #fff; --btn-fg: #2A2260; }
.btn--light:hover { --btn-bg: #F1F0FE; }

.btn--glass { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--glass:hover { --btn-bg: rgba(255,255,255,.22); }

.btn--link { --btn-fg: var(--brand); padding-inline: 6px; }
.btn--link:hover { text-decoration: underline; text-underline-offset: 5px; }

.btn__arrow, .btn__icon { width: 18px; height: 18px; flex: none; }
.btn__arrow { transition: transform var(--dur) var(--ease); }
/* Chevrons point to the inline-end of an RTL page, i.e. visually leftwards. */
.btn:hover .btn__arrow { transform: translateX(-4px); }

/* ── Announcement bar ───────────────────────────────────────────────────── */
.announce {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, var(--brand-700), var(--brand) 45%, #7C4FCB);
  color: #fff;
  font-size: .875rem;
}
.announce[hidden] { display: none; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; }
.announce__link { display: inline-flex; align-items: center; gap: 10px; text-align: center; }
.announce__link:hover .announce__arrow { transform: translateX(-4px); }
.announce__arrow { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.announce__close {
  position: absolute; inset-inline-end: var(--gutter); display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: var(--r-full); opacity: .75;
}
.announce__close:hover { opacity: 1; background: rgba(255,255,255,.16); }
.announce__close svg { width: 15px; height: 15px; }

.badge {
  display: inline-block; padding: 1px 9px; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.2);
}
.badge--live { position: relative; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; }
.brand__lockup { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.brand__word { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand__slogan { font-weight: 300; font-size: .68rem; color: var(--text-3); letter-spacing: .01em; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: .94rem; font-weight: 500; color: var(--text-2);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--tint); }
.nav__chev { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.nav__item--has-menu.is-open .nav__chev { transform: rotate(180deg); }
.nav__item--has-menu.is-open .nav__link { color: var(--text); background: var(--tint); }

.megamenu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 50%;
  transform: translateX(50%) translateY(-6px);
  width: min(620px, 88vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.megamenu--sm { width: min(330px, 88vw); }
.nav__item--has-menu.is-open .megamenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(50%) translateY(0);
}
.megamenu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.megamenu__grid--1 { grid-template-columns: 1fr; }
.megamenu__card {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md);
  transition: background-color var(--dur) var(--ease);
}
.megamenu__card:hover { background: var(--bg-soft); }
.megamenu__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; }
.megamenu__icon svg { width: 19px; height: 19px; }
.megamenu__body { display: grid; gap: 2px; }
.megamenu__body strong { font-size: .93rem; font-weight: 600; }
.megamenu__body small { font-size: .8rem; line-height: 1.6; color: var(--text-3); }
.megamenu__card--slim { padding: 10px 12px; }
.megamenu__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding: 12px 14px 4px; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--text-3);
}
.megamenu__foot a,
#menu-solutions-consult { color: var(--brand); font-weight: 600; }

[data-tone='violet'] { background: var(--tint); color: var(--brand); }
[data-tone='teal']   { background: rgba(18, 179, 159, .12); color: var(--teal); }
[data-tone='rose']   { background: rgba(238, 92, 121, .12); color: var(--rose); }
[data-tone='amber']  { background: rgba(240, 166, 43, .14); color: var(--amber); }

.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-full); color: var(--text-2);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--tint); color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }

:root[data-theme='light'] .icon-moon { display: none; }
:root[data-theme='dark'] .icon-sun { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile nav ─────────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; top: var(--header-h); z-index: 45;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0; transition: opacity .2s var(--ease);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav__panel { padding: 18px var(--gutter) 36px; display: grid; gap: 2px; }
.mobile-nav__label {
  margin-top: 16px; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  color: var(--text-3); text-transform: uppercase;
}
.mobile-nav__panel > a {
  padding: 11px 12px; border-radius: var(--r-sm); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__panel > a:hover { background: var(--tint); color: var(--brand); }
.mobile-nav__cta { display: grid; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__glow {
  position: absolute; inset-inline-start: -10%; top: -25%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 30% 30%, var(--glow-1), transparent 62%),
              radial-gradient(circle at 70% 70%, var(--glow-2), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 5%, 0) scale(1.08); }
}
.hero__grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__content { max-width: 620px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 16px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: .84rem; font-weight: 500; color: var(--text-2);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pill:hover { border-color: var(--brand-300); transform: translateY(-1px); }
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(18, 179, 159, .55);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(18, 179, 159, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(18, 179, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 179, 159, 0); }
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.05rem, 5.2vw, 3.5rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.02em;
}
.grad {
  background: linear-gradient(100deg, var(--brand) 10%, #9B5DE5 55%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 20px; font-size: clamp(1rem, 1.6vw, 1.09rem); color: var(--text-2); max-width: 56ch; }
.hero__lead strong { color: var(--text); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .88rem; color: var(--text-3); }
.hero__checks li { display: inline-flex; align-items: center; gap: 7px; }
.hero__checks svg { width: 16px; height: 16px; color: var(--teal); stroke-width: 2.6; }

/* Hero mock panel */
.hero__visual { position: relative; }
.mock {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.mock__dots { display: inline-flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock__dots i:first-child { background: var(--rose); }
.mock__dots i:nth-child(2) { background: var(--amber); }
.mock__dots i:nth-child(3) { background: var(--teal); }
.mock__title { font-size: .76rem; color: var(--text-3); direction: ltr; margin-inline-start: auto; }

/* The rail sits last in the DOM so RTL flow places it on the left, matching
   the real dashboard where the sidebar stays on the left in both directions. */
.mock__app { display: flex; align-items: stretch; background: var(--bg-soft); }
.mock__rail {
  flex: none; width: 46px; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 14px 0; background: #1F2140;
}
:root[data-theme='dark'] .mock__rail { background: #16172E; }
.mock__rail-logo {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand-300), var(--brand));
}
.mock__rail-item { width: 20px; height: 6px; border-radius: var(--r-full); background: rgba(255, 255, 255, .16); }
.mock__rail-item.is-active {
  width: 28px; height: 16px; border-radius: var(--r-xs);
  background: linear-gradient(135deg, var(--brand-400), var(--brand));
}

.mock__main { flex: 1; min-width: 0; padding: 14px; display: grid; gap: 12px; }

.mock__welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: var(--r-md); color: #fff;
  background: linear-gradient(120deg, var(--brand-600), var(--brand) 55%, var(--brand-400));
}
.mock__welcome strong { display: block; font-size: .92rem; }
.mock__welcome small { display: block; margin-top: 3px; font-size: .68rem; opacity: .85; line-height: 1.6; }
.mock__shield {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .18);
}
.mock__shield svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpi {
  display: grid; gap: 2px; padding: 11px 12px;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border);
}
.mock__kpi-label { font-size: .68rem; color: var(--text-3); }
.mock__kpi-value { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.mock__kpi-value--bad { color: var(--rose); }
.mock__kpi-value--good { color: var(--teal); }
.mock__kpi-trend { font-size: .66rem; color: var(--text-3); }
.mock__kpi-trend--good { color: var(--teal); }

.mock__row-2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; }
.mock__card {
  padding: 11px 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.mock__card-title { display: block; font-size: .68rem; font-weight: 700; color: var(--text-3); }

.mock__chart svg { width: 100%; height: 74px; margin-top: 6px; }
.mock__chart-line {
  stroke: var(--brand); stroke-width: 2.2; fill: none;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw 2.2s var(--ease) .35s forwards;
}
.mock__chart-area { opacity: 0; stroke: none; animation: fade-in .9s var(--ease) 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.mock__donut { display: grid; justify-items: center; }
.mock__donut svg { width: 76px; height: 76px; margin-top: 4px; transform: rotate(-90deg); }
.mock__donut circle { fill: none; stroke-width: 6; }
.mock__donut-track { stroke: var(--rose); }
/* r=15.9 gives a circumference of ~100, so the dash array reads as percentages. */
.mock__donut-good {
  stroke: var(--teal); stroke-linecap: round;
  stroke-dasharray: 58 42; stroke-dashoffset: 58;
  animation: donut 1.4s var(--ease) .5s forwards;
}
@keyframes donut { to { stroke-dashoffset: 0; } }
.mock__donut-legend { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .62rem; color: var(--text-3); }
.mock__donut-legend i { width: 7px; height: 7px; border-radius: 2px; }
.mock__donut-legend i.is-good { background: var(--teal); }
.mock__donut-legend i.is-bad { background: var(--rose); margin-inline-start: 6px; }

.mock__feed { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.mock__frow {
  display: grid; grid-template-columns: 1.25fr .85fr .8fr .95fr;
  align-items: center; gap: 8px;
  padding: 8px 12px; font-size: .72rem;
  border-top: 1px solid var(--border);
}
.mock__frow:first-child { border-top: 0; }
.mock__frow--head { background: var(--brand-050); color: var(--text-3); font-size: .66rem; font-weight: 700; }
:root[data-theme='dark'] .mock__frow--head { background: rgba(98, 89, 202, .16); }
.mock__frow:not(.mock__frow--head) {
  opacity: 0;
  animation: row-in .55s var(--ease) forwards;
}
.mock__frow:nth-of-type(2) { animation-delay: .8s; }
.mock__frow:nth-of-type(3) { animation-delay: 1.05s; }
.mock__frow:nth-of-type(4) { animation-delay: 1.3s; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.score--bad  { color: var(--rose); }
.score--warn { color: var(--amber); }
.score--good { color: var(--teal); }

.tag { justify-self: start; padding: 2px 9px; border-radius: var(--r-full); font-size: .68rem; font-weight: 600; }
.tag--bad  { background: rgba(238, 92, 121, .13); color: var(--rose); }
.tag--warn { background: rgba(240, 166, 43, .15); color: var(--amber); }
.tag--good { background: rgba(18, 179, 159, .13); color: var(--teal); }

.floaty {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.floaty svg { width: 20px; height: 20px; color: var(--brand); }
.floaty strong { display: block; font-size: .92rem; line-height: 1.3; }
.floaty small { font-size: .7rem; color: var(--text-3); }
.floaty--a { inset-inline-end: -18px; top: 12%; }
.floaty--b { inset-inline-start: -14px; bottom: 8%; animation-delay: -3s; }
.floaty__ping { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); animation: ping 2s var(--ease) infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ── Client marquee ─────────────────────────────────────────────────────── */
.clients { padding-block: clamp(28px, 4vw, 44px); }
.clients__title { text-align: center; font-size: .85rem; color: var(--text-3); letter-spacing: .01em; }
.marquee {
  margin-top: 22px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(36px, 6vw, 72px); width: max-content;
  animation: marquee 62s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: clamp(84px, 9vw, 120px); width: auto; object-fit: contain; flex: none;
  filter: grayscale(1); opacity: .78;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Most client logos ship on a white background, so dark mode sits them on a
   light plate rather than inverting them into black squares. */
:root[data-theme='dark'] .marquee__track img {
  box-sizing: border-box; padding: 8px 14px; border-radius: var(--r-md);
  background: #FFFFFF; opacity: .82;
}
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ── Section shell ──────────────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(34px, 5vw, 56px); }
.section__head--row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: none; text-align: start; flex-wrap: wrap;
}
.eyebrow {
  display: inline-block; padding: 4px 13px; border-radius: var(--r-full);
  background: var(--tint); color: var(--brand);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.section__title { margin-top: 14px; font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.02em; }
.section__sub { margin-top: 12px; color: var(--text-2); font-size: 1.02rem; max-width: 56ch; margin-inline: auto; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 26px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.stat__value {
  display: block; font-size: clamp(2rem, 4.2vw, 2.85rem); font-weight: 800;
  letter-spacing: -.12em; line-height: 1.1; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat__value--good { color: var(--teal); }
.stat__label { display: block; margin-top: 10px; font-size: .9rem; color: var(--text-2); line-height: 1.7; }

/* ── Solution cards ─────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.card:hover::before { opacity: 1; }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: 1.06rem; }
.card__text { font-size: .9rem; color: var(--text-2); flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-size: .87rem; font-weight: 600; color: var(--brand); }
.card__link svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.card:hover .card__link svg { transform: translateX(-4px); }

/* ── Feature rows ───────────────────────────────────────────────────────── */
.feature {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature--reverse .feature__text { order: 2; }
.feature__title { margin-top: 14px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -.02em; }
.feature__lead { margin-top: 14px; color: var(--text-2); }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }

.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-inline-start: 30px; font-size: .95rem; color: var(--text-2); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .46em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236259CA' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks-more {
  display: none;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.ticks-more:hover {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature__media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md);
  isolation: isolate;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.feature__media:hover {
  border-color: var(--brand-300);
  box-shadow: 0 18px 44px rgba(19, 18, 43, .12), 0 36px 80px rgba(98, 89, 202, .12);
}
.feature__media::before {
  content: ''; position: absolute; z-index: 3; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .22) 46%, transparent 64%);
  transform: translateX(120%);
  transition: transform 1s var(--ease);
}
.feature__media:hover::before { transform: translateX(-120%); }
.feature__media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
.feature__media.shot img { aspect-ratio: 1024 / 508; object-fit: cover; }
.feature__media:hover img { transform: scale(1.025); filter: saturate(1.05) contrast(1.02); }

.feature.reveal .feature__text {
  opacity: 0;
  transform: translateX(28px);
}
.feature.reveal .feature__media {
  opacity: 0;
  transform: translateX(-34px) scale(.96);
}
.feature--reverse.reveal .feature__text { transform: translateX(-28px); }
.feature--reverse.reveal .feature__media { transform: translateX(34px) scale(.96); }
.feature.reveal.is-in .feature__text,
.feature.reveal.is-in .feature__media {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .9s var(--ease),
              border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.feature.reveal.is-in .feature__media { transition-delay: 100ms; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 30px 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.step::after {
  content: ''; position: absolute; top: 52px; inset-inline-start: -13px;
  width: 26px; height: 1px; background: var(--border-strong);
}
.step:first-child::after { display: none; }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-brand);
}
.step__title { margin-top: 18px; font-size: 1.08rem; }
.step__text { margin-top: 8px; font-size: .92rem; color: var(--text-2); }

/* ── Case studies ───────────────────────────────────────────────────────── */
.carousel-shell { position: relative; }
.carousel-arrow { display: none; }

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case__media { overflow: hidden; background: var(--bg-soft); }
.case__media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform .5s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }
.case__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case__title { font-size: 1.15rem; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; }
.case__metrics li {
  padding: 12px 10px; border-radius: var(--r-sm); background: var(--bg-soft);
  border: 1px solid var(--border); text-align: center;
}
.case__metrics strong { display: block; font-size: 1.02rem; font-weight: 800; color: var(--brand); }
.case__metrics small { display: block; margin-top: 2px; font-size: .72rem; color: var(--text-3); line-height: 1.5; }
.case .btn { align-self: stretch; width: 100%; }
.cases__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 36px);
}

.chip {
  align-self: flex-start; padding: 3px 11px; border-radius: var(--r-full);
  background: var(--tint); color: var(--brand); font-size: .74rem; font-weight: 700;
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.quotes { columns: 3; column-gap: 18px; }
.quote {
  break-inside: avoid; margin-bottom: 18px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.quote blockquote { font-size: .93rem; color: var(--text-2); line-height: 1.9; }
.quote blockquote::before { content: '”'; display: block; font-size: 2.4rem; line-height: .6; color: var(--brand-300); margin-bottom: 10px; }
.quote figcaption { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.quote figcaption strong { display: block; font-size: .9rem; }
.quote figcaption small { font-size: .78rem; color: var(--text-3); }
.quote audio { width: 100%; margin-top: 14px; height: 38px; }
.quote--audio { background: linear-gradient(160deg, var(--tint), var(--surface) 60%); }

/* ── Blog ───────────────────────────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.post__media { overflow: hidden; background: var(--bg-soft); }
.post__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__title { font-size: 1.02rem; }
.post__text { font-size: .87rem; color: var(--text-2); flex: 1; }
.post__more { font-size: .85rem; font-weight: 600; color: var(--brand); }

/* ── Resources ──────────────────────────────────────────────────────────── */
.resources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.resources--3 { grid-template-columns: repeat(3, 1fr); }
.resource {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.resource:hover { transform: translateY(-3px); border-color: var(--brand-300); background: var(--surface-2); }
.resource__icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: var(--tint); color: var(--brand);
}
.resource__icon svg { width: 19px; height: 19px; }
.resource strong { display: block; font-size: .9rem; font-weight: 600; }
.resource small { display: block; font-size: .77rem; color: var(--text-3); line-height: 1.6; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.cta { padding-block: var(--section-y); }
.cta__box {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: linear-gradient(125deg, var(--brand-700), var(--brand) 48%, #8B4FD8);
  color: #fff; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute; inset: -40% -10% auto -10%; height: 120%;
  background: radial-gradient(ellipse at 25% 20%, rgba(255,255,255,.28), transparent 55%),
              radial-gradient(ellipse at 80% 70%, rgba(18,179,159,.35), transparent 55%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.cta__title { position: relative; font-size: clamp(1.55rem, 3.6vw, 2.4rem); letter-spacing: -.02em; }
.cta__text { position: relative; margin-top: 14px; margin-inline: auto; max-width: 60ch; color: rgba(255,255,255,.88); }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta__note { position: relative; margin-top: 20px; font-size: .82rem; color: rgba(255,255,255,.72); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: clamp(40px, 6vw, 64px) 24px; }
.footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(24px, 4vw, 48px);
}
.footer__about { margin-top: 16px; font-size: .87rem; color: var(--text-2); max-width: 42ch; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-full);
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.socials a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.socials li:first-child svg, .socials li:last-child svg { fill: currentColor; stroke: none; }

.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h3 { font-size: .95rem; margin-bottom: 4px; }
.footer__col a, .footer__contact p { font-size: .87rem; color: var(--text-2); }
.footer__col a:hover { color: var(--brand); }
.footer__contact p { display: flex; align-items: flex-start; gap: 8px; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--brand); }
.footer__contact a { display: flex; align-items: flex-start; gap: 8px; }
.enamad { display: inline-block; margin-top: 10px; padding: 8px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); width: max-content; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(32px, 5vw, 48px); padding-top: 22px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--text-3);
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--brand); }

/* ── Back to top ────────────────────────────────────────────────────────── */
.to-top {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-full); background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); }
.to-top svg { width: 19px; height: 19px; stroke-width: 2.4; }

/* ── Inner pages ────────────────────────────────────────────────────────── */
.container--narrow { max-width: 820px; }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }

.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.page-hero__glow {
  position: absolute; inset-inline-end: -12%; top: -55%;
  width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(98, 89, 202, .22), transparent 62%);
  filter: blur(28px);
}
.page-hero > .container { position: relative; }
.page-hero__title { margin-top: 16px; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.03em; }
.page-hero__lead { margin-top: 16px; max-width: 68ch; color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.1rem); }
.page-hero .hero__checks { margin-top: 24px; }
.page-hero__sub {
  margin-top: 12px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -.02em;
}
.page-hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 28px;
}
.video {
  position: relative;
  width: min(920px, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0a17;
  box-shadow: var(--shadow-lg);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video + .section__sub { margin-top: 22px; }
.card__text:empty { display: none; }

.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .82rem; color: var(--text-3); }
.crumbs a:hover { color: var(--brand); }
.nav__link.is-current { color: var(--brand); }
.megamenu__card.is-current,
.megamenu__card[aria-current='page'] { background: var(--bg-soft); }
.megamenu__card.is-current strong,
.megamenu__card[aria-current='page'] strong { color: var(--brand); }
.mobile-nav__panel > a[aria-current='page'] { background: var(--tint); color: var(--brand); }

/* Screenshot frame — wraps real dashboard captures in browser chrome. */
.shot {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow-lg);
}
.shot__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.shot__bar i:first-child { background: var(--rose); }
.shot__bar i:nth-child(2) { background: var(--amber); }
.shot__bar i:nth-child(3) { background: var(--teal); }
.feature.is-in .shot__bar i { animation: shot-dot 2.8s var(--ease) 1; }
.feature.is-in .shot__bar i:nth-child(2) { animation-delay: 120ms; }
.feature.is-in .shot__bar i:nth-child(3) { animation-delay: 240ms; }
@keyframes shot-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
  35% { transform: scale(1.25); box-shadow: 0 0 0 5px transparent; }
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.shot::after { content: none; }

/* Iframe embed (pricing plans live in the dashboard) */
.section--flush { padding: 0; }
.embed {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg);
}
.embed--bare {
  border: 0; border-radius: 0; box-shadow: none; overflow: visible; background: transparent;
}
.embed--bare .embed__frame {
  display: block; width: 100%;
  /* Fallback until the dashboard posts its real content height. */
  height: 1080px; min-height: 0;
  border: 0; overflow: hidden; background: var(--surface);
}
.embed__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.embed__dots { display: inline-flex; gap: 6px; }
.embed__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.embed__dots i:first-child { background: var(--rose); }
.embed__dots i:nth-child(2) { background: var(--amber); }
.embed__dots i:nth-child(3) { background: var(--teal); }
.embed__title { font-size: .76rem; color: var(--text-3); direction: ltr; }
.embed__open {
  display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto;
  font-size: .8rem; font-weight: 600; color: var(--brand);
}
.embed__open svg { width: 14px; height: 14px; }
.embed__open:hover { color: var(--brand-600); }
.embed__frame { display: block; width: 100%; height: clamp(560px, 92vh, 1100px); border: 0; background: var(--surface); }
.embed__fallback { padding: 28px; text-align: center; color: var(--text-2); }
.embed__fallback a { color: var(--brand); font-weight: 600; }

/* Non-linked variants of the solution card */
.card--static:hover { transform: none; box-shadow: none; border-color: var(--border); }
.card--static:hover::before { opacity: 0; }

.stats--3 { grid-template-columns: repeat(3, 1fr); }
.case__copy { display: grid; gap: 8px; }
.case__text { font-size: .93rem; color: var(--text-2); }
.case__text strong { color: var(--text); font-weight: 700; }

/* ── About / Contact ────────────────────────────────────────────────────── */
.prose {
  margin-top: 18px; font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  line-height: 1.9; color: var(--text-2);
}

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.pillar {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 8px 4px;
}
.pillar strong { font-size: .98rem; line-height: 1.55; }
.pillar__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
}
.pillar__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar__icon[data-tone="violet"] { color: var(--brand); background: var(--tint); border-color: var(--brand-300); }
.pillar__icon[data-tone="teal"] { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--surface)); }
.pillar__icon[data-tone="rose"] { color: var(--rose); background: color-mix(in srgb, var(--rose) 12%, var(--surface)); }
.pillar__icon[data-tone="amber"] { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, var(--surface)); }

.team {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
  list-style: none; margin: 0; padding: 0;
}
.person { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.person__photo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface-2);
}
.person__name { margin-top: 6px; font-size: 1rem; }
.person__role { font-size: .82rem; color: var(--text-3); }
.person--alumni .person__photo {
  filter: grayscale(1);
  opacity: .35;
}
.person--alumni .person__name,
.person--alumni .person__role { opacity: .35; }

.channels {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.channel {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 18px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.channel:hover {
  border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.channel--static { cursor: default; }
.channel__icon {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-soft);
}
.channel__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.channel__icon[data-tone="violet"] { color: var(--brand); }
.channel__icon[data-tone="teal"] { color: var(--teal); }
.channel__icon[data-tone="rose"] { color: var(--rose); }
.channel__icon[data-tone="amber"] { color: var(--amber); }
.channel__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.channel__body small { font-size: .78rem; color: var(--text-3); }
.channel__body strong { font-size: .98rem; font-weight: 650; line-height: 1.5; word-break: break-word; }

.steps--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Product pages ──────────────────────────────────────────────────────── */
.card__icon[data-tone="violet"],
.product-benefit__icon[data-tone="violet"],
.step__icon[data-tone="violet"],
.section__badge[data-tone="violet"] {
  color: var(--brand); background: var(--tint); border: 1px solid var(--brand-300);
}
.card__icon[data-tone="teal"],
.product-benefit__icon[data-tone="teal"],
.step__icon[data-tone="teal"],
.section__badge[data-tone="teal"] {
  color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--border));
}
.card__icon[data-tone="rose"],
.product-benefit__icon[data-tone="rose"],
.step__icon[data-tone="rose"],
.section__badge[data-tone="rose"] {
  color: var(--rose); background: color-mix(in srgb, var(--rose) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rose) 28%, var(--border));
}
.card__icon[data-tone="amber"],
.product-benefit__icon[data-tone="amber"],
.step__icon[data-tone="amber"],
.section__badge[data-tone="amber"] {
  color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--border));
}
.card__icon svg,
.product-benefit__icon svg,
.step__icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.page-hero--product > .container {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.page-hero--product > .container > * { min-width: 0; }
.page-hero--product .page-hero__visual {
  margin: 0;
  width: 100%;
  max-width: 100%;
}
.page-hero--product .page-hero__visual.shot { box-shadow: var(--shadow-lg); }
.page-hero--product .page-hero__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 26px; list-style: none; padding: 0;
}
.product-benefit {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product-benefit:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.product-benefit__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
}
.product-benefit__text { font-size: .84rem; line-height: 1.65; color: var(--text-2); }

.section__head--icon { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section__badge {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: 14px; border-radius: 14px;
}
.section__badge svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.media-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
.media-panel__copy { display: grid; gap: 12px; }
.media-panel__copy .section__title { text-align: start; margin-inline: 0; }
.media-panel__copy .section__sub { text-align: start; margin-inline: 0; }
.media-panel--reverse .media-panel__copy { order: 2; }
.media-panel--reverse .video { order: 1; }

.feature__level {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.feature__level-num {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-full); background: var(--brand); color: #fff;
  font-weight: 800; font-size: .92rem; box-shadow: var(--shadow-brand);
}
.feature__level-label {
  font-size: .78rem; font-weight: 700; color: var(--brand); letter-spacing: .02em;
}

.card--defense { border-color: color-mix(in srgb, var(--rose) 32%, var(--border)); background: color-mix(in srgb, var(--rose) 4%, var(--surface)); }
.card--offense { border-color: color-mix(in srgb, var(--teal) 32%, var(--border)); background: color-mix(in srgb, var(--teal) 4%, var(--surface)); }
.card--highlight { border-color: color-mix(in srgb, var(--brand) 32%, var(--border)); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }

.step__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  margin-bottom: 12px; border-radius: 12px;
}
.step__num { margin-top: 4px; }

.steps--flow .step::after {
  content: '←'; position: absolute; top: 50%; inset-inline-start: -18px;
  transform: translateY(-50%); width: auto; height: auto; background: none;
  color: var(--brand-300); font-size: 1.1rem; font-weight: 700;
}
.steps--flow .step:first-child::after { display: none; }

.cta__actions .btn--ghost-light {
  color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
}
.cta__actions .btn--ghost-light:hover {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55);
}

.card--static .card__icon { border-radius: 14px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq__item {
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236259CA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--brand); }
.faq__item p { padding: 0 20px 18px; color: var(--text-2); font-size: .94rem; }

/* ── Annual reports ─────────────────────────────────────────────────────── */
.reports { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.report {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.report:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.report--featured {
  grid-row: span 2; grid-column: span 1;
  background: linear-gradient(165deg, var(--tint), var(--surface) 60%);
  border-color: var(--brand-300);
}
.report__badge {
  position: absolute; top: 18px; inset-inline-end: 18px;
  padding: 4px 11px; border-radius: var(--r-full);
  background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700;
}
.report__year {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums;
}
.report__title { font-size: 1.05rem; }
.report__text { font-size: .92rem; color: var(--text-2); flex: 1; }
.report__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.report__meta li {
  padding: 3px 10px; border-radius: var(--r-full);
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: .72rem; color: var(--text-3);
}
.report .btn { align-self: flex-start; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .stats, .cards, .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .stats--3, .reports, .pillars, .steps--4, .resources--3 { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .report--featured { grid-row: auto; grid-column: 1 / -1; }
  .resources { grid-template-columns: repeat(2, 1fr); }
  .quotes { columns: 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .nav, .header__login { display: none; }
  .nav-burger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { max-width: none; }
  .hero__visual { margin-top: 8px; }
  .floaty--a { inset-inline-end: 0; }
  .floaty--b { inset-inline-start: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__text { order: 0; }
  .feature.reveal .feature__text,
  .feature--reverse.reveal .feature__text { transform: translateY(20px); }
  .feature.reveal .feature__media,
  .feature--reverse.reveal .feature__media { transform: translateY(26px) scale(.97); }
  .feature.reveal.is-in .feature__text,
  .feature.reveal.is-in .feature__media { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .page-hero--product > .container { grid-template-columns: 1fr; }
  .page-hero--product .page-hero__visual {
    order: -1;
    max-width: min(100%, 560px);
    margin-inline: auto;
  }
  .product-benefits { grid-template-columns: 1fr; }
  .media-panel { grid-template-columns: 1fr; }
  .media-panel--reverse .media-panel__copy { order: 0; }
  .cases { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .announce { font-size: .78rem; }
  .announce__desktop-text { display: none; }
  .announce__inner { padding-inline-end: 44px; }
  .header__actions { margin-inline-start: auto; }
  .header__cta { display: none; }
  .nav-burger { margin-inline-start: 0; }
  .btn { width: 100%; }
  .stats, .stats--3, .cards, .cards--2, .cards--3, .resources, .resources--3, .reports, .pillars, .channels, .steps--4 { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__checks { justify-content: center; }
  .hero__visual {
    width: min(100%, 340px);
    margin: 12px auto 0;
  }
  .mock { border-radius: var(--r-md); }
  .mock__bar { padding: 8px 10px; }
  .mock__bar .mock__title { font-size: .68rem; }
  .mock__rail, .mock__row-2, .mock__feed { display: none; }
  .mock__main { padding: 10px; gap: 9px; }
  .mock__welcome { padding: 10px 12px; }
  .mock__welcome strong { font-size: .82rem; }
  .mock__welcome small { font-size: .62rem; }
  .mock__shield { width: 30px; height: 30px; }
  .mock__kpi { padding: 8px 9px; }
  .mock__kpi-value { font-size: .95rem; }
  .mock__kpi-label, .mock__kpi-trend { font-size: .6rem; }
  .floaty--a, .floaty--b { display: none; }
  .feature .feature__media { order: -1; }
  .feature .feature__text,
  .feature--reverse .feature__text { order: 0; }
  .feature__actions,
  .page-hero__actions { display: grid; grid-template-columns: 1fr; }
  .product-benefits { grid-template-columns: 1fr; }
  .ticks[data-collapsible]:not(.is-open) > li:nth-child(n+4) { display: none; }
  .ticks[data-collapsible] + .ticks-more { display: inline-flex; align-items: center; }
  .cases,
  .quotes {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 34px 10px;
  }
  .cases::-webkit-scrollbar,
  .quotes::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .carousel-arrow:hover {
    border-color: var(--brand);
    background: var(--tint);
    transform: translateY(-50%) scale(1.06);
  }
  .carousel-arrow:disabled {
    opacity: .28;
    pointer-events: none;
  }
  .carousel-arrow svg { width: 20px; height: 20px; stroke-width: 2.4; }
  .carousel-arrow--right { right: 4px; }
  .carousel-arrow--left { left: 4px; }
  .case {
    flex: 0 0 min(86vw, 380px);
    scroll-snap-align: start;
  }
  .quote {
    flex: 0 0 min(82vw, 340px);
    margin-bottom: 0;
    scroll-snap-align: start;
  }
  .case__metrics { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: stretch; }
  .section__head--row .btn { align-self: stretch; }
  .embed__frame { height: 82vh; }
  /* Stacked plan cards need a tall iframe until the dashboard posts its height. */
  .embed--bare .embed__frame { height: 2900px; min-height: 0; }
  .embed__title { display: none; }
}

/* ── Motion & print ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .feature.reveal .feature__text,
  .feature.reveal .feature__media { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

@media print {
  .header, .announce, .mobile-nav, .to-top, .marquee, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}
