/* ================================================================
   AROLO SOLUTIONS — "Luminar" Design System v5
   Dark-first, technical precision aesthetic.
   Brand: Poppins, Navy #172754, Blue #3B82F6
   100% custom, zero frameworks.
   ================================================================ */

/* ===== 1. Tokens ===== */
:root {
    /* Brand */
    --navy: #172754;
    --navy-deep: #0F1B3D;
    --navy-light: #1E3A6E;
    --blue: #3B82F6;
    --blue-hover: #2563EB;
    --blue-active: #1D4ED8;
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-light: #60A5FA;
    --blue-glow: rgba(59, 130, 246, 0.4);
    --blue-glow-soft: rgba(59, 130, 246, 0.15);

    /* Gray */
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F5;
    --gray-200: #E4E4E7;
    --gray-300: #D4D4D8;
    --gray-400: #A1A1AA;
    --gray-500: #71717A;
    --gray-600: #52525B;
    --gray-700: #3F3F46;
    --gray-800: #27272A;
    --gray-900: #18181B;

    /* Accents */
    --green: #22C55E;
    --amber: #FBBF24;
    --rose: #F43F5E;

    /* Typography */
    --font: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px var(--blue-glow-soft), 0 0 80px rgba(59, 130, 246, 0.06);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.3s;
    --duration-fast: 0.15s;
    --duration-slow: 0.6s;

    /* Contextual */
    --text: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-heading: var(--gray-900);
    --text-link: var(--blue);
    --surface: #fff;
    --surface-alt: var(--gray-50);
    --border: var(--gray-200);
}


/* ===== 2. Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
ul, ol { list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* ===== 3. Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--text-heading);
    line-height: 1.15;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

h2 {
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

h3 {
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    letter-spacing: -0.02em;
}

h4 { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
h5 { font-weight: 600; font-size: 1rem; }
h6 { font-weight: 600; font-size: 0.875rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ===== 4. Container ===== */
.container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 2rem;
}

.container--narrow { max-width: 960px; }

@media (max-width: 640px) {
    .container { padding-inline: 1.25rem; }
}


/* ===== 5. Layout ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split--wide { grid-template-columns: 7fr 5fr; }
.split--narrow { grid-template-columns: 5fr 7fr; }
.split.align-start { align-items: start; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }

/* Bento grid */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento > :nth-child(1) { grid-column: span 2; }
.bento > :nth-child(4) { grid-column: span 2; }

@media (max-width: 768px) {
    .split,
    .split--wide,
    .split--narrow,
    .grid-2,
    .grid-3,
    .grid-4,
    .bento { grid-template-columns: 1fr; }

    .bento > :nth-child(1),
    .bento > :nth-child(4) { grid-column: span 1; }

    .split { gap: 2.5rem; }
}


/* ===== 6. Section System ===== */
.section {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.section:first-child { padding-top: 11rem; }

/* Hero Dark — primary hero treatment */
.section--hero-dark {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    --text: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-heading: #fff;
    --text-link: var(--blue-light);
    --border: rgba(255, 255, 255, 0.1);
}

.section--hero-dark h1,
.section--hero-dark h2,
.section--hero-dark h3,
.section--hero-dark h4,
.section--hero-dark h5,
.section--hero-dark h6 { color: #fff; }

/* Dot-grid pattern */
.section--hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

/* Radial glow */
.section--hero-dark::after {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 40%, transparent 70%);
    top: -300px;
    right: -200px;
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.section--hero-dark > * { position: relative; z-index: 1; }

/* Diagonal cut at bottom */
.section--hero-dark .section__cut {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}

/* Hero Light — for secondary pages */
.section--hero-light {
    background: var(--blue-50);
    --text: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-heading: var(--gray-900);
}

.section--hero-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 0;
    pointer-events: none;
}

.section--hero-light > * { position: relative; z-index: 1; }

/* Alt — light gray */
.section--alt {
    background: var(--gray-50);
}

/* Blue tint — light blue */
.section--tint {
    background: var(--blue-50);
}

/* Dark — navy */
.section--dark {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    --text: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-heading: #fff;
    --text-link: var(--blue-light);
    --border: rgba(255, 255, 255, 0.1);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 { color: #fff; }

/* Dot grid on dark sections */
.section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

.section--dark > * { position: relative; z-index: 1; }

/* Stats band */
.section--stats {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    padding: 5rem 0;
    color: rgba(255, 255, 255, 0.8);
    --text: rgba(255, 255, 255, 0.6);
    --text-heading: #fff;
    --border: rgba(255, 255, 255, 0.1);
}

.section--stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.section--stats > * { position: relative; z-index: 1; }


/* ===== 7. Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background: transparent;
    padding: 1.125rem 0;
    transition: padding var(--duration) var(--ease);
}

/* Default: dark nav for dark hero pages */
.nav--dark .nav__link { color: rgba(255, 255, 255, 0.78); }
.nav--dark .nav__link:hover,
.nav--dark .nav__link.active { color: #fff; }
.nav--dark .nav__toggle span { background: rgba(255, 255, 255, 0.8); }
.nav--dark .nav__cta { background: #fff; color: var(--navy); border-color: #fff; }
.nav--dark .nav__cta:hover { background: var(--blue-50); color: var(--navy); }
.nav--dark .nav__indicator { background: rgba(255, 255, 255, 0.12); }

/* Scrolled state — floating navy capsule (desktop only).
   Mobile keeps the navbar in its initial transparent state at every scroll
   position; no capsule, no color flip. */
@media (min-width: 769px) {
    .nav.scrolled { padding: 0.625rem 0; }
    .nav.scrolled .nav__inner {
        background: var(--navy);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 999px;
        padding: 0.4rem 0.5rem 0.4rem 1.5rem;
        box-shadow:
            0 10px 40px -8px rgba(15, 27, 61, 0.35),
            0 2px 8px rgba(15, 27, 61, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        max-width: min(1100px, calc(100% - 2rem));
        margin: 0 auto;
    }

    /* Inside the navy capsule, content always reads as on a dark surface */
    .nav.scrolled .nav__link { color: rgba(255, 255, 255, 0.78); }
    .nav.scrolled .nav__link:hover,
    .nav.scrolled .nav__link.active { color: #fff; }
    .nav.scrolled .nav__toggle span { background: rgba(255, 255, 255, 0.85); }
    .nav.scrolled .nav__cta {
        background: #fff;
        color: var(--navy);
        border-color: #fff;
    }
    .nav.scrolled .nav__cta:hover {
        background: var(--blue-50);
        border-color: var(--blue-50);
        color: var(--navy);
    }
    .nav.scrolled .nav__indicator { background: rgba(255, 255, 255, 0.10); }

    .nav.scrolled .nav__brand img { height: 30px; }
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition:
        background var(--duration) var(--ease),
        border-color var(--duration) var(--ease),
        border-radius var(--duration) var(--ease),
        padding var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease),
        max-width var(--duration) var(--ease);
}

.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 40px; width: auto; transition: height var(--duration) var(--ease); }

.nav__toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 1.375rem;
    height: 2px;
    background: var(--gray-700);
    margin: 5px 0;
    transition: all var(--duration) var(--ease);
    border-radius: 2px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    padding: 0.25rem;
}

/* Morphing pill indicator — slides between hovered/active items */
.nav__indicator {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: calc(100% - 0.5rem);
    transform: translate(0, -50%);
    background: rgba(59, 130, 246, 0.10);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    will-change: transform, width;
    transition:
        transform 0.45s cubic-bezier(0.32, 1.4, 0.5, 1),
        width 0.45s cubic-bezier(0.32, 1.4, 0.5, 1),
        opacity 0.22s var(--ease),
        background-color var(--duration) var(--ease);
}

.nav__link {
    position: relative;
    display: block;
    padding: 0.5rem 1.05rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.22s var(--ease);
    letter-spacing: 0.005em;
    z-index: 1;
}

.nav__link:hover,
.nav__link.active { color: var(--blue); }

.nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.05rem 0.55rem 1.25rem;
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 999px;
    text-decoration: none;
    transition:
        background var(--duration) var(--ease),
        border-color var(--duration) var(--ease),
        color var(--duration) var(--ease),
        transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
    letter-spacing: 0.02em;
    margin-left: 0.5rem;
    position: relative;
    box-shadow: 0 4px 14px var(--blue-glow-soft);
}

.nav__cta:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 10px 26px var(--blue-glow-soft),
        0 2px 6px rgba(15, 27, 61, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

/* Dropdown */
.nav__list > li { position: relative; z-index: 2; }
.nav__dropdown { position: relative; z-index: 1; }

/* Invisible bridge between trigger and dropdown so hover doesn't drop */
.nav__dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1rem;
    width: 620px;
    height: calc(100% + 0.75rem);
    display: none;
}
.nav__dropdown:hover::after { display: block; cursor: pointer; }

/* Refined chevron — thin V that flips smoothly */
.nav__dropdown-trigger { padding-right: 1.65rem; }
.nav__dropdown-trigger::after {
    content: '';
    position: absolute;
    right: 0.65rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border: 0;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    border-radius: 1px;
    transform: translateY(-70%) rotate(45deg);
    transform-origin: center;
    opacity: 0.65;
    transition: transform 0.4s var(--ease-spring), opacity 0.25s var(--ease);
}
.nav__dropdown:hover > .nav__dropdown-trigger::after,
.nav__dropdown:has(.nav__dropdown-menu.show) > .nav__dropdown-trigger::after {
    transform: translateY(-25%) rotate(225deg);
    opacity: 1;
}

.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: -1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(15, 27, 61, 0.06);
    border-radius: var(--radius-md);
    box-shadow:
        0 24px 64px -16px rgba(15, 27, 61, 0.22),
        0 4px 12px rgba(15, 27, 61, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding-bottom: 0.85rem;
    min-width: 280px;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top left;
    transition:
        opacity 0.24s var(--ease),
        transform 0.32s var(--ease),
        visibility 0s linear 0.24s;
}

.nav__dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.28s var(--ease),
        transform 0.42s cubic-bezier(0.22, 1.2, 0.36, 1),
        visibility 0s linear 0s;
}

/* Mega Menu */
.mega-menu {
    width: 620px;
    display: flex;
    flex-direction: column;
}

.mega-menu__banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(15, 27, 61, 0.06);
    background: linear-gradient(
        180deg,
        rgba(59, 130, 246, 0.04) 0%,
        rgba(59, 130, 246, 0) 100%
    );
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.mega-menu__banner::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--blue) 50%,
        transparent 100%
    );
    opacity: 0.35;
}

