/* ==========================================================
   eneprox Flow — site styles
   Rebrand by editing the tokens in :root. Everything else
   reads from them.
   ========================================================== */

:root {
  /* ---- Brand variables: exact copies of the Figma variable set ---- */
  --primary-140: #008086;
  --primary-120: #00abb2;
  --primary-100: #00d6df;
  --primary-80: rgba(0, 214, 223, .8);
  --primary-60: rgba(0, 214, 223, .6);
  --primary-40: rgba(0, 214, 223, .4);
  --primary-20: rgba(0, 214, 223, .2);
  --primary-10: rgba(0, 214, 223, .1);
  --primary-5: rgba(0, 214, 223, .05);
  --secondary-120: #8f306b;
  --secondary-100: #b33c86;
  --secondary-80: rgba(179, 60, 134, .8);
  --secondary-60: rgba(179, 60, 134, .6);
  --secondary-40: rgba(179, 60, 134, .4);
  --secondary-20: rgba(179, 60, 134, .2);
  --secondary-10: rgba(179, 60, 134, .1);
  --secondary-5: rgba(179, 60, 134, .05);
  --text: #44595a;
  --text-dark: #314041;
  --text-light: #7c8b8c;
  --text-lighter: rgba(124, 139, 140, .3);

  /* ---- Site roles: rules below read these, which point at the brand variables ---- */
  --ink: var(--text-dark);              /* headings, dark bands, footer */
  --ink-2: var(--text);                 /* raised surface on dark bands */
  --muted: var(--text-light);           /* secondary copy */
  --line: var(--text-lighter);          /* borders and dividers */
  --bg: #ffffff;
  --bg-soft: var(--primary-5);          /* tinted sections and quiet fills */
  --brand: var(--primary-100);          /* fills: buttons, icons, chart marks */
  --brand-strong: var(--primary-120);   /* deeper fill */
  --brand-text: var(--primary-140);     /* brand-coloured text and links on light backgrounds */
  --brand-tint: var(--primary-10);      /* pills, icon backgrounds, focus glow */
  --brand-bright: var(--primary-100);   /* brand on dark backgrounds */
  --on-brand: var(--text-dark);         /* text sitting on a brand fill */
  --accent: var(--secondary-100);       /* highlights: badges, ratings */
  --accent-strong: var(--secondary-120);
  /* not in the Figma set: text on dark bands */
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .76);
  --on-dark-faint: rgba(255, 255, 255, .55);

  /* type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* shape + depth */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(49, 64, 65, .06), 0 2px 8px rgba(49, 64, 65, .05);
  --shadow: 0 12px 34px rgba(49, 64, 65, .10);
  --shadow-lg: 0 30px 70px rgba(49, 64, 65, .16);

  /* layout */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: clamp(64px, 9vw, 120px);

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 720; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; }
p { margin: 0 0 1em; }
blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark :focus-visible, .site-footer :focus-visible, .final-cta-box :focus-visible, .press-card--lead :focus-visible, .modal--wide :focus-visible { outline-color: var(--brand-bright); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--split h2 { max-width: 640px; margin: 0; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.eyebrow--pill { background: var(--brand-tint); color: var(--ink); padding: 6px 14px; border-radius: 999px; }

/* ---------- buttons + links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2; border: 1.5px solid transparent; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; font-size: .94rem; }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px var(--primary-40); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary-100) 80%, #fff); box-shadow: 0 10px 24px var(--primary-40); }
.btn--primary:active { background: var(--brand-strong); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-bright); }
.btn--outline-light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--brand-text); white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after, a:hover > .link-arrow::after { transform: translateX(5px); }
.section--dark .link-arrow { color: var(--brand-bright); }

.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s, opacity .2s; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled, .site-header.has-open { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(49, 64, 65, .06); }
.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 30px; width: auto; }
.site-header .logo img { height: 22px; }   /* header logo: 22px tall, about 115px wide */

.nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: .97rem; font-weight: 560; color: var(--ink); transition: background-color .2s, color .2s; }
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--bg-soft); color: var(--brand-text); }
.chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-mobile-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color .2s; }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.header-login { font-weight: 560; font-size: .97rem; color: var(--ink); }
.header-login:hover { color: var(--brand-text); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- mega menu ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px rgba(49, 64, 65, .12); padding: 36px 0 44px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s; }
.nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-grid { display: grid; gap: 48px; }
.mega-grid--3 { grid-template-columns: 1fr 1fr minmax(240px, 320px); }
.mega-grid--product { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 260px; gap: 40px; }
.mega-links--split { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 24px; align-content: start; }
.mega-more { margin-top: 14px; font-size: .94rem; }
.mega-card small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.mega-grid--1 { grid-template-columns: 1fr; }
.mega-title { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega-links a { display: flex; align-items: flex-start; gap: 14px; padding: 10px 12px; margin-inline: -12px; border-radius: var(--radius-sm); transition: background-color .18s; }
.mega-links a:hover { background: var(--bg-soft); }
.mega-links b { display: block; color: var(--ink); font-weight: 650; font-size: .98rem; }
.mega-links small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.mega-links a:hover b { color: var(--brand-text); }
.mi { flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); position: relative; }
.mi::after { content: ""; position: absolute; inset: 12px; border-radius: 4px; background: var(--brand); }
.mega-links--plain a { font-weight: 560; color: var(--ink); font-size: .97rem; }
.mega-links--plain a:hover { color: var(--brand-text); }
.mega-links--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.mega-links--row { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.mega-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); transition: box-shadow .25s, transform .25s var(--ease); }
.mega-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mega-card b { color: var(--ink); line-height: 1.3; }
.mega-card-art { display: block; aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%); position: relative; }
.mega-card-art--play::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }

