/* ==========================================================================
   OPERIX — Intelligent HSSE Management Platform
   Design system : tokens · base · layout · composants · sections · pages
   ========================================================================== */

:root {
  --green: #078f65;
  --green-dark: #056b4c;
  --green-soft: #e5f4ee;
  --navy: #111d30;
  --navy-2: #18263d;
  --navy-3: #22324c;
  --blue: #2860e8;
  --blue-soft: #eaf0fd;
  --red: #d3303d;
  --red-soft: #fcebec;
  --orange: #d9730d;
  --orange-soft: #fdf1e3;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #111d30;
  --text: #3d4a5c;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e4e8ef;
  --line-dark: rgba(255,255,255,.1);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17,29,48,.06), 0 1px 3px rgba(17,29,48,.05);
  --shadow: 0 10px 30px -12px rgba(17,29,48,.18), 0 2px 6px rgba(17,29,48,.05);
  --shadow-lg: 0 40px 80px -30px rgba(17,29,48,.35), 0 12px 24px -12px rgba(17,29,48,.15);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- 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; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); letter-spacing: -.04em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #b6c0d0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }

/* ---------- Typo helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--green); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: ''; }
.section--dark .eyebrow { color: #4fd1a5; }
.eyebrow--blue { color: var(--blue); }
.lead { max-width: 640px; color: var(--muted); font-size: clamp(1.03rem, 1.4vw, 1.15rem); line-height: 1.7; }
.section--dark .lead { color: #9fabbe; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 64px); }
.section-head h2 + .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }
.text-green { color: var(--green); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-size: .95rem; font-weight: 600; letter-spacing: -.005em; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.button svg { width: 17px; height: 17px; flex: none; transition: transform .2s; }
.button:hover svg { transform: translateX(3px); }
.button--primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(5,107,76,.3), inset 0 1px 0 rgba(255,255,255,.12); }
.button--primary:hover { background: var(--green-dark); }
.button--dark { background: var(--navy); color: #fff; }
.button--dark:hover { background: var(--navy-3); }
.button--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.button--ghost:hover { border-color: #c9d0db; background: var(--bg-soft); }
.button--ghost-dark { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: #fff; }
.button--ghost-dark:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.button--sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; font-size: .95rem; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-shell { display: flex; height: var(--header-h); align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.12rem; font-weight: 800; letter-spacing: .06em; }
.brand-logo { width: auto; height: 30px; }
.brand-name { line-height: 1; }
.brand-name small { display: block; margin-top: 3px; color: var(--muted); font-size: .58rem; font-weight: 600; letter-spacing: .14em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lang-switch button { min-width: 36px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 700; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-panel { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 112px); background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; content: ''; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(40px, 6vw, 80px); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); color: var(--text); font-size: .82rem; font-weight: 500; }
.hero-badge b { padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.hero h1 { max-width: 640px; }
.hero h1 .text-green { display: inline; }
.hero .lead { margin-top: 24px; max-width: 580px; }
.hero .button-row { margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 17px; height: 17px; color: var(--green); }
.hero-visual { position: relative; display: flex; min-height: 600px; align-items: center; justify-content: center; }
.hero-visual .phone { z-index: 2; }
.float-card { position: absolute; z-index: 3; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-lg); }
.float-card--insights { left: -8px; bottom: 54px; width: 238px; }
.float-card--ai { right: -6px; top: 70px; width: 228px; }
.float-card small { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.float-card strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }

/* ---------- Phone mockup ---------- */
.phone { position: relative; width: 292px; flex: none; padding: 11px; border-radius: 46px; background: linear-gradient(145deg, #2b3445, #0b1220); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone::before { position: absolute; top: 120px; right: -3px; width: 3px; height: 62px; border-radius: 0 3px 3px 0; background: #1b2332; content: ''; }
.phone-screen { position: relative; overflow: hidden; height: 594px; border-radius: 36px; background: #f7f8fc; color: #1a2333; font-size: 11px; line-height: 1.4; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-notch { position: absolute; top: 9px; left: 50%; z-index: 5; width: 92px; height: 26px; border-radius: 20px; background: #0b1220; transform: translateX(-50%); }
.phone--sm { width: 252px; padding: 10px; border-radius: 40px; }
.phone--sm .phone-screen { height: 512px; border-radius: 31px; font-size: 10px; }
.phone--sm .phone-notch { width: 80px; height: 22px; }

/* In-app UI (fidèle aux tokens de l'application mobile) */
.ui { display: flex; height: 100%; flex-direction: column; padding: 44px 14px 0; }
.ui-status { position: absolute; top: 14px; left: 26px; right: 26px; display: flex; justify-content: space-between; color: #1a2333; font-size: 10px; font-weight: 600; }
.ui-top { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 12px; }
.ui-top b { display: block; color: #0f1b2d; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.ui-top span { color: #667085; font-size: 9.5px; }
.ui-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #0f1b2d; color: #fff; font-size: 10px; font-weight: 700; }
.ui-card { margin-bottom: 9px; padding: 11px 12px; border: 1px solid #e6e9f0; border-radius: 13px; background: #fff; }
.ui-card--navy { border: 0; background: #0f1b2d; color: #c9d2e0; }
.ui-label { color: #98a2b3; font-size: 8.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.ui-card--navy .ui-label { color: #8592a8; }
.ui-status-pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: #fff; font-size: 12.5px; font-weight: 700; }
.ui-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #0b8a5e; box-shadow: 0 0 0 3px rgba(11,138,94,.25); }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 9px; }
.ui-kpi { padding: 10px 11px; border: 1px solid #e6e9f0; border-radius: 12px; background: #fff; }
.ui-kpi b { display: block; margin-top: 3px; color: #0f1b2d; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.ui-kpi i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; font-style: normal; }
.ui-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 9px; padding: 11px; border-radius: 12px; background: #0b8a5e; color: #fff; font-size: 11px; font-weight: 600; }
.ui-btn svg { width: 13px; height: 13px; }
.ui-btn--ghost { border: 1px solid #e6e9f0; background: #fff; color: #1a2333; }
.ui-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid #eef0f5; }
.ui-row:first-of-type { border-top: 0; }
.ui-ico { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border-radius: 8px; }
.ui-ico svg { width: 13px; height: 13px; }
.ui-row b { display: block; color: #1a2333; font-size: 10.5px; font-weight: 600; }
.ui-row span { color: #98a2b3; font-size: 9px; }
.ui-badge { margin-left: auto; padding: 2px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.tone-green { background: #e6f4ee; color: #0b8a5e; }
.tone-red { background: #fcebec; color: #d3303d; }
.tone-orange { background: #fdf1e3; color: #d9730d; }
.tone-blue { background: #ebf1fd; color: #2459d6; }
.tone-navy { background: #eef0f5; color: #0f1b2d; }
.ui-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); margin: auto -14px 0; padding: 9px 10px 20px; border-top: 1px solid #e6e9f0; background: #fff; }
.ui-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #98a2b3; font-size: 8px; font-weight: 600; }
.ui-tabbar span.on { color: #0b8a5e; }
.ui-tabbar svg { width: 15px; height: 15px; }
.ui-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 12px; }
.ui-steps span { padding-top: 6px; border-top: 3px solid #e6e9f0; color: #98a2b3; font-size: 8.5px; font-weight: 600; }
.ui-steps span.on { border-color: #0b8a5e; color: #0b8a5e; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; }
.ui-chip { padding: 5px 10px; border: 1px solid #e6e9f0; border-radius: 999px; background: #fff; color: #667085; font-size: 9.5px; font-weight: 600; }
.ui-chip.on { border-color: #0f1b2d; background: #0f1b2d; color: #fff; }
.ui-field { position: relative; margin-bottom: 9px; padding: 10px 11px; border: 1px solid #e6e9f0; border-radius: 11px; background: #fff; color: #667085; font-size: 10px; }
.ui-field b { display: block; margin-bottom: 3px; color: #1a2333; font-size: 9px; font-weight: 600; }
.ui-field--area { min-height: 82px; }
.ui-mic { position: absolute; right: 9px; bottom: 9px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #0b8a5e; color: #fff; }
.ui-mic svg { width: 12px; height: 12px; }
.ui-gps { display: flex; align-items: center; gap: 6px; color: #0b8a5e; font-weight: 600; }
.ui-gps svg { width: 12px; height: 12px; }
.ui-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 9px; }
.ui-photos span { display: grid; aspect-ratio: 1; place-items: center; border: 1px dashed #c9d0db; border-radius: 10px; background: #fff; color: #98a2b3; }
.ui-photos span svg { width: 16px; height: 16px; }
.ui-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ui-ai-head .ui-ico { width: 30px; height: 30px; background: #ebf1fd; color: #2459d6; }
.ui-ai-head b { display: block; color: #0f1b2d; font-size: 12px; }
.ui-ai-head span { color: #667085; font-size: 9px; }
.ui-bar { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 5px; background: #eef0f5; }
.ui-bar i { display: block; height: 100%; border-radius: inherit; background: #2459d6; }
.ui-list { margin: 5px 0 0; padding: 0; list-style: none; }
.ui-list li { position: relative; padding: 3px 0 3px 12px; color: #3d4a5c; font-size: 9.8px; }
.ui-list li::before { position: absolute; top: 9px; left: 2px; width: 4px; height: 4px; border-radius: 50%; background: #98a2b3; content: ''; }
.ui-engine { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #667085; font-size: 8.5px; }
.ui-login { display: flex; height: 100%; flex-direction: column; padding: 70px 22px 26px; background: #0f1b2d; color: #c9d2e0; }
.ui-login .ui-field { border-color: #22324c; background: #18263d; color: #8592a8; }
.ui-login .ui-field b { color: #c9d2e0; }
.ui-login-logo { width: 54px; margin: 0 auto 16px; color: #fff; }
.ui-login h4 { color: #fff; font-size: 16px; text-align: center; }
.ui-login p { margin: 4px 0 24px; color: #8592a8; font-size: 10px; text-align: center; }
.ui-pin { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.ui-pin i { width: 10px; height: 10px; border-radius: 50%; background: #4fd1a5; }
.ui-pin i.off { background: #22324c; }
.ui-bio { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; color: #8592a8; font-size: 9.5px; }
.ui-bio span { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid #22324c; border-radius: 16px; color: #4fd1a5; }
.ui-bio svg { width: 24px; height: 24px; }

/* ---------- Generic cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s; }
.card:hover { border-color: #d3d9e3; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; }
.icon-box { display: grid; width: 44px; height: 44px; margin-bottom: 22px; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.icon-box svg { width: 22px; height: 22px; }
.icon-box--blue { background: var(--blue-soft); color: var(--blue); }
.icon-box--red { background: var(--red-soft); color: var(--red); }
.icon-box--orange { background: var(--orange-soft); color: var(--orange); }
.icon-box--navy { background: #e9edf4; color: var(--navy); }
.section--dark .card { border-color: var(--line-dark); background: var(--navy-2); }
.section--dark .card:hover { border-color: rgba(255,255,255,.2); box-shadow: none; }
.section--dark .card p { color: #9fabbe; }
.section--dark .icon-box { background: rgba(79,209,165,.12); color: #4fd1a5; }
.section--dark .icon-box--blue { background: rgba(102,145,255,.14); color: #8eaeff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: .74rem; font-weight: 600; letter-spacing: .01em; }
.tag--blue { background: var(--blue-soft); color: var(--blue); }
.tag--navy { background: #e9edf4; color: var(--navy); }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.problem-grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.problem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.problem-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.problem-item svg { width: 22px; height: 22px; margin-bottom: 16px; color: var(--red); }
.problem-item h3 { margin-bottom: 6px; font-size: 1rem; }
.problem-item p { color: var(--muted); font-size: .9rem; }
.problem-answer { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-radius: var(--radius); background: var(--navy); color: #c9d2e0; }
.problem-answer svg { width: 28px; height: 28px; flex: none; color: #4fd1a5; }
.problem-answer p { font-size: 1rem; }
.problem-answer strong { color: #fff; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .25s, box-shadow .25s; }
.pillar:hover { border-color: #d3d9e3; box-shadow: var(--shadow); }
.pillar-body { padding: 26px 26px 22px; }
.pillar-num { display: block; margin-bottom: 14px; color: var(--faint); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: .93rem; }
.pillar-visual { position: relative; display: flex; min-height: 184px; margin-top: auto; align-items: flex-end; justify-content: center; overflow: hidden; padding: 22px 22px 0; border-top: 1px solid var(--line); background: var(--bg-soft); }
.mini { width: 100%; max-width: 280px; padding: 13px 14px; border: 1px solid #e6e9f0; border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; box-shadow: var(--shadow-sm); font-size: 11px; line-height: 1.4; }
.mini .ui-row b { font-size: 11px; }

/* ---------- Mobile app section ---------- */
.app-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.app-phones { position: relative; display: flex; min-height: 620px; align-items: center; justify-content: center; }
.app-phones .phone:first-child { z-index: 2; transform: translateX(46px); }
.app-phones .phone:last-child { transform: translate(-46px, 44px) scale(.94); opacity: .97; }
.feature-list { display: grid; gap: 4px; margin: 34px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.feature-list li:first-child { border-top: 0; }
.feature-list .icon-box { width: 40px; height: 40px; margin: 0; border-radius: 11px; }
.feature-list .icon-box svg { width: 19px; height: 19px; }
.feature-list h3 { margin-bottom: 3px; font-size: 1rem; }
.feature-list p { color: var(--muted); font-size: .9rem; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 30px 20px 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; text-align: center; }
.flow-step header { max-width: 300px; }
.flow-step .step-num { display: inline-grid; width: 28px; height: 28px; margin-bottom: 12px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; }
.flow-step h3 { margin-bottom: 6px; }
.flow-step p { color: var(--muted); font-size: .9rem; }
.flow-step .phone { margin-bottom: -150px; }
.demo-note { margin-top: 20px; color: var(--faint); font-size: .78rem; text-align: center; }

/* ---------- AI section ---------- */
.ai-section { position: relative; overflow: hidden; }
.ai-section::before { position: absolute; top: -280px; left: 50%; width: 900px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,96,232,.22), transparent); content: ''; transform: translateX(-50%); pointer-events: none; }
.ai-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.ai-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; margin-top: 40px; }
.ai-points h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .98rem; }
.ai-points h3 svg { width: 18px; height: 18px; flex: none; color: #8eaeff; }
.ai-points p { color: #9fabbe; font-size: .9rem; }
.ai-panel { position: relative; padding: 22px; border: 1px solid var(--line-dark); border-radius: 22px; background: linear-gradient(180deg, var(--navy-2), #131f33); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.ai-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ai-panel-head b { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .95rem; }
.ai-panel-head b svg { width: 18px; height: 18px; color: #8eaeff; }
.ai-panel-head span { color: #8592a8; font-size: .75rem; }
.ai-block { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255,255,255,.025); }
.ai-block small { display: block; margin-bottom: 8px; color: #8592a8; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.ai-block p { color: #c9d2e0; font-size: .9rem; }
.ai-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ai-meta div { padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255,255,255,.025); }
.ai-meta small { display: block; margin-bottom: 6px; color: #8592a8; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ai-meta strong { color: #fff; font-size: .95rem; }
.ai-meta .lvl { color: #ffb36b; }
.ai-actions { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ai-actions li { display: flex; align-items: flex-start; gap: 10px; color: #c9d2e0; font-size: .88rem; }
.ai-actions li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #4fd1a5; }
.ai-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; color: #8592a8; font-size: .76rem; }
.ai-foot span { display: inline-flex; align-items: center; gap: 6px; }
.ai-foot i { width: 7px; height: 7px; border-radius: 50%; background: #4fd1a5; }
.ai-disclaimer { margin-top: 28px; padding: 16px 18px; border-left: 2px solid #8eaeff; color: #9fabbe; font-size: .86rem; }

/* ---------- Analytics ---------- */
.dash { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.dash-bar b { color: var(--ink); font-size: .92rem; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e1e5ec; }
.dash-periods { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--bg-soft); }
.dash-periods span { padding: 4px 10px; border-radius: 7px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.dash-periods span.on { background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); }
.dash-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.dash-tile { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.dash-tile small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dash-tile strong { display: block; margin-top: 6px; color: var(--ink); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dash-tile .delta { display: inline-flex; margin-top: 4px; font-size: .76rem; font-weight: 600; }
.delta--good { color: var(--green); }
.delta--bad { color: var(--red); }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.ring { position: relative; width: 112px; height: 112px; margin: 14px auto 6px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.ring-caption { color: var(--muted); font-size: .76rem; text-align: center; }
.chart { width: 100%; height: auto; margin-top: 12px; }
.chart text { fill: var(--faint); font-family: var(--font); font-size: 10px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: .74rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.zones { display: grid; gap: 11px; margin-top: 14px; }
.zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-size: .82rem; }
.zone span { color: var(--ink); font-weight: 500; }
.zone em { color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }
.zone .ui-bar { grid-column: 1 / -1; height: 6px; margin: 0; }
.analytics-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 40px; margin-top: 48px; }
.analytics-points div { padding-top: 18px; border-top: 1px solid var(--line); }
.analytics-points h3 { margin-bottom: 6px; font-size: .98rem; }
.analytics-points p { color: var(--muted); font-size: .9rem; }

/* ---------- Reference TCN ---------- */
.ref { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.ref-body { padding: clamp(32px, 5vw, 56px); }
.ref-client { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.ref-client img { width: auto; height: 58px; max-width: 150px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; object-fit: contain; }
.ref-client b { display: block; color: var(--ink); font-size: 1rem; }
.ref-client span { color: var(--muted); font-size: .86rem; }
.ref-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.ref-body > p { margin-top: 18px; color: var(--muted); }
.ref-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.ref-list li { display: flex; gap: 12px; color: var(--text); font-size: .94rem; }
.ref-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 1px; background: var(--line); }
.ref-stat { display: flex; min-height: 170px; flex-direction: column; justify-content: flex-end; padding: 26px; background: var(--navy); }
.ref-stat strong { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ref-stat span { margin-top: 10px; color: #9fabbe; font-size: .86rem; line-height: 1.45; }
.ref-source { padding: 14px 26px; background: var(--navy); color: #66738a; font-size: .74rem; grid-column: 1 / -1; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-grid--featured .news-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s; }
.news-card:hover { border-color: #d3d9e3; box-shadow: var(--shadow); transform: translateY(-2px); }
.news-media { position: relative; display: grid; min-height: 230px; place-items: center; padding: 28px; background: radial-gradient(120% 120% at 0% 0%, #1d2d48 0%, var(--navy) 60%); }
.news-media img { width: min(100%, 320px); height: auto; padding: 16px 20px; border-radius: 14px; background: #fff; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.news-media .news-flag { position: absolute; top: 18px; left: 18px; }
.news-flag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid rgba(79,209,165,.4); border-radius: 999px; background: rgba(17,29,48,.6); color: #4fd1a5; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.news-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; color: var(--muted); font-size: .82rem; }
.news-body h3 { margin-bottom: 12px; font-size: clamp(1.12rem, 1.8vw, 1.4rem); line-height: 1.25; }
.news-body h3 a:hover { color: var(--green); }
.news-body p { color: var(--muted); font-size: .94rem; }
.news-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.news-facts li { padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-size: .84rem; }
.news-facts small { display: block; color: var(--faint); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.news-facts b { color: var(--ink); font-weight: 600; }
.news-body .text-link { margin-top: auto; padding-top: 22px; }
.news-empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-item { padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s; }
.why-item:hover { background: var(--bg-soft); }
.why-item svg { width: 22px; height: 22px; margin-bottom: 18px; color: var(--green); }
.why-item h3 { margin-bottom: 8px; font-size: 1rem; }
.why-item p { color: var(--muted); font-size: .9rem; }

/* ---------- Markets ---------- */
.markets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.market { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; }
.market svg { width: 17px; height: 17px; color: var(--green); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px); border-radius: 28px; background: var(--navy); color: #9fabbe; }
.cta::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; content: ''; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%); }
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: end; }
.cta h2 { max-width: 640px; color: #fff; }
.cta p { max-width: 560px; margin-top: 16px; font-size: 1.05rem; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.page-hero::before { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; content: ''; opacity: .5; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 860px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.page-hero .lead { margin-top: 22px; }
.page-hero .button-row { margin-top: 30px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: .84rem; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { color: var(--faint); }

/* ---------- Platform page ---------- */
.module { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; padding-top: 0; }
.module-head .icon-box { margin-bottom: 18px; }
.module-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.module-head p { margin-top: 14px; color: var(--muted); }
.module-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.module-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.module-item h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .98rem; }
.module-item p { color: var(--muted); font-size: .9rem; }
.module-item--wide { grid-column: 1 / -1; }
.layers { display: grid; gap: 10px; counter-reset: layer; }
.layer { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--navy-2); }
.layer::before { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: rgba(79,209,165,.12); color: #4fd1a5; font-weight: 700; content: counter(layer); counter-increment: layer; }
.layer h3 { margin-bottom: 3px; font-size: .98rem; }
.layer p { color: #9fabbe; font-size: .88rem; }
.layer .tag { border: 1px solid rgba(79,209,165,.25); background: transparent; color: #4fd1a5; }
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stack div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stack small { color: var(--faint); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stack b { display: block; margin: 8px 0 6px; color: var(--ink); font-size: 1rem; }
.stack p { color: var(--muted); font-size: .86rem; }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.prose p { margin-bottom: 18px; color: var(--text); font-size: 1.04rem; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 30px 34px; }
.timeline li::before { position: absolute; top: 6px; left: 0; width: 12px; height: 12px; border: 2px solid var(--green); border-radius: 50%; background: #fff; content: ''; }
.timeline li::after { position: absolute; top: 22px; bottom: 0; left: 5px; width: 2px; background: var(--line); content: ''; }
.timeline li:last-child::after { display: none; }
.timeline li.is-future::before { border-color: var(--faint); }
.timeline small { display: block; margin-bottom: 4px; color: var(--green); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.timeline li.is-future small { color: var(--muted); }
.timeline h3 { margin-bottom: 4px; font-size: 1rem; }
.timeline p { color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-aside h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-aside > p { margin-top: 16px; color: var(--muted); }
.contact-steps { display: grid; gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: step; }
.contact-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.contact-steps li::before { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-size: .84rem; font-weight: 700; content: counter(step); counter-increment: step; }
.contact-steps b { display: block; color: var(--ink); font-size: .96rem; }
.contact-steps span { color: var(--muted); font-size: .9rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.form-toggle { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-soft); }
.form-toggle label { position: relative; cursor: pointer; }
.form-toggle input { position: absolute; opacity: 0; }
.form-toggle span { display: block; padding: 10px; border-radius: 9px; color: var(--muted); font-size: .9rem; font-weight: 600; text-align: center; transition: background-color .2s, color .2s; }
.form-toggle input:checked + span { background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); }
.form-toggle input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-field { display: grid; gap: 7px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { color: var(--ink); font-size: .86rem; font-weight: 600; }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d5dbe4; border-radius: 11px; background: #fff; color: var(--ink); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; background-size: 18px; padding-right: 40px; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px rgba(7,143,101,.12); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.form-consent { color: var(--muted); font-size: .8rem; max-width: 380px; }
.form-status { grid-column: 1 / -1; min-height: 0; font-size: .9rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); }
.form-status[data-state="error"] { padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.form-status[data-state="sending"] { color: var(--muted); }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Article ---------- */
.article-hero { position: relative; display: grid; min-height: 320px; place-items: center; padding: 48px 16px; background: radial-gradient(120% 140% at 0% 0%, #1d2d48 0%, var(--navy) 60%); }
.article-hero img { width: min(100%, 420px); padding: 22px 28px; border-radius: 20px; background: #fff; box-shadow: 0 30px 70px -25px rgba(0,0,0,.7); }
.article-hero .news-flag { margin-top: 22px; }
.article-hero-inner { display: flex; flex-direction: column; align-items: center; }
.article { max-width: 760px; margin-inline: auto; }
.article-lede { color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 500; line-height: 1.55; letter-spacing: -.01em; }
.article-body p { margin-top: 20px; color: var(--text); font-size: 1.06rem; line-height: 1.8; }
.article-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 36px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.article-facts div { padding: 18px 20px; background: #fff; }
.article-facts small { display: block; margin-bottom: 4px; color: var(--faint); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.article-facts b { color: var(--ink); font-size: .96rem; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a, .share-links button { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
.share-links a:hover, .share-links button:hover { border-color: #c9d0db; background: var(--bg-soft); }
.share-links svg { width: 16px; height: 16px; }

/* ---------- 404 ---------- */
.not-found { display: grid; min-height: 62vh; place-items: center; text-align: center; }
.not-found strong { display: block; color: var(--green); font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.not-found h1 { margin: 16px 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.not-found .button-row { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; background: var(--navy); color: #8592a8; font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-logo { filter: brightness(0) invert(1); }
.footer-brand .brand-name small { color: #8592a8; }
.footer-brand p { max-width: 320px; margin-top: 18px; line-height: 1.6; }
.footer-col h3 { margin-bottom: 16px; color: #fff; font-size: .86rem; font-weight: 600; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .82rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .desktop-nav .nav-link { padding: 8px 9px; font-size: .88rem; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .desktop-nav, .nav-actions .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel { display: grid; max-height: 0; overflow: hidden; gap: 2px; padding: 0 16px; border-top: 1px solid transparent; background: #fff; transition: max-height .3s ease, padding .3s ease, border-color .3s; }
  .mobile-panel.is-open { max-height: 640px; padding: 12px 16px 20px; border-top-color: var(--line); }
  .mobile-panel .nav-link { padding: 12px; font-size: 1rem; }
  .mobile-panel .button { margin-top: 10px; }
  .hero-grid, .ai-grid, .app-showcase, .problem-grid, .split, .contact-grid, .module { grid-template-columns: 1fr; }
  .problem-grid .section-head { position: static; }
  .hero-visual { min-height: 0; padding: 20px 0 10px; }
  .float-card--insights { left: 0; }
  .float-card--ai { right: 0; }
  .pillars, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid--featured .news-card:first-child { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .ref { grid-template-columns: 1fr; }
  .analytics-points { grid-template-columns: 1fr 1fr; }
  .span-3 { grid-column: span 6; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .article-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .nav-actions .lang-switch { display: none; }
  .brand-name small { display: none; }
  .hero-proof { gap: 10px 18px; }
  .hero-visual .phone { width: 260px; }
  .hero-visual .phone-screen { height: 530px; }
  .float-card { position: relative; inset: auto; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-visual { flex-direction: column; gap: 14px; }
  .hero-visual .float-card--ai { order: -1; }
  .problem-list, .pillars, .news-grid, .grid-2, .grid-3, .grid-4, .ai-points, .analytics-points, .module-items, .stack { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .app-phones { min-height: 0; }
  .app-phones .phone:last-child { display: none; }
  .app-phones .phone:first-child { transform: none; }
  .ai-meta { gap: 8px; }
  .ai-meta div { padding: 12px; }
  .span-3 { grid-column: span 6; }
  .dash-tile strong { font-size: 1.4rem; }
  .dash-body { padding: 12px; gap: 10px; }
  .dash-bar { flex-wrap: wrap; }
  .ref-stats { grid-template-columns: 1fr 1fr; }
  .ref-stat { min-height: 130px; padding: 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .form-toggle { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .layer { grid-template-columns: 40px 1fr; }
  .layer .tag { grid-column: 2; justify-self: start; }
  .button-row .button { flex: 1 1 auto; }
  .article-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Ajustements ---------- */
.ui-field svg { width: 12px; height: 12px; flex: none; }
.flow-step .phone { text-align: left; }
.ref-stats { grid-template-rows: 1fr 1fr auto; align-content: stretch; background: var(--navy-3); }
@media (min-width: 641px) {
  .float-card--ai { top: 36px; right: -28px; }
  .float-card--insights { left: -28px; bottom: 40px; }
}
@media (min-width: 641px) and (max-width: 1240px) { .float-card--ai { right: 0; } .float-card--insights { left: 0; } }
