/* ==========================================================================
   TechnoBeez Design System
   Enterprise Visibility & Operational Intelligence
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Surfaces & theming
   6.  Buttons & links
   7.  Header / navigation
   8.  Hero & page headers
   9.  Cards & content components
   10. Process / steps
   11. Product mockup (Edge360)
   12. Accordion / FAQ
   13. Forms
   14. CTA bands
   15. Footer
   16. Motion & reveal
   17. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
    /* --- Brand (sampled from the TechnoBeez mark) --- */
    --brand-700: #01379a;
    --brand-600: #0148c2; /* primary logo blue */
    --brand-500: #1f6bf0;
    --brand-400: #4f8cf6;
    --brand-200: #b9d1fc;
    --brand-50:  #eef4fe;

    --navy-950: #000b1f;
    --navy-900: #01153a; /* logo dark field */
    --navy-800: #0a2150;
    --navy-700: #143069;

    --ink-900: #1d2731; /* logo charcoal */

    /* --- Neutrals (cool, tuned to the navy) --- */
    --n-0:   #ffffff;
    --n-25:  #fbfcfe;
    --n-50:  #f5f7fb;
    --n-100: #edf0f6;
    --n-150: #e4e9f2;
    --n-200: #d8deea;
    --n-300: #bfc8da;
    --n-400: #97a3bb;
    --n-500: #6d7a94;
    --n-600: #4e5b75;
    --n-700: #37425a;
    --n-800: #212c44;
    --n-900: #101a30;

    /* --- Semantic tokens (re-declared by .theme-dark) --- */
    --surface: var(--n-0);
    --surface-2: var(--n-50);
    --text-strong: var(--navy-900);
    --text: var(--n-600);
    --text-muted: var(--n-500);
    --border: var(--n-150);
    --border-strong: var(--n-300);
    --accent: var(--brand-600);
    --grid-line: rgba(1, 21, 58, 0.055);

    /* --- Type --- */
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* --- Rhythm --- */
    --section-y: clamp(4.5rem, 8vw, 8rem);
    --container: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --header-h: 76px;

    /* --- Radius --- */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-full: 999px;

    /* --- Elevation (navy tinted) --- */
    --sh-xs: 0 1px 2px rgba(1, 21, 58, 0.06);
    --sh-sm: 0 1px 3px rgba(1, 21, 58, 0.07), 0 1px 2px rgba(1, 21, 58, 0.04);
    --sh-md: 0 6px 16px -4px rgba(1, 21, 58, 0.10), 0 2px 6px -2px rgba(1, 21, 58, 0.06);
    --sh-lg: 0 18px 40px -12px rgba(1, 21, 58, 0.16), 0 6px 14px -6px rgba(1, 21, 58, 0.08);
    --sh-xl: 0 36px 70px -24px rgba(1, 21, 58, 0.24), 0 12px 26px -12px rgba(1, 21, 58, 0.10);
    --sh-focus: 0 0 0 3px rgba(31, 107, 240, 0.32);

    /* --- Motion --- */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 160ms var(--ease-out);
    --t-base: 260ms var(--ease-out);
    --t-slow: 640ms var(--ease-out);
}

/* Dark theme scope — components inherit automatically */
.theme-dark {
    --surface: var(--navy-900);
    --surface-2: var(--navy-800);
    --text-strong: #ffffff;
    --text: #b3c0d8;
    --text-muted: #8493b0;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);
    --accent: var(--brand-400);
    --grid-line: rgba(255, 255, 255, 0.045);
    color-scheme: dark;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--n-0);
    color: var(--n-600);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    font-feature-settings: 'cv05' 1, 'ss03' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul,
ol {
    list-style: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--brand-600);
    color: #fff;
}

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

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%);
    z-index: 2000;
    background: var(--navy-900);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--r-md) var(--r-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform var(--t-fast);
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--text-strong);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 1.35rem + 3.5vw, 4.05rem);
    letter-spacing: -0.032em;
    line-height: 1.04;
}

h2 {
    font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.85rem);
    letter-spacing: -0.028em;
    line-height: 1.08;
}

h3 {
    font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
    letter-spacing: -0.018em;
    line-height: 1.25;
}