/* ---------- search bar ---------- */
.site-search { border-top: 1px solid var(--line); background: #fff; padding: 16px 0; }
.site-search[hidden] { display: none; }
.site-search-form { display: flex; gap: 12px; }
.site-search-form input { flex: 1; font: inherit; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink); min-width: 0; }
.site-search-form input:focus { outline: none; border-color: var(--brand-text); background: #fff; }

/* ==========================================================
   1. HERO
   ========================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(50% 50% at 50% 30%, var(--primary-20), transparent 70%), radial-gradient(40% 40% at 78% 20%, var(--secondary-10), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 15ch; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.lede { max-width: 620px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 14px; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.badge { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .9rem; }
.badge b { color: var(--ink); }
.badge small { color: var(--muted); font-size: .84rem; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: .82rem; }
.badges--onDark .badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.badges--onDark .badge b { color: #fff; }
.badges--onDark .badge small { color: var(--on-dark-muted); }

.hero-media { width: 100%; max-width: 1040px; margin-top: clamp(40px, 6vw, 72px); }
.tour { position: relative; display: block; width: 100%; border-radius: calc(var(--radius) + 6px); transition: transform .5s var(--ease); }
.tour:hover { transform: translateY(-4px); }
.tour-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px 14px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 650; box-shadow: 0 0 0 0 rgba(49, 64, 65, .35); animation: pulse 2.4s infinite; }
.tour-play svg { width: 22px; height: 22px; }
.tour:hover .tour-play { background: var(--brand); color: var(--on-brand); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(49, 64, 65, .32); } 70% { box-shadow: 0 0 0 22px rgba(49, 64, 65, 0); } 100% { box-shadow: 0 0 0 0 rgba(49, 64, 65, 0); } }
.hero-media-note { margin: 22px 0 0; color: var(--muted); font-size: .97rem; }

/* ---------- placeholder product screenshot ---------- */
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; color: var(--brand); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-lighter); }
.mock-bar span { margin-left: 14px; height: 10px; width: 34%; border-radius: 6px; background: var(--text-lighter); }
.mock-body { display: grid; grid-template-columns: 64px 1fr; min-height: 300px; }
.mock--hero .mock-body { min-height: clamp(240px, 38vw, 460px); }
.mock-side { border-right: 1px solid var(--line); padding: 18px 14px; display: grid; gap: 14px; align-content: start; }
.mock-side b { height: 34px; border-radius: 10px; background: var(--bg-soft); }
.mock-side b:first-child { background: var(--brand-tint); }
.mock-main { padding: 20px; display: grid; gap: 18px; align-content: start; }
.mock-kpis { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.mock-kpis div { height: 64px; border-radius: 12px; background: var(--bg-soft); position: relative; }
.mock-kpis div::before { content: ""; position: absolute; left: 14px; top: 14px; width: 40%; height: 8px; border-radius: 4px; background: var(--text-lighter); }
.mock-kpis div::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 62%; height: 14px; border-radius: 5px; background: currentColor; opacity: .75; }
.mock-chart { display: flex; align-items: flex-end; gap: 4%; height: 170px; padding: 16px; border-radius: 12px; background: var(--bg-soft); }
.mock-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: currentColor; opacity: .85; transform-origin: bottom; }
.mock-chart i:nth-child(even) { opacity: .45; }
.mock-rows { display: grid; gap: 12px; align-content: start; }
.mock-rows span { height: 18px; border-radius: 6px; background: var(--bg-soft); }
.mock-rows span:nth-child(3n + 1) { width: 92%; }
.mock-rows span:nth-child(3n + 2) { width: 76%; }
.mock-rows span:nth-child(3n) { width: 84%; }
.mock-rows--table span { height: 30px; width: 100% !important; background: linear-gradient(90deg, var(--bg-soft) 0 30%, transparent 30% 33%, var(--bg-soft) 33% 60%, transparent 60% 63%, var(--bg-soft) 63% 100%); }
.mock-rows--table span:first-child { background: var(--brand-tint); }
.mock-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.mock-line { width: 100%; height: 170px; padding: 14px; border-radius: 12px; background: var(--bg-soft); }
.mock-donut { width: 150px; aspect-ratio: 1; margin: 6px auto; border-radius: 50%; background: conic-gradient(var(--primary-140) 0 46%, var(--primary-100) 46% 72%, var(--secondary-100) 72% 88%, var(--text-lighter) 88% 100%); -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%); }