.mega-menu__banner img { height: 1.75rem; width: auto; }

.mega-menu__banner span {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.mega-menu__cols { display: flex; }
.mega-menu__col {
    flex: 1 1 0;
    min-width: 0;
     padding-left: 0.5rem;
}

.mega-menu__col + .mega-menu__col {
    border-left: 1px solid var(--gray-100);
}

.mega-menu__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    padding: 0.625rem 1.5rem 0.25rem;
    line-height: 1.5;
}

.mega-menu__heading--navy { border-left: 3px solid var(--navy); padding-left: calc(1.5rem - 3px); }
.mega-menu__heading--blue { border-left: 3px solid var(--blue); padding-left: calc(1.5rem - 3px); }
.mega-menu__heading--green { border-left: 3px solid var(--green); padding-left: calc(1.5rem - 3px); }

.mega-menu__item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.55rem 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    margin: 0 0.5rem;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.4s var(--ease),
        transform 0.4s var(--ease),
        background var(--duration-fast) var(--ease);
}

.mega-menu.show .mega-menu__item {
    opacity: 1;
    transform: translateY(0);
}

.mega-menu.show .mega-menu__col > .mega-menu__item:nth-of-type(1) { transition-delay: 60ms; }
.mega-menu.show .mega-menu__col > .mega-menu__item:nth-of-type(2) { transition-delay: 110ms; }
.mega-menu.show .mega-menu__col > .mega-menu__item:nth-of-type(3) { transition-delay: 160ms; }
.mega-menu.show .mega-menu__col > .mega-menu__item:nth-of-type(4) { transition-delay: 210ms; }

.mega-menu__item:hover {
    background: var(--blue-50);
}
.mega-menu__item:hover .mega-menu__icon,
.mega-menu__item:hover .mega-menu__brand-icon {
    transform: translateX(2px);
}

.mega-menu__brand-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.product-icon {
    flex-shrink: 0;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.product-icon--collector {
    -webkit-mask-image: url('/static/img/logos/prelude-collector-icon.svg');
            mask-image: url('/static/img/logos/prelude-collector-icon.svg');
}
.product-icon--ztp-gateway {
    -webkit-mask-image: url('/static/img/logos/prelude-ztp-gateway-icon.svg');
            mask-image: url('/static/img/logos/prelude-ztp-gateway-icon.svg');
}
.product-icon--topology-engine {
    -webkit-mask-image: url('/static/img/logos/prelude-topology-engine-icon.svg');
            mask-image: url('/static/img/logos/prelude-topology-engine-icon.svg');
}
.product-icon--advanced-ztp {
    -webkit-mask-image: url('/static/img/logos/prelude-advanced-ztp-icon.svg');
            mask-image: url('/static/img/logos/prelude-advanced-ztp-icon.svg');
}
.product-icon--state-engine {
    -webkit-mask-image: url('/static/img/logos/prelude-state-engine-icon.svg');
            mask-image: url('/static/img/logos/prelude-state-engine-icon.svg');
}
.product-icon--custom-software {
    -webkit-mask-image: url('/static/img/logos/prelude-custom-software-icon.svg');
            mask-image: url('/static/img/logos/prelude-custom-software-icon.svg');
}

.mega-menu__icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    color: var(--blue);
    transition: transform 0.35s var(--ease-spring), color var(--duration-fast) var(--ease);
}

.mega-menu__brand-icon {
    transition: transform 0.35s var(--ease-spring);
}

.mega-menu__item:hover .mega-menu__icon { color: var(--blue-hover); }

.mega-menu__label {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--gray-900);
    display: block;
}

.mega-menu__desc {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.4;
    margin-top: 0.1rem;
}

/* Drawer chrome hidden by default (desktop). Footer uses display:contents so
   the CTA inside still lays out as a direct child of .nav__menu on desktop. */
.nav__drawer-header,
.nav__drawer-eyebrow,
.nav__drawer-close,
.nav__backdrop { display: none; }
.nav__drawer-footer { display: contents; }