h4 {
    font-size: 1.0625rem;
    letter-spacing: -0.012em;
}

p {
    color: var(--text);
    text-wrap: pretty;
}

.lead {
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--text);
}

.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.measure-lg { max-width: 74ch; }

strong { color: var(--text-strong); font-weight: 600; }

/* Eyebrow label — mono, with hex tick */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.eyebrow::before {
    content: '';
    width: 10px;
    height: 11px;
    background: currentColor;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex: none;
}

.eyebrow--plain::before { display: none; }

/* Section heading block */
.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.section-head p {
    margin-top: 1.15rem;
    font-size: 1.0625rem;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head--center .eyebrow { justify-content: center; }

/* Rule + label combo used above column groups */
.rule-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.rule-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }
.container--wide { max-width: 1400px; }

section { position: relative; }

.section {
    padding-block: var(--section-y);
}

.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--flush-top { padding-top: 0; }

.grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.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)); }

/* Editorial split: sticky heading beside flowing body copy */
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.split__aside { position: sticky; top: calc(var(--header-h) + 3rem); }

.split__body > p + p { margin-top: 1.25rem; }
.split__body p { font-size: 1.0625rem; }

.callout {
    padding: 1.5rem 1.75rem;
    border-left: 2px solid var(--accent);
    background: var(--surface-2);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.callout p {
    color: var(--text-strong);
    font-weight: 500;
    font-size: 1.0625rem;
}

.split__body .callout { margin-top: 2rem; }

.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack-lg > * + * { margin-top: 2rem; }

.center { text-align: center; }
.mt-6 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }

/* ==========================================================================
   5. Surfaces & theming
   ========================================================================== */

.surface-alt {
    background: var(--n-50);
    border-block: 1px solid var(--n-150);
}

.theme-dark {
    background: var(--navy-900);
    color: var(--text);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4 { color: #fff; }

/* Technical backdrops --------------------------------------------------- */

/* Fine engineering grid */
.bg-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
    pointer-events: none;
}

/* Honeycomb texture tied to the brand mark */
.bg-hex::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.075;
    background-image: url('assets/hex-pattern.svg');
    background-size: 56px 97px;
    -webkit-mask-image: radial-gradient(ellipse 65% 75% at 88% 25%, #000 0%, transparent 72%);
            mask-image: radial-gradient(ellipse 65% 75% at 88% 25%, #000 0%, transparent 72%);
    pointer-events: none;
}

/* Soft brand glow */
.bg-glow::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(1100px, 120%);
    aspect-ratio: 1.6;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(31, 107, 240, 0.28) 0%, rgba(31, 107, 240, 0.08) 42%, transparent 70%);
    pointer-events: none;
}

.bg-grid > *,
.bg-hex > *,
.bg-glow > * { position: relative; z-index: 1; }

/* ==========================================================================
   6. Buttons & links
   ========================================================================== */

.btn {
    --btn-bg: var(--brand-600);
    --btn-fg: #fff;
    --btn-bd: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.006em;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    transition: background var(--t-fast), border-color var(--t-fast),
                color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast);
}

