/* =========================================
   RESET & VARIABLES
   ========================================= */
html {
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --PrimaryColor: #1B58E9;
    --BlackColor: #000;
    --WhiteColor: #FFFFFF;
    --SecondaryColor: #739DFF;
    --NavyColor: #0A1233;
    --DarkBg: #061127;

    /* Layout */
    --HeaderHeight: 5.4rem;

    /* Motion */
    --EaseOut: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





body {
     font-family: "Plus Jakarta Sans", sans-serif;
   font-weight: 400;
    color: var(--BlackColor);
    line-height: 1.5;
    background-color: var(--WhiteColor);
    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}




.same-section {
    padding: clamp(5rem, 7vw, 5rem) 0;
}

.same-heading {
    margin-bottom: 4rem;
}

.same-heading h2 {
    color: #0B1026;
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}



.same-heading h3 {
   
    color: #1D094E;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.same-heading p {
    color: #5B6275;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Sections land below the fixed header when reached via nav anchors */
section[id] {
    scroll-margin-top: var(--HeaderHeight);
}



.bg-gray {
    background: #F1F1F1;
}

.max-wid-50 {
    width: 100%;
    max-width: 50%;
}

.max-wid-80 {
    width: 100%;
    max-width: 80%;
}

.same-heading.text-center .max-wid-50 {
    margin: 0 auto;
}

.same-heading.white-text :is(h2) {
  color: var(--WhiteColor)

}

.same-heading.white-text :is( p) {
   color: #D0D0D0; 

}
.same-section .section-bottom-btn {
    margin-top: 1.5rem;
}

.section-bottom-btn {
    display: flex;
    gap: 1rem;
    align-items: center;flex-wrap: wrap;
    margin-top: 2rem;
}

.section-bottom-btn.text-center {
    justify-content: center;
}


/* =========================================
   UTILITIES
   ========================================= */
.tag {
  font-size: 0.8rem;
  font-weight: 500;
    letter-spacing: 0.16em;
  color: var(--PrimaryColor);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.same-heading .tag {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--PrimaryColor);
}

.text-primary-blue {
  color: var(--PrimaryColor);
}

/* Blue-to-light vertical gradient used on big numbers and letters */
.text-gradient {
  background: linear-gradient(180deg, #2A5FE8 25%, #B9CAF7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cursor-following soft light on cards: add data-spotlight (custom.js sets --spot-x/--spot-y) */
[data-spotlight] {
  position: relative;
  isolation: isolate;
}

[data-spotlight]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(22rem circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(27, 88, 233, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-spotlight]:hover::after {
  opacity: 1;
}

.link-arrow {
  color: var(--PrimaryColor);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--EaseOut), color 0.2s;
}

.link-arrow:hover {
  color: var(--PrimaryColor);
  background-size: 100% 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    /* Animation Properties */
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.btn-primary {
    background: linear-gradient(to bottom, #739DFF, #1B58E9);
    color: var(--WhiteColor);
    border:var(--SecondaryColor);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--SecondaryColor);
    color: var(--WhiteColor);
    border-color: var(--SecondaryColor);
}

.btn-primary {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 20px -8px rgba(27, 88, 233, 0.7);
}

.btn-primary .fluid-canvas,
.btn-secondary .fluid-canvas,
.btn-outline-primary .fluid-canvas,
.btn-outline-white .fluid-canvas,
.btn-white .fluid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: 1;
}

.btn-primary .btn-text,
.btn-secondary .btn-text,
.btn-outline-primary .btn-text,
.btn-outline-white .btn-text,
.btn-white .btn-text {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-outline-primary {
    background: transparent;
    color: #1F1F1F;
    border-color: #D5D5D5;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background: var(--PrimaryColor);
    color: var(--WhiteColor);
    border-color: var(--PrimaryColor);
}

.btn-secondary {
    background: var(--SecondaryColor);
    border: solid 1px var(--SecondaryColor);
    color: var(--WhiteColor);
}

.btn-secondary:hover,.btn-secondary:focus,.btn-secondary:active {
 background: var(--PrimaryColor);
border-color:var(--PrimaryColor);
color: var(--WhiteColor);
}



.btn-white {
    background: var(--WhiteColor);
    border: solid 1px var(--WhiteColor);
    color: var(--SecondaryColor);
}

.btn-white:hover,.btn-white:focus,.btn-white:active {
 background: var(--PrimaryColor);
border-color:var(--PrimaryColor);
color: var(--WhiteColor);
}

/* Outline button for dark backgrounds */
.btn-outline-white {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--WhiteColor);
}

.btn-outline-white:hover, .btn-outline-white:focus, .btn-outline-white:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--WhiteColor);
}

.btn:focus-visible {
    outline: 2px solid #8FB0FF;
    outline-offset: 3px;
}


/* =========================================
   REVEAL ANIMATIONS (driven by custom.js)
   data-reveal=""       -> fade up
   data-reveal="fade"   -> fade only
   data-reveal="rise"   -> larger rise + scale (images / mockups)
   data-reveal="lines"  -> masked line-by-line text (.line > .line-inner)
   data-reveal-group    -> staggers its children
   ========================================= */
[data-reveal] {
    opacity: 0;
}

/* Mercury-style animateIn: slight-overshoot translate (delayed .15s) + separate fade curve */
[data-reveal].is-visible {
    opacity: 1;
    animation:
        revealTranslateUp 0.67s cubic-bezier(0.28, 1.1, 0.74, 1) calc(var(--d, 0s) + 0.15s) backwards,
        revealFade 0.67s cubic-bezier(0.59, 0.41, 0.68, 0.49) var(--d, 0s) backwards;
}

[data-reveal="fade"].is-visible {
    animation: revealFade 0.67s cubic-bezier(0.59, 0.41, 0.68, 0.49) var(--d, 0s) backwards;
}

@keyframes revealTranslateUp {
    from { transform: translate3d(0, 28px, 0); }
    to   { transform: none; }
}

[data-reveal="rise"].is-visible {
    animation: revealRise 1.4s var(--EaseOut) var(--d, 0s) backwards;
}

[data-reveal="lines"] {
    opacity: 1;
}

[data-reveal="lines"] .line {
    display: block;
    overflow: hidden;
    /* room for descenders inside the mask */
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

[data-reveal="lines"] .line-inner {
    display: block;
    transform: translate3d(0, 110%, 0);
}

[data-reveal="lines"].is-visible {
    animation: none;
}

[data-reveal="lines"].is-visible .line-inner {
    transform: none;
    animation: revealLine 1.1s var(--EaseOut) calc(var(--d, 0s) + var(--i, 0) * 0.1s) backwards;
}

@keyframes revealUp {
    from { opacity: 0; transform: translate3d(0, 28px, 0); }
    to   { opacity: 1; transform: none; }
}

@keyframes revealFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes revealRise {
    from { opacity: 0; transform: translate3d(0, 80px, 0) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

@keyframes revealLine {
    from { transform: translate3d(0, 110%, 0); }
    to   { transform: none; }
}



/* =========================================
   1. NAVBAR
   ========================================= */

/* Default (inner pages): a normal, in-flow navy bar, so page content is never covered.
   Homepage (body.home): fixed and transparent over the dark hero; gets a blurred navy
   backdrop once scrolled (.headerfix) and slides away while scrolling down (.header-hidden). */
.header {
    position: relative;
    z-index: 1001;
    padding: 1.1rem 0;
    background: var(--NavyColor);
    border-bottom: solid 1px rgba(255, 255, 255, 0.08);
}

/* Backdrop lives on a pseudo-element: backdrop-filter on .header itself would
   become the containing block of the fixed mobile sidebar. */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 18, 51, 0.92); /* stays navy over light sections too */
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.home .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    transition: transform 0.5s var(--EaseOut), padding 0.4s var(--EaseOut), border-color 0.4s ease;
    animation: headerIn 1s var(--EaseOut) 0.1s backwards;
}

.home .header.headerfix {
    padding: 0.7rem 0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.home .header.headerfix::before {
    opacity: 1;
}

.home .header.header-hidden {
    transform: translate3d(0, -100%, 0);
}

/* Inner pages: detach once scrolled past, slide in on scroll up (custom.js initHeader) */
body:not(.home) .header {
    transition: transform 0.5s var(--EaseOut);
}

body:not(.home) .header.headerfix {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 10px 30px -18px rgba(5, 12, 40, 0.6);
}

body:not(.home) .header.headerfix::before {
    opacity: 1;
}

body:not(.home) .header.header-hidden {
    transform: translate3d(0, -100%, 0);
}

/* the static <-> fixed switch itself must not animate */
.header.no-anim {
    transition: none !important;
}

.header-spacer {
    height: 0;
}

@keyframes headerIn {
    from { opacity: 0; transform: translate3d(0, -20px, 0); }
    to   { opacity: 1; transform: none; }
}

.header .nav-content {
    display: flex;
    align-items: center;

}
/* .header .nav-content .logo img{max-height: 2.4rem;} */
.header .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
}
.header .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.25rem, 2.2vw, 2.9rem);
    margin-left: clamp(1.25rem, 1.6vw, 1.6rem);
    flex: 1;
}
.header .nav-actions{margin-left: 3rem;}


/* Top-level items: plain link + mega-menu triggers */
.header .nav-link,
.header .nav-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header .sign-btn .btn {
    white-space: nowrap;
}

/* Laptop widths (and zoomed browsers): tighten so the bar stays on one line */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header .nav-menu {
        gap: 1.1rem;
        margin-left: 1.1rem;
    }

    .header .nav-link,
    .header .nav-trigger {
        font-size: 0.88rem;
    }

    .header .sign-btn {
        gap: 0.6rem;
    }

    .header .nav-links .sign-btn .btn { /* extra specificity: base rule comes later */
        padding: 0.55rem 0.95rem;
        font-size: 0.88rem;
    }
}

.header .nav-link::before,
.header .nav-trigger::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--SecondaryColor);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.header .nav-link:hover,
.header .nav-trigger:hover,
.header .nav-trigger[aria-expanded="true"] {
    color: var(--WhiteColor);
}

.header .nav-link:hover::before,
.header .nav-trigger:hover::before,
.header .nav-trigger[aria-expanded="true"]::before {
    width: 100%;
}

.header .nav-trigger svg {
    width: 0.85rem;
    height: 0.85rem;
    transition: transform 0.35s var(--EaseOut);
}

.header .nav-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.header .nav-trigger:focus-visible,
.header .nav-link:focus-visible {
    outline: 2px solid #8FB0FF;
    outline-offset: 4px;
    border-radius: 4px;
}

.header .sign-btn{display: flex; align-items: center; gap: 1rem; margin-left: 1rem;}

/* --- Mega menu (desktop): white panel dropping below the header --- */
.header .container {
    position: relative;
}

@media (min-width: 1200px) {
    .mega {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 0.6rem);
        max-width: 1200px;
        margin: 0 auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* a fading-out panel must not catch the pointer and reopen */
        transform: translate3d(0, -10px, 0) scale(0.99);
        transform-origin: 50% 0;
        transition: opacity 0.25s ease, transform 0.35s var(--EaseOut), visibility 0s linear 0.35s;
    }

    /* Switching between open menus: swap panels in place, just fade the content */
    .nav-menu.is-switching .mega {
        transition: none;
    }

    .nav-menu.is-switching .nav-item.is-open .mega-inner > * {
        animation: megaSwap 0.3s ease backwards;
    }

    .nav-menu.is-switching .nav-item.is-open .mega-grid a {
        animation: none;
    }

    @keyframes megaSwap {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* invisible bridge so the pointer can travel from trigger to panel */
    .mega::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -1.6rem;
        height: 1.6rem;
    }

    .nav-item.is-open .mega {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: opacity 0.25s ease, transform 0.35s var(--EaseOut), visibility 0s;
    }

    .mega-inner {
        display: grid;
        grid-template-columns: 17.5rem 1fr;
        gap: 1.75rem;
        padding: 1.6rem;
        /* solid soft off-white: even tone, the hero glows don't show through */
        background: #F7F8FC;
        border: 1px solid #E3E8F2;
        border-radius: 24px;
        box-shadow: 0 24px 50px -28px rgba(5, 12, 40, 0.5);
    }

    /* intro sits back with a light blue tint */
    .mega-intro {
        background: #EEF2FA;
        border-color: #E0E6F2;
    }

    .mega-grid a:hover,
    .mega-grid a:focus-visible {
        background: #EDF1F9;
    }

    .mega-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* links cascade in each time a panel opens */
    .nav-item.is-open .mega-grid a {
        animation: chipIn 0.5s var(--EaseOut) calc(0.05s + var(--mi, 0) * 0.025s) backwards;
    }
}

.mega-intro {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    background: linear-gradient(160deg, #F2F5FC, #FFFFFF);
    border: 1px solid #E6EAF2;
    border-radius: 16px;
}

.mega-intro h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #0B1026;
    margin-bottom: 0.5rem;
}

.mega-intro p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5B6275;
    margin-bottom: 1.5rem;
}

.mega-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start; /* arrow stays right after the text, even when it wraps */
    gap: 0.35rem;
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--PrimaryColor);
}

.mega-more:hover {
    color: var(--PrimaryColor);
}

.mega-more svg {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.35s var(--EaseOut);
}

.mega-more:hover svg {
    transform: translate3d(4px, 0, 0);
}

.mega-grid {
    display: grid;
    gap: 0.25rem;
    align-content: start;
}

.mega-grid a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.mega-grid a:hover,
.mega-grid a:focus-visible {
    background: #F2F5FB;
    outline: none;
}

.mega-grid b {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0B1026;
    transition: color 0.2s ease;
}

.mega-grid a:hover b {
    color: var(--PrimaryColor);
}

.mega-grid span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #7A8093;
}

.header .sign-btn .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
}