@media (prefers-reduced-motion: reduce) {
    .nav__indicator,
    .nav__cta,
    .nav__dropdown-menu,
    .mega-menu__item,
    .mega-menu__icon,
    .mega-menu__brand-icon {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    /* On scroll, the bar gets a solid navy background only — no size or
       margin changes, so the layout stays put. */
    .nav.scrolled {
        background: var(--navy);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav.scrolled .nav__toggle-bar { background: rgba(255, 255, 255, 0.85); }

    /* Indicator pill is desktop-only */
    .nav__indicator { display: none; }
    .nav__list { padding: 0; }

    /* ----- Hamburger toggle (becomes X when expanded) ----- */
    .nav__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        margin-right: -0.5rem;
        position: relative;
        z-index: 1070;
        cursor: pointer;
    }
    .nav__toggle-bar {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--gray-700);
        border-radius: 2px;
        transition: transform 0.4s var(--ease), opacity 0.2s var(--ease), background 0.2s var(--ease);
        transform-origin: center;
    }
    .nav__toggle-bar + .nav__toggle-bar { margin-top: 5px; }

    /* When the drawer is open, hide the navbar hamburger so only the in-drawer
       close button is visible (avoids two overlapping close affordances). */
    body.menu-open .nav__toggle {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s var(--ease);
    }

    /* ----- Backdrop ----- */
    .nav__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 27, 61, 0.55);
        backdrop-filter: blur(4px) saturate(140%);
        -webkit-backdrop-filter: blur(4px) saturate(140%);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
        z-index: 1040;
    }
    .nav__backdrop.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.35s var(--ease), visibility 0s linear 0s;
    }

    /* ----- Drawer panel ----- */
    .nav__menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(420px, 92vw);
        background: #fff;
        box-shadow: -24px 0 64px rgba(15, 27, 61, 0.18);
        padding: 0;
        gap: 0;
        max-height: 100dvh;
        overflow: hidden;          /* outer panel doesn't scroll; inner list does */
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1050;
        align-items: stretch;
    }
    .nav__menu.show { transform: translateX(0); }

    /* Decorative top accent line */
    .nav__menu::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 60%, var(--blue-light) 100%);
        opacity: 0.9;
    }

    /* Drawer header (logo eyebrow + close) */
    .nav__drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.125rem 1.25rem 1rem;
        border-bottom: 1px solid var(--gray-100);
        flex-shrink: 0;
    }
    .nav__drawer-eyebrow {
        display: inline-block;
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.22em;
        color: var(--gray-400);
    }
    .nav__drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--gray-200);
        background: #fff;
        border-radius: 999px;
        color: var(--gray-700);
        cursor: pointer;
        transition: background var(--duration-fast) var(--ease),
                    color var(--duration-fast) var(--ease),
                    border-color var(--duration-fast) var(--ease),
                    transform var(--duration) var(--ease);
    }
    .nav__drawer-close svg { width: 18px; height: 18px; }
    .nav__drawer-close:hover,
    .nav__drawer-close:focus-visible {
        color: var(--navy);
        border-color: var(--navy);
        transform: rotate(90deg);
    }

    /* Scrollable middle region (the list).
       align-items: stretch overrides the desktop's `center` — without this,
       short items (Services, About Us) shrink to content width and look indented
       relative to Products (whose hidden mega-menu inflates intrinsic width). */
    .nav__list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0 0.75rem;
        gap: 0;
    }
    .nav__list > li {
        position: relative;
        border-bottom: 1px solid var(--gray-100);
    }
    .nav__list > li:last-child { border-bottom: none; }

    /* Primary links — large editorial tap targets.
       display:block + absolutely-positioned chevron so all rows align identically
       whether or not the link is a dropdown trigger. */
    .nav__link {
        display: block;
        min-height: 60px;
        line-height: 60px;
        padding: 0 3rem 0 3.5rem;
        font-size: 1.0625rem;
        font-weight: 500;
        letter-spacing: -0.005em;
        color: var(--gray-800);
        position: relative;
    }
    .nav__link:hover,
    .nav__link.active { color: var(--blue); }

    /* Numeric editorial index (01, 02, …) — auto-numbered via CSS counter,
       sits on the link itself so it inherits the row's exact box. */
    .nav__list { counter-reset: nav-counter; }
    .nav__list > li > .nav__link::before {
        counter-increment: nav-counter;
        content: counter(nav-counter, decimal-leading-zero);
        position: absolute;
        left: 1.5rem;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--gray-400);
        letter-spacing: 0.12em;
        font-variant-numeric: tabular-nums;
        transition: color var(--duration-fast) var(--ease);
        pointer-events: none;
    }
    .nav__list > li:has(> .nav__link.active) > .nav__link::before,
    .nav__list > li:has(.nav__dropdown-menu.show) > .nav__link::before {
        color: var(--blue);
    }

    /* Active page indicator: subtle left bar */
    .nav__list > li:has(> .nav__link.active)::after {
        content: '';
        position: absolute;
        left: 0;
        top: 12px;
        bottom: 12px;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--blue);
    }

    /* Mobile menu has a white background, so override dark-hero white text */
    .nav--dark .nav__menu .nav__link { color: var(--gray-800); }
    .nav--dark .nav__menu .nav__link:hover,
    .nav--dark .nav__menu .nav__link.active { color: var(--blue); }
    .nav--dark .nav__menu .nav__cta {
        background: var(--blue);
        color: #fff;
        border-color: var(--blue);
    }

    /* Sticky CTA footer */
    .nav__drawer-footer {
        display: block;
        flex-shrink: 0;
        padding: 1rem 1.25rem 1.25rem;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 35%);
        border-top: 1px solid var(--gray-100);
    }
    .nav__cta {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        letter-spacing: 0.03em;
    }

    /* Disable hover bridge on touch devices */
    .nav__dropdown::after { display: none !important; }

    /* ----- Products dropdown trigger ----- */
    .nav__dropdown-trigger {
        cursor: pointer;
        user-select: none;
    }
    /* Replace the desktop ▼ arrow with an absolute chevron-icon on the right.
       Absolute positioning keeps the trigger row aligned with non-trigger rows. */
    .nav__dropdown-trigger::after {
        content: '';
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        margin: 0;
        width: 9px;
        height: 9px;
        border: none;
        border-right: 1.75px solid currentColor;
        border-bottom: 1.75px solid currentColor;
        border-radius: 1px;
        transform: translateY(-75%) rotate(45deg);
        transform-origin: center;
        transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
        opacity: 0.55;
    }
    .nav__dropdown:has(.nav__dropdown-menu.show) > .nav__dropdown-trigger::after {
        transform: translateY(-25%) rotate(225deg);
        opacity: 1;
    }
    .nav__dropdown:has(.nav__dropdown-menu.show) > .nav__dropdown-trigger {
        color: var(--blue);
    }

    /* ----- Products accordion (mega-menu collapsed by default) ----- */
    .mega-menu,
    .nav__dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        width: 100%;
        padding: 0;
        background: var(--gray-50);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: visible;
        transform: none;
        transition: max-height 0.4s var(--ease),
                    opacity 0.25s var(--ease),
                    padding 0.4s var(--ease);
    }
    .mega-menu.show,
    .nav__dropdown-menu.show {
        display: block;
        max-height: 1500px;
        opacity: 1;
        transform: none;
        padding: 0.5rem 0 1rem;
    }
    .mega-menu__banner::after { display: none; }
    /* Reset desktop staggered entrance on mobile — accordion uses its own model */
    .mega-menu__item { opacity: 1; transform: none; transition: background var(--duration-fast) var(--ease); }
    .mega-menu.show .mega-menu__col > .mega-menu__item { transition-delay: 0s; }

    .mega-menu__banner {
        padding: 0.875rem 1.5rem;
        margin: 0 0 0.5rem;
        background: #fff;
        border-bottom: 1px solid var(--gray-100);
    }
    .mega-menu__banner img { height: 1.5rem; }
    .mega-menu__banner span { font-size: 0.875rem; }

    .mega-menu__cols {
        flex-direction: column;
        gap: 0.5rem;
    }
    .mega-menu__col {
        padding: 0;
    }
    .mega-menu__col + .mega-menu__col {
        border-left: none;
        border-top: 1px solid var(--gray-200);
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }

    .mega-menu__heading {
        margin-top: 0.5rem;
        padding: 0.5rem 1.5rem 0.375rem;
        font-size: 0.625rem;
        letter-spacing: 0.18em;
        color: var(--gray-500);
    }
    .mega-menu__heading--navy { padding-left: calc(1.5rem - 3px); }
    .mega-menu__heading--blue { padding-left: calc(1.5rem - 3px); }
    .mega-menu__heading--green { padding-left: calc(1.5rem - 3px); }

    .mega-menu__item {
        margin: 0;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        gap: 0.875rem;
        align-items: center;
        min-height: 56px;
    }
    .mega-menu__item:hover,
    .mega-menu__item:active { background: var(--blue-50); }
    .mega-menu__icon,
    .mega-menu__brand-icon { width: 1.375rem; height: 1.375rem; margin-top: 0; }
    .mega-menu__label { font-size: 0.9375rem; }
    .mega-menu__desc { font-size: 0.75rem; }

    /* ----- Stagger reveal on open ----- */
    .nav__menu.show .nav__drawer-header,
    .nav__menu.show .nav__list > li,
    .nav__menu.show .nav__drawer-footer {
        animation: drawerItemIn 0.5s var(--ease) both;
    }
    .nav__menu.show .nav__drawer-header { animation-delay: 0.05s; }
    .nav__menu.show .nav__list > li:nth-of-type(1) { animation-delay: 0.10s; }
    .nav__menu.show .nav__list > li:nth-of-type(2) { animation-delay: 0.14s; }
    .nav__menu.show .nav__list > li:nth-of-type(3) { animation-delay: 0.18s; }
    .nav__menu.show .nav__list > li:nth-of-type(4) { animation-delay: 0.22s; }
    .nav__menu.show .nav__list > li:nth-of-type(5) { animation-delay: 0.26s; }
    .nav__menu.show .nav__drawer-footer { animation-delay: 0.30s; }

    @keyframes drawerItemIn {
        from { opacity: 0; transform: translateX(16px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Body lock — prevent background scroll while drawer is open */
    body.menu-open { overflow: hidden; }

    /* When menu is open, keep the navbar in scrolled (white) state for clean visuals */
    body.menu-open .nav { padding: 0.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nav__menu,
    .nav__menu.show .nav__drawer-header,
    .nav__menu.show .nav__list > li,
    .nav__menu.show .nav__drawer-footer,
    .nav__backdrop,
    .mega-menu,
    .nav__dropdown-menu,
    .nav__toggle-bar {
        transition: none !important;
        animation: none !important;
    }
}


/* ===== 8. Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 0.625rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    background: transparent;
    color: inherit;
}

.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn--sm { padding: 0.375rem 1rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.8rem 2.25rem; font-size: 0.9375rem; }

.btn--primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--blue-glow);
}
.btn--primary:active {
    background: var(--blue-active);
    transform: translateY(0);
    box-shadow: none;
}

.btn--outline {
    color: var(--blue);
    border-color: var(--blue);
}
.btn--outline:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--blue-glow-soft);
}

.btn--secondary {
    color: var(--gray-600);
    border-color: var(--gray-300);
}
.btn--secondary:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-400);
}

.btn--white {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
    font-weight: 700;
}
.btn--white:hover {
    background: var(--blue-50);
    border-color: var(--blue-50);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn--ghost {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Dark section button overrides */
.section--dark .btn--outline {
    color: var(--blue-light);
    border-color: var(--blue-light);
}
.section--dark .btn--outline:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* Arrow icon in buttons */
.btn__arrow {
    transition: transform var(--duration) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }


/* ===== 9. Hero ===== */
.hero__title {
    margin-bottom: 1.5rem;
}

.hero__lead {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* ----- "Powered by" telemetry-flow chip -----
   Visualizes the Collector → product data flow with a pulse traveling
   between two nodes. Reusable on any module that depends on the Collector. */
.hero__requires {
    --hr-accent: 96, 165, 250; /* var(--blue-light) as rgb triplet */
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.95rem 0.5rem 0.7rem;
    margin-left: auto;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(var(--hr-accent), 0.07) 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 100px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
}

.hero__requires::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(var(--hr-accent), 0.0) 30%,
        rgba(var(--hr-accent), 0.5) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero__requires:hover,
.hero__requires:focus-visible {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(var(--hr-accent), 0.14) 100%);
    border-color: rgba(var(--hr-accent), 0.35);
    box-shadow: 0 8px 28px -10px rgba(var(--hr-accent), 0.45);
    transform: translateY(-1px);
    color: #fff;
    outline: none;
}

.hero__requires:hover::before,
.hero__requires:focus-visible::before {
    opacity: 1;
}

/* Flow visual: source node — line w/ traveling pulse — target node */
.hero__requires-flow {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 42px;
    height: 12px;
    flex-shrink: 0;
}

.hero__requires-node {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 2;
}

.hero__requires-node--source {
    background: var(--blue-light);
    box-shadow: 0 0 0 0 rgba(var(--hr-accent), 0.55);
    animation: hr-source-ping 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hr-source-ping {
    0%   { box-shadow: 0 0 0 0   rgba(var(--hr-accent), 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(var(--hr-accent), 0); }
    100% { box-shadow: 0 0 0 0   rgba(var(--hr-accent), 0); }
}

.hero__requires-node--target {
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero__requires:hover .hero__requires-node--target {
    background: #fff;
    box-shadow: 0 0 10px rgba(var(--hr-accent), 0.7);
}

.hero__requires-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(var(--hr-accent), 0.6) 0%,
        rgba(255, 255, 255, 0.15) 100%);
    position: relative;
    margin: 0 -2px;
    z-index: 1;
}

.hero__requires-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(var(--hr-accent), 1),
                0 0 4px #fff;
    transform: translate(-50%, -50%);
    animation: hr-pulse-travel 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hr-pulse-travel {
    0%   { left: 0;    opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Two-line text block: tracked eyebrow above the product name */
.hero__requires-text {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    line-height: 1;
}

.hero__requires-eyebrow {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.hero__requires:hover .hero__requires-eyebrow {
    color: rgba(var(--hr-accent), 0.9);
}

.hero__requires-name {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #fff;
}

.hero__requires-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease;
}

.hero__requires:hover .hero__requires-arrow {
    color: var(--blue-light);
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .hero__requires-node--source { animation: none; }
    .hero__requires-pulse { animation: none; opacity: 0; }
    .hero__requires:hover { transform: none; }
}

.hero__image {
    position: relative;
}

.hero__image img.dashboard-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Glow ring behind hero image (disabled for layers schema) */
.hero__image::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--blue), rgba(59, 130, 246, 0.2), var(--blue-light));
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
}

/* Hero Layers Schema — Outlined Steps */
.hero-layers {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
}

.hero-layers__spine {
    position: absolute;
    left: 1.25rem;
    top: 1.6rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue) 70%, transparent 100%);
    transform: translateX(-50%);
}

.hero-layers__cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-layers__row {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: start;
}

.hero-layers__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.6);
    z-index: 1;
    margin-top: 1.6rem;
    justify-self: center;
}

