/* =================================================================
   JSure — main stylesheet
   Brand: JForce colours, JSure identity. Modern, animated, bilingual.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
    --blue: #0061A0;
    --blue-700: #004C82;
    --blue-400: #2E86C7;
    --cyan: #3ABCDB;
    --navy: #001A40;
    --navy-900: #00112E;
    --ink: #0A1730;

    --paper: #F5F7FA;
    --paper-2: #ECF0F5;
    --white: #FFFFFF;
    --mist: #CFD4DB;

    --text: #0E1B30;
    --muted: #56678A;
    --muted-light: rgba(255, 255, 255, .72);
    --line: rgba(12, 32, 64, .12);
    --line-light: rgba(255, 255, 255, .14);

    --accent: var(--blue);
    --accent-dark: var(--blue-700);

    --container: 1200px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-sm: 12px;

    --shadow-sm: 0 1px 2px rgba(8, 22, 48, .06), 0 6px 16px rgba(8, 22, 48, .06);
    --shadow-md: 0 10px 30px rgba(8, 22, 48, .10);
    --shadow-lg: 0 30px 70px rgba(8, 22, 48, .18);

    --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -.02em; }

/* When JS is on, hide reveal elements until animated in */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* staggered children (e.g. integration chips) */
html.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }

/* hero headline word-by-word slide */
html.js .hero-title .word { overflow: hidden; padding: .14em .04em .22em; margin: -.14em -.04em -.22em; }
html.js .hero-title .word > span { display: inline-block; transform: translateY(132%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--wi, 0) * 80ms + .08s); }
html.js .hero-title.is-in .word > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal], html.js [data-reveal-stagger] > *, html.js .hero-title .word > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.section--alt { background: var(--paper); border-block: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-title { font-size: clamp(28px, 4vw, 48px); color: var(--ink); }
.section-title--sm { font-size: clamp(22px, 2.6vw, 30px); }
.section-lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 60ch; }

.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: 13px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 16px;
}
.kicker svg { width: 18px; height: 18px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14px; letter-spacing: .02em;
    color: var(--muted-light); margin-bottom: 22px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(58, 188, 219, .22); }
.eyebrow--accent { color: color-mix(in srgb, var(--accent) 86%, white); }
.eyebrow--accent .eyebrow-dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }

/* ---------- Buttons ---------- */
.btn {
    --bh: 50px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--bh); padding: 0 24px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { --bh: 58px; padding: 0 30px; font-size: 16px; }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: linear-gradient(120deg, var(--blue), var(--blue-700)); color: #fff; box-shadow: 0 8px 22px rgba(0, 97, 160, .32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 97, 160, .42); }
.pillar .btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 36%, transparent); }

.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid var(--line-light); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }

.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center;
    transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 26px; width: auto; }