.header .mobile-toggle {
font-size: 1.5rem;
width: 2.6rem;
height: 2.6rem;
background: var(--PrimaryColor);
color: var(--WhiteColor);
border: solid 1px var(--PrimaryColor);
border-radius: 50%;
cursor: pointer;
display: inline-flex; align-items: center;
justify-content: center;
}
.header .mobile-toggle svg{width: 1.3rem;}
.header  .btn-sidebar-close{font-size: 1.5rem;
width: 2.6rem;
height: 2.6rem;
background: var(--PrimaryColor);
color: var(--WhiteColor);
border: solid 1px var(--PrimaryColor);
border-radius: 50%;
cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header  .btn-sidebar-close svg{width: 1.3rem;}


/* Reading progress bar along the very top (--progress 0..1 set in custom.js) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1003;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, #1B58E9 0%, #6A4BF5 100%);
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    will-change: transform;
}

/* Mobile sidebar overlay (element created in custom.js) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 10, 30, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   2. HERO / BANNER
   ========================================= */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--HeaderHeight) + 5rem);
    color: var(--WhiteColor);
}

/* --- Background: painted with CSS to match images/blue-bg-banner-img.jpg ---
   Base gradient + soft organic blobs (radial gradients, lightly blurred) + grain.
   Blob sizes/positions use vw so the composition keeps its proportions. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #060B29 0, #060B29 12vw, #060B29 28vw, #060B29 40vw, #060B29 50vw, #060B29 100%);
    animation: heroBgIn 1.8s var(--EaseOut) backwards;
}

@keyframes heroBgIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Wrapper is moved by JS (parallax); ::before carries the shape, blur and idle drift.
   --rot tilts a blob without clashing with the JS transform. */
.hero-glow {
    position: absolute;
    will-change: transform;
}

.hero-glow::before,
.stack12-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: glowDrift 16s ease-in-out infinite alternate;
}

.hero-glow::before {
    filter: blur(var(--blur, 28px));
    transform: rotate(var(--rot, 0deg)); /* kept when the drift is off (reduced motion) */
}

/* Light sky-blue wash, top centre */
.hero-glow--sky {
    width: 62vw;
    height: 28vw;
    left: 16vw;
    top: -8vw;
    --rot: -6deg;
}

.hero-glow--sky::before {
    background: radial-gradient(closest-side, rgba(110, 150, 235, 0.85), rgba(70, 115, 215, 0.6) 50%, rgba(60, 105, 205, 0) 100%);
    animation-duration: 20s;
}

/* Brighter blue on the left edge */
.hero-glow--side {
    width: 34vw;
    height: 26vw;
    left: -14vw;
    top: 4vw;
}

.hero-glow--side::before {
    background: radial-gradient(closest-side, rgba(52, 92, 196, 0.75), rgba(52, 92, 196, 0) 100%);
    animation-duration: 24s;
}

/* Deep navy band sweeping across the middle */
.hero-glow--band {
    width: 96vw;
    height: 23vw;
    left: -18vw;
    top: 15vw;
    --rot: -3deg;
    --blur: 34px;
}

.hero-glow--band::before {
    background: radial-gradient(closest-side, rgba(6, 16, 58, 1), rgba(10, 24, 76, 0.85) 55%, rgba(12, 28, 84, 0) 100%);
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

/* Dark crown, top right */
.hero-glow--crown {
    width: 52vw;
    height: 22vw;
    right: -10vw;
    top: -7vw;
    --rot: 10deg;
}

.hero-glow--crown::before {
    background: radial-gradient(closest-side, rgba(12, 26, 78, 0.95), rgba(12, 26, 78, 0.6) 55%, rgba(12, 26, 78, 0) 100%);
    animation-duration: 26s;
}

/* White light on the right */
.hero-glow--sun {
    width: 50vw;
    height: 30vw;
    right: -14vw;
    top: 9vw;
    --rot: 6deg;
    --blur: 22px;
}

.hero-glow--sun::before {
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85) 0%, rgba(232, 240, 255, 0.7) 32%, rgba(160, 195, 255, 0.45) 62%, rgba(90, 140, 240, 0) 100%);
    animation-duration: 18s;
}

/* White ribbon of light along the bottom */
.hero-glow--floor {
    width: 112vw;
    height: 15vw;
    left: 2vw;
    top: 37vw;
    --rot: -2deg;
    opacity: 0.2; /* kept faint everywhere, including on hover */
}

.hero-glow--floor::before {
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75) 0%, rgba(228, 236, 255, 0.55) 45%, rgba(170, 196, 255, 0.3) 72%, rgba(170, 196, 255, 0) 100%);
    animation-duration: 21s;
}

/* Violet tint, bottom left */
.hero-glow--violet {
    width: 36vw;
    height: 18vw;
    left: -12vw;
    top: 36vw;
}

.hero-glow--violet::before {
    background: radial-gradient(closest-side, rgba(70, 52, 180, 0.7), rgba(70, 52, 180, 0) 100%);
    animation-duration: 25s;
    animation-direction: alternate-reverse;
}

@keyframes glowDrift {
    0%   { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)) scale(1); }
    50%  { transform: translate3d(-2%, 3%, 0) rotate(var(--rot, 0deg)) scale(1.04); }
    100% { transform: translate3d(2%, -2%, 0) rotate(var(--rot, 0deg)) scale(0.98); }
}

/* White light on the right appears on hover (mouse devices only; touch screens keep it on).
   Dimmed to a faint blue tint at rest, then eases up. */
@media (hover: hover) and (pointer: fine) {
    .hero-glow--sun {
        opacity: 0.18;
        transition: opacity 1.2s var(--EaseOut);
    }

    .hero-section:hover .hero-glow--sun,
    .hero-section:focus-within .hero-glow--sun {
        opacity: 0.8;
    }
}

/* The reference has heavy film grain */
.hero-bg .hero-grain {
    opacity: 0.9;
}

/* Film grain overlay, shared by dark backdrops */
.hero-grain,
.bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Content --- */
.hero-section .hero-content {
    will-change: transform, opacity;
}

.hero-section .hero-content h1 {
    font-size: 4.25rem;
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--WhiteColor);
    margin-bottom: 2.4rem;
}

.hero-section .hero-lead {
    max-width: 38rem;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--WhiteColor);
    margin-bottom: 1.2rem;
}

.hero-section .hero-text {
    max-width: 38rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #9BA8CC;
    margin-bottom: 0;
}

.hero-section .hero-btns {
    margin-top: 3.4rem;
}

.hero-section .hero-btns .btn {
    padding: 0.75rem 1.45rem;
    font-size: 0.95rem;
}

/* --- Product mockup: overlaps the dark background and the white area below --- */
.hero-visual {
    position: relative;
    margin-top: 7rem;
}

/* White band behind the lower part of the mockup; the navy background stops here */
.hero-visual::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 100vw;
    top: 33%;
    bottom: 0;
    z-index: -1;
    transform: translateX(-50%);
    background: var(--WhiteColor);
}

.hero-visual-inner {
    transform-origin: 50% 0;
    will-change: transform;
}

/* --- Interactive dashboard window --- */
.dash-frame {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 46px;
}

.dash {
    overflow: hidden;
    color: #0B1026;
    background: var(--WhiteColor);
    border-radius: 26px;
    box-shadow: 0 40px 80px -40px rgba(11, 16, 38, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.dash-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.1rem;
    background: #FCFCFF;
    border-bottom: 1px solid #ECEFF6;
}

.dash-top > i {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: #E3E6EF;
}

.dash-url {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.3rem 0.9rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: #5B6275;
    background: #F2F5FB;
    border-radius: 999px;
}

.dash-url svg {
    width: 0.7rem;
    height: 0.7rem;
}

.dash-body {
    display: grid;
    grid-template-columns: 14.5rem minmax(0, 1fr) 20rem;
    min-height: 35rem;
}

/* Left: audience list */
.dash-aud {
    padding: 1.4rem 0.9rem;
    border-right: 1px solid #ECEFF6;
}

.dash-label {
    padding: 0 0.6rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    color: #7A8093;
    margin: 0;
}

.aud-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.aud-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    color: #0B1026;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.aud-chip:hover {
    background: #F4F6FB;
}

.aud-chip[aria-pressed="true"] {
    background: #EDF2FE;
}

.aud-chip:focus-visible {
    outline: 2px solid var(--PrimaryColor);
    outline-offset: 1px;
}

.aud-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    color: var(--PrimaryColor);
    background: #EDF2FE;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--EaseOut);
}

.aud-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.aud-chip[aria-pressed="true"] .aud-icon {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    box-shadow: 0 6px 14px -4px rgba(27, 88, 233, 0.6);
    transform: scale(1.04);
}

.btn-dark {
    color: var(--WhiteColor);
    background: #0B1026;
    border-color: #0B1026;
}

.btn-dark:hover,
.btn-dark:focus {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    border-color: var(--PrimaryColor);
}

.dash-cta {
    width: calc(100% - 1.2rem);
    margin: 1.1rem 0.6rem 0;
    border-radius: 999px;
}

/* Centre: fabric map */
.dash-map {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: radial-gradient(60% 60% at 50% 50%, #F5F7FF, #FFFFFF);
}

.fabmap {
    width: 100%;
    max-width: 34rem;
    height: auto;
    overflow: visible;
}

.fab-ring {
    fill: none;
    stroke: #DCE2EE;
    stroke-dasharray: 3 6;
}

.fab-ring--outer {
    transform-origin: 300px 300px;
    animation: ringSpin 60s linear infinite;
}

.fab-ring--inner {
    transform-origin: 300px 300px;
    animation: ringSpin 90s linear infinite reverse;
}

.fab-ring--mid {
    stroke-dasharray: 1 10;
    opacity: 0.7;
}

.fab-dspoke {
    stroke: #DCE2EE;
    stroke-width: 1;
    stroke-dasharray: 2 4;
}

.fab-spoke {
    stroke: #DCE2EE;
    stroke-width: 1.5;
    transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.fab-spoke.is-on {
    stroke: var(--PrimaryColor);
    stroke-width: 2.5;
}

.fab-dnode circle {
    fill: var(--WhiteColor);
    stroke: #DCE2EE;
}

.fab-dnode text {
    font-size: 9.5px;
    text-anchor: middle;
    fill: #8A93AD;
}

.fab-node {
    cursor: pointer;
    outline: none;
}

.fab-node circle {
    fill: var(--WhiteColor);
    stroke: #DCE2EE;
    stroke-width: 1.5;
    transition: fill 0.4s var(--EaseOut), stroke 0.4s ease, filter 0.4s ease;
}

.fab-node text {
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    fill: #3B4256;
    pointer-events: none;
    transition: fill 0.3s ease;
}

.fab-node:hover circle,
.fab-node:focus-visible circle {
    stroke: var(--PrimaryColor);
}

.fab-node.is-on circle {
    fill: var(--PrimaryColor);
    stroke: var(--PrimaryColor);
    filter: drop-shadow(0 8px 14px rgba(27, 88, 233, 0.45));
}

.fab-node.is-on text {
    fill: var(--WhiteColor);
}

.fab-pulse {
    fill: var(--PrimaryColor);
}

.fab-halo {
    fill: url(#fabCoreGlow);
    opacity: 0.4;
    transform-origin: 300px 300px;
    transition: opacity 0.4s ease;
}

.fabmap.core-on .fab-halo {
    opacity: 1;
    animation: fabBreathe 3s ease-in-out infinite;
}

@keyframes fabBreathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

.fab-core {
    fill: url(#fabCoreFill);
}

.fab-core-t {
    font-size: 17px;
    font-weight: 700;
    text-anchor: middle;
    fill: var(--WhiteColor);
}

.fab-core-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    letter-spacing: 0.05em;
    text-anchor: middle;
    fill: #C9D7FF;
}

/* Right: answer for the chosen audience */
.dash-answer {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem;
    background: #FCFCFF;
    border-left: 1px solid #ECEFF6;
}

.answer h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.6rem;
}

.answer p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}

.answer ul {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.answer li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 10px;
}

.answer li::before {
    content: '';
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 2px;
    background: var(--PrimaryColor);
}

/* Swap animation when the audience changes (class re-applied by custom.js) */
.answer.is-swapping h3,
.answer.is-swapping p {
    animation: chipIn 0.5s var(--EaseOut) backwards;
}

.answer.is-swapping p {
    animation-delay: 0.05s;
}

.answer.is-swapping li {
    animation: answerLi 0.45s var(--EaseOut) calc(0.1s + var(--ci, 0) * 0.08s) backwards;
}

@keyframes answerLi {
    from { opacity: 0; transform: translate3d(8px, 0, 0); }
    to   { opacity: 1; transform: none; }
}

.dash-legend {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.2rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #8A93AD;
}

.dash-legend span {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.dash-legend i {
    flex-shrink: 0;
    width: 0.9rem;
    margin-top: 0.55rem;
    border-top: 1.5px dashed #DCE2EE;
}

.dash-legend i.is-solid {
    border-top: 2px solid var(--PrimaryColor);
}

@media (min-width: 1400px) {
    /* Design grid: 1200px content column, wider header */
    .container { max-width: 1224px; }
    .header .container { max-width: 1640px; }
}


/* =========================================
   3. STATS
   ========================================= */
.stats-section {
    padding: 1.5rem 0 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 72rem;
    margin: 0 auto;
    border-top: 1px solid #E9ECF4;
    border-bottom: 1px solid #E9ECF4;
}

.stat-item {
    position: relative;
    padding: 2rem 1.6rem 2.1rem;
    border-right: 1px solid #E9ECF4;
    overflow: hidden;
}

.stat-item:last-child {
    border-right: 0;
}

/* Soft tint that rises from the bottom on hover */
.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, #F3F6FF 0%, rgba(243, 246, 255, 0) 100%);
    opacity: 0;
    transform: translate3d(0, 30%, 0);
    transition: opacity 0.5s var(--EaseOut), transform 0.6s var(--EaseOut);
}

.stat-item:hover::before {
    opacity: 1;
    transform: none;
}

.stat-item { isolation: isolate; }

.stat-number {
    display: inline-block;
    font-size: 3.9rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 1rem;
    transition: transform 0.5s var(--EaseOut);
}

.stat-item:hover .stat-number {
    transform: translate3d(0, -4px, 0);
}

.stat-item p {
    max-width: 16.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4A4F5C;
    margin: 0;
}


/* =========================================
   4. WHAT LIFE MEANS
   ========================================= */
.life-section {
    padding-top: 4rem;
}

.life-section .same-heading .max-wid-50 {
    max-width: 52rem;
}

.life-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.life-card {
    padding: 2.6rem 1.75rem 2rem;
    background: #F5F7FB;
    border: 1px solid #E6EAF2;
    border-radius: 16px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease, background-color 0.4s ease;
}

.life-card:hover {
    transform: translate3d(0, -6px, 0);
    background-color: #F8FAFF;
    border-color: #D6E0F7;
    box-shadow: 0 24px 48px -28px rgba(27, 88, 233, 0.35);
}

/* Big letter sits in a mask and rises in just after its card */
.life-letter {
    display: block;
    overflow: hidden;
    font-size: 7.4rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 2.2rem;
}

.life-letter .text-gradient {
    display: inline-block;
    transition: transform 0.6s var(--EaseOut);
}

.life-card.is-visible .life-letter .text-gradient {
    animation: revealLine 1.1s var(--EaseOut) calc(var(--d, 0s) + 0.15s) backwards;
}

.life-card:hover .life-letter .text-gradient {
    transform: translate3d(0, -4px, 0);
}

.life-card h3 {
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0B1026;
    margin-bottom: 1rem;
}

.life-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}