.hero-layers__card {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-layers__card:hover {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.12);
}

.hero-layers__card-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.25rem;
}

.hero-layers__card-num {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: var(--blue);
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hero-layers__card-title {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero-layers__card-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.hero-layers__topo {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    padding-left: 2.5rem;
}

.hero-layers__topo-img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.hero--centered {
    text-align: center;
    max-width: 780px;
    margin-inline: auto;
}

.hero--centered .hero__lead {
    max-width: 620px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
}

.hero--centered .hero__actions {
    justify-content: center;
}

/* Dark hero text colors */
.section--hero-dark .hero__lead {
    color: rgba(255, 255, 255, 0.6);
}


/* ===== 10. Eyebrow ===== */
.eyebrow {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section--dark .eyebrow,
.section--hero-dark .eyebrow,
.section--stats .eyebrow {
    color: var(--blue-light);
}


/* ===== 11. Cards ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--duration) var(--ease);
    height: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--blue);
    flex-shrink: 0;
}

.card__icon img { width: 22px; height: 22px; }
.card__icon svg { width: 22px; height: 22px; }

.card__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.card__subtitle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.card__body {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
}

.card__body:last-child { margin-bottom: 0; }

.card__badge { display: inline-block; margin-bottom: 0.75rem; }

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--blue);
    margin-top: 1rem;
    transition: gap var(--duration) var(--ease);
}

.card__link:hover { gap: 0.625rem; }

.card__link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration) var(--ease);
}

/* Accent card — left blue border */
.card--accent { border-left: 3px solid var(--blue); }
.card--accent:hover { border-left-color: var(--navy); }

/* Glass card — for dark backgrounds */
.card--glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card--glass:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.card--glass .card__title { color: #fff; }
.card--glass .card__body { color: rgba(255, 255, 255, 0.6); }
.card--glass .card__subtitle { color: var(--blue-light); }
.card--glass .card__icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-light);
}

/* Feature card — top accent + icon */
.card--feature {
    border-top: 3px solid var(--blue);
    overflow: hidden;
}

/* Product card */
.card--product {
    border-left: 3px solid var(--blue);
}
.card--product:hover { border-left-color: var(--navy); }

/* Case study card */
.card--case {
    border-top: 3px solid var(--blue);
    overflow: hidden;
}

.card--case .card__body { margin-bottom: 1rem; }

/* Team card */
.card--team {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
}

.card--team .card__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blue);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1);
}

