﻿/* ==========================================================================
   NEXIV LABS â€” GROUP DESIGN SYSTEM
   assets/css/nexiv.css
   --------------------------------------------------------------------------
   0.  Reset & base
   1.  Design tokens
   2.  Layout primitives (container, grid, section)
   3.  Typography
   4.  Buttons & links
   5.  Icons
   6.  Header / navigation / mega-menu
   7.  Hero + canvas stages
   8.  Cards (division, feature, stat, stack, metric)
   9.  Content modules (split, timeline, table, accordion, tabs, quote)
   10. Forms
   11. Footer
   12. Legal / document pages
   13. Utilities
   14. Motion & reveal
   15. Responsive
   ========================================================================== */

/* ==========================================================================
   0. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 40px 0;
}

::selection { background: rgba(57, 107, 246, 0.18); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 12px 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
    /* Type */
    --font-sans: "Instrument Sans", "Instrument Sans Placeholder",
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
        Consolas, monospace;

    /* Neutrals */
    --ink: #070b18;
    --ink-2: #0d1425;
    --ink-3: #151d33;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --surface-3: #eef2fa;
    --line: #e3e9f4;
    --line-strong: #cfd9ec;
    --text: #0b1020;
    --text-2: #384258;
    --muted: #5a6478;
    --muted-2: #8994a8;

    /* Brand */
    --brand: #396bf6;
    --brand-600: #1d57f5;
    --brand-700: #1442c7;
    --brand-050: #eef3ff;
    --brand-100: #dbe5ff;

    /* Semantic */
    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;

    /* Default accent (overridden per division) */
    --accent: #396bf6;
    --accent-2: #7c3aed;
    --accent-soft: rgba(57, 107, 246, 0.10);
    --accent-line: rgba(57, 107, 246, 0.28);

    /* Elevation */
    --sh-xs: 0 1px 2px rgba(11, 16, 32, 0.06);
    --sh-sm: 0 2px 8px rgba(11, 16, 32, 0.06);
    --sh-md: 0 12px 32px rgba(11, 16, 32, 0.08);
    --sh-lg: 0 28px 70px rgba(11, 16, 32, 0.12);
    --sh-brand: 0 18px 48px rgba(57, 107, 246, 0.22);

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    /* Rhythm */
    --sp-section: 104px;
    --container: 1240px;
    --header-h: 72px;
}