/* ==========================================================
   2. LOGO MARQUEE
   ========================================================== */
.logos { padding: 8px 0 clamp(48px, 7vw, 88px); }
.logos-title { text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.logos-title b { color: var(--ink); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.marquee-track { display: flex; width: max-content; gap: 16px; padding-right: 16px; }
.marquee.is-ready .marquee-track { animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee--reverse.is-ready .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: 0 0 auto; width: 168px; height: 64px; display: grid; place-items: center; border-radius: 14px; border: 1px dashed var(--text-lighter); color: var(--text-light); font-weight: 650; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   3. PLATFORM STATEMENT
   ========================================================== */
.statement { padding-top: clamp(40px, 6vw, 72px); }
.statement-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.statement h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0; }
.statement p { font-size: 1.14rem; color: var(--muted); }

/* ==========================================================
   4. PRODUCT TABS
   ========================================================== */
.tabs-list { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); width: max-content; max-width: 100%; margin: 0 auto clamp(28px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; }
.tabs-list::-webkit-scrollbar { display: none; }
.tab { position: relative; overflow: hidden; flex: 0 0 auto; padding: 11px 22px; border-radius: 999px; font-weight: 620; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .25s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
/* autoplay progress bar inside the active tab */
.tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand-bright); }
.tabs.is-autoplaying .tab[aria-selected="true"]::after { animation: tab-progress var(--autoplay, 7s) linear forwards; }
.tabs.is-paused .tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes tab-progress { to { width: 100%; } }

.tab-panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(24px, 4vw, 56px); }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active .tab-copy { animation: panel-in .5s var(--ease) both; }
.tab-panel.is-active .mock { animation: panel-in .6s .08s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tab-copy p { color: var(--muted); font-size: 1.06rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--brand-tint); color: var(--ink); font-size: .88rem; font-weight: 600; }
.tab-panel .mock { box-shadow: var(--shadow); }

/* ==========================================================
   5. CALLOUT
   ========================================================== */
.callout { max-width: 720px; margin-inline: auto; text-align: center; padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) + 8px); background: linear-gradient(140deg, var(--brand-tint), #fff 60%); border: 1px solid var(--line); }
.callout h2 { margin-top: 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.callout p { color: var(--muted); }

/* ==========================================================
   6. TESTIMONIAL CAROUSEL
   ========================================================== */
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 28px; margin: -6px -2px 0; }
.carousel::-webkit-scrollbar { display: none; }
.story-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 24px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, transform .3s var(--ease); }
.story-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.story-card blockquote { flex: 1; font-size: 1.14rem; line-height: 1.5; color: var(--ink); font-weight: 520; }
.story-meta { display: flex; align-items: center; gap: 12px; }
.story-meta b { display: block; color: var(--ink); font-size: .97rem; }
.story-meta small { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-100), var(--primary-140)); flex-shrink: 0; }
.logo-chip { margin-left: auto; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--text-lighter); color: var(--text-light); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.story-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* ==========================================================
   7. TRUST + INTEGRATIONS   8. CHAT DEMO
   ========================================================== */
.trust { position: relative; overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, var(--primary-20), transparent 70%); pointer-events: none; }
.trust .container { position: relative; }
.integrations { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 30px; }
.integrations li { height: 84px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark-faint); font-size: .86rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; transition: background-color .25s, transform .25s var(--ease), color .25s; }
.integrations li:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); color: #fff; }