.card--team .card__name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.card--team .card__role {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card--team .card__bio {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Value prop card — icon + title inline */
.card--value {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card--value header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card--value header img { width: 24px; height: 24px; }
.card--value header h6 { margin: 0; font-size: 0.9375rem; }

/* Dark section card overrides */
.section--dark .card:not(.card--glass) {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.section--dark .card:not(.card--glass):hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section--dark .card__title { color: #fff; }
.section--dark .card__body { color: rgba(255, 255, 255, 0.6); }


/* ===== 12. Badge ===== */
.badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--primary { background: var(--blue); color: #fff; }
.badge--foundation { background: var(--blue); color: #fff; }
.badge--module { background: var(--amber); color: var(--gray-900); }
.badge--tailored { background: #8b5cf6; color: #fff; }
.badge--outline {
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--blue);
}


/* ===== 13. Alert ===== */
.alert {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    text-align: center;
}

.alert--success {
    background: #D1FAE5;
    border-color: #6EE7B7;
    color: #065F46;
}

.alert h3, .alert h4 { margin-bottom: 0.5rem; }


/* ===== 14. Tabs ===== */
.tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
    padding: 0.25rem;
    background: #EBEBEF;
    border-radius: 100px;
    width: fit-content;
}

.tabs__btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.tabs__btn:hover { color: var(--gray-900); }

.tabs__btn.active {
    color: #fff;
    background: var(--navy);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.tabs__panel {
    display: none;
    animation: panelIn 0.4s var(--ease-out);
}

.tabs__panel.active { display: block; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .tabs__nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    .tabs__btn { padding: 0.5rem 0.85rem; font-size: 0.75rem; }
}


/* ===== 15. Stats ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px var(--blue-glow);
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3)::before { display: none; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat-number { font-size: 2.25rem; }
}


/* ===== 16. CTA / Banner ===== */
.cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta__text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
}

/* CTA Banner — inline gradient block */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    border-radius: var(--radius-2xl);
    padding: 4.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-banner h2,
.cta-banner h3 {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin-inline: auto;
}

.cta-banner p:last-child { margin-bottom: 0; }

.cta-banner .btn {
    position: relative;
    z-index: 1;
}


/* — MCP Callout — */
.mcp-callout {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
}

.mcp-callout__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-lg);
    color: var(--blue-light);
}

.mcp-callout__badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.mcp-callout h3 {
    margin-bottom: 0.75rem;
}

.mcp-callout p {
    margin-bottom: 2rem;
    font-weight: 300;
}


/* ===== 17. Forms ===== */
.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form__grid > .form__field--full { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .form__grid { grid-template-columns: 1fr; }
}

.form__field { margin-bottom: 0; }

.form__label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="url"],
.form input[type="number"],
.form textarea,
.form select {
    display: block;
    width: 100%;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 300;
    padding: 0.75rem 1rem;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
    line-height: 1.5;
    appearance: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow-soft);
    outline: none;
    background: #fff;
}

.form input::placeholder,
.form textarea::placeholder { color: var(--gray-400); }

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

.form__error {
    color: var(--rose);
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}


/* ===== 18. Product Suite Grid ===== */
.product-suite__group {
    margin-bottom: 2.5rem;
}

.product-suite__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.product-suite__group a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.product-suite__group .card__title { font-size: 0.9375rem; }
.product-suite__group .card__body { font-size: 0.8125rem; }

/* — Automation Layers — */
.automation-layers {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.automation-layer {
    position: relative;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--blue);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.automation-layer:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.automation-layer__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.automation-layer__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1;
}

.automation-layer__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.35rem;
}

.automation-layer__desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.automation-layer__products {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-left: 3.25rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--blue);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.chip:hover {
    background: var(--blue);
    color: #fff;
}

.chip__icon {
    width: 1rem;
    height: 1rem;
}

/* — AI highlight — inline emphasis */
.highlight-ai {
    color: var(--blue);
    font-weight: 600;
}
.section--dark .highlight-ai,
.section--hero-dark .highlight-ai {
    color: var(--blue-light);
}

/* — Wizard Placeholder — */
.wizard-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-placeholder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 3rem 2rem;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.wizard-placeholder__icon {
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.wizard-placeholder__inner h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}

.wizard-placeholder__inner p {
    font-size: 0.875rem;
    color: var(--gray-500);
    max-width: 280px;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

/* — Inline Wizard (home page Q1 embed) — */
.wizard-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.wizard-inline__inner {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(15, 27, 61, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.08);
}

/* Dot-grid overlay — matches hero/CTA pattern */
.wizard-inline__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.10) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Blue radial glow — top-right corner */
.wizard-inline__inner::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
    top: -140px;
    right: -80px;
    pointer-events: none;
    z-index: 0;
}

.wizard-inline__inner > * {
    position: relative;
    z-index: 1;
}

.wizard-inline__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem;
}

.wizard-inline__hint {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.wizard-inline__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.wizard-inline__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-light);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.wizard-inline__badge svg {
    flex-shrink: 0;
}

.wizard-inline__benefits {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-inline__benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.wizard-inline__benefit svg {
    flex-shrink: 0;
    color: var(--green);
}

.wizard-inline__prompt {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.625rem;
}

@media (max-width: 768px) {
    .wizard-inline__benefits {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.wizard__options--inline {
    gap: 0.5rem;
}

.wizard__options--inline .wizard__option-card--compact {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.wizard__options--inline .wizard__option-card--compact strong {
    color: rgba(255, 255, 255, 0.9);
}

.wizard__options--inline .wizard__option-card--compact svg {
    width: 24px;
    height: 24px;
    color: var(--blue-light);
}

.wizard__options--inline .wizard__option-card--compact:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.wizard__options--inline .wizard__option-card--compact.wizard__option-card--selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--blue);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

@media (max-width: 768px) {
    .wizard-inline {
        margin-top: 2rem;
    }
}

/* — Network Devices Illustration — */
.network-devices-svg {
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
}

.network-devices-svg__img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .automation-layer__products {
        padding-left: 0;
    }
    .wizard-placeholder {
        margin-top: 2rem;
    }
}


/* ===== 18b. Product Wizard ===== */

/* Header */
.wizard__header {
    text-align: center;
    margin-bottom: 1.25rem;
}
.wizard__header h2 {
    margin-bottom: 0;
    font-size: 2.75rem;
}

/* Container */
.wizard {
    max-width: 860px;
    margin: 0 auto;
}

/* Progress indicator */
.wizard__progress {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(15, 27, 61, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wizard__phase {
    flex: 1;
    padding: 0.55rem 1rem;
    position: relative;
    transition: background 0.4s var(--ease);
}

.wizard__phase + .wizard__phase::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.wizard__phase--active {
    background: rgba(59, 130, 246, 0.12);
}

.wizard__phase-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.wizard__phase--active .wizard__phase-label {
    color: var(--blue-light);
    font-weight: 600;
}

.wizard__phase--done .wizard__phase-label {
    color: var(--green);
}

.wizard__phase-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.wizard__phase-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    transition: width 0.5s var(--ease);
    box-shadow: 0 0 8px var(--blue-glow);
}

.wizard__phase--done .wizard__phase-fill {
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    width: 100% !important;
}

.wizard__nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wizard__restart-link {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.wizard__restart-link:hover {
    color: var(--rose);
}

/* Question */
.wizard__question-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 1.5rem;
    outline: none;
}

.wizard__question-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0 0 1.5rem;
}

/* Option cards (single-select) */
.wizard__options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.wizard__option-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    text-align: left;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--gray-700);
    width: 100%;
}