/* --- Division accent themes ------------------------------------------- */
.acc-health  { --accent: #0ea5a4; --accent-2: #22c55e; --accent-soft: rgba(14,165,164,.10);  --accent-line: rgba(14,165,164,.30); }
.acc-vet     { --accent: #f59e0b; --accent-2: #f97316; --accent-soft: rgba(245,158,11,.10);  --accent-line: rgba(245,158,11,.32); }
.acc-pets    { --accent: #ec4899; --accent-2: #f43f5e; --accent-soft: rgba(236,72,153,.10);  --accent-line: rgba(236,72,153,.30); }
.acc-tech    { --accent: #396bf6; --accent-2: #7c3aed; --accent-soft: rgba(57,107,246,.10);  --accent-line: rgba(57,107,246,.30); }
.acc-chain   { --accent: #8b5cf6; --accent-2: #6366f1; --accent-soft: rgba(139,92,246,.10);  --accent-line: rgba(139,92,246,.30); }
.acc-cloud   { --accent: #06b6d4; --accent-2: #3b82f6; --accent-soft: rgba(6,182,212,.10);   --accent-line: rgba(6,182,212,.30); }

/* ==========================================================================
   2. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1400px; }

.section { padding: var(--sp-section) 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--alt { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line); }

.section--ink {
    background: var(--ink);
    color: #dfe5f2;
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .section-lede { color: #97a3bd; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--tight { gap: 16px; }
.grid--loose { gap: 40px; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
.split--top { align-items: start; }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--r-pill);
    padding: 6px 14px;
    margin-bottom: 22px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.section--ink .eyebrow { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #cbd6ef; }

.h-display {
    font-size: clamp(2.6rem, 5.4vw, 4.2rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.35rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.h2 {
    font-size: clamp(1.9rem, 3.1vw, 2.6rem);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.025em;
}
.h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
}
.h4 { font-size: 1.13rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.h5 { font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }

.lede {
    font-size: 1.16rem;
    line-height: 1.7;
    color: var(--muted);
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-lede { margin-top: 18px; font-size: 1.1rem; color: var(--muted); line-height: 1.72; }

.body-lg { font-size: 1.06rem; line-height: 1.75; color: var(--text-2); }
.body { color: var(--muted); line-height: 1.75; }
.small { font-size: 0.9rem; }
.mono {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.grad-text {
    background: linear-gradient(96deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.2s ease,
        border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--brand-600);
    color: #fff;
    box-shadow: var(--sh-brand);
}
.btn--primary:hover { background: var(--brand-700); color: #fff; }

.btn--accent {
background: white;
    color: #000000;
    box-shadow: 0 18px 44px var(--accent-soft);
}
.btn--accent:hover { filter: brightness(1.06); color: #fff; }

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); background: var(--brand-050); }

.btn--on-dark {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #eef2fa; color: var(--ink); }

.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.18s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ==========================================================================
   5. ICONS
   ========================================================================== */
.icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}
.icon--solid { fill: currentColor; stroke: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon-tile {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    flex: none;
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile--lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-tile--lg .icon { width: 30px; height: 30px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-tile--sm .icon { width: 20px; height: 20px; }
.icon-tile--solid {
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 26px var(--accent-soft);
}
.section--ink .icon-tile {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ==========================================================================
   6. HEADER / NAVIGATION
   ========================================================================== */
.announce {
    background: #0036cb;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 500;
    text-align: center;
    padding: 9px 44px 9px 20px;
    position: relative;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #fff;
    opacity: 0.75;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}
.announce__close:hover { opacity: 1; }
.announce.is-closed { display: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(11, 16, 32, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}
.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__brand img { width: 138px; height: 38px; object-fit: contain; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin-inline: auto;
}
.nav__item { position: relative; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-2);
    transition: background-color 0.18s ease, color 0.18s ease;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav__link:hover { background: var(--surface-3); color: var(--text); }
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--brand-600); }
.nav__link .icon { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav__item.is-open .nav__link .icon { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    place-items: center;
    cursor: pointer;
    color: var(--text);
}

/* --- Mega menu --------------------------------------------------------- */
.mega {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 8px);
    width: min(880px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 950;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.mega--sm { width: min(400px, calc(100vw - 48px)); }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mega__grid--1 { grid-template-columns: minmax(0, 1fr); }

.mega__item {
    display: flex;
    gap: 13px;
    padding: 12px;
    border-radius: 14px;
    transition: background-color 0.16s ease;
    align-items: flex-start;
}
.mega__item:hover { background: var(--surface-2); }
.mega__item .icon-tile { width: 40px; height: 40px; border-radius: 11px; }
.mega__item .icon-tile .icon { width: 19px; height: 19px; }
.mega__title { font-weight: 600; font-size: 0.95rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.mega__desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }

.mega__foot {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.mega__foot-note { font-size: 0.85rem; color: var(--muted); }

/* --- Mobile drawer ----------------------------------------------------- */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 100%);
    background: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(11, 16, 32, 0.18);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    flex: none;
}
.drawer__body { padding: 12px 14px 32px; overflow-y: auto; flex: 1; }
.drawer__close {
    width: 40px; height: 40px; border-radius: 11px;
    border: 1px solid var(--line); background: #fff;
    display: grid; place-items: center; cursor: pointer;
}
.drawer__group { border-bottom: 1px solid var(--line); padding: 4px 0; }
.drawer__group:last-child { border-bottom: 0; }
.drawer__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 10px;
    background: transparent;
    border: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}
.drawer__trigger .icon { width: 17px; height: 17px; color: var(--muted); transition: transform 0.2s ease; }
.drawer__group.is-open .drawer__trigger .icon { transform: rotate(180deg); }
.drawer__panel { display: none; padding: 0 10px 12px; }
.drawer__group.is-open .drawer__panel { display: block; }
.drawer__panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    font-size: 0.93rem;
    color: var(--muted);
    border-radius: 10px;
}
.drawer__panel a:hover { background: var(--surface-2); color: var(--text); }
.drawer__panel a .icon { width: 17px; height: 17px; color: var(--accent); }
.drawer__cta { margin-top: 20px; display: grid; gap: 10px; }

.scrim {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 24, 0.5);
    backdrop-filter: blur(2px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   7. HERO + CANVAS STAGES
   ========================================================================== */
.hero {
    position: relative;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 220px;
    background:linear-gradient(to bottom, rgba(7, 11, 24, 0), #002fc8);
    pointer-events: none;
    z-index: 1;
}
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.85;
}

/* --- Hero dot pattern ---------------------------------------------------
   A single flat dotted field at 25% opacity behind the hero copy. No canvas,
   no motion, no gradient theatrics.                                       */
.hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.25;
    background-image: radial-gradient(rgba(255, 255, 255, 0.85) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
    pointer-events: none;
}
.hero__glow {
    position: absolute;
    width: 900px;
    height: 900px;
    left: 50%;
    top: -420px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(57, 107, 246, 0.30) 0%, rgba(57, 107, 246, 0) 62%);
    pointer-events: none;
    z-index: 0;
}
.hero__inner {
    position: relative;
    z-index: 2;
    padding: 118px 0 128px;
    text-align: center;
}
.hero--split .hero__inner { text-align: left; padding: 104px 0 112px; }
.hero__title { color: #fff; max-width: 18ch; }
.hero--center .hero__title { margin-inline: auto; }
.hero__lede {
    margin-top: 24px;
    font-size: 1.18rem;
    line-height: 1.72;
    color: #a9b5cf;
    max-width: 62ch;
}
.hero--center .hero__lede { margin-inline: auto; }
.hero__actions { margin-top: 38px; }
.hero--center .hero__actions { justify-content: center; }

.hero__meta {
    margin-top: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    color: #8592ad;
    font-size: 0.88rem;
    align-items: center;
}
.hero--center .hero__meta { justify-content: center; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { width: 16px; height: 16px; color: var(--accent); }

.hero--page .hero__inner { padding: 86px 0 90px; }
.hero--doc { background: var(--ink); }
.hero--doc .hero__inner { padding: 74px 0 74px; text-align: left; }

/* Canvas stage â€” reusable framed canvas block */
.stage {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(160deg, #0b1225 0%, #070b18 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--sh-lg);
}
.stage--light {
    background: linear-gradient(160deg, #ffffff 0%, #f3f6fd 100%);
    border-color: var(--line);
}
.stage__canvas { width: 100%; height: 100%; display: block; }
.stage__head {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    z-index: 2;
    pointer-events: none;
}
.stage__title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-mono);
}
.stage--light .stage__title { color: var(--muted); }
.stage__dots { display: flex; gap: 6px; }
.stage__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); display: block; }
.stage--light .stage__dots i { background: var(--line-strong); }
.stage__foot {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    pointer-events: none;
}
.stage--light .stage__foot { color: var(--muted-2); }
.stage__legend { display: flex; align-items: center; gap: 7px; }
.stage__legend i { width: 8px; height: 8px; border-radius: 2px; display: block; }

.stage--h280 { height: 280px; }
.stage--h340 { height: 340px; }
.stage--h380 { height: 380px; }
.stage--h420 { height: 420px; }
.stage--h480 { height: 480px; }

/* Ticker of logos / stack chips */
.marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-2);
    white-space: nowrap;
}
.chip .icon { width: 15px; height: 15px; color: var(--accent); }
.chip--dark { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); color: #b6c1d8; }
.chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

/* ==========================================================================
   8. CARDS
   ========================================================================== */
.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card--hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-md);
    border-color: var(--accent-line);
}
.card__title { margin-top: 20px; font-size: 1.13rem; font-weight: 600; letter-spacing: -0.01em; }
.card__text { margin-top: 10px; color: var(--muted); font-size: 0.96rem; line-height: 1.68; }
.card__foot { margin-top: auto; padding-top: 20px; }
.card--flat { border-radius: var(--r-md); padding: 24px; }
.card--dark {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
    color: #cdd6e8;
}
.card--dark .card__text { color: #93a0ba; }
.card--dark .card__title { color: #fff; }

/* --- Division card ----------------------------------------------------- */
.division-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
    height: 100%;
}
.division-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--accent-line);
}
.division-card__bar { height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.division-card__body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.division-card__head { display: flex; align-items: center; gap: 15px; }
.division-card__name { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.015em; }
.division-card__kind {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 2px;
}
.division-card__text { margin-top: 18px; color: var(--muted); line-height: 1.7; font-size: 0.97rem; }
.division-card__list { list-style: none; margin: 20px 0 0; display: grid; gap: 9px; }
.division-card__list li {
    display: flex;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--text-2);
    align-items: flex-start;
}
.division-card__list .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.division-card__foot {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.division-card__stat { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); }

/* --- Feature list ------------------------------------------------------ */
.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature__title { font-size: 1.03rem; font-weight: 600; }
.feature__text { margin-top: 6px; color: var(--muted); font-size: 0.94rem; line-height: 1.68; }
.section--ink .feature__text { color: #94a1bb; }

/* --- Stats ------------------------------------------------------------- */
.stat {
    padding: 26px 24px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: #fff;
}
.stat__value {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(96deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat__label { margin-top: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.section--ink .stat { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.09); }
.stat--bare { background: transparent; border: 0; padding: 0; }

/* --- Stack / spec card ------------------------------------------------- */
.spec {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
}
.spec__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 22px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.95rem;
}
.spec__head .icon { width: 19px; height: 19px; color: var(--accent); }
.spec__rows { list-style: none; }
.spec__row {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.spec__row:last-child { border-bottom: 0; }
.spec__key { color: var(--muted); font-weight: 500; }
.spec__val { color: var(--text-2); }
.spec__val code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-3);
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--text);
}

/* --- Metric strip ------------------------------------------------------ */
.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
}
.metric {
    padding: 26px 24px;
    border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.metric__value { margin-top: 10px; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.028em; }
.metric__delta { margin-top: 6px; font-size: 0.82rem; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.metric__delta .icon { width: 14px; height: 14px; }

/* --- Group architecture diagram ---------------------------------------- */
.arch {
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fe 100%);
    padding: 30px;
    box-shadow: var(--sh-md);
}
.arch__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 14px;
}
.arch__core {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--r-md);
    background: linear-gradient(120deg, #0b1225 0%, #16224a 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(11, 18, 37, 0.28);
}
.arch__core .icon-tile {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.arch__core-name { font-weight: 600; font-size: 1.06rem; letter-spacing: -0.015em; }
.arch__core-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fa0c4;
    margin-top: 3px;
}
.arch__core-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: #93b4ff;
    border: 1px solid rgba(147, 180, 255, 0.32);
    background: rgba(57, 107, 246, 0.16);
    border-radius: 6px;
    padding: 5px 9px;
    white-space: nowrap;
}
.arch__wires { display: block; width: 100%; height: 34px; }
.arch__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.arch__node {
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    border-radius: 10px;
    background: #fff;
    padding: 14px 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: block;
}
.arch__node:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-sm);
    border-color: var(--accent-line);
    border-top-color: var(--accent);
}
.arch__node .icon-tile { width: 32px; height: 32px; border-radius: 9px; }
.arch__node .icon-tile .icon { width: 16px; height: 16px; }
.arch__node-name {
    margin-top: 11px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.arch__node-kind {
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.arch__rail {
    margin-top: 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: var(--surface-2);
    padding: 14px 16px;
}
.arch__rail-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
}
.arch__rail-head .icon { width: 16px; height: 16px; color: var(--brand); }
.arch__rail-items {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.arch__pill {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 4px 8px;
    white-space: nowrap;
}
@media (max-width: 620px) {
    .arch { padding: 22px; }
    .arch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .arch__core { flex-wrap: wrap; }
    .arch__core-badge { margin-left: 0; }
}

/* --- Logo / brand tile ------------------------------------------------- */
.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}
.brandmark__glyph {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    color: #fff;
    display: grid;
    place-items: center;
    flex: none;
    box-shadow: 0 8px 22px var(--accent-soft);
}
.brandmark__glyph .icon { width: 21px; height: 21px; }
.brandmark__name { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.brandmark__sub { font-size: 0.78rem; color: var(--muted); }

/* ==========================================================================
   9. CONTENT MODULES
   ========================================================================== */
/* --- Check list -------------------------------------------------------- */
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); line-height: 1.65; }
.checks .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; flex: none; }
.section--ink .checks li { color: #b3bed4; }

/* --- Timeline ---------------------------------------------------------- */
.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
    content: "";
    position: absolute;
    left: 9px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
    opacity: 0.4;
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -34px; top: 6px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline__year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.06em; }
.timeline__title { font-size: 1.05rem; font-weight: 600; margin-top: 4px; }
.timeline__text { margin-top: 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.section--ink .timeline li::before { background: var(--ink); }

/* --- Numbered process -------------------------------------------------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
}
.step__n {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
}
.step__title { margin-top: 12px; font-size: 1.05rem; font-weight: 600; }
.step__text { margin-top: 9px; font-size: 0.93rem; color: var(--muted); line-height: 1.68; }
.step__meta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--muted-2);
    font-family: var(--font-mono);
}
.step__meta .icon { width: 14px; height: 14px; }

/* --- Accordion --------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    background: transparent;
    border: 0;
    text-align: left;
    font-size: 1.03rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}
.acc-trigger .icon { width: 20px; height: 20px; color: var(--accent); transition: transform 0.24s ease; flex: none; }
.acc-item.is-open .acc-trigger .icon { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel__inner { overflow: hidden; }
.acc-panel__inner > div { padding: 0 4px 24px; color: var(--muted); line-height: 1.75; max-width: 76ch; }

/* --- Tabs -------------------------------------------------------------- */
.tabs__list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    width: max-content;
    max-width: 100%;
}
.tabs__btn {
    padding: 10px 20px;
    border-radius: var(--r-pill);
    border: 0;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tabs__btn .icon { width: 17px; height: 17px; }
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: var(--sh-xs); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp 0.34s ease both; }