.brand-logo path { fill: #fff; transition: fill .35s; }

.site-header.is-stuck { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.site-header.is-stuck .brand-logo path { fill: var(--blue); }
.site-header.is-stuck .nav-link { color: var(--text); }
.site-header.is-stuck .lang-switch { color: var(--text); border-color: var(--line); }

.primary-nav { margin-left: 8px; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 15px;
    color: rgba(255, 255, 255, .9); transition: color .25s, background .25s;
}
.nav-link:hover { background: rgba(255, 255, 255, .1); }
.site-header.is-stuck .nav-link:hover { background: var(--paper-2); }
.nav-chevron { width: 16px; height: 16px; transition: transform .3s; }
.fun-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); display: inline-block; margin-left: 2px; animation: funPulse 2.2s ease-in-out infinite; }
@keyframes funPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(58, 188, 219, .5); } 50% { box-shadow: 0 0 0 5px rgba(58, 188, 219, 0); } }
.mobile-link--fun { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .fun-dot { animation: none; } }
.has-mega[aria-open="true"] .nav-chevron { transform: rotate(45deg); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 7px;
    height: 42px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-light); color: #fff; font-weight: 600; font-size: 14px;
    transition: background .25s, border-color .25s, color .25s;
}
.lang-switch:hover { background: rgba(255, 255, 255, .12); }
.site-header.is-stuck .lang-switch:hover { background: var(--paper-2); }
.lang-ico { width: 17px; height: 17px; opacity: .85; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; color: #fff; }
.site-header.is-stuck .menu-toggle { color: var(--text); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-close-ico { display: none; }

/* ---------- Mega menu ---------- */
.has-mega { position: static; }
.mega {
    position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 6px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    padding: 0 0 16px;
}
.has-mega[aria-open="true"] .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 16px;
}
.mega-card {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
    padding: 16px; border-radius: var(--radius); transition: background .25s, transform .25s;
}
.mega-card:hover { background: color-mix(in srgb, var(--accent) 9%, white); transform: translateX(2px); }
.mega-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, white); }
.mega-ico svg { width: 22px; height: 22px; }
.mega-body { display: flex; flex-direction: column; }
.mega-brand { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 16px; }
.mega-name { font-size: 13.5px; color: var(--muted); }
.mega-arrow { width: 18px; height: 18px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: .25s; }
.mega-card:hover .mega-arrow { opacity: 1; transform: none; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 95;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(16px);
    overflow-y: auto; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav-inner { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-label { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 4px; }
.mobile-pillars li a {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
    padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 8px;
}
.mobile-pillars li a:active { background: var(--paper-2); }
.mobile-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, white); }
.mobile-ico svg { width: 21px; height: 21px; }
.mobile-pillars strong { display: block; font-family: var(--font-display); color: var(--ink); }
.mobile-pillars small { color: var(--muted); font-size: 13px; }
.mobile-pillars a > svg { width: 18px; height: 18px; color: var(--muted); }
.mobile-link { padding: 16px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; }
.mobile-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.lang-switch--block { justify-content: center; height: 50px; color: var(--text); border-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
    position: relative; padding-top: calc(var(--header-h) + clamp(60px, 11vw, 130px));
    padding-bottom: clamp(70px, 11vw, 150px);
    background-color: var(--navy-900);
    background-image: url(../img/hero-bg.jpg);
    background-size: cover; background-position: center right;
    color: #fff; overflow: hidden;
}
.hero::after { /* extra legibility wash on the left */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,17,46,.55), transparent 55%), linear-gradient(0deg, var(--navy-900), transparent 40%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 54px 54px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 460px; height: 460px; background: radial-gradient(circle, #0a78c8, transparent 68%); top: -120px; right: -60px; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, var(--cyan), transparent 66%); bottom: -140px; left: -40px; opacity: .4; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #1f4fbf, transparent 70%); top: 40%; left: 52%; opacity: .35; }
.orb-accent { width: 480px; height: 480px; background: radial-gradient(circle, var(--accent), transparent 68%); top: -140px; right: -40px; opacity: .4; filter: blur(70px); }

.hero-inner { position: relative; max-width: 920px; }
.hero-title { font-size: clamp(40px, 7.2vw, 88px); letter-spacing: -.03em; line-height: 1.1; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .word > span { display: inline-block; }
.hero-lead { margin-top: 26px; font-size: clamp(17px, 1.7vw, 22px); color: var(--muted-light); max-width: 60ch; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tagline { margin-top: 30px; font-family: var(--font-display); font-size: 15px; color: rgba(255, 255, 255, .5); letter-spacing: .01em; }

/* ---------- Overview / stats ---------- */
.overview { background: var(--white); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 52px); color: var(--blue); letter-spacing: -.03em; line-height: 1; }
.stat-label { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- Families ---------- */
.families { background: linear-gradient(180deg, var(--white), var(--paper)); }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.family-card {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 30px; border-radius: var(--radius-lg); background: var(--white);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
    transform-style: preserve-3d;
}
.family-card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
    background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.family-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.family-card:hover::before { opacity: 1; }
.family-card--feature { grid-column: span 2; }
.family-card--feature .family-tag { font-size: 17px; max-width: 46ch; }
.family-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, white); margin-bottom: 12px; }
.family-ico svg { width: 28px; height: 28px; }
.family-brand { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink); }
.family-name { font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.family-tag { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.family-cta { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.family-cta svg { width: 17px; height: 17px; color: var(--accent); transition: transform .25s; }
.family-card:hover .family-cta svg { transform: translateX(5px); }
.family-card--feature .family-ico { width: 64px; height: 64px; }
.family-card--feature .family-brand { font-size: 30px; }

/* ---------- Integrations ---------- */
.integrations { background: var(--paper); }
.integration-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 920px; margin: 0 auto; }
.integration-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px; background: var(--white);
    border: 1px solid var(--line); font-weight: 500; font-size: 15px; color: var(--text);
    box-shadow: var(--shadow-sm);
}
.integration-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--white); }
.cta-inner {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(48px, 7vw, 84px) 32px; border-radius: var(--radius-lg);
    background: radial-gradient(120% 160% at 50% -30%, #0a4f86, var(--navy) 55%, var(--navy-900));
    color: #fff;
}
.cta-band--accent .cta-inner { background: radial-gradient(120% 160% at 50% -30%, color-mix(in srgb, var(--accent) 70%, #06203f), var(--navy) 60%, var(--navy-900)); }
.cta-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, var(--cyan)), transparent 70%); filter: blur(60px); opacity: .5; top: -180px; left: 50%; transform: translateX(-50%); }
.cta-title { position: relative; font-size: clamp(26px, 4vw, 44px); }
.cta-lead { position: relative; margin: 16px auto 30px; max-width: 56ch; color: var(--muted-light); font-size: clamp(16px, 1.5vw, 19px); }
.cta-inner .btn { position: relative; }

/* ---------- Pillar page ---------- */
.pillar-hero {
    position: relative; overflow: hidden; color: #fff;
    padding-top: calc(var(--header-h) + clamp(54px, 9vw, 110px)); padding-bottom: clamp(54px, 8vw, 100px);
    background: radial-gradient(140% 120% at 82% -10%, #06294d 0%, var(--navy) 46%, var(--navy-900) 100%);
}
.pillar-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.pillar-hero-inner { position: relative; max-width: 880px; }
.pillar-brandbar { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); flex-wrap: wrap; margin-bottom: 26px; }
.pillar-logo { height: clamp(46px, 6.5vw, 60px); width: auto; }
.pillar-mark { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; color: #fff; background: color-mix(in srgb, var(--accent) 30%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.pillar-mark svg { width: 31px; height: 31px; }
.pillar-brandname { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); color: #fff; letter-spacing: -.02em; }
.pillar-divider { width: 1.5px; height: clamp(32px, 4.5vw, 46px); background: color-mix(in srgb, var(--accent) 60%, transparent); }
.pillar-cat { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 2.1vw, 25px); color: color-mix(in srgb, var(--accent) 78%, white); letter-spacing: -.01em; }
.pillar-headline { font-size: clamp(28px, 4.2vw, 50px); line-height: 1.12; max-width: 20ch; }
.pillar-intro { margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted-light); max-width: 64ch; }