.wizard__option-card svg {
    color: var(--gray-400);
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.wizard__option-card strong {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

.wizard__option-card span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.wizard__option-card:hover {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 1px var(--blue-glow-soft);
}

.wizard__option-card--selected {
    border-color: var(--blue);
    background: var(--blue-50);
    box-shadow: 0 0 0 1px var(--blue-glow-soft);
}


.wizard__option-card--selected svg {
    color: var(--blue);
}

.wizard__option-card--compact {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.25rem;
}

.wizard__option-card--compact svg {
    margin-bottom: 0;
    margin-right: 0.75rem;
}

/* Multi-select chips (Q6) */
.wizard__chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.wizard__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    background: #fff;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.8125rem;
    color: var(--gray-700);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    line-height: 1.4;
}

.wizard__chip:hover {
    border-color: var(--blue-light);
}

.wizard__chip--selected {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.wizard__option-card.wizard__chip--selected {
    border-color: var(--blue);
    background: #fff;
    color: inherit;
    position: relative;
}

.wizard__option-card.wizard__chip--selected strong {
    color: var(--gray-900);
}

.wizard__option-card.wizard__chip--selected span {
    color: var(--gray-500);
}

.wizard__option-card.wizard__chip--selected::after {
    content: '';
    position: absolute;
    top: 0.875rem;
    right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / 0.875rem;
}

.wizard__chip--none {
    border-style: dashed;
}

.wizard__chip--none.wizard__chip--selected {
    background: var(--gray-100);
    border-color: var(--gray-400);
    border-style: solid;
    color: var(--gray-700);
}

/* Scale input (Q2) */
.wizard__scale-input {
    margin-bottom: 2rem;
}

.wizard__scale-field {
    margin-bottom: 1rem;
}

.wizard__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
}

.wizard__input {
    display: block;
    width: 100%;
    max-width: 240px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    background: #fff;
    transition: border-color 0.2s;
}

.wizard__input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow-soft);
}

.wizard__textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: #fff;
    resize: vertical;
    transition: border-color 0.2s;
}

.wizard__textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow-soft);
}

.wizard__painbox {
    margin-top: 1.5rem;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(15, 27, 61, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wizard__painbox-prompt {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
    margin: 0 0 0.875rem;
}

.wizard__painbox-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.wizard__painbox-items:empty {
    display: none;
}

.wizard__painbox-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    animation: painItemIn 0.25s var(--ease-spring);
}

@keyframes painItemIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.wizard__painbox-item span {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard__painbox-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.wizard__painbox-remove:hover {
    color: var(--rose);
}

.wizard__painbox-input-row {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s;
}

.wizard__painbox-input-row:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px var(--blue-glow-soft);
}

.wizard__painbox-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.625rem 0.875rem;
    font-family: var(--font);
    font-size: 0.875rem;
    color: #fff;
    outline: none;
}

.wizard__painbox-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.wizard__painbox-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.wizard__painbox-add:hover {
    color: var(--blue-light);
    background: rgba(59, 130, 246, 0.1);
}

.wizard__scale-slider {
    max-width: 100%;
}

.wizard__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
}

.wizard__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.wizard__slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.wizard__slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--gray-400);
    margin-top: 0.375rem;
}

/* Navigation */
.wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.wizard__nav .btn--ghost {
    color: var(--gray-600);
    border-color: var(--gray-300);
}

.wizard__nav .btn--ghost:hover {
    background: var(--gray-100);
    color: var(--navy);
    border-color: var(--gray-400);
}

.wizard__continue:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Result screen ── */
.wizard__result-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

.wizard__congrats {
    text-align: center;
    max-width: 48rem;
    margin: 2rem auto 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-700);
    height: auto;
}

.wizard__congrats a {
    color: var(--primary);
    font-weight: 600;
}

/* Architecture diagram */
.wizard__arch {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--gray-200);
    background:
        linear-gradient(var(--gray-100) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-100) 1px, transparent 1px),
        var(--gray-50);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    display: flex;
    gap: 1rem;
}

.wizard__arch-stack {
    flex: 1;
    min-width: 600px;
}