.authorized-card {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    margin-top: 1.25rem;
    padding: 1.25rem 1.3rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 16px;
    transition: border-color 0.4s ease, box-shadow 0.6s var(--EaseOut);
}

.authorized-card:hover {
    border-color: #D6E0F7;
    box-shadow: 0 20px 40px -30px rgba(27, 88, 233, 0.35);
}

.authorized-card img {
    flex-shrink: 0;
    width: 246px;
    max-width: 100%;
    height: auto;
}

.authorized-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0B1026;
    margin-bottom: 0.35rem;
}

.authorized-card p {
    font-size: 0.95rem;
    color: #5B6275;
    margin-bottom: 0.2rem;
}

.authorized-card .link-arrow {
    font-size: 0.95rem;
}


/* =========================================
   5. PLATFORM STACK
   ========================================= */
.platform-section .platform-intro {
    max-width: 58rem;
    margin: 1.75rem auto 0;
    font-size: 1.05rem;
    line-height: 1.55;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #F2F5FB;
    border: 1px solid #E6EAF2;
    border-radius: 22px;
}

.stack-row {
    display: grid;
    grid-template-columns: 17.8rem 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.3rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 14px;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.6s var(--EaseOut), background-color 0.4s ease,
                transform 0.6s var(--EaseOut), opacity 0.5s ease;
}

.stack-row:hover {
    border-color: #D6E0F7;
    box-shadow: 0 18px 40px -26px rgba(27, 88, 233, 0.45);
    transform: translate3d(0, -2px, 0);
}

/* Focus the hovered layer: the others step back slightly */
@media (hover: hover) {
    .stack:hover .stack-row:not(:hover) {
        opacity: 0.62;
    }
}

/* Blue accent bar grows from the middle of the left edge */
.stack-row::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--PrimaryColor);
    transform: scaleY(0);
    transition: transform 0.5s var(--EaseOut);
}

.stack-row:hover::before {
    transform: scaleY(1);
}

.stack-row--dark::before {
    background: #8FA8FF;
}

/* Label nudges right and picks up the accent */
.stack-label {
    transition: transform 0.5s var(--EaseOut);
}

.stack-label h3 {
    transition: color 0.35s ease;
}

.stack-row:hover .stack-label {
    transform: translate3d(6px, 0, 0);
}

.stack-row:not(.stack-row--dark):hover .stack-label h3 {
    color: var(--PrimaryColor);
}

/* Chips light up one after another, left to right (--ci set in custom.js) */
.stack-row:hover .chip {
    transition-delay: calc(var(--ci, 0) * 22ms);
}

.stack-row:not(.stack-row--dark):hover .chip:not(.chip--dashed) {
    background: var(--WhiteColor);
    border-color: #CBD7F5;
}

/* Dark row keeps its translucent chips; only the border lights up */
.stack-row--dark:hover .chip {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(143, 168, 255, 0.5);
}

.stack-row:hover .chip:hover {
    transition-delay: 0s;
}

.stack-row--highlight {
    background: #EAF0FD;
    border-color: #D6E0F7;
}

.stack-row--dark {
    background: var(--NavyColor);
    border-color: var(--NavyColor);
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
}

.stack-row--dark:hover {
    border-color: #26336B;
    box-shadow: 0 20px 40px -24px rgba(10, 18, 51, 0.6);
}

.stack-label h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #0B1026;
    margin-bottom: 0.2rem;
}

.stack-label p {
    font-size: 0.875rem;
    color: #5B6275;
    margin: 0;
}

.stack-row--dark .stack-label h3 { color: var(--WhiteColor); }
.stack-row--dark .stack-label p { color: #9BA8CC; }

.stack-chips {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    align-items: center;
    gap: 0.45rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #1F2433;
    background: #FAFBFD;
    border: 1px solid #E1E6EF;
    border-radius: 6px;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.35s var(--EaseOut);
}

.chip:hover {
    color: var(--PrimaryColor);
    border-color: rgba(27, 88, 233, 0.4);
    background: var(--WhiteColor);
    transform: translate3d(0, -2px, 0);
}

.chip--dashed {
    color: #5B6275;
    background: transparent;
    border-style: dashed;
    border-color: #C9D0DD;
}

.chip-label {
    margin-right: 0.3rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7A8093;
}

.stack-row--dark .chip {
    color: var(--WhiteColor);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
}

.stack-row--dark .chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Chips pop in one after another once their row is revealed (--ci set in custom.js) */
.stack-row.is-visible .chip {
    animation: chipIn 0.6s var(--EaseOut) calc(var(--d, 0s) + 0.2s + var(--ci, 0) * 0.025s) backwards;
}

@keyframes chipIn {
    from { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.96); }
    to   { opacity: 1; transform: none; }
}


/* =========================================
   6. QUOTE
   ========================================= */
.quote-section {
    padding: 6rem 0;
}

.quote-block {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 2.4rem;
    border-radius: 14px;
    color: var(--WhiteColor);
    background: linear-gradient(135deg, #1B58E9 0%, #2F8BF5 100%);
    box-shadow: 0 12px 24px -10px rgba(27, 88, 233, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.6s var(--EaseOut);
}

.quote-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    transition: transform 0.6s var(--EaseOut);
}

.quote-icon:hover {
    transform: translate3d(0, -3px, 0);
}

.quote-icon:hover svg {
    transform: rotate(-25deg);
}

[data-reveal="pop"].is-visible {
    animation: revealPop 0.9s var(--EaseOut) var(--d, 0s) backwards;
}

@keyframes revealPop {
    from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.7) rotate(-8deg); }
    to   { opacity: 1; transform: none; }
}

/* Fallback (no JS / reduced motion): one vertical gradient across the whole quote.
   custom.js replaces it with per-word colours sampled from the same gradient. */
.quote-text {
    position: relative; /* offsetParent for per-word colour sampling in custom.js */
    margin: 0;
    font-size: 2.15rem;
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #1D5BEA 0%, #1B4FD8 32%, #0E1535 50%, #4A5470 70%, #9AA6C0 90%, #A7B1C8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.quote-text.is-split {
    background: none;
    color: #0E1535;
}


/* =========================================
   7. THE LIFE STACK (dark accordion)
   ========================================= */
.stack12-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 7rem 0 6rem;
    color: var(--WhiteColor);
}

/* Dark fill by default (no JS / reduced motion). With the theme switcher on, the section
   goes transparent and the page background itself turns dark (see THEME SWITCHER). */
.stack12-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--DarkBg);
}

/* Glow wrappers are moved by JS (parallax); ::before carries gradient + idle drift */
.stack12-glow {
    position: absolute;
    will-change: transform;
}

/* Blue light pouring from the top centre */
.stack12-glow--top {
    width: 76vw;
    height: 44vw;
    left: 12vw;
    top: -24vw;
}

.stack12-glow--top::before {
    background: radial-gradient(closest-side, rgba(40, 88, 232, 0.85), rgba(34, 78, 214, 0.35) 55%, rgba(34, 78, 214, 0) 100%);
    animation-duration: 18s;
}

/* Violet haze, lower right */
.stack12-glow--side {
    width: 52vw;
    height: 52vw;
    right: -18vw;
    bottom: -20vw;
}

.stack12-glow--side::before {
    background: radial-gradient(closest-side, rgba(84, 64, 210, 0.45), rgba(84, 64, 210, 0.15) 60%, rgba(84, 64, 210, 0) 100%);
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

/* Faint blue, mid left */
.stack12-glow--left {
    width: 40vw;
    height: 40vw;
    left: -20vw;
    top: 40%;
}

.stack12-glow--left::before {
    background: radial-gradient(closest-side, rgba(30, 70, 200, 0.22), rgba(30, 70, 200, 0) 100%);
    animation-duration: 26s;
}

.stack12-bg .bg-grain {
    opacity: 0.35;
}

.tag--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.same-heading.white-text .tag {
    color: #8FA8FF;
}

.same-heading.white-text h2 {
    font-weight: 500;
}

.same-heading.white-text p:not(.tag) {
    color: #B5BED6;
}

.stack12-section .same-heading .max-wid-50 {
    max-width: 48rem;
    font-size: 1.05rem;
}

.layer-list {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(12, 16, 34, 0.72);
    overflow: hidden;
}

.layer-list[data-spotlight]::after {
    background: radial-gradient(26rem circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(90, 130, 255, 0.1), transparent 70%);
}

.layer-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color 0.5s ease;
}

.layer-item:last-child {
    border-bottom: 0;
}

.layer-item.is-open {
    background: linear-gradient(180deg, rgba(28, 52, 130, 0.4) 0%, rgba(28, 52, 130, 0.2) 100%);
}

.layer-heading {
    margin: 0;
    font-size: inherit;
}

.layer-trigger {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    align-items: center;
    width: 100%;
    padding: 1.15rem 1.4rem 1.15rem 1.5rem;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.layer-trigger:focus-visible {
    outline: 2px solid #8FB0FF;
    outline-offset: -2px;
    border-radius: 12px;
}

.layer-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7EA2FF;
    font-variant-numeric: tabular-nums;
}

.layer-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
}

.layer-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--WhiteColor);
    transition: transform 0.5s var(--EaseOut);
}

.layer-sub {
    font-size: 0.9rem;
    color: #8A93AD;
}

.layer-trigger:hover .layer-title {
    transform: translate3d(4px, 0, 0);
}

/* +/- icon: the vertical bar collapses when open */
.layer-toggle {
    position: relative;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.5s var(--EaseOut);
}

.layer-toggle::before,
.layer-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.6rem;
    height: 1.5px;
    margin: -0.75px 0 0 -0.3rem;
    background: var(--WhiteColor);
    border-radius: 1px;
    transition: transform 0.45s var(--EaseOut);
}

.layer-toggle::after {
    transform: rotate(90deg);
}

.layer-item.is-open .layer-toggle::after {
    transform: rotate(90deg) scaleX(0);
}

.layer-trigger:hover .layer-toggle {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.layer-item.is-open .layer-toggle {
    transform: rotate(180deg);
}

/* Height animates via grid rows (0fr -> 1fr): no JS measuring */
.layer-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.55s var(--EaseOut), visibility 0s linear 0.55s;
}

.layer-item.is-open .layer-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.55s var(--EaseOut), visibility 0s;
}

.layer-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.layer-body {
    padding: 0 1.5rem 1.5rem 6rem;
    opacity: 0;
    transform: translate3d(0, -8px, 0);
    transition: opacity 0.3s ease, transform 0.4s var(--EaseOut);
}

.layer-item.is-open .layer-body {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease 0.12s, transform 0.6s var(--EaseOut) 0.12s;
}

.layer-body p {
    max-width: 46rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #C4CBE0;
    margin-bottom: 1rem;
}

.layer-body p:last-child {
    margin-bottom: 0;
}

.chip--pill {
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    color: var(--WhiteColor);
    background: rgba(27, 88, 233, 0.22);
    border-color: rgba(96, 136, 255, 0.45);
}

.chip--pill:hover {
    color: var(--WhiteColor);
    background: rgba(27, 88, 233, 0.4);
    border-color: rgba(140, 170, 255, 0.8);
}

.stack12-section .section-bottom-btn {
    margin-top: 2.5rem;
}

/* --- Panel extras: live status, SDK / API cards --- */
.layer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #3DDC84;
    background: rgba(61, 220, 132, 0.08);
    border: 1px solid rgba(61, 220, 132, 0.35);
    border-radius: 999px;
}

/* Pulsing "live" dot */
.layer-status::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
    animation: livePulse 2s ease-out infinite;
}

/* Ring takes the dot's `color`, so each status pulses in its own colour */
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 currentColor; }
    70%  { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.badge-soon,
.sdk-soon {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    color: #AEB6CE;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.badge-soon {
    margin-top: 1.1rem;
}

.layer-body .sdk-note {
    max-width: none;
    margin: 1.4rem 0 1rem;
    font-size: 0.875rem;
    color: #AEB6CE;
}

.sdk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.sdk-note + .sdk-grid {
    margin-top: 0;
}

.sdk-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.3rem 1.3rem 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    transition: transform 0.5s var(--EaseOut), border-color 0.35s ease, background-color 0.35s ease;
}