/* JMediRadar has an extra-wide wordmark (~7.4:1) — shrink the brand bar so
   "logo | category" stays on one line on this page. */
html[data-page="jmediradar"] .pillar-logo { height: clamp(34px, 4vw, 44px); }
html[data-page="jmediradar"] .pillar-cat { font-size: clamp(15px, 1.7vw, 21px); }
html[data-page="jmediradar"] .pillar-brandbar { gap: clamp(12px, 1.6vw, 18px); row-gap: 8px; }

.pillar-highlights { background: var(--white); }
.highlight-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight { padding: 24px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.highlight-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--accent); }
.highlight p { margin-top: 10px; font-size: 15px; color: var(--text); font-weight: 500; line-height: 1.5; }

.pillar-modules { background: transparent; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card {
    position: relative; padding: 26px; border-radius: var(--radius); background: var(--white);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.module-bullet { display: block; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); margin-bottom: 16px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.module-name { font-size: 17.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.module-link-ico { width: 16px; height: 16px; color: var(--accent); }
.module-desc { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.module-card--link:hover .module-name { color: var(--accent); }

.pillar-related { background: var(--white); }
.related-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, white); }
.related-ico svg { width: 22px; height: 22px; }
.related-brand { font-family: var(--font-display); font-weight: 600; color: var(--ink); grid-column: 2; }
.related-name { display: none; }
.related-arrow { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Pillar case study ---------- */
.pillar-case { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 130% at 12% -20%, color-mix(in srgb, var(--accent) 40%, #06203f), var(--navy) 52%, var(--navy-900)); }
.pillar-case-bg { position: absolute; inset: 0; overflow: hidden; }
.case-wrap { position: relative; max-width: 980px; margin-inline: auto; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.case-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); border: 1px solid var(--line-light); padding: 5px 13px; border-radius: 999px; }
.case-company { font-size: clamp(22px, 3vw, 34px); max-width: 26ch; margin-top: 6px; }
.case-sector { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--accent) 72%, white); }
.case-sector svg { width: 16px; height: 16px; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 32px; }
.case-col { padding-left: 18px; border-left: 2px solid color-mix(in srgb, var(--accent) 75%, transparent); }
.case-col--solution { border-left-color: var(--cyan); }
.case-label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 9px; }
.case-col p { color: var(--muted-light); font-size: 15.5px; line-height: 1.6; }
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line-light); }
.case-stat { text-align: center; }
.case-val { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.6vw, 38px); color: #fff; letter-spacing: -.02em; line-height: 1.05; }
.case-lbl { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted-light); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 90px)); }
.contact .section-title { color: #fff; }
.contact .section-lead { color: var(--muted-light); }
.contact-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.contact-meta li { display: flex; align-items: center; gap: 10px; color: var(--muted-light); }
.contact-meta svg { width: 16px; height: 16px; color: var(--cyan); }
.contact-meta a:hover { color: #fff; }

.contact-form { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-lg); }
.form-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--cyan) 12%, white); color: var(--blue-700); font-size: 13.5px; font-weight: 500; margin-bottom: 22px; }
.form-note svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 11px; border: 1.5px solid var(--line);
    background: var(--paper); font: inherit; font-size: 15px; color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 97, 160, .12); }