.chat { max-width: 760px; margin: clamp(48px, 7vw, 88px) auto 0; border-radius: calc(var(--radius) + 4px); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; font-weight: 650; font-size: .95rem; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px var(--primary-20); }
.chat-body { padding: 24px 22px 28px; display: grid; gap: 16px; }
.msg { max-width: 88%; }
.msg p { margin: 0; }
.msg--user { justify-self: end; background: var(--brand); color: var(--on-brand); padding: 12px 18px; border-radius: 18px 18px 4px 18px; }
.msg--bot { background: #fff; color: var(--text); padding: 20px; border-radius: 18px 18px 18px 4px; width: 100%; }
.msg--typing { display: none; gap: 6px; padding: 14px 18px; background: rgba(255, 255, 255, .08); border-radius: 18px; width: max-content; }
.msg--typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark-faint); animation: blink 1.1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.msg-title { font-weight: 700; color: var(--ink); margin-bottom: 14px !important; }
.chat-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.chat-kpis div { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.chat-kpis small { display: block; color: var(--muted); font-size: .8rem; }
.chat-kpis b { color: var(--ink); font-size: 1.15rem; }
.chat-bars { display: grid; gap: 10px; margin-bottom: 16px; }
.chat-bars div { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); }
.chat-bars i { height: 10px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--primary-140), var(--primary-100)); transform-origin: left; }
.msg-note { font-size: .94rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }

/* scripted sequence: states are set by js/main.js */
.js .chat .msg--user, .js .chat .msg--bot { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .chat .chat-bars i { transform: scaleX(0); transition: transform .9s .25s var(--ease); }
.js .chat.step-1 .msg--user, .js .chat.step-3 .msg--bot { opacity: 1; transform: none; }
.js .chat.step-2 .msg--typing { display: flex; }
.js .chat .msg--bot { display: none; }
.js .chat.step-3 .msg--bot, .js .chat.step-3-pre .msg--bot { display: block; }
.js .chat.step-3 .chat-bars i { transform: none; }

/* ==========================================================
   9. PRESS
   ========================================================== */
.press-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.press-card { margin: 0; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.press-card blockquote { font-size: 1.2rem; line-height: 1.4; color: var(--ink); font-weight: 560; }
.press-card figcaption { color: var(--muted); font-size: .92rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.press-card--lead { grid-row: span 2; background: var(--ink); border-color: var(--ink); min-height: 340px; }
.press-card--lead blockquote { color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.22; letter-spacing: -.02em; font-weight: 680; }
.press-card--lead figcaption { color: var(--brand-bright); }
.press-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-text); font-weight: 700; }

/* ==========================================================
   10. PILLARS
   ========================================================== */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.pillar { border-bottom: 1px solid var(--line); }
.pillar:first-child { border-top: 1px solid var(--line); }
.pillar-head { width: 100%; display: flex; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 680; letter-spacing: -.02em; color: var(--text-light); transition: color .25s; }
.pillar-head:hover, .pillar.is-open .pillar-head { color: var(--ink); }
.pillar-head::after { content: ""; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); flex-shrink: 0; margin-right: 6px; }
.pillar.is-open .pillar-head::after { transform: rotate(-135deg); }
.num { font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-text); width: 30px; flex-shrink: 0; }
.pillar-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.pillar-body > div { overflow: hidden; }
.pillar.is-open .pillar-body { grid-template-rows: 1fr; }
.pillar-body p { padding: 0 24px 24px 50px; color: var(--muted); margin: 0; }
.pillar-visual { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 5 / 4; border-radius: calc(var(--radius) + 8px); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); overflow: hidden; }
.pillar-art { grid-area: 1 / 1; width: 78%; opacity: 0; transform: scale(.94); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pillar-art.is-active { opacity: 1; transform: none; }

/* ==========================================================
   11. INDUSTRIES + CASE STUDY
   ========================================================== */
.industries-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.case-card { border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.case-art { height: 180px; background: radial-gradient(circle at 20% 30%, var(--primary-100), transparent 46%), radial-gradient(circle at 80% 70%, var(--secondary-80), transparent 42%), var(--primary-140); }
.case-copy { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; transition: opacity .25s; }
.case-card.is-swapping .case-copy { opacity: 0; }
.case-copy blockquote { font-size: 1.3rem; line-height: 1.38; color: var(--ink); font-weight: 580; letter-spacing: -.01em; }
.case-who { margin: 0; }
.case-who b { display: block; color: var(--ink); }
.case-who small { color: var(--muted); font-size: .92rem; }

/* ==========================================================
   12. FINAL CTA
   ========================================================== */
.final-cta { padding-top: 0; }
.final-cta-box { text-align: center; padding: clamp(48px, 8vw, 104px) 24px; border-radius: clamp(20px, 3vw, 36px); background: radial-gradient(70% 90% at 50% 0%, var(--primary-20), transparent 70%), var(--ink); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final-cta-box h2 { color: #fff; max-width: 18ch; margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .96rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-about p { margin: 18px 0 22px; max-width: 34ch; }
.footer-contact { display: grid; gap: 6px; margin: -8px 0 24px; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--brand-bright); }
.footer-contact address { font-style: normal; }
.footer-col p { color: #fff; font-weight: 680; margin-bottom: 14px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a:hover, .social a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: .88rem; }
/* large desktop: wide description, link columns grouped on the right */
@media (min-width: 1200px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) 200px 200px; }
  .footer-about p { max-width: 640px; }
}
/* small and medium screens: description full width, link columns side by side underneath */
@media (max-width: 1199px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: none; }
}
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); font-weight: 700; font-size: .85rem; transition: background-color .2s, color .2s; }
.social a:hover { background: rgba(255, 255, 255, .1); }
.social svg { width: 16px; height: 16px; display: block; }

