/* ==========================================================================
   HAITIAN-Smart Cloud
   ========================================================================== */

:root {
    --navy-900: #050f26;
    --navy-800: #071a3d;
    --navy-700: #0b2656;
    --brand: #0b3a8c;
    --brand-600: #1556c4;
    --azure: #1f6fe0;
    --sky: #3ba0e8;
    --cyan: #5fd4ff;
    --ink: #0f1d36;
    --muted: #5d6b82;
    --line: #e3e9f3;
    --bg-soft: #f4f7fc;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --grad-brand: linear-gradient(135deg, #0b3a8c 0%, #1f6fe0 55%, #3ba0e8 100%);
    --grad-text: linear-gradient(90deg, #5fd4ff 0%, #3ba0e8 40%, #ffffff 100%);
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(11, 38, 86, .06);
    --shadow: 0 18px 40px -12px rgba(11, 38, 86, .18);
    --shadow-lg: 0 30px 70px -20px rgba(7, 26, 61, .35);
    --header-h: 78px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font-head: "Montserrat", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; }
a { color: var(--azure); text-decoration: none; transition: color .25s; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
::selection { background: var(--azure); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-primary-brand { color: var(--brand) !important; }
.text-white-75 { color: rgba(255, 255, 255, .78) !important; }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 2000;
    display: grid; place-items: center;
    background: radial-gradient(circle at 50% 40%, var(--navy-700), var(--navy-900));
    transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { width: 72px; animation: pulseLogo 1.6s ease-in-out infinite; }
.preloader-bar { width: 160px; height: 3px; margin: 22px auto 12px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--grad-brand); animation: loadBar 1.1s ease-in-out infinite; }
.preloader-text { color: rgba(255,255,255,.6); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; margin: 0; }
@keyframes pulseLogo { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(59,160,232,0)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(59,160,232,.8)); } }
@keyframes loadBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100;
    background: var(--grad-brand);
    box-shadow: 0 0 10px rgba(59,160,232,.7);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    transition: background .35s, box-shadow .35s, padding .35s;
    padding: 12px 0;
}
.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    padding: 4px 0;
}
/* Background + blur live on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block for the fixed mobile offcanvas (#mobileMenu), squeezing it to header height. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(5, 15, 38, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0; transition: opacity .35s;
}
.site-header.scrolled::before { opacity: 1; }
.navbar { padding: 8px 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-tag {
    font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; background: var(--grad-brand); padding: 4px 9px; border-radius: 30px;
}
.navbar .nav-link {
    position: relative;
    color: rgba(255,255,255,.82);
    font-weight: 500; font-size: .93rem;
    padding: 10px 14px !important;
    transition: color .25s;
}
.navbar .nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--sky); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-cta {
    background: var(--grad-brand); color: #fff !important; border-radius: 40px;
    margin-left: 8px; margin-right: 16px; padding: 9px 20px !important;
    box-shadow: 0 8px 20px -6px rgba(31,111,224,.7);
}
.navbar .nav-cta::after { display: none; }
.navbar .nav-cta:hover { transform: translateY(-2px); }

.btn-lang {
    display: flex; align-items: center; gap: 8px;
    color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 40px;
    padding: 6px 12px; font-size: .85rem; font-weight: 600;
    background: rgba(255,255,255,.06);
}
.btn-lang:hover, .btn-lang.show { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.btn-lang .flag-icon { border-radius: 3px; }
.lang-switch .dropdown-menu {
    border: 0; border-radius: 14px; padding: 8px; min-width: 170px;
    box-shadow: var(--shadow-lg);
    animation: dropIn .25s var(--ease);
}
.lang-switch .dropdown-item { border-radius: 9px; padding: 9px 12px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active { background: var(--grad-brand); color: #fff; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.navbar-toggler { border: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-line { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.toggler-line:nth-child(2) { width: 16px; margin-left: auto; }

.offcanvas { background: var(--navy-800); color: #fff; }
@media (max-width: 991.98px) {
    .offcanvas { width: 300px !important; }
    .offcanvas .nav-link { font-size: 1.1rem; padding: 14px 6px !important; border-bottom: 1px solid rgba(255,255,255,.07); }
    .offcanvas .nav-link::after { display: none; }
    .offcanvas .nav-cta { margin: 18px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn-primary-glow {
    position: relative; overflow: hidden;
    color: #fff; background: var(--grad-brand); border: 0;
    border-radius: 50px; padding: 14px 30px; font-weight: 600;
    box-shadow: 0 14px 30px -10px rgba(31,111,224,.75);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-primary-glow::before {
    content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transition: left .7s var(--ease);
}
.btn-primary-glow:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 36px -10px rgba(31,111,224,.85); }
.btn-primary-glow:hover::before { left: 140%; }
.btn-primary-glow:disabled { opacity: .7; transform: none; }

.btn-play { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; border: 0; background: none; }
.btn-play:hover { color: var(--cyan); }
.play-icon {
    position: relative; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
}
.play-icon::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid rgba(95,212,255,.6);
    animation: ripple 2s ease-out infinite;
}
@keyframes ripple { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 50px) 0 110px;
    color: #fff; overflow: hidden;
    background: var(--navy-900) url("../img/pdf/hero-bg-particles.jpg") center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(31,111,224,.35), transparent 50%),
        linear-gradient(100deg, rgba(5,15,38,.96) 0%, rgba(7,26,61,.85) 45%, rgba(7,26,61,.55) 100%);
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 40px; font-size: .85rem; font-weight: 500;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
}
.hero-badge i { color: var(--cyan); }
.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; line-height: 1;
    letter-spacing: -.02em; margin: 26px 0 22px;
}
.hero-title span { display: block; }
.hero-title-light { font-weight: 500; color: rgba(255,255,255,.92); }
.hero-subtitle { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.8); max-width: 580px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.hero-stats {
    display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 52px; padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stat > span { font-size: .85rem; color: rgba(255,255,255,.65); }

.hero-visual { position: relative; padding: 30px 10px; }
.hero-ring {
    position: absolute; width: 120%; left: -10%; top: -5%; opacity: .5;
    animation: spin 40s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.device-frame {
    position: relative; margin: 0 auto; width: 300px; height: 500px;
    border-radius: 36px; padding: 12px;
    background: linear-gradient(145deg, #1b2a48, #070d1c);
    box-shadow: 0 0 0 2px rgba(255,255,255,.08), var(--shadow-lg), 0 0 80px rgba(31,111,224,.35);
    transform: perspective(1200px) rotateY(-14deg) rotateX(4deg);
    transition: transform .4s var(--ease);
}
.device-screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #0f172a; }
.scroll-screen { width: 100%; height: 100%; display: block; object-fit: fill; object-position: top; margin-top: 0; }
.floating-chip {
    position: absolute; display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 14px; font-size: .8rem; font-weight: 600; white-space: nowrap;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
    animation: floatY 6s ease-in-out infinite;
}
.floating-chip i { color: var(--cyan); }
.chip-1 { top: 60px; left: -30px; }
.chip-1 i { color: var(--success); }
.chip-2 { top: 50%; right: -20px; animation-delay: -2s; }
.chip-3 { bottom: 50px; left: 0; animation-delay: -4s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float { animation: floatY 6s ease-in-out infinite; }

.scroll-down {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-down:hover { color: #fff; }
.mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 8px; border-radius: 3px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; overflow: hidden; }
.section-light { background: #fff; }
.section-light:nth-of-type(even) { background: var(--bg-soft); }
.section-dark { background: radial-gradient(ellipse at top, var(--navy-700), var(--navy-900) 70%); color: #fff; }
.section-gradient { background: linear-gradient(135deg, var(--navy-800) 0%, var(--brand) 60%, var(--azure) 130%); color: #fff; }
.section-head { margin-bottom: 64px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--azure); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.text-center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light, .section-dark .eyebrow { color: var(--cyan); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; margin-bottom: 18px; }
.section-lead { font-size: 1.08rem; color: var(--muted); line-height: 1.75; max-width: 680px; }
.section-dark .section-lead { color: rgba(255,255,255,.72); }

.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-sphere-1 { width: 260px; top: 40px; left: -90px; opacity: .65; }
.deco-sphere-2 { width: 220px; bottom: -60px; right: -60px; opacity: .55; }
.deco-sphere-3 { width: 520px; bottom: -140px; left: 50%; transform: translateX(-50%); opacity: .25; }

/* ---------- About ---------- */
.edge-visual { position: relative; text-align: center; padding: 30px; }
.edge-glow { position: absolute; inset: 15% 15%; background: radial-gradient(circle, rgba(31,111,224,.35), transparent 70%); filter: blur(30px); }
.edge-ring { position: absolute; inset: 0; margin: auto; width: 100%; opacity: .35; animation: spin 50s linear infinite reverse; }
.edge-device { position: relative; max-height: 480px; filter: drop-shadow(0 30px 40px rgba(7,26,61,.35)); animation: floatY 7s ease-in-out infinite; }
.edge-caption {
    position: absolute; left: 0; bottom: 40px;
    display: flex; align-items: center; gap: 14px; text-align: left;
    padding: 14px 20px; border-radius: 16px; background: #fff; box-shadow: var(--shadow);
}
.edge-caption i { font-size: 1.8rem; color: var(--azure); --fa-secondary-color: var(--sky); }
.edge-caption strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.edge-caption small { color: var(--muted); }