.sdk-card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(143, 168, 255, 0.35);
    background: rgba(255, 255, 255, 0.045);
}

.layer-list .sdk-card[data-spotlight]::after {
    background: radial-gradient(16rem circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(90, 130, 255, 0.14), transparent 70%);
}

.sdk-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
}

.sdk-lang,
.sdk-meta {
    margin-bottom: 0.9rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sdk-lang {
    padding: 0.25rem 0.55rem;
    color: var(--WhiteColor);
    background: rgba(27, 88, 233, 0.35);
    border-radius: 5px;
}

.sdk-meta {
    color: #AEB6CE;
    letter-spacing: 0.1em;
}

.sdk-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--WhiteColor);
    margin-bottom: 0.5rem;
}

.layer-body .sdk-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #AEB6CE;
    margin-bottom: 1rem;
}

.sdk-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8A93AD;
}

.sdk-base code {
    max-width: 100%;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    text-transform: none;
    letter-spacing: 0;
    color: var(--WhiteColor);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.sdk-links {
    display: flex;
    gap: 1.2rem;
    margin-top: auto;
}

.sdk-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #DDE3F3;
}

.sdk-links a:hover {
    color: var(--WhiteColor);
}

.sdk-links svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.35s var(--EaseOut);
}

.sdk-links a:hover svg {
    transform: translate3d(0, -2px, 0);
}

.sdk-links .sdk-link-primary {
    color: #7EA2FF;
}

.sdk-links .sdk-link-primary:hover svg {
    transform: translate3d(2px, -2px, 0);
}

.layer-body .sdk-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: none;
    margin: 1.2rem 0 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: #8A93AD;
}

.sdk-footer svg {
    flex-shrink: 0;
    width: 0.95rem;
    height: 0.95rem;
    color: #3DDC84;
}

/* Chips and cards cascade in each time a layer opens (--ci set in custom.js) */
.layer-item.is-open .layer-body .chip,
.layer-item.is-open .layer-body .sdk-card,
.layer-item.is-open .layer-body .badge-soon {
    animation: chipIn 0.6s var(--EaseOut) calc(0.18s + var(--ci, 0) * 0.035s) backwards;
}


/* =========================================
   8. FOR PEOPLE
   ========================================= */
.people-section {
    padding: 6rem 0 5rem;
    overflow-x: clip; /* decorative rings may be wider than small screens */
}

.people-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    margin-bottom: 5.5rem;
}

.people-title {
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #0B1026;
    margin-bottom: 1.25rem;
}

.people-text {
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5B6275;
    margin-bottom: 0;
}

.people-copy .section-bottom-btn {
    margin-top: 2rem;
}

/* --- Phone mockup (HTML/CSS so its rows can animate) --- */
.people-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.phone-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.phone-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed #D5DBE8;
    animation: ringSpin 80s linear infinite;
}

.phone-ring--outer {
    width: 35rem;
    height: 35rem;
    margin: -17.5rem 0 0 -17.5rem;
}

.phone-ring--inner {
    width: 26rem;
    height: 26rem;
    margin: -13rem 0 0 -13rem;
    border-color: #C9D2E6;
    animation-duration: 60s;
    animation-direction: reverse;
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.phone-float {
    position: relative;
}

/* Gentle idle float once the phone has risen in */
.phone-float.is-visible .phone {
    animation: phoneFloat 6s ease-in-out 1.6s infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -10px, 0); }
}

.phone {
    width: 18.75rem;
    padding: 0.6rem;
    background: #0B1026;
    border-radius: 2.6rem;
    box-shadow: 0 40px 80px -30px rgba(11, 16, 38, 0.45), 0 18px 40px -20px rgba(27, 88, 233, 0.25);
}

.phone-screen {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 0.6rem 0;
    background: #F4F6FA;
    border-radius: 2.1rem;
    overflow: hidden;
    font-size: 0.78rem;
    color: #0B1026;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    padding: 0 0.9rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.phone-member {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.2rem 1.15rem;
    border-radius: 1.1rem;
    color: var(--WhiteColor);
    background: linear-gradient(120deg, #1D5BEA 0%, #4A46E6 100%);
    box-shadow: 0 10px 24px -12px rgba(52, 76, 230, 0.7);
}

.phone-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    opacity: 0.9;
}

.phone-verified::before {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    color: #3DDC84;
    background: currentColor;
    animation: livePulse 2s ease-out infinite;
}

.phone-member strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.phone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.9rem;
    background: var(--WhiteColor);
    border: 1px solid #E8ECF3;
    border-radius: 0.6rem;
}

.phone-row em {
    font-style: normal;
    color: #5B6275;
    font-size: 0.72rem;
}

.phone-score {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 0.95rem;
    border-radius: 0.9rem;
}

.phone-score span {
    font-size: 0.68rem;
    color: #5B6275;
}

.phone-score strong {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.phone-tabs {
    display: flex;
    justify-content: space-around;
    margin: 1.2rem -0.6rem 0;
    padding: 0.9rem 0.4rem 1.1rem;
    background: var(--WhiteColor);
    border-top: 1px solid #E8ECF3;
    font-size: 0.7rem;
    color: #8A93AD;
}

.phone-tabs .is-active {
    color: var(--PrimaryColor);
    font-weight: 600;
}

/* Rows slide in one after another once the phone is revealed */
.phone-float.is-visible .phone-row {
    animation: chipIn 0.6s var(--EaseOut) calc(var(--d, 0s) + 0.45s + var(--ci, 0) * 0.07s) backwards;
}

.people-visual figcaption {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #6B7285;
    text-align: center;
}

/* --- Feature cards --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.feature-card {
    padding: 1.5rem 1.5rem 1.6rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 16px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease;
}

.feature-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: #D6E0F7;
    box-shadow: 0 24px 48px -30px rgba(27, 88, 233, 0.4);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1.1rem;
    border-radius: 10px;
    color: var(--PrimaryColor);
    background: #EDF2FE;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.6s var(--EaseOut);
}

.feature-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.feature-card:hover .feature-icon {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    transform: rotate(-6deg) scale(1.05);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #5B6275;
    margin: 0;
}

.feature-card--wide {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 1.3rem;
    background: linear-gradient(135deg, #F7F8FD 0%, #FFFFFF 100%);
}

.feature-card--wide .feature-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.feature-card--highlight {
    background: linear-gradient(120deg, #E1E9FD 0%, #F4F7FF 100%);
    border-color: #D6E0F7;
}

.feature-card--highlight .feature-icon {
    background: var(--WhiteColor);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    font-weight: 600;
}

.feature-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.35s var(--EaseOut);
}

.feature-link:hover svg {
    transform: translate3d(4px, 0, 0);
}


/* =========================================
   9. HARDWARE (tabs)
   ========================================= */
.hardware-section .hardware-intro {
    max-width: 50rem;
    margin: 0 auto;
    font-size: 1.05rem;
}

.hardware-section .same-heading {
    margin-bottom: 2.5rem;
}

/* Segmented tabs with a sliding pill (position set by custom.js initTabs) */
.tab-list {
    position: relative;
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 1.9rem;
    padding: 0.3rem;
    background: #F1F4FA;
    border: 1px solid #E3E8F1;
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
    display: none;
}

.tab-indicator {
    position: absolute;
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0;
    width: 0;
    background: var(--WhiteColor);
    border-radius: 9px;
    box-shadow: 0 2px 8px -2px rgba(11, 16, 38, 0.12), 0 0 0 1px rgba(11, 16, 38, 0.03);
    transition: transform 0.5s var(--EaseOut), width 0.5s var(--EaseOut);
}

.tab {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 0.55rem 1.05rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5B6275;
    background: none;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tab:hover {
    color: #0B1026;
}

.tab[aria-selected="true"] {
    color: #0B1026;
}

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

/* Before JS positions the pill, mark the active tab directly */
.tab-list:not(.is-ready) .tab[aria-selected="true"] {
    background: var(--WhiteColor);
}

.hw-frame {
    padding: 0.75rem;
    background: #F4F6FB;
    border: 1px solid #E6EAF2;
    border-radius: 22px;
}

.hw-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: stretch;
}

.hw-panel[hidden] {
    display: none;
}

.hw-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36rem;
    overflow: hidden;
    background: var(--WhiteColor);
    border-radius: 16px;
}

.hw-media img {
    max-width: 80%;
    height: auto;
    transition: transform 0.9s var(--EaseOut);
}

.hw-media:hover img {
    transform: scale(1.03) rotate(-1deg);
}

.hw-info {
    padding: 1.2rem 1.3rem 1.2rem 0;
}

.hw-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    color: #1F2433;
    background: var(--WhiteColor);
    border: 1px solid #E3E8F1;
    border-radius: 999px;
}

.hw-status::before {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    color: #1BAA5B;
    background: currentColor;
    animation: livePulse 2s ease-out infinite;
}

/* Status colour per product stage (dot + tint) */
.hw-status--design {
    color: #4B3FD8;
    background: #F1EFFE;
    border-color: #DDD8FB;
}

.hw-status--design::before {
    color: #6A5CF0;
}

.hw-status--pending {
    color: #8A5A00;
    background: #FDF6E7;
    border-color: #F4E3BD;
}

.hw-status--pending::before {
    color: #E0A21A;
}

.hw-status--shipping {
    color: #117A46;
    background: #EAF8F0;
    border-color: #C9EDD8;
}

.hw-info h3 {
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0B1026;
    margin-bottom: 1.1rem;
}

.hw-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #5B6275;
    margin-bottom: 1.4rem;
}

.hw-specs {
    margin: 0;
    border-top: 1px solid #E3E8F1;
}

.hw-specs > div {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid #E3E8F1;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.hw-specs > div:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hw-specs dt {
    font-weight: 400;
    font-size: 0.9rem;
    color: #5B6275;
}

.hw-specs dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0B1026;
}

.hw-info .section-bottom-btn {
    margin-top: 1.4rem;
}

/* Tab switch (after the first user switch): media settles in, details cascade */
.has-switched .hw-panel:not([hidden]) .hw-media {
    animation: hwMediaIn 0.8s var(--EaseOut) backwards;
}

.has-switched .hw-panel:not([hidden]) .hw-anim {
    animation: chipIn 0.6s var(--EaseOut) calc(0.1s + var(--ci, 0) * 0.05s) backwards;
}

@keyframes hwMediaIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: none; }
}


/* =========================================
   10. CLEAROS
   ========================================= */
.clearos-section .clearos-intro {
    max-width: 60rem;
    margin: 1.75rem auto 0;
    font-size: 1.05rem;
}

/* --- Editions ---
   Default (mobile, no JS): steps stacked, each with its own logo card.
   Desktop + JS (.is-ready): the stage sticks while the scroller's height is scrolled;
   custom.js marks the current step .is-active (earlier ones .is-past). */
.os-scroller {
    position: relative;
    padding: 2.5rem 0 4.5rem;
}

.os-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    align-items: center;
    gap: 4rem;
}

.os-step + .os-step {
    margin-top: 4rem;
}

.os-stage-bg,
.os-progress {
    display: none;
}

.os-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--PrimaryColor);
    margin-bottom: 1.1rem;
}

.os-copy h3 {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0B1026;
    margin-bottom: 0.9rem;
}

.os-text {
    max-width: 30rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #5B6275;
    margin-bottom: 2.6rem;
}

.os-checks {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.os-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 1rem;
    color: #0B1026;
}

.os-checks svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.3rem;
    fill: none;
    stroke: var(--PrimaryColor);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.os-checks svg path {
    stroke-dasharray: 16;
}

@keyframes drawCheck {
    from { stroke-dashoffset: 16; }
    to   { stroke-dashoffset: 0; }
}

.os-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.97;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E7EDFB 100%);
    box-shadow: inset 0 0 0 1px #EEF1F7;
}

/* Soft breathing light behind the logo */
.os-glow {
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(27, 88, 233, 0.16), rgba(27, 88, 233, 0) 100%);
    animation: osGlow 5s ease-in-out infinite;
}

@keyframes osGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50%      { transform: scale(1.08); opacity: 1; }
}

.os-visual img {
    position: relative;
    width: 42%;
    height: auto;
}