.btn svg { flex: none; width: 16px; height: 16px; }
.btn .btn__arrow { transition: transform var(--t-base); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
    --btn-bg: var(--brand-600);
    box-shadow: 0 1px 2px rgba(1, 21, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
    --btn-bg: var(--brand-700);
    box-shadow: 0 8px 20px -8px rgba(1, 72, 194, 0.6);
}

.btn-secondary {
    --btn-bg: transparent;
    --btn-fg: var(--text-strong);
    --btn-bd: var(--border-strong);
}

.btn-secondary:hover {
    --btn-bg: var(--surface-2);
    --btn-bd: var(--text-strong);
}

.theme-dark .btn-secondary:hover { --btn-bg: rgba(255, 255, 255, 0.08); }

.btn-inverse {
    --btn-bg: #fff;
    --btn-fg: var(--navy-900);
}

.btn-inverse:hover {
    --btn-bg: var(--brand-50);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.btn-lg { padding: 1.0625rem 1.875rem; font-size: 1rem; }
.btn-sm { padding: 0.625rem 1.05rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* Text link with sliding arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--t-base), color var(--t-fast);
}

.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t-base); }
.link-arrow:hover { gap: 0.75rem; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ==========================================================================
   7. Header / navigation
   ========================================================================== */

/* Every page opens on a dark hero, so the bar starts transparent and only
   resolves into the light glass treatment once the page scrolls (or the
   mobile drawer opens over it). */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.site-header.is-scrolled,
body.nav-open .site-header {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
            backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--n-150);
    box-shadow: 0 1px 20px -8px rgba(1, 21, 58, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
    margin-right: auto;
    border-radius: var(--r-sm);
}

.brand img {
    height: 32px;
    width: auto;
    transition: opacity var(--t-base);
}

/* Two lockups cross-fade with the bar's state */
.brand__ink {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

.site-header.is-scrolled .brand__inverse,
body.nav-open .site-header .brand__inverse { opacity: 0; }

.site-header.is-scrolled .brand__ink,
body.nav-open .site-header .brand__ink { opacity: 1; }

.brand:hover { opacity: 0.82; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links > li { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.74);
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

.nav-link.active {
    color: #fff;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: -0.4rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-400);
}

.site-header.is-scrolled .nav-link,
body.nav-open .site-header .nav-link { color: var(--n-600); }

.site-header.is-scrolled .nav-link:hover,
body.nav-open .site-header .nav-link:hover { color: var(--navy-900); background: var(--n-50); }

.site-header.is-scrolled .nav-link.active,
body.nav-open .site-header .nav-link.active { color: var(--navy-900); }

.site-header.is-scrolled .nav-link.active::after,
body.nav-open .site-header .nav-link.active::after { background: var(--brand-600); }

.nav-link .chev {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: transform var(--t-base);
}

.has-menu:hover .nav-link .chev,
.has-menu.is-open .nav-link .chev { transform: rotate(180deg); }

.nav-cta { flex: none; }

/* Dropdown menu */
.nav-menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 50%;
    transform: translate(-50%, 8px);
    width: 620px;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--n-150);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: -0.9rem;
    left: 0;
    right: 0;
    height: 0.9rem;
}

.has-menu:hover .nav-menu,
.has-menu:focus-within .nav-menu,
.has-menu.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-menu__item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem;
    border-radius: var(--r-md);
    transition: background var(--t-fast);
}

.nav-menu__item:hover { background: var(--n-50); }

.nav-menu__icon {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid #dfeafd;
}

.nav-menu__icon svg { width: 18px; height: 18px; }

.nav-menu__title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy-900);
    letter-spacing: -0.012em;
}

.nav-menu__desc {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--n-500);
    margin-top: 0.15rem;
}

.nav-menu__footer {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    padding: 0.9rem 0.875rem;
    border-top: 1px solid var(--n-150);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--n-500);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color var(--t-base);
}

.site-header.is-scrolled .nav-toggle,
body.nav-open .site-header .nav-toggle { border-color: var(--n-200); }

.nav-toggle__bars {
    position: relative;
    width: 17px;
    height: 11px;
}

.nav-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.75px;
    border-radius: 2px;
    background: #fff;
    transition: transform var(--t-base), opacity var(--t-fast), top var(--t-base), background var(--t-base);
}

.site-header.is-scrolled .nav-toggle__bars span,
body.nav-open .site-header .nav-toggle__bars span { background: var(--navy-900); }

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 4.6px; }
.nav-toggle__bars span:nth-child(3) { top: 9.2px; }

.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { top: 4.6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { top: 4.6px; transform: rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 999;
    background: #fff;
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}

.nav-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drawer__group + .nav-drawer__group {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--n-150);
}

.nav-drawer__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--n-400);
    margin-bottom: 0.5rem;
    display: block;
}

.nav-drawer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--navy-900);
    border-bottom: 1px solid var(--n-100);
}

.nav-drawer a svg {
    flex: none;
    width: 17px;
    height: 17px;
    color: var(--n-400);
}

.nav-drawer a.active,
.nav-drawer a.active svg { color: var(--brand-600); }
.nav-drawer .btn { margin-top: 1.75rem; border-bottom: 0; }
.nav-drawer .btn:hover { color: #fff; }

body.nav-open { overflow: hidden; }

/* ==========================================================================
   8. Hero & page headers
   ========================================================================== */

.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem));
    padding-bottom: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    isolation: isolate;
}