.field textarea { resize: vertical; min-height: 110px; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.field--check span { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, #2bbf6a 14%, white); color: #1c7a45; font-weight: 600; font-size: 14.5px; }
.form-success svg { width: 20px; height: 20px; }

/* ---------- 404 ---------- */
.error-page { padding-top: calc(var(--header-h) + 100px); text-align: center; }
.error-inner { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(80px, 16vw, 150px); line-height: 1; background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-inner .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--muted-light); padding: clamp(54px, 7vw, 84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line-light); }
.footer-logo { height: 26px; width: auto; }
.footer-logo path { fill: #fff; }
.footer-tagline { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 13.5px; color: rgba(255, 255, 255, .5); flex-wrap: wrap; }
.footer-byline { color: var(--cyan); }

/* ---------- Misc ---------- */
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; background: #fff; color: var(--blue); padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow-md); transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero layering & heartbeat (ECG) ---------- */
.hero-bg { z-index: 0; }
.hero::after { z-index: 1; }
.hero-inner { z-index: 2; }
.hero-ecg { position: absolute; left: 0; top: 54%; height: 130px; max-width: none; opacity: .9; pointer-events: none; animation: ecgFloat 8s ease-in-out infinite alternate; }
.hero-ecg polyline { fill: none; stroke: var(--cyan); stroke-width: 1.4; opacity: .32; animation: ecgDrift 7s linear infinite; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cyan) 60%, transparent)); }
.hero-ecg .hero-ecg-2 { stroke: rgba(255, 255, 255, .55); opacity: .18; animation: ecgDrift2 11s linear infinite; }
.hero-ecg--top { top: calc(54% - 200px); opacity: .8; animation-direction: alternate-reverse; animation-duration: 9s; }
.hero-ecg--top polyline { stroke: var(--cyan); opacity: .2; animation-direction: reverse; animation-duration: 9s; }
@keyframes ecgDrift  { from { transform: translateX(0); }       to { transform: translateX(-160px); } }
@keyframes ecgDrift2 { from { transform: translate(0, 16px); }  to { transform: translate(-160px, 16px); } }
@keyframes ecgFloat  { from { transform: translateY(-8px); }    to { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
    .hero-ecg, .hero-ecg polyline, .hero-ecg .hero-ecg-2 { animation: none; }
}

/* ---------- Values / why ---------- */
.values { background: var(--paper); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, white); margin-bottom: 18px; }
.value-ico svg { width: 27px; height: 27px; }
.value-name { font-size: 21px; color: var(--ink); }
.value-desc { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.tech-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.tech-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 500; font-size: 14.5px; color: var(--text); }
.tech-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------- Flagship products (2 wide + 3) ---------- */
.families { background: var(--white); }
.flagship-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.flagship-card {
    grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start;
    padding: 30px; border-radius: var(--radius-lg); background: var(--white);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s; transform-style: preserve-3d;
}
.flagship-card:nth-child(-n+2) { grid-column: span 3; }
.flagship-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); opacity: .85; }
.flagship-card::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; background: radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.flagship-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.flagship-card:hover::after { opacity: 1; }
.flagship-top { min-height: 52px; display: flex; align-items: center; margin-bottom: 16px; }
.flagship-logo { height: 40px; width: auto; max-width: 240px; object-fit: contain; }
.flagship-card:nth-child(-n+2) .flagship-logo { height: 48px; }
.flagship-wordmark { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); }
.flagship-name { font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark, var(--accent)); }
.flagship-tag { margin-top: 8px; color: var(--muted); font-size: 15.5px; flex-grow: 1; }
.flagship-card .family-cta { margin-top: 18px; }