/* --- Quote ------------------------------------------------------------- */
.quote {
    border-left: 3px solid var(--accent);
    padding-left: 26px;
}
.quote__text { font-size: 1.2rem; line-height: 1.65; color: var(--text); letter-spacing: -0.01em; }
.quote__by { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* --- Data table -------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 620px;
}
table.data th, table.data td {
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.data thead th {
    background: var(--surface-2);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td strong { font-weight: 600; color: var(--text); }

/* --- CTA band ---------------------------------------------------------- */
.cta-band {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(120deg, #0b1225 0%, #101a35 48%, #0b1225 100%);
    padding: 64px 56px;
    color: #fff;
    isolation: isolate;
}
.cta-band__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55; }
.cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    flex-wrap: wrap;
}
.cta-band__title { font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; max-width: 20ch; }
.cta-band__text { margin-top: 14px; color: #9fabc6; max-width: 52ch; line-height: 1.7; }

/* --- Pill badge / status ----------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-line);
}
.badge--ok { background: rgba(16, 185, 129, 0.1); color: #059669; border-color: rgba(16, 185, 129, 0.28); }
.badge--warn { background: rgba(245, 158, 11, 0.1); color: #b45309; border-color: rgba(245, 158, 11, 0.28); }
.badge--neutral { background: var(--surface-3); color: var(--muted); border-color: var(--line); }
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    display: inline-block;
    animation: pulse 2.4s ease-in-out infinite;
}

/* --- Code block -------------------------------------------------------- */
.code {
    background: #080d1c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    overflow: hidden;
}
.code__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}
.code pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.79rem;
    line-height: 1.75;
    color: #c6d2ea;
    tab-size: 2;
}
.code .t-key { color: #7dd3fc; }
.code .t-str { color: #86efac; }
.code .t-num { color: #fca5a5; }
.code .t-com { color: #5a6a8c; font-style: italic; }
.code .t-fn { color: #c4b5fd; }

/* ==========================================================================
   10. FORMS
   ========================================================================== */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 36px;
    box-shadow: var(--sh-sm);
}
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-2);
}
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    font-size: 0.96rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(57, 107, 246, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field__hint { margin-top: 7px; font-size: 0.8rem; color: var(--muted-2); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.check-field { display: flex; gap: 11px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.check-field input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }

.form-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 0.83rem;
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.form-note .icon { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; flex: none; }

.form-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
    gap: 10px;
    align-items: flex-start;
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.28); color: #047857; }
.form-status--err { background: rgba(239, 68, 68, 0.07); border: 1px solid rgba(239, 68, 68, 0.26); color: #b91c1c; }
.form-status .icon { width: 18px; height: 18px; margin-top: 1px; flex: none; }

/* --- Contact detail rows ----------------------------------------------- */
.contact-rows { list-style: none; display: grid; gap: 6px; }
.contact-row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.contact-row__value { margin-top: 5px; color: var(--text-2); line-height: 1.65; font-size: 0.97rem; }
.contact-row__value a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); }
.contact-row__value a:hover { color: var(--brand-600); border-color: var(--brand); }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--ink);
    color: #8e9ab4;
    padding: 80px 0 34px;
    font-size: 0.92rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
    gap: 48px 32px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img {
    width: 181px;
    height: 61px;
    filter: invert(1);
    object-fit: contain;
}
.footer-brand p { margin-top: 20px; line-height: 1.72; max-width: 34ch; color: #8e9ab4; }

.footer-col h4 {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: #8e9ab4; transition: color 0.16s ease; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col li { line-height: 1.55; }
.tag-new {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    background: rgba(57, 107, 246, 0.18);
    color: #93b4ff;
    border: 1px solid rgba(57, 107, 246, 0.35);
}
.tag-new--hiring { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.32); }

.footer-mid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 56px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-contact-item { display: flex; gap: 13px; align-items: flex-start; }
.footer-contact-item .icon { width: 19px; height: 19px; color: var(--brand); margin-top: 3px; flex: none; }
.footer-contact-item h5 { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: #ffffff; font-weight: 600; }
.footer-contact-item p { margin-top: 6px; line-height: 1.6; color: #8e9ab4; font-size: 0.88rem; }
.footer-contact-item a { color: #8e9ab4; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.83rem;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal-links a { color: #8e9ab4; }
.footer-legal-links a:hover { color: #fff; }
.footer-compliance { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-badge-row { display: flex; gap: 10px; align-items: center; }
.footer-badge-row img { height: 32px; width: auto; opacity: 0.7; filter: grayscale(1) brightness(1.6); }
.footer-badge-row img:hover { opacity: 1; filter: none; }
.footer-status { display: inline-flex; align-items: center; gap: 9px; color: #9fb0cc; }

/* ==========================================================================
   12. LEGAL / DOCUMENT PAGES
   ========================================================================== */
.doc-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.doc-nav {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    background: var(--surface-2);
}
.doc-nav h4 {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 14px;
}
.doc-nav ul { list-style: none; display: grid; gap: 3px; }
.doc-nav a {
    display: block;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.45;
}
.doc-nav a:hover { background: #fff; color: var(--text); }
.doc-nav a.is-active { background: #fff; color: var(--brand-600); font-weight: 600; box-shadow: var(--sh-xs); }

.doc { max-width: 78ch; }
.doc h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 56px 0 16px;
    scroll-margin-top: 110px;
    padding-top: 4px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; font-weight: 600; margin: 30px 0 10px; }
.doc p { margin: 0 0 16px; color: var(--text-2); line-height: 1.8; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-2); line-height: 1.8; }
.doc li { margin-bottom: 9px; }
.doc a { border-bottom: 1px solid var(--brand-100); }
.doc strong { font-weight: 600; color: var(--text); }
.doc code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-3);
    padding: 2px 7px;
    border-radius: 6px;
}
.doc .table-wrap { margin: 0 0 24px; }

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
    margin-bottom: 44px;
    font-size: 0.86rem;
    color: var(--muted);
}
.doc-meta span { display: inline-flex; align-items: center; gap: 8px; }
.doc-meta .icon { width: 16px; height: 16px; color: var(--brand); }

.callout {
    display: flex;
    gap: 14px;
    padding: 20px 22px;
    border-radius: var(--r-md);
    background: var(--brand-050);
    border: 1px solid var(--brand-100);
    margin: 0 0 26px;
}
.callout .icon { width: 21px; height: 21px; color: var(--brand-600); flex: none; margin-top: 2px; }
.callout p { margin: 0; font-size: 0.94rem; color: var(--text-2); line-height: 1.72; }
.callout p + p { margin-top: 10px; }
.callout--warn { background: rgba(245, 158, 11, 0.07); border-color: rgba(245, 158, 11, 0.28); }
.callout--warn .icon { color: #b45309; }
.callout--danger { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.24); }
.callout--danger .icon { color: #b91c1c; }

/* ==========================================================================
   13. UTILITIES
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

.text-center { text-align: center; }
.center-x { margin-inline: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.full { width: 100%; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   14. MOTION & REVEAL
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.66s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.66s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
}

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

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .footer-top { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
    .footer-col--last { grid-column: span 3; }
}

@media (max-width: 1080px) {
    :root { --sp-section: 84px; }
    .nav__list { display: none; }
    .nav__toggle { display: grid; }
    .nav__actions .btn--desktop { display: none; }
    .split, .split--wide-left, .split--wide-right { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .doc-nav { position: static; }
    .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric:nth-child(2) { border-right: 0; }
    .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
    .footer-brand { grid-column: span 2; }
    .footer-col--last { grid-column: span 2; }
    .cta-band { padding: 44px 30px; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .spec__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .hero__inner { padding: 84px 0 92px; }
}

@media (max-width: 620px) {
    :root { --sp-section: 68px; }
    .container { padding-inline: 20px; }
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .metric-strip { grid-template-columns: minmax(0, 1fr); }
    .metric { border-right: 0; border-bottom: 1px solid var(--line); }
    .metric:last-child { border-bottom: 0; }
    .card, .division-card__body { padding: 24px; }
    .form-card { padding: 26px 22px; }
    .footer-top { grid-template-columns: minmax(0, 1fr); }
    .footer-brand, .footer-col--last { grid-column: span 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .stage--h420, .stage--h480 { height: 340px; }
    .hero__meta { gap: 10px 18px; }
    .tabs__list { width: 100%; }
}