.hero::after { z-index: 0; }

.hero__inner { position: relative; z-index: 2; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    color: #c7d4ea;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}

.hero__badge b {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: var(--r-full);
    background: var(--brand-600);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 { max-width: 19ch; }

.hero h1 em {
    font-style: normal;
    color: var(--brand-400);
}

.hero__lead {
    margin-top: 1.75rem;
    max-width: 60ch;
    font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
    line-height: 1.6;
    color: #b3c0d8;
}

.hero .btn-group { margin-top: 2.5rem; }

/* Stat strip beneath the hero */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stat {
    background: var(--surface);
    padding: 1.75rem 1.5rem;
    transition: background var(--t-base);
}

.stat:hover { background: var(--surface-2); }

.stat .icon-tile {
    width: 40px;
    height: 40px;
    margin-bottom: 1.1rem;
}

.stat .icon-tile svg { width: 19px; height: 19px; }

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
}

.stat__label {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Word-based rail rather than numeric counters */
.stat-strip--rail .stat__value {
    font-size: 1.0625rem;
    letter-spacing: -0.018em;
    line-height: 1.3;
}

/* Compact page header for interior pages */
.page-header {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(3.25rem, 6vw, 5.5rem));
    padding-bottom: clamp(3.25rem, 6vw, 5rem);
    overflow: hidden;
    isolation: isolate;
}

.page-header__inner { position: relative; z-index: 2; }

/* Header variant with a supporting panel beside the copy */
.page-header__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.page-header h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.35rem + 2.8vw, 3.4rem); }

.page-header__lead {
    margin-top: 1.375rem;
    max-width: 62ch;
    font-size: clamp(1rem, 0.97rem + 0.35vw, 1.1875rem);
    line-height: 1.6;
    color: #b3c0d8;
}

.page-header .btn-group { margin-top: 2.25rem; }

/* Breadcrumb */
.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: #7f8fae;
}

.crumbs a { transition: color var(--t-fast); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: var(--brand-400); }
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: '/'; color: #4a5b7c; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Note panel inside dark headers */
.header-note {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: start;
}