/* ---------- Complementary products ---------- */
.more-products { margin-top: 34px; }
.more-label { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.more-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, background .3s; }
.more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--white); }
.more-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, white); }
.more-ico svg { width: 24px; height: 24px; }
.more-brand { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.more-tag { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.more-arrow { width: 18px; height: 18px; color: var(--accent); }

/* ---------- JForce section ---------- */
.jforce { position: relative; overflow: hidden; background: radial-gradient(130% 120% at 85% -10%, #06294d, var(--navy) 50%, var(--navy-900)); color: #fff; }
.jforce-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.jforce-photo { position: absolute; inset: 0; background: url(../img/jforce-office.jpg) center/cover no-repeat; filter: blur(7px) brightness(.42) saturate(.9); transform: scale(1.12); }
.jforce-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,17,46,.95) 28%, rgba(0,20,52,.72) 70%, rgba(0,26,64,.55)); }
.jforce-grid { z-index: 2; }
.jforce-logo { height: 36px; width: auto; margin-bottom: 22px; }
.jforce-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.kicker--light { color: var(--cyan); }
.jforce-title { font-size: clamp(28px, 4vw, 46px); }
.jforce-body { margin-top: 20px; color: var(--muted-light); font-size: clamp(16px, 1.4vw, 18px); max-width: 60ch; }
.jforce-values { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; }
.jforce-values li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.jforce-values svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.jforce-card { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(8px); }
.jforce-contact { display: flex; flex-direction: column; gap: 6px; }
.jf-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; transition: background .25s; }
.jf-row:hover { background: rgba(255, 255, 255, .07); }
.jf-row svg { width: 20px; height: 20px; color: var(--cyan); }
.jf-row strong { display: block; font-size: 15.5px; font-weight: 600; }
.jf-row small { color: var(--muted-light); font-size: 12.5px; }
.jforce-social { display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.jforce-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-light); color: #fff; transition: background .25s, transform .25s, border-color .25s; }
.jforce-social a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy-900); transform: translateY(-3px); }
.jforce-social svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid-2 { grid-template-columns: 1fr; }
    .flagship-grid { grid-template-columns: repeat(2, 1fr); }
    .flagship-card, .flagship-card:nth-child(-n+2) { grid-column: span 1; }
    .value-grid { grid-template-columns: 1fr; }
    .jforce-grid { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-row { grid-template-columns: repeat(2, 1fr); }
    .case-body { grid-template-columns: 1fr; gap: 20px; }
    .mega-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .primary-nav, .header-cta { display: none; }
    .menu-toggle { display: inline-flex; }
    .nav-open .menu-open-ico { display: none; }
    .nav-open .menu-close-ico { display: block; }
    .flagship-grid { grid-template-columns: 1fr; }
    .more-grid { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .highlight-row { grid-template-columns: 1fr; }
    .case-results { grid-template-columns: 1fr; gap: 10px; text-align: left; }
    .case-stat { display: flex; align-items: baseline; gap: 12px; }
    .case-head { justify-content: flex-start; }
    .pillar-divider { display: none; }
    .pillar-brandbar { gap: 6px 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Header is transparent over dark heroes; ensure stuck state on light pages handled by JS */