.wizard__arch-sidebar {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.wizard__arch-sidebar--on {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.wizard__arch-sidebar__name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
}

.wizard__arch-sidebar__desc {
    font-size: 0.65rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.wizard__arch-tag--emerald { background: #d1fae5; color: #065f46; }

/* Wire connector with midpoint node */
.wizard__arch-wire {
    height: 28px;
    position: relative;
}

.wizard__arch-wire::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    border-left: 1.5px solid var(--gray-300);
}

.wizard__arch-wire::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    background: var(--gray-50);
    transform: translate(-50%, -50%);
}

/* Node (container) */
.wizard__arch-node {
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.wizard__arch-node--dim {
    opacity: 0.4;
}

/* Node head */
.wizard__arch-node__head {
    padding: 0.625rem 0.875rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wizard__arch-node__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

a.wizard__arch-node__name:hover { color: var(--blue); }

.wizard__arch-node__desc {
    flex-basis: 100%;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: -0.125rem;
}

/* Tags */
.wizard__arch-tag {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.375rem;
    border-radius: var(--radius-sm);
}

.wizard__arch-tag--sky    { background: #e0f2fe; color: #0369a1; }
.wizard__arch-tag--violet { background: #ede9fe; color: #5b21b6; }
.wizard__arch-tag--blue   { background: var(--blue-100); color: #1d4ed8; }

/* Zone (sub-section inside platform node) */
.wizard__arch-zone {
    margin-top: 0.5rem;
    padding: 0.5rem 0.875rem 0;
    border-top: 1px dashed var(--gray-200);
}

.wizard__arch-zone__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.wizard__arch-zone__note {
    display: block;
    font-size: 0.6875rem;
    font-style: italic;
    color: var(--gray-500);
    margin-bottom: 0.375rem;
}

/* Blocks grid */
.wizard__arch-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    padding-bottom: 0.625rem;
}

.wizard__arch-node__head + .wizard__arch-blocks {
    padding: 0.375rem 0.875rem 0.625rem;
}

/* Block (component box) */
.wizard__arch-block {
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s, box-shadow 0.12s;
}

a.wizard__arch-block:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Active block — tinted by parent */
.wizard__arch-block--on {
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.wizard__arch-node--modules .wizard__arch-block--on {
    border-color: #ddd6fe;
    background: #f5f3ff;
}

.wizard__arch-node--foundation .wizard__arch-block--on {
    border-color: var(--blue-100);
    background: var(--blue-50);
}

/* Inactive block — dashed outline */
.wizard__arch-block--off {
    border: 1px dashed var(--gray-300);
    background: var(--gray-50);
}

/* Plugin block */
.wizard__arch-block--plugin {
    border: 1px solid #fed7aa;
    background: #fff7ed;
}
.wizard__arch-block--module {
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
}

/* Available capability (not recommended, but still active) */
.wizard__arch-block--available {
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Recommended capability block */
.wizard__arch-block--recommended {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.wizard__arch-block__name {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.wizard__arch-block--off .wizard__arch-block__name {
    color: var(--gray-400);
}

.wizard__arch-block__desc {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1.3;
    margin-top: 0.0625rem;
}

.wizard__arch-block--off .wizard__arch-block__desc {
    color: var(--gray-300);
}

/* Micro status label */
.wizard__arch-block__micro {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.wizard__arch-block--recommended .wizard__arch-block__micro {
    color: #16a34a;
}

/* Status dot */
.wizard__arch-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
}

.wizard__arch-dot--on {
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Pricing */
.wizard__pricing {
    margin-bottom: 2rem;
}

.wizard__pricing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.wizard__pricing h3 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
}

.wizard__pricing-devices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wizard__pricing-devices label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.wizard__pricing-devices input[type="number"] {
    width: 5rem;
    padding: 0.375rem 0.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    background: #fff;
    text-align: center;
    transition: border-color 0.2s;
}

.wizard__pricing-devices input[type="number"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow-soft);
}

.wizard__pricing-slider-wrap {
    flex: 1;
    min-width: 0;
}

.wizard__pricing-slider-wrap .wizard__slider {
    width: 100%;
}

.wizard__pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.wizard__pricing-table th {
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--gray-200);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wizard__pricing-table th:last-child,
.wizard__pricing-table td:last-child {
    text-align: right;
}

.wizard__pricing-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.wizard__pricing-table .wizard__pricing-section td {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy);
    padding-top: 1rem;
    border-bottom: none;
    text-align: left;
}

.wizard__pricing-table tfoot td {
    border-bottom: none;
    border-top: 2px solid var(--gray-200);
    padding-top: 0.75rem;
    font-size: 0.9375rem;
}

.wizard__pricing-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 640px) {
    /* Slider drops to its own row below the label + number input */
    .wizard__pricing-devices {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }
    .wizard__pricing-slider-wrap {
        flex-basis: 100%;
    }

    /* Tighten the CTA so it shares the footer line with the note */
    .wizard__pricing-footer .btn--lg {
        padding: 0.5rem 1.1rem;
        font-size: 0.8125rem;
    }
}

/* Pricing banners — free tier & enterprise */
.wizard__pricing-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.wizard__pricing-banner__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.wizard__pricing-banner__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.625rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.wizard__pricing-banner__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.wizard__pricing-banner__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 360px;
}

.wizard__pricing-banner__cta {
    flex-shrink: 0;
}

/* Free tier variant */
.wizard__pricing-banner--free {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
}

.wizard__pricing-banner--free .wizard__pricing-banner__icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.wizard__pricing-banner--free .wizard__pricing-banner__tag {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.wizard__pricing-banner--free .wizard__pricing-banner__title {
    color: #14532d;
}

.wizard__pricing-banner--free .wizard__pricing-banner__desc {
    color: #166534;
    opacity: 0.8;
}

/* Enterprise variant */
.wizard__pricing-banner--enterprise {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #1a1f4b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard__pricing-banner--enterprise .wizard__pricing-banner__icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-light);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.wizard__pricing-banner--enterprise .wizard__pricing-banner__tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-light);
}

.wizard__pricing-banner--enterprise .wizard__pricing-banner__title {
    color: #fff;
}

.wizard__pricing-banner--enterprise .wizard__pricing-banner__desc {
    color: rgba(255, 255, 255, 0.6);
}

.wizard__pricing-plugins {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

.wizard__pricing-plugins a {
    color: var(--blue);
}

/* Notes */
.wizard__notes {
    margin-bottom: 2rem;
}

.wizard__note {
    font-size: 0.875rem;
    color: var(--gray-600);
    padding: 0.75rem 1rem;
    background: var(--blue-50);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0 0 0.5rem;
}

/* CTA group */
.wizard__cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Version alert */
.wizard__version-alert {
    background: #FEF3C7;
    border: 1px solid var(--amber);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wizard__version-alert p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-800);
}

/* Share link */
.wizard__bookmark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--navy);
    border: none;
    margin-bottom: 2rem;
}

.wizard__bookmark__icon {
    flex-shrink: 0;
    color: var(--blue-light);
    margin-top: 0.125rem;
}

.wizard__bookmark__body {
    min-width: 0;
}

.wizard__bookmark__label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.wizard__bookmark__url {
    display: block;
    font-size: 0.875rem;
    color: var(--blue-light);
    word-break: break-all;
    text-decoration: none;
}

.wizard__bookmark__url:hover {
    text-decoration: underline;
    color: #fff;
}

.wizard__bookmark__restart {
    margin-left: auto;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.wizard__bookmark__restart:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Explore links */
.wizard__explore {
    text-align: center;
}

.wizard__explore h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 0.75rem;
}

.wizard__explore-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Subscribe inline prompt */
.wizard__subscribe {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.wizard__subscribe-icon {
    flex-shrink: 0;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

.wizard__subscribe-body {
    flex: 1;
    min-width: 0;
}

.wizard__subscribe-label {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
}

.wizard__subscribe-form {
    display: flex;
    gap: 0.5rem;
}

.wizard__subscribe-input {
    flex: 1;
    min-width: 0;
    padding: 0.375rem 0.75rem;
    font-family: var(--font);
    font-size: 0.8125rem;
    color: var(--gray-800);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration-fast) var(--ease);
}

.wizard__subscribe-input::placeholder {
    color: var(--gray-400);
}

.wizard__subscribe-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px var(--blue-glow-soft);
}

.wizard__subscribe-btn {
    flex-shrink: 0;
    padding: 0.375rem 1rem;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}

.wizard__subscribe-btn:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-50);
}

.wizard__subscribe-btn:active {
    background: var(--blue-100);
}

.wizard__subscribe-error {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: var(--rose);
}

/* Responsive */
@media (max-width: 640px) {
    .wizard__progress {
        flex-direction: column;
        gap: 0;
    }
    .wizard__phase + .wizard__phase::before {
        top: 0;
        left: 10%;
        width: 80%;
        height: 1px;
    }
    .wizard__option-card {
        padding: 1rem;
    }
    .wizard__cta-group {
        flex-direction: column;
    }
    .wizard__pricing-table {
        font-size: 0.75rem;
    }
    .wizard__pricing-table th,
    .wizard__pricing-table td {
        padding: 0.5rem 0.375rem;
    }
    .wizard__subscribe-form {
        flex-direction: column;
    }
}


/* ===== 19. Before & After ===== */

/* Container */
.ba-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Each transformation row */
.ba-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
}

/* Shared card base */
.ba-card {
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    cursor: default;
    text-align: center;
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

/* Before card */
.ba-card--before {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

/* After card */
.ba-card--after {
    background: var(--navy);
    border: 1px solid transparent;
}

/* Row hover lifts both cards */
.ba-row:hover .ba-card {
    transform: translateY(-2px);
}

.ba-row:hover .ba-card--before {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--gray-400);
}

.ba-row:hover .ba-card--after {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.18);
    border-color: var(--blue);
}

/* Icon row inside card */
.ba-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    margin: 0 auto 0.5rem;
    flex-shrink: 0;
}

.ba-card__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.ba-card--before .ba-card__icon {
    background: rgba(249, 115, 22, 0.1);
}

.ba-card--before .ba-card__icon svg {
    stroke: #F97316;
}

.ba-card--after .ba-card__icon {
    background: rgba(34, 197, 94, 0.15);
}

.ba-card--after .ba-card__icon svg {
    stroke: var(--green);
}

/* Title */
.ba-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.ba-card--before .ba-card__title {
    color: var(--text-heading);
}

.ba-card--after .ba-card__title {
    color: #fff;
}

/* Description — hidden by default, revealed on hover */
.ba-card__desc {
    font-size: 0.875rem;
    line-height: 1.55;
    font-weight: 300;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease),
                opacity 0.3s var(--ease),
                margin 0.4s var(--ease);
}

.ba-row:hover .ba-card__desc {
    max-height: 6rem;
    opacity: 1;
    margin-top: 0.5rem;
}

.ba-card--before .ba-card__desc {
    color: var(--text-muted);
}

.ba-card--after .ba-card__desc {
    color: rgba(255, 255, 255, 0.6);
}

.ba-card--after .highlight-ai {
    color: var(--blue-light);
    font-weight: 400;
}

/* Center arrow */
.ba-row__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-row__arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.5;
    transition: opacity var(--duration) var(--ease);
}

.ba-row:hover .ba-row__arrow svg {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--blue-glow));
}

/* Column header labels */
.ba-header {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    margin-bottom: 0.25rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.ba-header__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem 0;
}

.ba-header__label--before {
    color: #F97316;
}

.ba-header__label--after {
    color: var(--green);
}

/* Legacy simple panel fallback */
.before-after .panel {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.before-after .panel h5 {
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
}
.before-after .panel p { color: var(--text-muted); font-weight: 300; }

.pricing-placeholder {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--text-muted);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-placeholder h3 { color: var(--navy); margin-bottom: 1rem; }

/* Product page pricing card */
.product-pricing__card {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.product-pricing__card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
}

.product-pricing__subtitle {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0 0 1rem;
}

@media (max-width: 768px) {
    .product-pricing__card {
        max-width: 100%;
    }
}

/* Tier-based pricing columns (Topology Engine) */
.tier-pricing {
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

.tier-pricing__title {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 0 0 0.25rem;
}

.tier-pricing__subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0 0 2rem;
}

.tier-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tier-pricing__col {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.tier-pricing__col:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tier-pricing__col--highlighted {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue), var(--shadow-md);
}

.tier-pricing__col--highlighted:hover {
    box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}

.tier-pricing__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.875rem;
    border-radius: 999px;
}