.header-note h2 {
    font-size: 1.0625rem;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.header-note p {
    color: #a4b3cd;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* ==========================================================================
   9. Cards & content components
   ========================================================================== */

/* Icon tile */
.icon-tile {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: var(--r-md);
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid #e0eafd;
    transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.icon-tile svg { width: 22px; height: 22px; }

.icon-tile--xl {
    width: 68px;
    height: 68px;
    border-radius: var(--r-lg);
}

.icon-tile--xl svg { width: 30px; height: 30px; }

.icon-tile--display {
    width: 92px;
    height: 92px;
    border-radius: var(--r-lg);
}

.icon-tile--display svg { width: 40px; height: 40px; }

.theme-dark .icon-tile {
    background: rgba(79, 140, 246, 0.12);
    border-color: rgba(79, 140, 246, 0.26);
    color: var(--brand-400);
}

/* Card grid with hairline seams */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--surface);
    transition: background var(--t-base);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}

.card:hover { background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card:hover .icon-tile { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.theme-dark .card:hover .icon-tile { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

.card__index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.card h3 { margin-top: 0.15rem; }

.card p {
    font-size: 0.9688rem;
    line-height: 1.6;
    flex: 1;
}

.card .link-arrow { margin-top: auto; }

.card--empty { background: var(--surface-2); }
.card--empty:hover::before { display: none; }

/* Wide card that spans the grid */
.card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--surface-2);
}

.card--wide > div { flex: 1; }

/* Standalone bordered cards (no seam grid) */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.375rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.tile:hover {
    border-color: var(--brand-200);
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}

.theme-dark .tile:hover { border-color: rgba(79, 140, 246, 0.4); }

.tile h3 { font-size: 1rem; line-height: 1.35; }
.tile .icon-tile { width: 40px; height: 40px; }
.tile .icon-tile svg { width: 19px; height: 19px; }

/* Feature list — bordered items */
.feature-list { display: grid; gap: 0; }

.feature-item {
    position: relative;
    padding: 1.75rem 0 1.75rem 1.75rem;
    border-left: 2px solid var(--border);
    transition: border-color var(--t-base);
}

.feature-item:first-child { padding-top: 0; }
.feature-item:last-child { padding-bottom: 0; }
.feature-item:hover { border-left-color: var(--accent); }

.feature-item h3 { margin-bottom: 0.6rem; }
.feature-item p { font-size: 0.9688rem; }

.feature-item__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

/* Pill list for technologies/protocols */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.pill {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

.theme-dark .pill { background: rgba(255, 255, 255, 0.04); }

a.pill {
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

a.pill:hover {
    color: var(--brand-600);
    border-color: var(--brand-200);
    background: var(--brand-50);
}

.theme-dark a.pill:hover {
    color: #fff;
    border-color: rgba(79, 140, 246, 0.45);
    background: rgba(79, 140, 246, 0.14);
}

/* Article / resource card */
.article-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.article-card:hover {
    border-color: var(--brand-200);
    box-shadow: var(--sh-lg);
    transform: translateY(-3px);
}

.article-card__visual {
    position: relative;
    min-height: 200px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(31, 107, 240, 0.35), transparent 60%),
        linear-gradient(140deg, var(--navy-900), var(--navy-800));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.article-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url('assets/hex-pattern.svg');
    background-size: 46px 80px;
}

.article-card__body { padding: clamp(1.75rem, 3vw, 2.75rem); }

.tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-xs);
    background: var(--brand-50);
    color: var(--brand-700);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.meta-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.meta-links a { color: var(--accent); font-weight: 500; }
.meta-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta-links .sep { color: var(--border-strong); }

/* Quote / belief panel */
.panel {
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.panel--accent {
    background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
    border-color: rgba(255, 255, 255, 0.1);
    color: #b3c0d8;
    position: relative;
    overflow: hidden;
}

.panel--accent h3 { color: #fff; }
.panel--accent p { color: #a4b3cd; }

/* Translucent panel for use over the dark hero backdrops */
.panel--glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

/* Hex-marked list, for criteria and requirements */
.checklist { display: grid; gap: 0.9rem; }

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.9688rem;
    line-height: 1.5;
    color: var(--text);
}

.checklist li::before {
    content: '';
    flex: none;
    width: 9px;
    height: 10px;
    margin-top: 0.45rem;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Governance annotation — a technical note, not an alarm */
.status-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-note::before {
    content: '';
    width: 8px;
    height: 9px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Long-form article body (case studies, guides) --------------------------- */
.prose { max-width: 68ch; }

.prose > p { font-size: 1.0625rem; }
.prose > p + p { margin-top: 1.25rem; }

.prose > h2 {
    margin-top: clamp(2.75rem, 5vw, 3.75rem);
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem);
}

.prose > h2:first-child { margin-top: 0; }

.prose > h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.7rem;
}

.prose > .callout,
.prose > .pill-list { margin-top: 1.75rem; }

.prose .rule-divider {
    margin-top: clamp(2.75rem, 5vw, 3.75rem);
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.prose .rule-divider h3 { margin-bottom: 1rem; }

/* Pull quote ------------------------------------------------------------- */
.quote {
    margin-top: clamp(2.75rem, 5vw, 3.75rem);
    padding-left: 1.75rem;
    border-left: 2px solid var(--accent);
}

.quote p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    line-height: 1.35;
    letter-spacing: -0.022em;
    color: var(--text-strong);
    font-weight: 500;
}

.quote figcaption {
    display: block;
    margin-top: 1.125rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* ==========================================================================
   10. Process / steps
   ========================================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(var(--step-cols, 5), minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 2.75rem;
}

.step::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 0;
    right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
    height: 1px;
    background: var(--border);
}

.step:last-child::before { right: 0; }

.step::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 11px;
    height: 12px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.step__num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.step h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; line-height: 1.55; }

/* Vertical timeline variant */
.timeline { display: grid; gap: 0; }

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(1rem, 4vw, 3rem);
    padding: 2rem 0 2rem 2.5rem;
    border-left: 1px solid var(--border);
}

.timeline__item:last-child { border-left-color: transparent; }

.timeline__item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 2.35rem;
    width: 11px;
    height: 12px;
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--surface);
    border: 0;
    background-color: var(--border-strong);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background-color var(--t-base);
}