/* --- Sticky stage (desktop) --- */
@media (min-width: 992px) {
    .os-scroller.is-ready {
        height: calc(100vh + var(--steps) * 55vh);
        padding: 0;
    }

    .os-scroller.is-ready .os-sticky {
        position: sticky;
        top: var(--HeaderHeight);
        height: calc(100vh - var(--HeaderHeight));
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
        align-items: center;
        column-gap: 4rem;
    }

    /* every step shares the same grid cells, so they overlap */
    .os-scroller.is-ready .os-step {
        grid-area: 1 / 1 / 2 / 3;
        display: grid;
        grid-template-columns: subgrid;
        margin: 0;
        pointer-events: none;
    }

    .os-scroller.is-ready .os-step.is-active {
        pointer-events: auto;
    }

    /* one shared logo card behind the logos, so only the logo crossfades */
    .os-scroller.is-ready .os-stage-bg {
        position: relative; /* containing block for the glow */
        grid-area: 1 / 2;
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 1 / 0.97;
        overflow: hidden;
        border-radius: 16px;
        background: linear-gradient(180deg, #FFFFFF 0%, #E7EDFB 100%);
        box-shadow: inset 0 0 0 1px #EEF1F7;
    }

    .os-scroller.is-ready .os-visual {
        background: none;
        box-shadow: none;
    }

    /* copy: slides up in, slides up out */
    .os-scroller.is-ready .os-copy > * {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
        transition: opacity 0.45s ease, transform 0.7s var(--EaseOut);
    }

    .os-scroller.is-ready .os-step.is-past .os-copy > * {
        transform: translate3d(0, -28px, 0);
    }

    .os-scroller.is-ready .os-step.is-active .os-copy > * {
        opacity: 1;
        transform: none;
    }

    .os-scroller.is-ready .os-step.is-active .os-copy > :nth-child(2) { transition-delay: 0.05s; }
    .os-scroller.is-ready .os-step.is-active .os-copy > :nth-child(3) { transition-delay: 0.1s; }
    .os-scroller.is-ready .os-step.is-active .os-copy > :nth-child(4) { transition-delay: 0.15s; }

    /* ticks redraw each time a step becomes active */
    .os-scroller.is-ready .os-step.is-active .os-checks svg path {
        animation: drawCheck 0.6s var(--EaseOut) calc(0.35s + var(--ci, 0) * 0.08s) backwards;
    }

    /* logo: crossfade with a gentle scale/rotate */
    .os-scroller.is-ready .os-visual img {
        opacity: 0;
        transform: scale(0.86) rotate(-6deg);
        transition: opacity 0.5s ease, transform 0.8s var(--EaseOut);
    }

    .os-scroller.is-ready .os-step.is-past .os-visual img {
        transform: scale(1.08) rotate(4deg);
    }

    .os-scroller.is-ready .os-step.is-active .os-visual img {
        opacity: 1;
        transform: none;
    }

    /* progress: dots + a bar that fills with scroll (--p set in custom.js) */
    .os-scroller.is-ready .os-progress {
        grid-area: 1 / 2;
        align-self: end;
        justify-self: center;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: -2.4rem;
    }

    .os-dot {
        width: 0.5rem;
        height: 0.5rem;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #CBD4E6;
        cursor: pointer;
        transition: width 0.4s var(--EaseOut), background-color 0.3s ease;
    }

    .os-dot.is-active {
        width: 1.6rem;
        background: var(--PrimaryColor);
    }

    .os-dot:focus-visible {
        outline: 2px solid var(--PrimaryColor);
        outline-offset: 3px;
    }

    .os-bar {
        position: relative;
        width: 5rem;
        height: 2px;
        margin-left: 0.5rem;
        overflow: hidden;
        background: #E3E8F2;
        border-radius: 2px;
    }

    .os-bar i {
        position: absolute;
        inset: 0;
        background: var(--PrimaryColor);
        transform-origin: 0 50%;
        transform: scaleX(var(--p, 0));
    }
}

.os-footer {
    padding-top: 2.6rem;
    border-top: 1px solid #E6EAF2;
    text-align: center;
}

.os-footer p {
    max-width: 70rem;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1B2B6B;
}

.os-footer .section-bottom-btn {
    margin-top: 2.2rem;
}


/* =========================================
   11. WHITE LABEL LIFE APPS (dark)
   ========================================= */
.wl-section {
    position: relative;
    isolation: isolate;
    padding: 8rem 0;
    color: var(--WhiteColor);
}

/* Dark fill without JS; with the theme switcher the page colour shows through */
.wl-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--DarkBg);
}

.tag--plain {
    letter-spacing: 0.16em;
}

.wl-section .tag--plain {
    color: #C9D0E4;
}

.wl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
    align-items: center;
    gap: 5rem;
}

.wl-title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--WhiteColor);
    margin-bottom: 1.5rem;
}

.wl-text {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #C4CBE0;
    margin-bottom: 1.8rem;
}

.wl-form {
    display: grid;
    gap: 1.4rem;
    max-width: 32rem;
}

.wl-field label,
.wl-label {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: #DDE2F0;
}

.wl-field input,
.wl-field select {
    width: 100%;
    height: 2.9rem;
    padding: 0 1rem;
    font: inherit;
    font-size: 0.92rem;
    color: var(--WhiteColor);
    background: #161831;
    border: 1px solid #22254A;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.wl-field input::placeholder {
    color: #5E6485;
}

.wl-field input:hover,
.wl-field select:hover {
    border-color: #33386A;
}

.wl-field input:focus,
.wl-field select:focus {
    border-color: #5A7BFF;
    background: #1A1D3A;
    box-shadow: 0 0 0 3px rgba(90, 123, 255, 0.18);
}

.wl-select {
    position: relative;
}

.wl-select select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.6rem;
    cursor: pointer;
}

/* Native dropdown list: dark to match the field (browsers draw it from these) */
.wl-select select {
    color-scheme: dark;
}

.wl-select select option {
    color: #E6E9F4;
    background-color: #161831;
}

.wl-select select option:checked {
    color: var(--WhiteColor);
    background-color: #2A3470;
}

.wl-select svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    color: #8A93AD;
    transform: translateY(-50%);
    pointer-events: none;
}

.wl-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.wl-swatch {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--sw);
    border: 2px solid transparent;
    box-shadow: 0 0 0 0 transparent;
    cursor: pointer;
    transition: transform 0.35s var(--EaseOut), box-shadow 0.3s ease, border-color 0.3s ease;
}

.wl-swatch:hover {
    transform: scale(1.1);
}

.wl-swatch[aria-pressed="true"] {
    border-color: var(--WhiteColor);
    box-shadow: 0 0 0 2px #3B63F0;
}

.wl-swatch:focus-visible {
    outline: 2px solid #8FB0FF;
    outline-offset: 3px;
}

.wl-note {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #7A819E;
    margin: 0;
}

/* --- Preview --- */
.wl-preview {
    display: grid;
    place-items: center;
    min-height: 37rem;
    padding: 3rem 2rem;
    background: #10122A;
    border: 1px solid #1D2045;
    border-radius: 24px;
    perspective: 1200px;
}

.wl-card {
    width: 100%;
    max-width: 22.5rem;
    overflow: hidden;
    background: #0D0F24;
    border: 1px solid #22254A;
    border-radius: 18px;
    box-shadow: 0 30px 70px -30px rgba(40, 60, 200, 0.45);
    transform-style: preserve-3d;
    transition: transform 0.6s var(--EaseOut);
    will-change: transform;
}

.wl-hero {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.5rem 1.9rem;
    background: var(--brand);
    transition: background-color 0.6s var(--EaseOut);
}

/* soft sheen that sweeps across when the brand changes */
.wl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translate3d(-120%, 0, 0);
}

.wl-hero.is-changing::after {
    animation: wlSheen 0.9s var(--EaseOut);
}

@keyframes wlSheen {
    to { transform: translate3d(120%, 0, 0); }
}

.wl-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--WhiteColor);
    background: rgba(255, 255, 255, 0.22);
    border-radius: 10px;
}

.wl-name {
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--WhiteColor);
    margin-bottom: 0.5rem;
}

.wl-sub {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.wl-list {
    padding: 0.8rem 1rem 0;
}

.wl-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.25rem;
    font-size: 0.88rem;
    color: #E6E9F4;
    border-bottom: 1px solid #1F2246;
}

.wl-list em {
    font-style: normal;
    font-size: 0.72rem;
    color: #2FCB84;
}

.wl-domains {
    padding: 1rem 1.25rem 1.4rem;
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.7;
    color: #8A93AD;
}

/* Updates: the icon letter pops, rows cascade, domains fade */
.wl-card.is-updated .wl-icon {
    animation: revealPop 0.5s var(--EaseOut);
}

.wl-card.is-updated .wl-list li {
    animation: answerLi 0.45s var(--EaseOut) calc(var(--ci, 0) * 0.05s) backwards;
}

.wl-card.is-updated .wl-domains {
    animation: revealFade 0.5s ease 0.2s backwards;
}

html.has-theme-switcher .wl-bg {
    background: transparent;
}


/* =========================================
   12. LIVE ENVIRONMENTS (marquee)
   ========================================= */
.live-section {
    overflow: hidden;
}

.tag--dot {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tag--dot::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    color: var(--PrimaryColor);
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(27, 88, 233, 0.15);
    animation: livePulse 2s ease-out infinite;
}

.text-gradient-violet {
    background: linear-gradient(90deg, #3B63F0 0%, #7B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.live-section .live-intro {
    max-width: 44rem;
    margin: 1.75rem auto 0;
    font-size: 1.05rem;
}

/* Track holds two copies of the cards (clone added by JS) and slides by half */
.marquee {
    position: relative;
    /* at most 5 cards in view: 5 x (card width + its right margin) */
    max-width: calc(5 * (var(--env-w) + var(--env-gap)));
    margin: 0 auto;
    padding: 0.5rem 0 1.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee.is-running .marquee-track {
    animation: marquee var(--mq-duration, 60s) linear infinite;
}

.marquee.is-paused .marquee-track,
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    to { transform: translate3d(-50%, 0, 0); }
}

.live-section {
    --env-w: 20.5rem;
    --env-gap: 1.25rem;
}

.env-card {
    flex-shrink: 0;
    width: var(--env-w);
    margin-right: var(--env-gap); /* margin (not gap) so both halves are exactly equal */
    padding: 1.1rem 1.1rem 1.25rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 18px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease;
}

.env-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: #D6E0F7;
    box-shadow: 0 28px 50px -30px rgba(27, 88, 233, 0.45);
}

.env-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.env-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.9rem;
    height: 2.9rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;    padding: 0.4rem;
    transition: transform 0.6s var(--EaseOut);
}

.env-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.env-card:hover .env-icon {
    transform: rotate(-8deg) scale(1.05);
}

.env-ab {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--WhiteColor);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--c1), var(--c2));
}

.env-head h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.1rem;
}

.env-head p {
    font-size: 0.8rem;
    color: #6B7285;
    margin: 0;
}

.env-app {
    padding: 0.9rem;
    background: #F4F5FB;
    border-radius: 14px;
}

.env-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0B1026;
}

.env-top em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: #1BAA5B;
}

.env-balance {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 0.9rem 1rem;
    margin-bottom: 0.7rem;
    color: var(--WhiteColor);
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    border-radius: 12px;
}

/* light sweep across the balance card on hover */
.env-balance::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translate3d(-120%, 0, 0);
    transition: transform 0.9s var(--EaseOut);
}

.env-card:hover .env-balance::after {
    transform: translate3d(120%, 0, 0);
}

.env-balance small {
    font-size: 0.68rem;
    opacity: 0.8;
}

.env-balance strong {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.env-native {
    position: absolute;
    right: 0.8rem;
    top: 0.75rem; /* top corner so it never overlaps the amount */
    padding: 0.15rem 0.5rem;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.env-mods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.env-mods span {
    display: grid;
    place-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.3rem;
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: center;
    color: #3B4256;
    background: var(--WhiteColor);
    border-radius: 7px;
}

.env-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #7A8093;
}

.env-foot a {
    font-weight: 600;
    color: #0B1026;
}

.env-foot a:hover {
    color: var(--PrimaryColor);
}

.unions .chip-list{justify-content: center;}
.unions {
    display: grid;
    gap: 1.1rem;
    text-align: center;
    max-width: 75rem;
    margin: 3rem auto 0;
    padding: 1.6rem 1.75rem;
    background: #F4F4FE;
    border-radius: 20px;
}

.unions h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.25rem;
}

.unions p {
    font-size: 0.9rem;
    color: #5B6275;
    margin: 0;
}

.chip--pill-light {
    border-radius: 999px;
    background: var(--WhiteColor);
}

.chip--pill-light.chip--dashed {
    color: #8A93AD;
    background: transparent;
}

.live-section .section-bottom-btn {
    margin-top: 2.2rem;
}

.live-section .btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.35s var(--EaseOut);
}

.live-section .btn:hover svg {
    transform: translate3d(3px, 0, 0);
}


/* =========================================
   13. TRUST FABRIC
   ========================================= */
.fabric-section {
    overflow-x: clip; /* orbit labels can reach past the edge on small screens */
}

.fabric-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.fabric-title {
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: #0B1026;
    margin-bottom: 1.8rem;
}

.fabric-text {
    max-width: 30rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #4A5068;
    margin-bottom: 0;
}

.fabric-copy .section-bottom-btn {
    margin-top: 2.2rem;
}

/* --- Orbit: two counter-rotating rings of satellites around the core.
   Satellites sit at --a / --rad (cqw of the orbit); their content counter-spins to stay upright. */
.orbit {
    position: relative;
    width: 100%;
    max-width: 33rem;
    aspect-ratio: 1;
    margin: 0 auto;
    container-type: inline-size;
}

.orb-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    border: 1px solid #E3E8F2;
}

.orb-ring--1 {
    width: 44%;
    height: 44%;
    background: radial-gradient(closest-side, #EEF1FF, #FFFFFF);
}

.orb-ring--2 {
    width: 72%;
    height: 72%;
    border-style: dashed;
    border-color: #D5DCEA;
}

.orb-ring--3 {
    width: 100%;
    height: 100%;
}

.orb-spin {
    position: absolute;
    inset: 0;
    animation: ringSpin 70s linear infinite;
}

.orb-spin--rev {
    animation-duration: 100s;
    animation-direction: reverse;
}

.orb-sat {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--a)) translateY(calc(var(--rad) * -1));
}

.orb-sat > * {
    position: absolute;
    transform: translate(-50%, -50%) rotate(calc(var(--a) * -1));
}

.orb-spin .orb-sat > * > * {
    animation: ringSpin 70s linear infinite reverse;
}

.orb-spin--rev .orb-sat > * > * {
    animation: ringSpin 100s linear infinite;
}

.orb-bub {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    color: #0B1026;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 999px;
    box-shadow: 0 10px 24px -14px rgba(11, 16, 38, 0.3);
}

.orb-bub i {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 700;
    color: var(--WhiteColor);
    background: var(--c, #C7CCDA);
    border-radius: 50%;
}

.orb-bub.is-muted {
    color: #8A93AD;
    border-style: dashed;
    box-shadow: none;
}

.orb-ava {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--PrimaryColor);
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 50%;
    box-shadow: 0 6px 14px -8px rgba(11, 16, 38, 0.25);
}