.func-card {
    position: relative; height: 100%; padding: 26px 20px 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.func-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.func-num { position: absolute; top: 14px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--line); transition: color .35s; }
.func-card:hover .func-num { color: rgba(31,111,224,.2); }
.func-icon { width: 46px; height: 46px; object-fit: contain; margin-bottom: 16px; }
.func-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.func-card p { font-size: .9rem; color: var(--muted); margin: 0; }

.bot-pill {
    display: flex; align-items: center; gap: 16px; margin-top: 26px;
    padding: 16px 22px; border-radius: 18px;
    background: var(--grad-brand); color: #fff;
    box-shadow: 0 18px 34px -14px rgba(31,111,224,.8);
    transition: transform .3s var(--ease);
}
.bot-pill:hover { color: #fff; transform: translateX(6px); }
.bot-pill-icon { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 1.2rem; }
.bot-pill strong { display: block; font-family: var(--font-head); }
.bot-pill small { opacity: .85; }

/* ---------- Architecture ---------- */
.grid-bg {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(95,212,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(95,212,255,.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cloud-node { position: relative; width: 300px; max-width: 100%; margin: 0 auto; }
.cloud-pulse { position: absolute; inset: -20px; border-radius: 40px; border: 1px solid rgba(95,212,255,.4); animation: cloudPulse 3s ease-out infinite; }
@keyframes cloudPulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.cloud-core {
    position: relative; text-align: center; padding: 30px 26px; border-radius: 28px;
    background: linear-gradient(160deg, rgba(31,111,224,.35), rgba(11,58,140,.25));
    border: 1px solid rgba(95,212,255,.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 60px rgba(31,111,224,.4);
}
.cloud-core i { font-size: 3rem; color: #fff; --fa-secondary-color: var(--cyan); --fa-secondary-opacity: .7; margin-bottom: 10px; }
.cloud-core strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.cloud-core small { display: block; color: rgba(255,255,255,.7); margin-top: 6px; line-height: 1.5; }
.connector-lines { width: 100%; height: 110px; margin-top: -4px; }
.connector-lines path { fill: none; stroke: rgba(95,212,255,.55); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.controllers { margin-top: 10px; }
@media (max-width: 991.98px) { .controllers { margin-top: 50px; } }
.controller-card {
    position: relative; height: 100%; text-align: center; padding: 26px 22px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.controller-card:hover { transform: translateY(-10px); background: rgba(255,255,255,.08); border-color: rgba(95,212,255,.4); }
.controller-img { height: 230px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; }
.controller-img img { max-height: 100%; filter: drop-shadow(0 20px 26px rgba(0,0,0,.45)); transition: transform .5s var(--ease); }
.controller-card:hover .controller-img img { transform: scale(1.06) rotate(-2deg); }
.controller-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.controller-gen { font-size: .85rem; color: rgba(255,255,255,.6); }
.status-dot { position: absolute; top: 20px; right: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: statusPing 2s infinite; }
@keyframes statusPing { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } }

/* ---------- Capabilities ---------- */
.cap-card {
    position: relative; height: 100%; padding: 34px 28px;
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s;
    overflow: hidden;
}
.cap-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.cap-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.cap-card:hover::before { transform: scaleX(1); }
.cap-icon {
    width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(31,111,224,.12), rgba(59,160,232,.06));
    font-size: 1.7rem; color: var(--azure); --fa-secondary-color: var(--sky);
    transition: transform .5s var(--ease);
}
.cap-icon img { width: 36px; }
.cap-card:hover .cap-icon { transform: rotateY(180deg); }
.cap-card h3 { font-size: 1.18rem; line-height: 1.35; margin-bottom: 10px; }
.cap-card > p { color: var(--muted); font-size: .93rem; }
.cap-list { list-style: none; padding: 0; margin: 0; }
.cap-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px dashed var(--line); font-size: .93rem; font-weight: 500; }
.cap-list i { color: var(--azure); margin-top: 3px; width: 18px; text-align: center; }
.cap-card-featured { background: var(--grad-brand); color: #fff; border: 0; box-shadow: 0 30px 60px -20px rgba(31,111,224,.6); }
.cap-card-featured > p { color: rgba(255,255,255,.8); }
.cap-card-featured .cap-icon { background: rgba(255,255,255,.16); color: #fff; --fa-secondary-color: var(--cyan); }
.cap-card-featured .cap-list li { border-color: rgba(255,255,255,.2); }
.cap-card-featured .cap-list i { color: var(--cyan); }
.cap-card-featured::before { background: var(--cyan); }
.mini-curve { width: 100%; height: 50px; margin: 14px 0 6px; }
.mini-curve path { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.is-visible .mini-curve path { animation: drawLine 2.4s var(--ease) .4s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.cap-note { display: flex; gap: 10px; align-items: center; font-size: .85rem; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.14); }
.cap-note i { color: #ffd166; animation: bell 2.5s ease-in-out infinite; }
@keyframes bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(18deg); } 85% { transform: rotate(-14deg); } 95% { transform: rotate(8deg); } }
.cap-card-outline { background: var(--bg-soft); border-style: dashed; border-width: 2px; }
.cap-more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--azure); }

/* ---------- Toolbox ---------- */
.toolbox-tabs { gap: 10px; margin: 30px 0 26px; border: 0; flex-wrap: wrap; }
.toolbox-tabs .nav-link {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,.75); font-weight: 600; font-size: .92rem;
    padding: 10px 18px; border-radius: 40px; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05); transition: .3s var(--ease);
}
.toolbox-tabs .nav-link img { width: 22px; height: 22px; object-fit: contain; }
.toolbox-tabs .nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.toolbox-tabs .nav-link.active { color: var(--brand); background: #fff; border-color: #fff; box-shadow: 0 12px 26px -10px rgba(0,0,0,.4); }
.toolbox-tabs .nav-link.active img { filter: brightness(0) saturate(100%) invert(18%) sepia(73%) saturate(2750%) hue-rotate(211deg); }
.tool-item {
    display: flex; gap: 16px; height: 100%; padding: 20px;
    border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px); transition: transform .3s var(--ease), background .3s;
}
.tool-item:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.tool-item > i { flex: 0 0 auto; font-size: 1.5rem; color: #fff; --fa-secondary-color: var(--cyan); --fa-secondary-opacity: .8; margin-top: 2px; }
.tool-item h4 { font-size: 1rem; margin-bottom: 6px; }
.tool-item p { font-size: .88rem; color: rgba(255,255,255,.72); margin: 0; }
.tab-pane.show .tool-item { animation: toolIn .5s var(--ease) both; }
.tab-pane.show .col-md-6:nth-child(2) .tool-item { animation-delay: .07s; }
.tab-pane.show .col-md-6:nth-child(3) .tool-item { animation-delay: .14s; }
.tab-pane.show .col-md-6:nth-child(4) .tool-item { animation-delay: .21s; }
@keyframes toolIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.phone-stack { position: relative; height: 560px; max-width: 420px; margin: 0 auto; }
.phone {
    position: absolute; width: 250px; height: 500px; border-radius: 36px; padding: 10px;
    background: linear-gradient(145deg, #1f2a44, #050a16); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: fill; border-radius: 27px; }
.phone-back { top: 0; left: 0; transform: rotate(-8deg); opacity: .85; }
.phone-front { bottom: 0; right: 0; }

/* ---------- HAITIAN-Smart ---------- */
.slogan { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--azure); }
.laptop { max-width: 760px; margin: 0 auto; }
.laptop-screen {
    position: relative; padding: 14px 14px 18px; border-radius: 22px 22px 0 0;
    background: #0b0f19; box-shadow: var(--shadow-lg);
}
.laptop-screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #2b3550; transform: translateX(-50%); }
.screen-slider { position: relative; aspect-ratio: 1475 / 827; overflow: hidden; border-radius: 6px; background: #fff; }
.screen-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1); transition: opacity .8s, transform 1.2s var(--ease); }
/* The screenshots include a white margin and drop shadow – zoom in to fill the screen. */
.screen-slider img.active { opacity: 1; transform: scale(1); }
.laptop-base {
    position: relative; height: 18px; margin: 0 -6%;
    background: linear-gradient(#d9dee8, #9aa3b5); border-radius: 0 0 22px 22px;
    box-shadow: 0 20px 30px -10px rgba(7,26,61,.4);
}
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 7px; transform: translateX(-50%); background: #b9c1d0; border-radius: 0 0 10px 10px; }
.screen-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.screen-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: #c8d3e6; transition: .3s; }
.screen-dots button.active { width: 34px; background: var(--azure); }

.agent-card {
    display: flex; gap: 18px; align-items: center; padding: 20px 22px; margin-bottom: 16px;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.agent-card:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.agent-icon { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.5rem; --fa-secondary-color: var(--cyan); }
.agent-icon img { width: 30px; filter: brightness(0) invert(1); }
.agent-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.agent-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.chat-demo { margin-top: 8px; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.06); }
.chat-avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--grad-brand); }
.chat-head span:last-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 6px; }
.chat-body { height: 230px; padding: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.5; animation: msgIn .4s var(--ease) both; }
.msg-user { align-self: flex-end; background: var(--azure); border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: rgba(255,255,255,.1); border-bottom-left-radius: 4px; }
.msg-typing { display: inline-flex; gap: 4px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); animation: typing 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 12px 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); font-size: .85rem; }
.chat-input i { color: var(--sky); }