.timeline__item:hover::before { background-color: var(--accent); }

.timeline__step {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline__item h3 { font-size: 1.1875rem; }
.timeline__item p { font-size: 0.9688rem; }

/* ==========================================================================
   11. Product mockup (Edge360)
   ========================================================================== */

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.mockup {
    position: relative;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, #0b1c40, #061631);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--sh-xl), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    font-family: var(--font-body);
}

.mockup__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.mockup__dots { display: flex; gap: 0.35rem; }

.mockup__dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.mockup__title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8ea3c6;
}

.mockup__live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4fd1a5;
}

.mockup__live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4fd1a5;
    box-shadow: 0 0 0 0 rgba(79, 209, 165, 0.6);
    animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(79, 209, 165, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(79, 209, 165, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 209, 165, 0); }
}

.mockup__body { padding: 1.15rem; display: grid; gap: 0.85rem; }

.mockup__kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.mockup__kpi {
    padding: 0.8rem 0.85rem;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.mockup__kpi span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7e91b3;
}

.mockup__kpi b {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.mockup__chart {
    height: 92px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.65rem;
}

.mockup__chart svg { width: 100%; height: 100%; overflow: visible; }

.mockup__table {
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.mockup__row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
    color: #b3c0d8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.mockup__row:last-child { border-bottom: 0; }

.mockup__row--head {
    background: rgba(255, 255, 255, 0.035);
    font-family: var(--font-mono);
    font-size: 0.5938rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7e91b3;
}

.mockup__vendor {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #dbe4f3;
}

.mockup__vendor i {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: rgba(79, 140, 246, 0.22);
    border: 1px solid rgba(79, 140, 246, 0.36);
    flex: none;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--r-full);
    font-family: var(--font-mono);
    font-size: 0.5938rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    justify-self: start;
}

.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--ok { background: rgba(79, 209, 165, 0.12); color: #4fd1a5; }
.status--warn { background: rgba(240, 180, 41, 0.12); color: #f0b429; }
.status--sync { background: rgba(79, 140, 246, 0.14); color: #6f9df8; }

/* Floating annotation chip */
.mockup-note {
    position: absolute;
    right: -1.75rem;
    bottom: -1.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.95rem;
    background: #fff;
    border: 1px solid var(--n-150);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--navy-900);
    max-width: 240px;
}

.mockup-note .icon-tile { width: 32px; height: 32px; border-radius: var(--r-sm); }
.mockup-note .icon-tile svg { width: 16px; height: 16px; }

/* Architecture flow diagram */
.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
}

.flow__node {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-right: 1px solid var(--border);
}

.flow__node:last-child { border-right: 0; }

.flow__node::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    width: 11px;
    height: 12px;
    background: var(--surface);
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--surface);
    background-color: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.flow__node:last-child::after { display: none; }

.flow__layer {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.flow__node h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.flow__node p { font-size: 0.9063rem; line-height: 1.55; }

/* ==========================================================================
   12. Accordion / FAQ
   ========================================================================== */

.accordion {
    border-top: 1px solid var(--border);
}

.accordion__item { border-bottom: 1px solid var(--border); }

.accordion__trigger {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.1875rem);
    font-weight: 600;
    letter-spacing: -0.016em;
    color: var(--text-strong);
    transition: color var(--t-fast);
}

.accordion__trigger:hover { color: var(--brand-600); }

.accordion__icon {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-full);
    transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform var(--t-base), opacity var(--t-fast);
}

.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion__trigger[aria-expanded='true'] .accordion__icon {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
    transform: rotate(180deg);
}

.accordion__trigger[aria-expanded='true'] .accordion__icon::after { opacity: 0; }

.accordion__panel {
    overflow: hidden;
    height: 0;
    transition: height var(--t-base);
}

.accordion__panel > div { padding-bottom: 1.75rem; }
.accordion__panel p { max-width: 68ch; font-size: 0.9688rem; }

/* ==========================================================================
   13. Forms
   ========================================================================== */