/* ==========================================================
   MODALS
   ========================================================== */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 40px); border: 0; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); color: var(--text); overflow: auto; }
.modal--wide { width: min(980px, calc(100vw - 32px)); padding: 16px; background: var(--ink); }
.modal::backdrop { background: rgba(49, 64, 65, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: 1.7rem; }
.modal-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--muted); z-index: 1; }
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal--wide .modal-close { color: #fff; background: rgba(255, 255, 255, .12); }
.video-slot { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); border: 1.5px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; text-align: center; color: var(--on-dark-muted); padding: 24px; }
.video-slot p { margin: 0; }
.form { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 650; color: var(--ink); }
.field input, .field select { font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-tint); }
.field input.is-invalid { border-color: #c8372d; }
.form-error { margin: 0; color: #b42b22; font-size: .92rem; }
.modal-success { text-align: center; display: grid; gap: 12px; justify-items: center; }
.modal-success[hidden], .modal-form-state[hidden] { display: none; }
.success-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .header-bar { gap: 16px; }
  .burger { display: block; }
  .header-login { display: none; }

  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 32px; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .nav-open .nav { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 2px; border-radius: 0; font-size: 1.1rem; font-weight: 650; }
  .nav-link:hover, .nav-item.is-open > .nav-link { background: none; }
  .chev { width: 16px; height: 16px; }

  .mega { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 20px; transition: none; }
  .nav-item.is-open > .mega { display: block; }
  .mega .container { padding-inline: 0; }
  .mega-grid, .mega-grid--3, .mega-grid--product { grid-template-columns: 1fr; gap: 24px; }
  .mega-links--split { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .mega-links a { margin-inline: 0; }
  .mega-card-art { display: none; }

  .nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 28px; }
}

@media (max-width: 900px) {
  .statement-inner, .tab-panel, .pillars, .industries-grid { grid-template-columns: 1fr; }
  .tabs-list { margin-inline: 0; width: auto; }
  .story-card { flex-basis: calc((100% - 24px) / 2); }
  .integrations { grid-template-columns: repeat(3, 1fr); }
  .press-grid { grid-template-columns: 1fr; }
  .press-card--lead { grid-row: auto; min-height: 0; }
  .pillar-visual { position: static; order: -1; aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .header-cta { display: none; }
  .logo img { height: 26px; }
  .site-header .logo img { height: 19px; }
  .header-actions { gap: 4px; }
  .cta-row .btn { width: 100%; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .story-card { flex-basis: 86%; padding: 24px; }
  .carousel { gap: 16px; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .integrations li { height: 68px; }
  .integrations li:nth-child(n + 13) { display: none; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .mock-split { grid-template-columns: 1fr; }
  .tour-play { padding: 12px 20px 12px 14px; font-size: .95rem; }
  .chat-kpis { grid-template-columns: 1fr; }
  .chat-bars div { grid-template-columns: 78px 1fr; }
  .msg { max-width: 100%; }
  .pillar-body p { padding-left: 0; }
  .site-search-form .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee.is-ready .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