.orb-ava svg {
    width: 1.1rem;
    height: 1.1rem;
}

.orb-center {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 7rem;
    height: 7rem;
    margin: -3.5rem 0 0 -3.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--WhiteColor);
    background: linear-gradient(135deg, #1B58E9, #2F6BFF);
    border-radius: 50%;
    box-shadow: 0 0 0 12px rgba(27, 88, 233, 0.08), 0 0 0 26px rgba(27, 88, 233, 0.05), 0 20px 40px -12px rgba(27, 88, 233, 0.7);
    animation: orbBreathe 4s ease-in-out infinite;
}

@keyframes orbBreathe {
    0%, 100% { box-shadow: 0 0 0 12px rgba(27, 88, 233, 0.08), 0 0 0 26px rgba(27, 88, 233, 0.05), 0 20px 40px -12px rgba(27, 88, 233, 0.7); }
    50%      { box-shadow: 0 0 0 18px rgba(27, 88, 233, 0.1), 0 0 0 36px rgba(27, 88, 233, 0.04), 0 20px 40px -12px rgba(27, 88, 233, 0.7); }
}

/* --- Union cards --- */
.union-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.union-card {
    display: block;
    padding: 1.4rem 1.4rem 1.6rem;
    color: inherit;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 18px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease;
}

a.union-card:hover {
    color: inherit;
    transform: translate3d(0, -6px, 0);
    border-color: #D6E0F7;
    box-shadow: 0 24px 44px -28px rgba(27, 88, 233, 0.45);
}

.union-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.6rem;
}

.union-card h3 svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    transition: transform 0.4s var(--EaseOut), color 0.3s ease;
}

a.union-card:hover h3 svg {
    color: var(--PrimaryColor);
    transform: translate3d(4px, 0, 0);
}

.union-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}

.union-card.is-forming {
    background: #EDF1FD;
    border-color: #E1E7FA;
}

.union-tag {
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A93AD;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.union-note {
    max-width: 52rem;
    margin: 2rem auto 4.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    color: #7A8093;
}

/* --- Deployment cards: 3 x 2 grid with hairlines --- */
.deploy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #E6EAF2;
}

.deploy-card {
    position: relative;
    padding: 2.1rem 1.9rem;
    border-bottom: 1px solid #E6EAF2;
    transition: background-color 0.5s ease;
}

.deploy-card:not(:nth-child(3n + 1)) {
    border-left: 1px solid #E6EAF2;
}

.deploy-card:hover {
    background: #FAFBFE;
}

.deploy-card.is-on {
    background: linear-gradient(180deg, #E8EEFD 0%, #FFFFFF 100%);
}

.deploy-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1.1rem;
    border-radius: 10px;
    color: var(--PrimaryColor);
    background: #EDF2FE;
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--EaseOut);
}

.deploy-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.deploy-card:hover .deploy-icon {
    transform: translate3d(0, -3px, 0);
}

.deploy-card.is-on .deploy-icon {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    box-shadow: 0 8px 18px -6px rgba(27, 88, 233, 0.7);
}

.deploy-flag {
    position: absolute;
    right: 1.6rem;
    top: 2.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--PrimaryColor);
    opacity: 0;
    transform: translate3d(0, 4px, 0);
    transition: opacity 0.4s ease, transform 0.5s var(--EaseOut);
}

.deploy-card.is-on .deploy-flag {
    opacity: 1;
    transform: none;
}

.deploy-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.6rem;
}

.deploy-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #5B6275;
    margin-bottom: 1.2rem;
}

.checks {
    display: grid;
    gap: 0.7rem;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: #3B4256;
}

.checks li::before {
    content: '';
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #E3EAFD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.8' fill='none' stroke='%231B58E9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}


/* =========================================
   14. DEVELOPERS
   ========================================= */
.dev-section .same-heading {
    margin-bottom: 4.5rem;
}

.dev-section .dev-intro {
    max-width: 40rem;
    margin: 1.5rem auto 0;
    font-size: 1.05rem;
}

.dev-section .section-bottom-btn {
    margin-top: 1.8rem;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.dev-card {
    position: relative;
    display: block;
    padding: 1.5rem 1.4rem 2rem;
    color: inherit;
    background: #F5F6FA;
    border: 1px solid #E6EAF2;
    border-radius: 18px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease, background-color 0.4s ease;
}

.dev-card:hover {
    color: inherit;
    background: var(--WhiteColor);
    border-color: #D6E0F7;
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 26px 48px -30px rgba(27, 88, 233, 0.45);
}

/* Arrow slides in from the corner on linked cards */
.dev-arrow {
    position: absolute;
    right: 1.3rem;
    top: 1.3rem;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--PrimaryColor);
    opacity: 0;
    transform: translate3d(-6px, 6px, 0);
    transition: opacity 0.35s ease, transform 0.5s var(--EaseOut);
}

.dev-card:hover .dev-arrow {
    opacity: 1;
    transform: none;
}

.dev-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dev-status::before {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: currentColor;
}

.dev-status--live { color: #1BAA5B; }
.dev-status--public,
.dev-status--open { color: var(--PrimaryColor); }
.dev-status--coming { color: #B8862A; }

/* live dots pulse */
.dev-status--live::before {
    animation: livePulse 2s ease-out infinite;
}

.dev-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #0B1026;
    margin-bottom: 1.1rem;
    transition: color 0.3s ease;
}

a.dev-card:hover h3 {
    color: var(--PrimaryColor);
}

.dev-card p {
    max-width: 18rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}


/* =========================================
   15. DEPLOY
   ========================================= */
.start-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.start-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 2rem 2.1rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 20px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease;
}

.start-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: #D6E0F7;
    box-shadow: 0 28px 50px -30px rgba(27, 88, 233, 0.45);
}

.start-icon {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 1.4rem;
    color: var(--WhiteColor);
    background: linear-gradient(135deg, #1B58E9 0%, #6A4BF5 100%);
    border-radius: 12px;
    box-shadow: 0 10px 20px -8px rgba(60, 80, 240, 0.6);
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut);
}

.start-icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.start-card:hover .start-icon {
    transform: translate3d(0, -3px, 0) rotate(-6deg);
    box-shadow: 0 16px 26px -10px rgba(60, 80, 240, 0.7);
}

.start-card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0B1026;
    margin-bottom: 0.6rem;
}

.start-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #5B6275;
    margin-bottom: 2rem;
}

/* button pinned to the bottom so all three line up */
.start-card .btn {
    margin-top: auto;
}

.start-card .btn svg {
    transition: transform 0.4s var(--EaseOut);
}

.start-card:hover .btn svg {
    transform: translate3d(4px, 0, 0);
}


/* =========================================
   16. DEPLOYMENT PATH + REQUEST FORM
   ========================================= */
.path-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
    align-items: start;
    gap: 3rem;
}

/* --- Steps: a line that fills with scroll; numbers light up as it reaches them --- */
.path-steps {
    position: relative;
    padding-top: 0.6rem;
}

.path-line {
    position: absolute;
    left: 1.2rem;
    top: 2rem;
    bottom: 3rem;
    width: 2px;
    margin-left: -1px;
    background: #E3E8F2;
    border-radius: 2px;
    overflow: hidden;
}

.path-line i {
    position: absolute;
    inset: 0;
    background: var(--PrimaryColor);
    transform-origin: 50% 0;
    transform: scaleY(var(--p, 0));
}

.path-list {
    display: grid;
    gap: 2.2rem;
}

.path-step {
    position: relative;
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 1.4rem;
}

.path-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7A8093;
    background: var(--WhiteColor);
    border: 1px solid #D5DCEA;
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--WhiteColor);
    transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.5s var(--EaseOut), transform 0.5s var(--EaseOut);
}

.path-step.is-lit .path-num {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    border-color: var(--PrimaryColor);
    box-shadow: 0 0 0 5px #E7EEFD;
    transform: scale(1.04);
}

.path-label {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8A93AD;
    transition: color 0.4s ease;
}

.path-step.is-lit .path-label {
    color: var(--PrimaryColor);
}

.path-step h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0B1026;
    margin-bottom: 0.5rem;
}

.path-step p:not(.path-label) {
    max-width: 32rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}

/* --- Request form --- */
.request-form {
    padding: 2rem 2rem 1.6rem;
    background: #F4F6FB;
    border-radius: 22px;
}

.request-form h3 {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0B1026;
    margin-bottom: 0.8rem;
}

.request-sub {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5B6275;
    margin-bottom: 1.6rem;
}

.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 0.9rem;
}

.request-field--full {
    grid-column: 1 / -1;
}

/* "Talk to ClearSoftware" jumps to #f-name: keep the form heading visible under the fixed header */
.request-field input {
    scroll-margin-top: calc(var(--HeaderHeight) + 9rem);
}

.request-field label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    color: #1F2433;
}

.request-field input,
.request-field select,
.request-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font: inherit;
    font-size: 0.9rem;
    color: #0B1026;
    background: var(--WhiteColor);
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.request-field input,
.request-field select {
    height: 2.9rem;
}

.request-field textarea {
    min-height: 5.3rem;
    resize: vertical;
}

.request-field input:hover,
.request-field select:hover,
.request-field textarea:hover {
    border-color: #DCE2EE;
}

.request-field input:focus,
.request-field select:focus,
.request-field textarea:focus {
    border-color: var(--PrimaryColor);
    box-shadow: 0 0 0 3px rgba(27, 88, 233, 0.14);
}

.request-field.has-error input {
    border-color: #D64545;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.request-field.has-error input {
    animation: fieldShake 0.4s ease;
}

@keyframes fieldShake {
    25% { transform: translate3d(-4px, 0, 0); }
    75% { transform: translate3d(4px, 0, 0); }
}

.request-select {
    position: relative;
}

.request-select select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.4rem;
    cursor: pointer;
}

.request-select svg {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    color: #8A93AD;
    transform: translateY(-50%);
    pointer-events: none;
}

.request-actions {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    margin-top: 1.6rem;
}

.request-actions .link-arrow {
    font-size: 0.9rem;
}

.request-send {
    flex: 1;
    max-width: 18rem;
    margin-left: auto;
    height: 2.9rem;
}

.request-status {
    display: none;
    margin: 1rem 0 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    border-radius: 8px;
}

.request-status.is-ok,
.request-status.is-error {
    display: block;
    animation: chipIn 0.45s var(--EaseOut);
}

.request-status.is-ok {
    color: #117A46;
    background: #EAF8F0;
}

.request-status.is-error {
    color: #A12E2E;
    background: #FCEDED;
}

.request-note {
    margin: 1.4rem 0 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #7A8093;
}

/* --- Scheduler --- */
.sched-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
    gap: 1.8rem;
    margin-top: 1.6rem;
    padding: 2rem;
    background: #F4F6FB;
    border: 1px solid #E6EAF2;
    border-radius: 22px;
}

.sched-pick h3 {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0B1026;
    margin-bottom: 0.7rem;
}

.sched-sub {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5B6275;
    margin-bottom: 1.3rem;
}

.sched-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.sched-day,
.sched-slot {
    font: inherit;
    color: #0B1026;
    background: var(--WhiteColor);
    border: 1px solid #E3E8F2;
    cursor: pointer;
    transition: transform 0.35s var(--EaseOut), border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.35s var(--EaseOut);
}

.sched-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.2rem;
    border-radius: 12px;
    opacity: 0;
    animation: chipIn 0.5s var(--EaseOut) calc(var(--ci, 0) * 0.04s) forwards;
}

.sched-day small {
    font-size: 0.7rem;
    color: #6B7285;
    transition: color 0.25s ease;
}

.sched-day b {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.25;
}

.sched-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sched-slot {
    height: 2.4rem;
    padding: 0 0.9rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.sched-day:hover,
.sched-slot:hover {
    border-color: var(--PrimaryColor);
    transform: translate3d(0, -2px, 0);
}

.sched-day[aria-pressed="true"],
.sched-slot[aria-pressed="true"] {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    border-color: var(--PrimaryColor);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 16px -6px rgba(27, 88, 233, 0.6);
}

.sched-day[aria-pressed="true"] small {
    color: #D9E4FF;
}

.sched-day:focus-visible,
.sched-slot:focus-visible {
    outline: 2px solid var(--PrimaryColor);
    outline-offset: 2px;
}

.sched-sum {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.6rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 16px;
}

.sched-label {
    margin-bottom: 0.6rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--PrimaryColor);
}

.sched-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: #0B1026;
    margin-bottom: 1.1rem;
}

.sched-value.is-changed {
    animation: revealFade 0.4s ease;
}

.sched-book {
    align-self: flex-start;
}

.sched-book:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.sched-note {
    margin: 1.1rem 0 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #6B7285;
}

.sched-cal {
    grid-column: 1 / -1;
}

.sched-cal:not([hidden]) {
    animation: chipIn 0.5s var(--EaseOut);
}

.sched-cal iframe {
    display: block;
    width: 100%;
    height: 44rem;
    border: 0;
    border-radius: 16px;
    background: var(--WhiteColor);
}


/* =========================================
   17. CLOSING CTA (reuses .quote-text + word reveal)
   ========================================= */
.cta-section {

    text-align: center;
}