.tier-pricing__name {
    font-size: 1.125rem;
    color: var(--navy);
    margin: 0 0 1rem;
}

.tier-pricing__price {
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.tier-pricing__amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.tier-pricing__period {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 400;
}

.tier-pricing__features {
    list-style: none;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0;
    flex: 1;
}

.tier-pricing__feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.8125rem;
    color: var(--gray-700);
}

.tier-pricing__feature:last-child {
    border-bottom: none;
}

.tier-pricing__icon {
    flex-shrink: 0;
}

.tier-pricing__icon--check {
    color: var(--green);
}

.tier-pricing__icon--cross {
    color: var(--gray-300);
}

.tier-pricing__value {
    font-weight: 600;
    color: var(--navy);
    min-width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.tier-pricing__label {
    text-align: left;
}

.tier-pricing__note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .tier-pricing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    /* Column header is hidden — explicit per-card badges replace it below */
    .ba-header { display: none; }

    /* More breathing room between transformation rows */
    .ba-grid { gap: 1.75rem; }

    .ba-row {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
    }

    .ba-card {
        position: relative;
        padding-top: 1.75rem;
    }

    /* Per-card "Without" / "With" badges so each pair is self-explanatory,
       even after the user scrolls past the section header */
    .ba-card--before::before,
    .ba-card--after::before {
        position: absolute;
        top: 0.75rem;
        left: 0.875rem;
        font-size: 0.625rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        line-height: 1;
    }
    .ba-card--before::before {
        content: 'Without';
        background: rgba(249, 115, 22, 0.12);
        color: #F97316;
    }
    .ba-card--after::before {
        content: 'With';
        background: rgba(34, 197, 94, 0.18);
        color: var(--green);
    }

    /* Centered vertical connector between the two stacked cards */
    .ba-row__arrow {
        padding: 0.25rem 0;
        justify-content: center;
    }
    .ba-row__arrow svg {
        transform: rotate(90deg);
        width: 18px;
        height: 18px;
        opacity: 0.7;
    }

    /* No hover on mobile — descriptions are always shown, no clip */
    .ba-card__desc {
        max-height: none;
        opacity: 1;
        margin-top: 0.5rem;
    }
}


/* ===== 20. Screenshot Placeholder ===== */
.screenshot-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.section:not(.section--dark):not(.section--hero-dark) .screenshot-placeholder {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-400);
}

.screenshot-placeholder img { width: 40px; height: 40px; opacity: 0.3; margin-bottom: 0.75rem; }


/* ===== 21. Dashboard Image ===== */
.dashboard-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}


/* ===== 22. Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease);
}

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

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 2rem;
}

.footer__brand { margin-bottom: 0; }
.footer__brand img { height: 32px; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.8125rem; font-weight: 300; color: var(--gray-500); line-height: 1.6; }
.footer-brand { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-brand--light { display: none; }

.footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { font-size: 0.8125rem; font-weight: 300; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__bottom p { font-size: 0.8125rem; color: var(--gray-600); font-weight: 300; }
.footer__bottom img { height: 18px; opacity: 0.35; }

@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
}


/* ===== 23. Legal / Static Pages ===== */
.page-static {
    padding-top: 7rem;
    padding-bottom: 3rem;
    min-height: 80vh;
}

.page-legal h2,
.page-about h2 { margin-bottom: 1rem; }

blockquote {
    border-left: 3px solid var(--blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-500);
}

.prose { max-width: 800px; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { color: var(--text); margin-bottom: 1rem; font-weight: 300; }


/* ===== 24. Check List ===== */
.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 300;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.375rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-50);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

.section--dark .check-list li,
.section--hero-dark .check-list li { color: rgba(255, 255, 255, 0.7); }

.section--dark .check-list li::before,
.section--hero-dark .check-list li::before {
    background-color: rgba(59, 130, 246, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}


/* ===== 25. Section Headers ===== */
.section__header {
    margin-bottom: 3.5rem;
}

.section__header h2 { margin-bottom: 1rem; }

.section__header p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    font-weight: 300;
    max-width: 560px;
}

.section__header--centered {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
}

.section__header--centered p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    font-weight: 300;
    max-width: 560px;
    margin-inline: auto;
}


/* ===== 26. Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}


/* ===== 27. Blue Divider ===== */
.divider-blue {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--blue) 50%, transparent 100%);
    border: none;
    margin: 0;
    opacity: 0.3;
}


/* ===== 28. Feature Section (Bento) ===== */
.feature-tabs {
    max-width: 960px;
    margin: 0 auto;
}

.feature-tabs .tabs__nav {
    margin-bottom: 2rem;
    width: 100%;
}

.feature-tabs .tabs__nav .tabs__btn {
    flex: 1;
}

.feature-tabs__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-tabs__media {
    border-radius: 12px;
    overflow: hidden;
}

.feature-tabs__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.feature-tabs__content h3 {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.feature-tabs__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: var(--gray-100);
    border-radius: 12px;
    color: var(--gray-400);
}

.feature-tabs__content h4 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.feature-tabs__content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin: 0 0 1.25rem;
}

.feature-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: gap var(--duration) var(--ease);
}

.feature-tabs__link:hover { gap: 0.625rem; }

.feature-tabs__link svg { flex-shrink: 0; }

.feature-tabs__content {
    width: 100%;
}

.feature-tabs__links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .feature-tabs__split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Mobile: keep the desktop pill design — let the pills scroll horizontally
       inside the rounded container instead of cramping with flex: 1 */
    .feature-tabs .tabs__nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 0.25rem;
        margin-bottom: 1.5rem;
    }

    .feature-tabs .tabs__nav::-webkit-scrollbar { display: none; }

    .feature-tabs .tabs__nav .tabs__btn {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        scroll-snap-align: start;
    }
}


/* ===== 29. Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Hero-specific animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(32px);
    animation: heroIn 1s var(--ease) forwards;
}

.hero-reveal--delay-1 { animation-delay: 0.15s; }
.hero-reveal--delay-2 { animation-delay: 0.3s; }
.hero-reveal--delay-3 { animation-delay: 0.45s; }
.hero-reveal--delay-4 { animation-delay: 0.6s; }

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image float animation */
.float-in {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: floatIn 1.2s var(--ease) 0.4s forwards;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle hover float */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hover-float:hover {
    animation: subtleFloat 3s ease-in-out infinite;
}

/* Count-up glow pulse */
@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 40px var(--blue-glow); }
    50% { text-shadow: 0 0 60px var(--blue-glow), 0 0 100px rgba(59, 130, 246, 0.15); }
}

.stat-number.counted {
    animation: glowPulse 3s ease-in-out 1;
}


/* ===== 30. Responsive ===== */
@media (max-width: 992px) {
    .section { padding: 5rem 0; }
    .section:first-child { padding-top: 9rem; }
}

@media (max-width: 640px) {
    .section { padding: 3.5rem 0; }
    .section:first-child { padding-top: 7.5rem; }
    .cta-banner { padding: 3rem 1.5rem; border-radius: var(--radius-xl); }
    .card--team .card__photo { width: 110px; height: 110px; }
}


/* ===== 31. Utility ===== */
.text-center { text-align: center; }
.text-decoration-none { text-decoration: none; color: inherit; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* ===== Error Pages ===== */
.error-page {
    text-align: center;
    padding: 6rem 0 8rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-page__code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem;
}

.error-page__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #fff;
    margin: 0 0 1rem;
}

.error-page__lead {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin: 0 0 2.5rem;
    max-width: 480px;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* ===== Screenshot Lightbox ===== */
.screenshot-zoom {
    display: block;
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: zoom-out;
}

.lightbox.active { opacity: 1; }

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.lightbox.active .lightbox__img { transform: scale(1); }

/* Spinner (HTMX indicator) */
.spinner {
    display: none;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: -0.125em;
}
.spinner.htmx-request { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