.feature-chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feature-chips li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; background: rgba(31,111,224,.08); color: var(--brand); font-size: .85rem; font-weight: 600; }

/* ---------- Video band ---------- */
.video-band { position: relative; padding: 150px 0; overflow: hidden; color: #fff; background: var(--navy-900); }
.video-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,15,38,.85), rgba(11,58,140,.7)); }
.big-play {
    position: relative; width: 96px; height: 96px; margin-top: 20px; border-radius: 50%; border: 0;
    color: #fff; font-size: 1.8rem; background: var(--grad-brand);
    box-shadow: 0 0 0 12px rgba(255,255,255,.08), 0 20px 50px rgba(31,111,224,.6);
    transition: transform .3s var(--ease);
}
.big-play::before, .big-play::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(95,212,255,.5); animation: ripple 2.4s ease-out infinite; }
.big-play::after { animation-delay: 1.2s; }
.big-play:hover { transform: scale(1.1); }
.big-play i { margin-left: 5px; }
.video-modal { background: #000; border: 0; border-radius: 18px; overflow: hidden; }
.video-modal .btn-close { position: absolute; top: -40px; right: 0; z-index: 5; opacity: .9; }
.modal-dialog { overflow: visible; }
#videoModal .modal-content { overflow: visible; }
#videoModal .ratio { border-radius: 18px; overflow: hidden; }

/* ---------- Value ---------- */
.impact-card { padding: 40px; border-radius: var(--radius-lg); background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.impact-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(31,111,224,.5), transparent 70%); }
.impact-card h3 { font-size: 1.4rem; margin-bottom: 26px; position: relative; }
.impact-list { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.impact-list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
.impact-list li:last-child { border: 0; }
.check { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--grad-brand); box-shadow: 0 0 0 5px rgba(31,111,224,.2); }
.value-card { height: 100%; padding: 32px; border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.value-card:hover { transform: translateY(-6px) scale(1.01); }
.value-cost { background: linear-gradient(135deg, #0b3a8c, #1f6fe0); }
.value-quality { background: linear-gradient(135deg, #0e7490, #3ba0e8); }
.value-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255,255,255,.18); font-size: 1.5rem; --fa-secondary-color: #fff; --fa-secondary-opacity: .55; }
.value-card h3 { font-size: 1.35rem; }
.value-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.value-card li { position: relative; padding: 6px 0 6px 22px; color: rgba(255,255,255,.88); }
.value-card li::before { content: "\f054"; font-family: "Font Awesome 5 Pro"; font-weight: 900; position: absolute; left: 0; top: 8px; font-size: .7rem; color: var(--cyan); }

/* ---------- Quote ---------- */
.quote-section { padding: 130px 0; }
.quote-mark { display: block; font-size: 3rem; color: var(--sky); opacity: .5; margin: 10px 0 20px; }
.quote-text { font-family: var(--font-head); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.65; color: #fff; margin: 0 auto 36px; max-width: 900px; }
.quote-author { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 60px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.quote-logo { width: 46px; height: 46px; padding: 6px; border-radius: 50%; background: #fff; object-fit: contain; }
.quote-author strong { display: block; font-family: var(--font-head); }
.quote-author small { color: rgba(255,255,255,.6); }

/* ---------- Results ---------- */
.mini-stat { padding: 18px 10px; text-align: center; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.mini-stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.mini-stat > span { display: block; font-size: .8rem; color: var(--muted); }
.results-panel { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.donut-wrap { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.donut { width: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5; }
.donut-track { stroke: var(--bg-soft); }
.donut-seg { stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease); stroke-linecap: butt; }
.seg-1 { stroke: var(--azure); }
.seg-2 { stroke: var(--sky); }
.seg-3 { stroke: #c4cfe0; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22%; }
.donut-center strong { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.donut-center small { margin-top: 6px; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.result-legend { list-style: none; padding: 0; margin: 0; }
.result-legend li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.result-legend li:last-child { border: 0; }
.result-legend strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.result-legend small { color: var(--muted); }
.legend-dot { flex: 0 0 14px; height: 14px; border-radius: 4px; margin-top: 4px; }
.dot-1 { background: var(--azure); }
.dot-2 { background: var(--sky); }
.dot-3 { background: #c4cfe0; }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 110px; background: var(--bg-soft); }
.cta-inner {
    position: relative; overflow: hidden;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: 54px 60px; border-radius: var(--radius-lg); color: #fff;
    background: var(--grad-brand); box-shadow: 0 30px 60px -24px rgba(31,111,224,.7);
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: url("../img/pdf/hero-bg-particles.jpg") center bottom / cover; opacity: .25; mix-blend-mode: screen; }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-inner p { margin: 0; opacity: .85; }
.cta-btn { border-radius: 50px; padding: 14px 30px; font-weight: 700; color: var(--brand); transition: transform .3s var(--ease); }
.cta-btn:hover { transform: translateY(-3px); color: var(--brand); }

/* ---------- Contact ---------- */
.quick-contacts { position: relative; z-index: 2; margin-top: -70px; }
.quick-card {
    display: flex; flex-direction: column; height: 100%; padding: 26px 22px;
    border-radius: var(--radius-lg); background: #fff; color: var(--ink);
    box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s;
}
a.quick-card:hover { color: var(--ink); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.quick-icon {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
    background: var(--grad-brand); color: #fff; font-size: 1.35rem; --fa-secondary-color: var(--cyan); --fa-secondary-opacity: .8;
    transition: transform .5s var(--ease);
}
.quick-card:hover .quick-icon { transform: rotate(-8deg) scale(1.08); }
.quick-card small { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.quick-card strong { font-family: var(--font-head); font-size: 1.02rem; margin-top: 4px; word-break: break-word; }

.contact-form { height: 100%; padding: 40px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.form-title { font-size: 1.6rem; margin-bottom: 6px; }
.form-intro { color: var(--muted); margin-bottom: 26px; }
.map-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.map-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 26px 20px; }
.map-card-head h2 { font-size: 1.3rem; margin-bottom: 4px; }
.map-card-head p { color: var(--muted); font-size: .92rem; }
.map-card-head p i { color: var(--azure); }
.btn-directions { border-radius: 40px; padding: 9px 18px; font-weight: 600; font-size: .88rem; color: var(--azure); background: rgba(31,111,224,.1); border: 0; }
.btn-directions:hover { color: #fff; background: var(--azure); }
.map-wrap { flex: 1 1 auto; min-height: 320px; overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-company { display: flex; align-items: center; gap: 14px; padding: 20px 26px; border-top: 1px solid var(--line); }
.map-company img { width: 44px; height: 44px; object-fit: contain; }
.map-company strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.map-company small { color: var(--muted); }
.contact-form .form-control { border-radius: 14px; border-color: var(--line); background: var(--bg-soft); }
.contact-form .form-control:focus { border-color: var(--azure); background: #fff; box-shadow: 0 0 0 4px rgba(31,111,224,.12); }
.contact-form textarea.form-control { height: 170px; resize: vertical; }
.contact-form .form-check-input:checked { background-color: var(--azure); border-color: var(--azure); }
.contact-form .form-check-label { font-size: .88rem; color: var(--muted); }
.contact-form .was-validated .form-control:invalid, .contact-form .form-control.is-invalid { border-color: var(--danger); }
.contact-form .form-hint { display: block; margin: 6px 4px 0; font-size: .78rem; color: var(--muted); }
.contact-form .invalid-feedback { font-size: .8rem; margin-left: 4px; }

/* CAPTCHA */
.captcha-box { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.captcha-image { display: flex; flex: 0 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.captcha-image img { display: block; width: 190px; height: 58px; object-fit: cover; user-select: none; }
/* Refresh sits in its own strip next to the image so it never covers a character */
.captcha-refresh {
    flex: 0 0 44px; border: 0; border-left: 1px solid var(--line);
    display: grid; place-items: center; font-size: .95rem; color: var(--azure); background: #fff;
    transition: color .2s, background .2s;
}
.captcha-refresh i { transition: transform .35s var(--ease); }
.captcha-refresh:hover, .captcha-refresh:focus-visible { color: #fff; background: var(--azure); }
.captcha-refresh:hover i, .captcha-refresh:focus-visible i { transform: rotate(180deg); }
.captcha-box .form-floating { min-width: 180px; }
.captcha-input { text-transform: uppercase; letter-spacing: .25em; font-weight: 600; }
@media (max-width: 575.98px) { .captcha-box .form-floating { flex-basis: 100%; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-alert { padding: 14px 18px; margin-bottom: 16px; border-radius: 14px; font-size: .92rem; font-weight: 500; animation: msgIn .4s var(--ease); }
.form-alert.success { background: rgba(34,197,94,.12); color: #15803d; }
.form-alert.error { background: rgba(239,68,68,.1); color: #b91c1c; }

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    padding: calc(var(--header-h) + 90px) 0 110px;
    background: var(--navy-900) url("../img/pdf/hero-bg-particles.jpg") center bottom / cover no-repeat;
}
.page-hero-sm { padding-bottom: 150px; }
.page-hero-sm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,15,38,.92), rgba(7,26,61,.55)); }
.page-hero-sm > * { z-index: 1; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.page-lead { max-width: 640px; font-size: 1.12rem; line-height: 1.7; color: rgba(255,255,255,.8); margin: 0; }
.page-breadcrumb { margin-bottom: 26px; font-size: .88rem; --bs-breadcrumb-divider-color: rgba(255,255,255,.4); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "\f105"; font-family: "Font Awesome 5 Pro"; font-weight: 400; color: rgba(255,255,255,.45); }
.page-breadcrumb a { color: rgba(255,255,255,.7); }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb .active { color: var(--cyan); }

/* ---------- Navbar dropdown ---------- */
.nav-solution .dropdown-menu {
    border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 8px; min-width: 240px;
    background: rgba(7, 26, 61, .97); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg); animation: dropIn .25s var(--ease);
}
.nav-solution .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; }
.nav-solution .dropdown-item i { width: 18px; text-align: center; color: var(--cyan); }
.nav-solution .dropdown-item:hover, .nav-solution .dropdown-item:focus, .nav-solution .dropdown-item.active { color: #fff; background: rgba(255,255,255,.08); }
.navbar .dropdown-toggle::after { vertical-align: .15em; border-top-width: .3em; }
/* The nav-link underline also uses ::after — restore Bootstrap's caret on the dropdown toggle */
.navbar .nav-solution .dropdown-toggle::after {
    position: static; display: inline-block; height: 0; margin-left: .4em;
    background: none; border-radius: 0;
    border-top: .3em solid; border-right: .3em solid transparent; border-bottom: 0; border-left: .3em solid transparent;
    transform: none;
}
@media (min-width: 992px) {
    .nav-solution .dropdown-menu { margin-top: 10px !important; }
}
@media (max-width: 991.98px) {
    .nav-solution .dropdown-menu { position: static; border: 0; background: rgba(255,255,255,.04); box-shadow: none; margin: 4px 0 8px; }
}

/* ---------- About page ---------- */
.section-soft { background: var(--bg-soft); }
.about-collage { position: relative; padding: 0 60px 60px 0; }
.collage-main { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.collage-small {
    position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius-lg); border: 8px solid #fff; box-shadow: var(--shadow);
    animation: floatY 7s ease-in-out infinite;
}
.collage-badge {
    position: absolute; left: -20px; top: 30px; padding: 18px 22px; border-radius: 20px; text-align: center;
    background: var(--grad-brand); color: #fff; box-shadow: 0 20px 40px -12px rgba(31,111,224,.7);
}
.collage-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; }
.collage-badge span { font-size: .8rem; opacity: .85; }
.about-text { color: var(--muted); line-height: 1.8; font-size: 1.02rem; }
.stock-box {
    display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 20px 24px;
    border-radius: var(--radius); background: rgba(31,111,224,.07); border-left: 4px solid var(--azure);
}
.stock-icon { flex: 0 0 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.4rem; --fa-secondary-color: var(--cyan); }
.stock-box strong { display: block; font-family: var(--font-head); color: var(--brand); }
.stock-box span { color: var(--ink); font-weight: 600; font-size: .92rem; }

.stats-band { padding: 70px 0; background: var(--grad-brand); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: url("../img/pdf/hero-bg-particles.jpg") center bottom / cover; opacity: .2; mix-blend-mode: screen; }
.stat-box { position: relative; }
.stat-box i { display: block; font-size: 2rem; margin-bottom: 12px; --fa-secondary-color: var(--cyan); --fa-secondary-opacity: .8; }
.stat-box strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; }
.stat-box > span { font-size: .92rem; color: rgba(255,255,255,.8); }

.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact {
    padding: 24px 20px; border-radius: var(--radius); text-align: left;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.fact:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(95,212,255,.35); }
.fact i { font-size: 1.5rem; color: #fff; --fa-secondary-color: var(--cyan); --fa-secondary-opacity: .8; margin-bottom: 14px; display: block; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: #fff; white-space: nowrap; }
.fact > span { font-size: .85rem; color: rgba(255,255,255,.65); }

.value-box {
    height: 100%; padding: 32px 26px; text-align: center; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.value-box:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.value-box-icon {
    width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(31,111,224,.12), rgba(59,160,232,.05)); color: var(--azure);
    font-size: 1.9rem; --fa-secondary-color: var(--sky); position: relative;
}
.value-box-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(31,111,224,.25); transition: transform 1s var(--ease); }
.value-box:hover .value-box-icon::after { transform: rotate(180deg); }
.value-box h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-box p { color: var(--muted); font-size: .93rem; margin: 0; }

.machine-card { height: 100%; border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.machine-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.machine-img { position: relative; height: 220px; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 70%, #e8f0fc, #fff 70%); }
.machine-img img { max-height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.machine-card:hover .machine-img img { transform: scale(1.08); }
.machine-body { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.machine-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.machine-body p { margin: 0; color: var(--muted); font-size: .92rem; }

.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; }
.office-card { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.office-featured { grid-column: span 2; grid-row: span 2; }
.office-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.office-card:hover img { transform: scale(1.08); }
.office-card figcaption {
    position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; color: #fff;
    background: linear-gradient(transparent, rgba(5,15,38,.92));
}
.office-country { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.office-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-top: 4px; }
.office-featured strong { font-size: 1.5rem; }
.office-card small { display: block; color: rgba(255,255,255,.7); font-size: .82rem; max-height: 0; opacity: 0; transition: max-height .4s var(--ease), opacity .4s; }
.office-card:hover small, .office-featured small { max-height: 30px; opacity: 1; }

.smart-teaser .laptop { max-width: 600px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 80px 0 0; color: rgba(255,255,255,.7); background: var(--navy-900); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.site-footer p { font-size: .92rem; line-height: 1.7; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.7); font-size: .92rem; transition: color .25s, padding .25s; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; font-size: .92rem; }
.footer-contact i { color: var(--sky); margin-top: 4px; width: 16px; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.07); transition: transform .3s var(--ease), background .3s; }
.footer-social a:hover { background: var(--azure); transform: translateY(-4px); }
/* Website links: one centered row at the bottom of the footer columns, above the copyright bar */
.footer-sites { list-style: none; margin: 0; padding: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.footer-sites li { margin: 0; }
.footer-sites a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .25s; white-space: nowrap; }
.footer-sites a:hover { color: #fff; }
.footer-sites i { color: var(--sky); width: 16px; margin-right: 6px; font-size: .85rem; }
@media (max-width: 575.98px) {
    /* keep all three on one row on phones */
    .footer-sites { gap: 6px 14px; }
    .footer-sites a { font-size: .74rem; }
    .footer-sites i { display: none; }
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 1020;
    width: 52px; height: 52px; border: 0; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: var(--navy-800);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: .35s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--azure); }
.back-to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.back-to-top circle { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; }
.back-to-top i { position: relative; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-zoom { transform: scale(.88); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Language switch fade */
[data-i18n] { transition: opacity .25s; }
body.lang-switching [data-i18n] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .results-panel { grid-template-columns: 240px 1fr; padding: 32px; }
}
@media (max-width: 991.98px) {
    :root { --header-h: 68px; }
    .section { padding: 90px 0; }
    .section-head { margin-bottom: 44px; }
    .hero { text-align: left; }
    .edge-device { max-height: 380px; }
    .phone-stack { height: 480px; max-width: 360px; }
    .phone { width: 210px; height: 420px; }
    .results-panel { grid-template-columns: 1fr; }
    .cta-inner { padding: 40px 30px; text-align: center; justify-content: center; }
    .page-hero { padding: calc(var(--header-h) + 60px) 0 90px; }
    .page-hero-sm { padding-bottom: 130px; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .offices-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .about-collage { padding: 0 40px 40px 0; margin-left: 20px; }
}
@media (max-width: 767.98px) {
    .section { padding: 72px 0; }
    .hero { padding-bottom: 120px; }
    .hero-actions { gap: 16px; }
    .hero-actions .btn-lg { width: 100%; }
    .hero-stats { gap: 18px 28px; justify-content: center; text-align: center; }
    .hero-stat strong { font-size: 1.6rem; }
    .edge-caption { position: relative; bottom: auto; margin-top: -30px; display: inline-flex; }
    .controllers { --bs-gutter-x: .6rem; }
    .controller-card { padding: 16px 8px 18px; border-radius: var(--radius); }
    .controller-img { height: 130px; margin-bottom: 12px; }
    .controller-card h3 { font-size: .95rem; }
    .controller-gen { display: none; }
    .status-dot { top: 10px; right: 10px; width: 8px; height: 8px; }
    .impact-card, .contact-form { padding: 28px 22px; }
    .value-card { padding: 26px; }
    .results-panel { padding: 26px 20px; }
    .video-band { padding: 100px 0; }
    .quote-section { padding: 90px 0; }
    .footer-bottom { justify-content: center; text-align: center; }
    .deco-sphere-1, .deco-sphere-2 { width: 150px; }
}
@media (max-width: 575.98px) {
    .navbar-brand img { height: 28px; }
    .brand-tag { display: none; }
    .lang-code { display: none; }
    .phone-stack { height: 420px; max-width: 320px; }
    .phone-back { left: 14px; }
    .phone { width: 180px; height: 360px; border-radius: 28px; }
    .phone img { border-radius: 20px; }
    .mini-stat strong { font-size: 1.4rem; }
    .toolbox-tabs .nav-link { width: 100%; justify-content: flex-start; }
    .agent-card { padding: 16px; }
    .scroll-down .scroll-label { display: none; }
    .quick-contacts { margin-top: -60px; }
    .quick-card { padding: 20px 16px; border-radius: var(--radius); }
    .quick-icon { width: 46px; height: 46px; font-size: 1.15rem; margin-bottom: 12px; }
    .quick-card strong { font-size: .88rem; }
    .contact-form, .map-card-head { padding: 26px 20px; }
    .fact { padding: 18px 16px; }
    .fact strong { font-size: 1.3rem; }
    .offices-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .office-featured { grid-column: auto; grid-row: span 1; }
    .office-card small { max-height: 30px; opacity: 1; }
    .about-collage { margin-left: 10px; padding: 0 24px 40px 0; }
    .collage-badge { left: -10px; top: 16px; padding: 12px 16px; }
    .collage-badge strong { font-size: 1.5rem; }
    .stock-box { padding: 16px; }
}

/* ---------- Cookie consent ---------- */
/* z-index: above back-to-top (1020) and header (1030), below the mobile offcanvas (1045) and modals */
.cookie-banner {
    position: fixed; left: 22px; bottom: 22px; z-index: 1035;
    display: flex; gap: 16px; align-items: flex-start;
    width: min(440px, calc(100vw - 44px)); padding: 20px 22px;
    background: rgba(7, 26, 61, .97); color: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    animation: dropIn .35s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.25rem; }
.cookie-banner-body strong { display: block; font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 4px; }
.cookie-banner-body p { font-size: .86rem; line-height: 1.55; margin-bottom: 14px; }
.cookie-banner-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-cookie-accept, .btn-cookie-decline { border-radius: 40px; padding: 8px 20px; font-size: .88rem; font-weight: 600; }
.btn-cookie-accept { background: var(--grad-brand); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(31,111,224,.8); }
.btn-cookie-accept:hover, .btn-cookie-accept:focus-visible { color: #fff; filter: brightness(1.1); }
.btn-cookie-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-cookie-decline:hover, .btn-cookie-decline:focus-visible { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
@media (max-width: 575.98px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; gap: 12px; }
    .cookie-banner-icon { flex-basis: 38px; height: 38px; font-size: 1.05rem; }
}

/* Google Maps placeholder until consent */
.map-wrap { position: relative; }
.map-consent {
    height: 100%; min-height: 320px; padding: 30px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
    background: var(--bg-soft) url("../img/pdf/hero-bg-particles.jpg") center / cover;
    background-blend-mode: luminosity; color: var(--ink);
}
.map-consent i { font-size: 2.4rem; color: var(--azure); }
.map-consent p { max-width: 300px; margin: 0; color: var(--muted); font-size: .92rem; background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 10px; }
.map-wrap iframe:not([hidden]) + .map-consent { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