.cta-section .cta-text {
    max-width: 44rem;
    margin: 0 auto;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

/* No-JS fallback: the same vertical gradient across the whole heading */
.cta-section .cta-text {
    background: linear-gradient(180deg, #1449E0 0%, #4F84FF 33%, #0A1230 33.5%, #34407A 64%, #6A7290 66.5%, #C8D0F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* With JS each word carries its own slice of the gradient (set in custom.js) */
.cta-section .cta-text.is-split {
    background: none;
}

.cta-section .cta-text.is-split .word {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-repeat: no-repeat;
}

.cta-section .section-bottom-btn {
    margin-top: 2.6rem;
}


/* =========================================
   18. FOOTER
   ========================================= */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 0 2.2rem;
    color: #B5BED6;
    background: var(--DarkBg);
}

/* violet glow rising from the bottom centre; brightens slightly on hover */
.footer-glow {
    position: absolute;
    left: 50%;
    bottom: -18rem;
    z-index: -1;
    width: 60rem;
    height: 40rem;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(110, 90, 220, 0.5), rgba(70, 60, 180, 0.2) 55%, rgba(70, 60, 180, 0) 100%);
    transform: translateX(-50%);
    opacity: 0.8;
    transition: opacity 1s ease;
    animation: footerGlow 9s ease-in-out infinite alternate;
}

.site-footer:hover .footer-glow {
    opacity: 1;
}

@keyframes footerGlow {
    from { transform: translateX(-50%) scale(1); }
    to   { transform: translateX(-50%) scale(1.12); }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(5, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo img {
    max-height: 2.4rem;
    margin-bottom: 1.3rem;
}

.footer-brand p {
    max-width: 17rem;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-col h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--WhiteColor);
    margin-bottom: 1.2rem;
}

.footer-col ul {
    display: grid;
    gap: 0.85rem;
}

/* links slide right and pick up a short accent line */
.footer-col a {
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
    color: #A9B2CC;
    transition: color 0.3s ease, transform 0.4s var(--EaseOut);
}

.footer-col a::before {
    content: '';
    position: absolute;
    left: -0.9rem;
    top: 50%;
    width: 0.5rem;
    height: 1px;
    background: #8FA8FF;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.4s var(--EaseOut), opacity 0.3s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--WhiteColor);
    transform: translate3d(0.9rem, 0, 0);
}

.footer-col a:hover::before,
.footer-col a:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

.footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badge img {
    flex-shrink: 0;
    width: 246px;
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

.footer-badge h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--WhiteColor);
    margin-bottom: 0.3rem;
}

.footer-badge p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #C4CBE0;
    margin: 0;
}

.footer-badge .link-arrow {
    margin-left: 0.4rem;
    font-weight: 600;
    color: #5B4CF6;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem 2rem;
    padding-top: 1.6rem;
    font-size: 0.82rem;
    color: #8A93AD;
}


/* =========================================
   19. HASH-ROUTED PAGES (custom.js initPages)
   #services, #standards, #papers, #provider, #intelligence, #definitions open as
   their own "page": homepage sections hide, a page bar shows the title.
   ========================================= */
.pg,
.pagebar {
    display: none;
}

body.is-page main > section:not(.pg):not(.cta-section) {
    display: none;
}

body.is-page .pg.is-open {
    display: block;
    animation: pgIn 0.6s var(--EaseOut);
}

body.is-page .pagebar {
    display: block;
}

/* Page mode: no dark hero behind the header, so keep its navy backdrop on */
body.is-page .header::before {
    opacity: 1;
}

/* Page bar: light page header (same family as the site's inner pages) */
.pagebar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--HeaderHeight) + 3.2rem) 0 3.6rem;
    background: linear-gradient(180deg, #EAF1FE 0%, #F5F8FF 60%, #FFFFFF 100%);
    border-bottom: 1px solid #E6EAF2;
}

/* inner pages: header sits in the flow above the bar */
body:not(.home) .pagebar {
    padding-top: 3.2rem;
}

/* soft blue light on the right + faint grid */
.pagebar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(40% 90% at 90% 10%, rgba(27, 88, 233, 0.14), rgba(27, 88, 233, 0) 100%);
}

.pagebar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%231B58E9' stroke-opacity='.06'/%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(70% 100% at 85% 0%, #000, transparent);
    mask-image: radial-gradient(70% 100% at 85% 0%, #000, transparent);
}

.pagebar-in {
    position: relative;
}

.pagebar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--PrimaryColor);
    background: var(--WhiteColor);
    border: 1px solid #D6E0F7;
    border-radius: 999px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.pagebar-back:hover {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    border-color: var(--PrimaryColor);
}

.pagebar-back svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.4s var(--EaseOut);
}

.pagebar-back:hover svg {
    transform: translate3d(-3px, 0, 0);
}

.pagebar-title {
    margin: 1.3rem 0 0;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0B1026;
}

/* title rises in each time a page opens */
body.is-page .pagebar-title {
    animation: revealTranslateUp 0.8s cubic-bezier(0.28, 1.1, 0.74, 1) 0.1s backwards,
               revealFade 0.6s ease 0.1s backwards;
}

/* Digital Intelligence: its own dark rounded block below the light bar */
body.is-page .di-page {
    margin: 1.5rem 1.5rem 0;
    border-radius: 28px;
}

/* shared page heading (left aligned) */
.pg-head {
    max-width: 48rem;
    margin-bottom: 3rem;
}

.pg-head h2 {
    color: #0B1026;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.pg-head p:not(.tag) {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #5B6275;
    margin: 0;
}

.pg-intro {
    max-width: 52rem;
    margin: 1.4rem auto 0;
    font-size: 1.02rem;
}

.pg .section-bottom-btn {
    margin-top: 2.4rem;
}

/* --- Services --- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.svc-card {
    padding: 1.5rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 18px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease;
}

.svc-card:hover {
    transform: translate3d(0, -5px, 0);
    border-color: #D6E0F7;
    box-shadow: 0 24px 46px -30px rgba(27, 88, 233, 0.45);
}

.svc-card h3 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0B1026;
}

.svc-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.3rem;
    height: 2.3rem;
    color: var(--PrimaryColor);
    background: #EDF2FE;
    border-radius: 9px;
}

.svc-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.svc-card ul {
    display: grid;
    gap: 0.2rem;
}

.svc-card li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.6rem;
    margin: 0 -0.6rem;
    font-size: 0.92rem;
    color: #3B4256;
    border-radius: 8px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.svc-card li a svg {
    width: 0.9rem;
    height: 0.9rem;
    opacity: 0;
    transform: translate3d(-4px, 4px, 0);
    transition: opacity 0.3s ease, transform 0.4s var(--EaseOut);
}

.svc-card li a:hover {
    color: var(--PrimaryColor);
    background: #F2F5FB;
}

.svc-card li a:hover svg {
    opacity: 1;
    transform: none;
}

/* --- Standards --- */
.std-group {
    padding: 2rem 0;
    border-top: 1px solid #E6EAF2;
}

.std-group h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--PrimaryColor);
    margin-bottom: 1.1rem;
}

.std-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.std-card {
    padding: 1.4rem;
    background: #F5F6FA;
    border: 1px solid #E6EAF2;
    border-radius: 16px;
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.6s var(--EaseOut);
}

.std-card:hover {
    background: var(--WhiteColor);
    border-color: #D6E0F7;
    transform: translate3d(0, -4px, 0);
}

.std-card h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.5rem;
}

.std-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}

.std-tag {
    padding: 0.15rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--PrimaryColor);
    background: #E7EEFD;
    border-radius: 999px;
}

.cmp-title {
    max-width: 52rem;
    margin: 5rem auto 2.5rem;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
    color: #0B1026;
}

.cmp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.cmp-col {
    padding: 1.8rem;
    border-radius: 20px;
}

.cmp-col h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.cmp-col ul {
    display: grid;
    gap: 0.75rem;
}

.cmp-col li {
    display: flex;
    gap: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cmp-col li::before {
    content: '';
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    border-radius: 50%;
}

.cmp-col--bad {
    background: #F5F6FA;
    border: 1px solid #E6EAF2;
    color: #5B6275;
}

.cmp-col--bad h3 {
    color: #3B4256;
}

.cmp-col--bad li::before {
    background: #E3E6EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' stroke='%238A93AD' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.cmp-col--good {
    color: var(--WhiteColor);
    background: linear-gradient(150deg, #1B58E9 0%, #102266 100%);
    box-shadow: 0 30px 60px -36px rgba(27, 88, 233, 0.8);
}

.cmp-col--good li::before {
    background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.cmp-note {
    max-width: 52rem;
    margin: 1.8rem auto 0;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    color: #6B7285;
}

/* --- Papers --- */
.paper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.paper-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 18px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut), border-color 0.4s ease;
}

.paper-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: #D6E0F7;
    box-shadow: 0 26px 48px -30px rgba(27, 88, 233, 0.45);
}

.paper-doc {
    position: absolute;
    right: 1.4rem;
    top: 1.4rem;
    color: #C5CFE6;
    transition: color 0.4s ease, transform 0.6s var(--EaseOut);
}

.paper-card:hover .paper-doc {
    color: var(--PrimaryColor);
    transform: rotate(-8deg) translate3d(0, -2px, 0);
}

.paper-doc svg {
    width: 1.6rem;
    height: 1.6rem;
}

.paper-tag {
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}

.paper-tag--blue  { color: var(--PrimaryColor); background: #E7EEFD; }
.paper-tag--green { color: #117A46; background: #EAF8F0; }
.paper-tag--amber { color: #8A5A00; background: #FDF6E7; }

.paper-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0B1026;
    margin-bottom: 0.6rem;
}

.paper-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5B6275;
    margin-bottom: 1.2rem;
}

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: auto;
    font-size: 0.78rem;
    color: #8A93AD;
}

.papers-reg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
    align-items: start;
    gap: 3rem;
    margin-top: 5rem;
}

.papers-reg h2 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #0B1026;
    margin-bottom: 1rem;
}

.papers-reg > div p {
    max-width: 30rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #5B6275;
}

.papers-dl:not([hidden]) {
    margin-top: 1.2rem;
    animation: chipIn 0.5s var(--EaseOut);
}

.papers-dl ul {
    display: grid;
    gap: 0.4rem;
}

.papers-dl a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: #0B1026;
    background: var(--WhiteColor);
    border-radius: 10px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.papers-dl a span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--PrimaryColor);
}

.papers-dl a:hover {
    color: var(--PrimaryColor);
    background: #EDF2FE;
}

/* --- Provider --- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.tier-card {
    padding: 1.8rem;
    background: linear-gradient(180deg, #EEF2FD 0%, #FFFFFF 100%);
    border: 1px solid #E1E7F7;
    border-radius: 20px;
    transition: transform 0.6s var(--EaseOut), box-shadow 0.6s var(--EaseOut);
}

.tier-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 26px 48px -30px rgba(27, 88, 233, 0.45);
}

.tier-lv {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #2A5FE8 25%, #B9CAF7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tier-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.6rem;
}

.tier-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}

.provider-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.1rem;
    margin-top: 1.1rem;
}

.councils-card {
    position: relative;
    overflow: hidden;
    padding: 2.2rem;
    color: #C4CBE0;
    background: radial-gradient(120% 140% at 90% 0%, #2F55D4 0%, #102266 50%, #0A1233 100%);
    border-radius: 20px;
}

.councils-num {
    position: absolute;
    right: 1.5rem;
    bottom: -2.5rem;
    font-size: 11rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.councils-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--WhiteColor);
    margin-bottom: 0.8rem;
}

.councils-card p {
    max-width: 32rem;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.badge-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: #F5F6FA;
    border: 1px solid #E6EAF2;
    border-radius: 20px;
}

.badge-card img {
    width: 246px;
    max-width: 100%;
    height: auto;
}

.badge-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5B6275;
    margin: 0;
}

.becomes-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.1rem;
    padding: 2rem;
    background: var(--WhiteColor);
    border: 1px solid #E6EAF2;
    border-radius: 20px;
}

.becomes-card > div:first-child {
    max-width: 40rem;
}

.becomes-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.6rem;
}

.becomes-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #5B6275;
    margin: 0;
}

.becomes-card .section-bottom-btn {
    margin-top: 0;
}

/* --- Digital Intelligence (dark) --- */
.di-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--WhiteColor);
}

.di-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(40% 30% at 50% 0%, rgba(40, 88, 232, 0.6), rgba(40, 88, 232, 0) 100%),
        radial-gradient(30% 30% at 100% 100%, rgba(84, 64, 210, 0.35), rgba(84, 64, 210, 0) 100%),
        var(--DarkBg);
}

html.has-theme-switcher .di-bg {
    background:
        radial-gradient(40% 30% at 50% 0%, rgba(40, 88, 232, 0.6), rgba(40, 88, 232, 0) 100%),
        radial-gradient(30% 30% at 100% 100%, rgba(84, 64, 210, 0.35), rgba(84, 64, 210, 0) 100%);
}

.di-grad {
    background: linear-gradient(100deg, #9DB7FF, #B3A9FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.di-split {
    display: grid;
    grid-template-columns: 1fr minmax(0, 15rem) 1fr;
    align-items: stretch;
    gap: 1rem;
    margin-top: 3rem;
}

.di-world {
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.di-world--mine {
    background: linear-gradient(160deg, rgba(27, 88, 233, 0.35), rgba(27, 88, 233, 0.08));
    border-color: rgba(143, 168, 255, 0.35);
}

.di-world small,
.di-card small {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8FA8FF;
}

.di-world h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--WhiteColor);
    margin-bottom: 1rem;
}

.di-world ul {
    display: grid;
    gap: 0.6rem;
}

.di-world li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #C4CBE0;
}

.di-world li::before {
    content: '';
    flex-shrink: 0;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: #8FA8FF;
}

/* the boundary: each check lights up in turn */
.di-boundary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 1.4rem 1rem;
    text-align: center;
    border: 1px dashed rgba(143, 168, 255, 0.45);
    border-radius: 20px;
}

.di-boundary b {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8FA8FF;
}

.di-boundary span {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--WhiteColor);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    animation: diGate 3.6s ease-in-out calc(var(--i) * 0.45s) infinite;
}