.form-card {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: var(--text-strong);
}

.form-group label .req { color: var(--brand-600); }

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 0.9375rem;
    background: var(--n-25);
    color: var(--navy-900);
    border: 1px solid var(--n-200);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.form-control::placeholder { color: var(--n-400); }

.form-control:hover { border-color: var(--n-300); }

.form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-500);
    box-shadow: var(--sh-focus);
}

textarea.form-control { min-height: 132px; resize: vertical; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7a94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Contact detail rows */
.contact-list { display: grid; gap: 1.25rem; }

.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-item .icon-tile { width: 38px; height: 38px; }
.contact-item .icon-tile svg { width: 18px; height: 18px; }
.contact-item h4 { font-size: 0.875rem; color: var(--text-muted); font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-item p { color: var(--text-strong); font-weight: 500; margin-top: 0.2rem; }

/* ==========================================================================
   14. CTA bands
   ========================================================================== */

.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(4rem, 7vw, 6.5rem);
}

.cta__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.cta h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); max-width: 20ch; }
.cta p { margin-top: 1.125rem; max-width: 58ch; color: #a4b3cd; font-size: 1.0625rem; }
.cta .btn-group { justify-content: flex-end; }

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer {
    background: var(--navy-950);
    color: #8493b0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: clamp(4rem, 7vw, 6rem);
}

.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image: url('assets/hex-pattern.svg');
    background-size: 56px 97px;
    -webkit-mask-image: radial-gradient(ellipse 55% 70% at 90% 0%, #000, transparent 70%);
            mask-image: radial-gradient(ellipse 55% 70% at 90% 0%, #000, transparent 70%);
    pointer-events: none;
}

.site-footer > * { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
}

.footer-brand img { height: 34px; width: auto; margin-bottom: 1.5rem; }

.footer-brand p {
    color: #8493b0;
    font-size: 0.9375rem;
    max-width: 34ch;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.125rem;
}

.footer-links { display: grid; gap: 0.7rem; }

.footer-links a {
    font-size: 0.9375rem;
    color: #8493b0;
    transition: color var(--t-fast);
    width: fit-content;
}

.footer-links a:hover { color: #fff; }

.footer-tagline {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #6c7d9d;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: #6c7d9d;
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   16. Motion & reveal
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { --step-cols: 3; }
    .step::before { display: none; }
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow__node:nth-child(2)::after { display: none; }
    .flow__node:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 1024px) {
    :root { --header-h: 68px; }

    .nav-links,
    .nav-cta { display: none; }

    .nav-toggle { display: flex; }

    .brand { margin-right: auto; }

    .split { grid-template-columns: minmax(0, 1fr); }
    .split__aside { position: static; }

    .showcase { grid-template-columns: minmax(0, 1fr); }

    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .cta__inner { grid-template-columns: minmax(0, 1fr); }
    .cta .btn-group { justify-content: flex-start; }

    .header-note { grid-template-columns: minmax(0, 1fr); gap: 1rem; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }

    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .grid-2,
    .grid-3 { grid-template-columns: minmax(0, 1fr); }

    .card-grid,
    .card-grid--3,
    .card-grid--4 { grid-template-columns: minmax(0, 1fr); }

    .card--wide { flex-direction: column; align-items: flex-start; }

    .steps { --step-cols: 2; }

    .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding-left: 1.75rem; }

    .flow { grid-template-columns: minmax(0, 1fr); }
    .flow__node { border-right: 0; border-bottom: 1px solid var(--border); }
    .flow__node:last-child { border-bottom: 0; }
    .flow__node::after { display: none; }

    .article-card__visual { min-height: 160px; }

    .form-row { grid-template-columns: minmax(0, 1fr); }

    .mockup-note { position: static; margin-top: 1rem; max-width: none; }
}

@media (max-width: 560px) {
    .steps { --step-cols: 1; }
    .stat-strip { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .btn-group .btn { width: 100%; }
    .mockup__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mockup__row { grid-template-columns: 1.4fr 1fr; }
    .mockup__row > :last-child { display: none; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media print {
    .site-header, .nav-drawer, .cta, .site-footer { display: none; }
    [data-reveal] { opacity: 1; transform: none; }
}