@keyframes diGate {
    0%, 60%, 100% { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
    15%, 35%      { background: rgba(27, 88, 233, 0.55); border-color: rgba(143, 168, 255, 0.8); }
}

.di-boundary p {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #AEB6CE;
}

.di-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.di-card {
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    transition: transform 0.6s var(--EaseOut), border-color 0.4s ease, background-color 0.4s ease;
}

.di-card:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(143, 168, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.di-card[data-spotlight]::after {
    background: radial-gradient(18rem circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(90, 130, 255, 0.14), transparent 70%);
}

.di-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--WhiteColor);
    margin-bottom: 0.6rem;
}

.di-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #AEB6CE;
    margin: 0;
}

/* authority chain: steps light up one by one (custom.js) */
.di-chain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.6rem;
    margin: 3rem 0 2.5rem;
}

.di-chain span {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #AEB6CE;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.di-chain span.is-lit {
    color: var(--WhiteColor);
    background: var(--PrimaryColor);
    border-color: var(--PrimaryColor);
    box-shadow: 0 8px 18px -8px rgba(27, 88, 233, 0.9);
}

.di-chain i {
    font-style: normal;
    font-size: 0.72rem;
    color: #5E6485;
}

.di-prin {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.di-prin-item {
    padding: 1.8rem 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.di-prin-item:not(:nth-child(3n + 1)) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.di-prin-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--WhiteColor);
    margin-bottom: 0.5rem;
}

.di-prin-item p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #AEB6CE;
    margin: 0;
}

.di-page .btn svg {
    width: 1rem;
    height: 1rem;
}

/* --- Definitions --- */
.defs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2.5rem;
    margin: 0;
}

.def-item {
    padding: 1.6rem 0;
    border-top: 1px solid #E6EAF2;
}

.def-item dt {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0B1026;
    margin-bottom: 0.5rem;
}

.def-item dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #5B6275;
}


/* =========================================
   THEME SWITCHER (Mercury-style, custom.js initThemeSwitcher)
   The section crossing the middle of the viewport sets html[data-theme];
   the page background transitions to that theme's colour.
   ========================================= */
html.has-theme-switcher body {
    transition: background-color 0.8s cubic-bezier(0.59, 0.41, 0.68, 0.49);
}

html.has-theme-switcher[data-theme="dark"] body {
    background-color: var(--DarkBg);
}

/* Dark sections become see-through so they share the page colour;
   the top edge is feathered so the glow has no hard line against the page */
html.has-theme-switcher .stack12-bg {
    background: transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14rem);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14rem);
}

/* Glows + grain arrive with the dark theme */
html.has-theme-switcher .stack12-glow,
html.has-theme-switcher .stack12-bg .bg-grain {
    opacity: 0;
    transition: opacity 1.2s var(--EaseOut) 0.2s;
}

html.has-theme-switcher[data-theme="dark"] .stack12-glow {
    opacity: 1;
}

/* Transparent section = nothing for overlay to blend with, so use a faint normal grain */
html.has-theme-switcher .stack12-bg .bg-grain {
    mix-blend-mode: normal;
}

html.has-theme-switcher[data-theme="dark"] .stack12-bg .bg-grain {
    opacity: 0.07;
}

/* Dark-section heading follows the global theme, like Mercury's theme tokens:
   dark text while the page is still light, white once the dark theme lands */
.stack12-section .same-heading h2,
.stack12-section .same-heading p {
    transition: color 0.8s ease;
}

html.has-theme-switcher:not([data-theme="dark"]) .stack12-section .same-heading h2 {
    color: #0B1026;
}

html.has-theme-switcher:not([data-theme="dark"]) .stack12-section .same-heading p:not(.tag) {
    color: #5B6275;
}

html.has-theme-switcher:not([data-theme="dark"]) .stack12-section .same-heading .tag {
    color: var(--PrimaryColor);
}

/* Light sections' content steps back while the page is dark (and returns when it
   turns light again), so dark text never sits on the dark page colour */
section[data-theme="light"] > .container {
    transition: opacity 0.6s ease;
}

html.has-theme-switcher[data-theme="dark"] section[data-theme="light"] > .container {
    opacity: 0.12;
}

.quote-text .word {
    transition: opacity 0.35s linear;
}


/* this is old css for old pages  start*/
/* =========================================
   LOGO RIGHT-CLICK CONTEXT MENU
   ========================================= */
#logo-context-menu {
    display: none;
    position: fixed;
    z-index: 99999;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 6px;
    min-width: 220px;
    font-family: inherit;
    animation: ctxFadeIn 0.12s ease;
}
#logo-context-menu.visible {
    display: block;
}
@keyframes ctxFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(-4px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #1a1a1a;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.ctx-item:hover {
    background: #f4f4f5;
    color: #1a1a1a;
}
.ctx-item svg {
    flex-shrink: 0;
    opacity: 0.55;
}
.ctx-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
    margin: 4px 0;
}

/* =========================================
   DEPLOY MODAL
   ========================================= */
.deploy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.deploy-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.deploy-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.deploy-modal-overlay.active .deploy-modal {
    transform: translateY(0);
}

.deploy-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f4f4f6;
    border: none;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #444;
    transition: background 0.2s ease;
}
.deploy-modal-close:hover { background: #e8e8ec; }

.deploy-modal-header { margin-bottom: 1.8rem; }
.deploy-modal-header .primary-text { margin-bottom: 0.4rem; }
.deploy-modal-header h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #181818;
    margin-bottom: 0.4rem;
}
.deploy-modal-header p {
    font-size: 0.88rem;
    color: #777;
    margin: 0;
}

.deploy-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}
.deploy-label span { color: var(--PrimaryColor); }

.deploy-input {
    width: 100%;
    border: 1px solid #e2e4ea;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    color: #181818;
    background: #f8f9fb;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-family: inherit;
    resize: none;
}
.deploy-input:focus {
    border-color: var(--PrimaryColor);
    background: #fff;
}

.deploy-scale-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.scale-opt {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #e2e4ea;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #444;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.scale-opt:hover { border-color: var(--PrimaryColor); background: rgba(27,88,233,0.03); }
.scale-opt input[type="radio"] { accent-color: var(--PrimaryColor); }
.scale-opt input[type="radio"]:checked + span { color: var(--PrimaryColor); font-weight: 600; }
.scale-opt:has(input:checked) {
    border-color: var(--PrimaryColor);
    background: rgba(27,88,233,0.05);
}





/* Wrapper */
.dw-cookie-wrapper {
   position: fixed;
    box-sizing: border-box;
    z-index: 2147483647;
    background-color: #fff;
    opacity: 1;
    display: block;
    transform: translateY(0px);
    bottom: 0px;
    right: 0px;
    max-width: 320px;
    width: calc(100% - 20px);    
    box-shadow: 0 -0.3125rem 1.25rem rgba(0,0,0,0.1);
    transition: opacity 0.3s, transform, top, left, right, bottom, max-width, width;
    margin: 1rem;
    border-radius: 10px;
    padding: 2rem;
}

/* Inner layout */
.dw-cookie-card {
    max-width: 75rem; /* 1200px */
    margin: auto;
    display: flex; 
    align-items: center;
   flex-direction: column;
    gap: 1rem; 
}

/* Text */
.dw-cookie-text h4 {
  font-size: 1.2rem;
    color: var(--BlackColor);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dw-cookie-text p {
      color: #555555;
    font-size: 0.9rem; line-height:1.6 ;
    margin-bottom: 0.5rem;
}

.dw-cookie-text a {
    color: var(--PrimaryColor);
    font-weight: 500;
    text-decoration: none;
}

.dw-cookie-wrapper .dw-cookie-actions .btn{    font-size: 0.9rem;}
/* Buttons */
.dw-cookie-actions {
display: flex;
    gap: 0.75rem;
    flex-direction: column;
    width: 100%;
}

.dw-btn {
    padding: 0.625rem 1.375rem; /* 10px 22px */
    border-radius: 0.625rem; /* 10px */
    border: none;
    font-size: 0.875rem; /* 14px */
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap; text-align: center;
}

.inner-banner{    background: linear-gradient(to bottom, #567edd, #0a1233); padding: 3rem 0;}
.inner-banner h1{    font-size: 2.6rem; font-weight: 700; line-height: 1.2; color: #fff; }


.static-pages-outer .same-heading h2{    font-size: 2rem;}
/* .static-pages-outer .same-heading h3{    font-size: 1.4rem;} */
.legal-highlight {
  background: #1b58e90d;
  padding: 1.2rem;
  border-left: 4px solid var(--PrimaryColor);
  margin: 1rem 0 1.5rem;
}
.legal-highlight p{margin-bottom: 0;}

.static-pages-outer .dot-listing{margin: 1rem 0 1rem 1rem;}
.static-pages-outer .dot-listing li {
    padding: 5px 0;
    list-style: disc;
    font-weight: 400;
    font-size: 1rem;
   color: #676767;
    line-height: 1.6;
}


/* =========================================
   LEGAL PAGE (legal.php)
   ========================================= */

.banner-section.pages-banner .banner-text h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--WhiteColor);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.banner-section.pages-banner .banner-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.banner-section.pages-banner .banner-text .light-text {
      color: var(--WhiteColor);
    font-weight: 400;
}

.banner-section.pages-banner .banner-img img {
    max-width: 100%;
}


.small-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.image-section .icon-box {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 88, 233, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.image-section .icon-box img {
    max-width: 2rem;
    max-height: 2rem;
    object-fit: contain;
}

.image-section .same-box-heading h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #181818;
    margin-bottom: 0.6rem;
}

.image-section .same-box-heading p {
    font-size: 0.92rem;
    color: #676767;
    line-height: 1.7;
    margin-bottom: 0;
}


/* =========================================
   LEGAL CATEGORY SIDEBAR + PAGES
   (categories.php, category.php, category-details.php,
   category_pages.php, certifications.php, pages.php)
   ========================================= */

.category-section .row {
    align-items: flex-start;
}

.left-side-bar {
    position: sticky;
    top: 6rem;
}

.category-list li {
    margin: 0;
}

.category-list h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #181818;
    margin-top: 1.6rem;
    margin-bottom: 0.5rem;
}

.category-list li:first-child h3 {
    margin-top: 0;
}

.category-list a {
    display: block;
    font-size: 0.92rem;
    color: #676767;
    padding: 0.3rem 0;
    line-height: 1.5;
}

.category-list a:hover {
    color: var(--PrimaryColor);
}

.category-list a.active {
    color: var(--PrimaryColor);
    font-weight: 600;
}

.same-box-heading .left-side-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #181818;
    margin-bottom: 1.5rem;
}

.same-box-heading h1,
.same-box-heading h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #181818;
    line-height: 1.3;
    margin: 1.6rem 0 1rem;
}

.same-box-heading h1:first-child,
.same-box-heading h2:first-child {
    margin-top: 0;
}

.same-box-heading > h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    color: var(--PrimaryColor);
    margin-bottom: 0.5rem;
}

.same-box-heading p {
    font-size: 0.98rem;
    color: #4a4a4a;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.same-box-heading ul,
.same-box-heading ol {
    margin: 0 0 1.2rem 1.2rem;
}

.same-box-heading ul li {
    list-style: disc;
    padding: 0.25rem 0;
    font-size: 0.98rem;
    color: #4a4a4a;
    line-height: 1.7;
}

.same-box-heading ol li {
    list-style: decimal;
    padding: 0.25rem 0;
    font-size: 0.98rem;
    color: #4a4a4a;
    line-height: 1.7;
}

.same-box-heading ul ul,
.same-box-heading ol ol,
.same-box-heading ul ol,
.same-box-heading ol ul {
    margin: 0.3rem 0 0.3rem 1.2rem;
}

/* FCC certificate document cards */
.documents-box {
    display: block;
    height: 100%;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.documents-box:hover {
    border-color: var(--PrimaryColor);
    box-shadow: 0 8px 20px rgba(27, 88, 233, 0.1);
    transform: translateY(-2px);
}

.documents-box .doc-logo {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.documents-box .doc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.documents-box h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #181818;
    margin-bottom: 0.3rem;
}

.documents-box p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}

/* Mobile category filter toggle */
#left-side-btn {
    margin-bottom: 1.5rem;
}

#left-side-close {
    display: none;
}

@media (max-width: 991px) {
    .left-side-bar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        z-index: 200;
        padding: 1.5rem;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    }

    .left-side-bar.active {
        left: 0;
    }

    #left-side-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 50%;
        background: #f4f4f6;
        border: none;
        margin-bottom: 1rem;
    }
}

#black-layer {
    display: none;
}

#black-layer.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
}

.Subscribe-section{display: none;}

img{max-width: 100%;}


/* this is old css for old pages  end*/




/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    /* marquee becomes a swipeable row */
    .marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        padding-inline: 1rem;
    }

    [data-reveal],
    [data-reveal] .line-inner,
    .sched-day,
    .life-letter .text-gradient,
    .stack-row .chip,
    .layer-body .chip,
    .layer-body .sdk-card,
    .layer-body .badge-soon,
    .layer-status::before {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .header,
    .hero-bg,
    .hero-glow::before,
    .stack12-glow::before,
    .phone-ring,
    .phone-float .phone,
    .phone-float .phone-row,
    .hw-panel .hw-media,
    .hw-panel .hw-anim,
    .hw-status::before,
    .os-checks svg path,
    .os-glow,
    .fab-ring,
    .fabmap .fab-halo,
    .answer *,
    .wl-card,
    .wl-card *,
    .wl-hero::after,
    .tag--dot::before,
    .orb-spin,
    .orb-spin .orb-sat > * > *,
    .orb-center,
    .dev-status--live::before,
    .footer-glow,
    .di-boundary span,
    body.is-page .pg.is-open,
    body.is-page .pagebar-title {
        animation: none !important;
    }

    .header,
    .btn,
    .header .nav-links,
    .os-copy > *,
    .os-visual img,
    .os-dot,
    .stack-row,
    .stack-row::before,
    .stack-label,
    .chip,
    .layer-panel,
    .layer-body {
        transition-duration: 0.01ms !important;
    }
}
