/* ------------------------------------------------------------------
           CSS Variables & Base
        ------------------------------------------------------------------ */
        :root {
            --theme-core: #97e33b;
            --theme-dim: rgba(151, 227, 59, 0.15);
            --bg-deep: #0b0f19;
            --bg-surface: #131a2a;
            --bg-elevated: #1e2738;
            --text-prime: #ffffff;
            --text-mute: #a0aec0;
            --radius-lg: 20px;
            --radius-md: 16px;
            --shadow-base: 0 10px 30px rgba(0,0,0,0.4);
            --shadow-glow: 0 0 20px rgba(151, 227, 59, 0.2);
            --trans: all 0.15s ease;
            --width-max: 1280px;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--bg-deep);
            color: var(--text-prime);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        /* Flexbox safety defaults */
        .mesh-core, .apex-realm, .orbit-weave, 
        .portal-realm, .focal-realm, .flare-hull, 
        .route-realm, .sync-fold {
            display: flex;
            flex-wrap: wrap;
        }

        .mesh-core > *, .apex-realm > *, .orbit-weave > *, 
        .portal-realm > *, .focal-realm > *, .flare-hull > *, 
        .route-realm > *, .sync-fold > * {
            min-width: 0;
        }

        /* Text safety */
        h1, h2, h3, p, a, span {
            word-break: break-word;
            overflow-wrap: break-word;
        }
        
        p {
            word-break: keep-all;
        }

        h1, h2, h3 {
            white-space: normal;
            line-height: 1.3;
            font-weight: 700;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: var(--trans);
        }

        /* ------------------------------------------------------------------
           Header & Navigation (Apex & Orbit)
        ------------------------------------------------------------------ */
        .apex-realm {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            background: rgba(11, 15, 25, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 1rem 5%;
            justify-content: space-between;
            align-items: center;
        }

        .sigil {
            display: flex;
            align-items: center;
            height: 40px;
        }

        .sigil img {
            height: 100%;
            width: auto;
            object-fit: contain;
        }

        .orbit-weave {
            gap: 2rem;
            align-items: center;
        }

        .orbit-bond {
            color: var(--text-mute);
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.5rem 0;
            position: relative;
        }

        .orbit-bond::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--theme-core);
            transition: var(--trans);
        }

        .orbit-bond:hover, .orbit-bond:focus {
            color: var(--text-prime);
        }

        .orbit-bond:hover::after, .orbit-bond:focus::after {
            width: 100%;
        }

        .bond-active {
            color: var(--theme-core);
        }
        .bond-active::after {
            width: 100%;
        }

        /* ------------------------------------------------------------------
           Main Container (Mesh)
        ------------------------------------------------------------------ */
        .mesh-core {
            width: 100%;
            flex-direction: column;
        }

        /* ------------------------------------------------------------------
           Hero Stage (Portal) - Blueprint: card_float
        ------------------------------------------------------------------ */
        .portal-realm {
            position: relative;
            width: 100%;
            min-height: 90vh;
            padding-top: 80px; /* offset header */
            align-items: flex-end; /* Align content to bottom for float effect */
            justify-content: flex-start;
            overflow: hidden;
            background-color: #000;
        }

        .portal-lens {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
            opacity: 0.6; /* Darken for contrast */
        }

        /* Gradient overlay for depth */
        .portal-realm::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, var(--bg-deep) 0%, transparent 50%, rgba(11,15,25,0.8) 100%);
            z-index: 2;
        }

        /* The wrapper to position the floating card */
        .portal-fold {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: var(--width-max);
            margin: 0 auto;
            padding: 0 5%;
            transform: translateY(10%); /* Blueprint overlap requirement */
        }

        .portal-shard {
            background: rgba(19, 26, 42, 0.85);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(151, 227, 59, 0.3);
            border-radius: var(--radius-lg);
            padding: 3.5rem;
            max-width: 680px;
            box-shadow: var(--shadow-base), var(--shadow-glow);
        }

        .portal-crest {
            font-size: 3.2rem;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #fff 0%, var(--theme-core) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .portal-echo {
            font-size: 1.15rem;
            color: var(--text-mute);
            margin-bottom: 2.5rem;
        }

        .pulse-prime {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--theme-core);
            color: var(--bg-deep);
            font-weight: 700;
            font-size: 1.1rem;
            padding: 1rem 2.5rem;
            border-radius: var(--radius-md);
            box-shadow: 0 4px 15px rgba(151, 227, 59, 0.4);
        }

        .pulse-prime:hover, .pulse-prime:focus {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(151, 227, 59, 0.6);
            color: #000;
        }

        /* ------------------------------------------------------------------
           Features Section (Focal)
        ------------------------------------------------------------------ */
        .focal-realm {
            width: 100%;
            max-width: var(--width-max);
            margin: 0 auto;
            padding: 10rem 5% 6rem; /* Top padding accommodates hero overlap */
            flex-direction: column;
        }

        .sync-fold {
            width: 100%;
            margin-bottom: 4rem;
            text-align: center;
            flex-direction: column;
            align-items: center;
        }

        .focal-crest {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .focal-echo {
            font-size: 1.1rem;
            color: var(--text-mute);
            max-width: 700px;
        }

        .focal-mesh {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            width: 100%;
        }

        .focal-cell {
            background: var(--bg-surface);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: var(--radius-lg);
            padding: 2.5rem;
            transition: var(--trans);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .focal-cell:hover {
            transform: translateY(-5px);
            border-color: var(--theme-dim);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .focal-glyph {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--bg-elevated) 0%, #1a2233 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(151, 227, 59, 0.2);
            color: var(--theme-core);
        }

        .focal-glyph svg {
            width: 28px;
            height: 28px;
            fill: currentColor;
        }

        .focal-cell h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--text-prime);
        }

        .focal-cell p {
            color: var(--text-mute);
            font-size: 0.95rem;
        }

        /* ------------------------------------------------------------------
           Ecosystem Detail (Flare)
        ------------------------------------------------------------------ */
        .flare-hull {
            width: 100%;
            background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
            padding: 8rem 5%;
            position: relative;
        }

        .flare-fold {
            max-width: var(--width-max);
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4rem;
        }

        .flare-fold {
            flex: 1;
            min-width: 300px;
        }

        .flare-fold h2 {
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
        }

        .flare-fold p {
            font-size: 1.1rem;
            color: var(--text-mute);
            margin-bottom: 2rem;
        }

        .flare-visual {
            flex: 1;
            min-width: 300px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .flare-visual svg {
            width: 100%;
            max-width: 450px;
            height: auto;
            filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
        }

        /* ------------------------------------------------------------------
           Site Paths (Route)
        ------------------------------------------------------------------ */
        .route-realm {
            width: 100%;
            max-width: var(--width-max);
            margin: 0 auto;
            padding: 6rem 5% 8rem;
            flex-direction: column;
        }

        .route-mesh {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            width: 100%;
        }

        .route-node {
            background: var(--bg-elevated);
            border-radius: var(--radius-md);
            padding: 2rem;
            border: 1px solid transparent;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .route-node::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--theme-core);
            opacity: 0;
            transition: var(--trans);
        }

        .route-node:hover {
            border-color: rgba(255,255,255,0.1);
            transform: translateY(-3px);
        }

        .route-node:hover::before {
            opacity: 1;
        }

        .route-crest {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            color: var(--theme-core);
        }

        .route-echo {
            color: var(--text-mute);
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }

        .route-bond {
            align-self: flex-start;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-prime);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .route-bond::after {
            content: '→';
            font-family: monospace;
            font-size: 1.2em;
            transition: transform 0.15s ease;
        }

        .route-node:hover .route-bond::after {
            transform: translateX(4px);
            color: var(--theme-core);
        }

        /* ------------------------------------------------------------------
           Footer (Nadir)
        ------------------------------------------------------------------ */
        .nadir-base {
            background-color: #05070a;
            padding: 4rem 5%;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        .nadir-base p {
            color: var(--text-mute);
            font-size: 0.9rem;
            opacity: 0.7;
        }

        .nadir-base strong {
            color: var(--text-prime);
            font-size: 1.2rem;
            display: block;
            margin-bottom: 0.5rem;
        }

        /* ------------------------------------------------------------------
           Responsive Breakpoints
        ------------------------------------------------------------------ */
        @media (max-width: 1024px) {
            .portal-shard {
                padding: 2.5rem;
            }
            .portal-crest {
                font-size: 2.5rem;
            }
            .flare-fold {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            .apex-realm {
                padding: 1rem;
            }
            .orbit-weave {
                display: none; /* In a real scenario, JS would toggle a mobile menu, keeping it simple for output constraint */
            }
            .portal-realm {
                align-items: center;
                padding-top: 60px;
            }
            .portal-fold {
                transform: translateY(0);
                padding: 2rem 5%;
            }
            .focal-realm {
                padding-top: 4rem;
            }
            .focal-mesh, .route-mesh {
                grid-template-columns: 1fr;
            }
        }

.orbit-apex-realm {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-prime);
}
.orbit-apex-realm,
.orbit-apex-realm *,
.orbit-apex-realm *::before,
.orbit-apex-realm *::after {
    box-sizing: border-box;
}

.orbit-apex-realm nav,
.orbit-apex-realm div,
.orbit-apex-realm section,
.orbit-apex-realm article,
.orbit-apex-realm aside,
.orbit-apex-realm p,
.orbit-apex-realm h1,
.orbit-apex-realm h2,
.orbit-apex-realm h3,
.orbit-apex-realm h4,
.orbit-apex-realm h5,
.orbit-apex-realm h6,
.orbit-apex-realm a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.orbit-apex-realm p,
.orbit-apex-realm h1,
.orbit-apex-realm h2,
.orbit-apex-realm h3,
.orbit-apex-realm h4,
.orbit-apex-realm h5,
.orbit-apex-realm h6 {
    text-decoration: none;
}

.orbit-apex-realm img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.orbit-apex-realm {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.orbit-apex-realm a.orbit-orbit-bond.orbit-bond-active,
.orbit-apex-realm a.orbit-orbit-bond {
    --aisite-shell-nav-padding: 0.5rem 0;
    --aisite-shell-nav-margin: 0;
    --aisite-shell-nav-line-height: normal;
    --aisite-shell-nav-display: inline;
    --aisite-shell-nav-height: auto;
    --aisite-shell-nav-min-height: auto;
}

.orbit-apex-realm a.orbit-orbit-bond.orbit-bond-active,
.orbit-apex-realm a.orbit-orbit-bond.orbit-bond-active:hover,
.orbit-apex-realm a.orbit-orbit-bond.orbit-bond-active:focus,
.orbit-apex-realm a.orbit-orbit-bond.orbit-bond-active:active,
.orbit-apex-realm a.orbit-orbit-bond.orbit-bond-active.active,
.orbit-apex-realm a.orbit-orbit-bond.orbit-bond-active[aria-current="page"],
.orbit-apex-realm a.orbit-orbit-bond,
.orbit-apex-realm a.orbit-orbit-bond:hover,
.orbit-apex-realm a.orbit-orbit-bond:focus,
.orbit-apex-realm a.orbit-orbit-bond:active,
.orbit-apex-realm a.orbit-orbit-bond.active,
.orbit-apex-realm a.orbit-orbit-bond[aria-current="page"] {
    background: transparent;
    border: none;
    border-bottom: none;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    padding: var(--aisite-shell-nav-padding, 0);
    margin: var(--aisite-shell-nav-margin, 0);
    line-height: var(--aisite-shell-nav-line-height, normal);
    display: var(--aisite-shell-nav-display, inline);
    height: var(--aisite-shell-nav-height, auto);
    min-height: var(--aisite-shell-nav-min-height, auto);
}

.orbit-apex-realm, .orbit-apex-realm .orbit-orbit-weave{
            display: flex;
            flex-wrap: wrap;
        }

.orbit-apex-realm > *, .orbit-apex-realm .orbit-orbit-weave > *{
            min-width: 0;
        }

.orbit-apex-realm{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            background: rgba(11, 15, 25, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 1rem 5%;
            justify-content: space-between;
            align-items: center;
        }

.orbit-apex-realm .orbit-sigil{
            display: flex;
            align-items: center;
            height: 40px;
        }

.orbit-apex-realm .orbit-sigil img{
            height: 100%;
            width: auto;
            object-fit: contain;
        }

.orbit-apex-realm .orbit-orbit-weave{
            gap: 2rem;
            align-items: center;
        }

.orbit-apex-realm .orbit-orbit-bond{
            color: #a0aec0;
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.5rem 0;
            position: relative;
        }

.orbit-apex-realm .orbit-orbit-bond::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #97e33b;
            transition: all 0.15s ease;
        }

.orbit-apex-realm .orbit-orbit-bond:hover, .orbit-apex-realm .orbit-orbit-bond:focus{
            color: #ffffff;
        }

.orbit-apex-realm .orbit-orbit-bond:hover::after, .orbit-apex-realm .orbit-orbit-bond:focus::after{
            width: 100%;
        }

.orbit-apex-realm .orbit-bond-active{
            color: #97e33b;
        }

.orbit-apex-realm .orbit-bond-active::after{
            width: 100%;
        }

@media (max-width: 768px){.orbit-apex-realm{
                padding: 1rem;
            }

.orbit-apex-realm .orbit-orbit-weave{
                display: none; 
            }}

.orbit-apex-realm {
    background: rgb(11, 15, 25);
    background-image: none;
}

.root-nadir-base {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-prime);
}
.root-nadir-base,
.root-nadir-base *,
.root-nadir-base *::before,
.root-nadir-base *::after {
    box-sizing: border-box;
}

.root-nadir-base nav,
.root-nadir-base div,
.root-nadir-base section,
.root-nadir-base article,
.root-nadir-base aside,
.root-nadir-base p,
.root-nadir-base h1,
.root-nadir-base h2,
.root-nadir-base h3,
.root-nadir-base h4,
.root-nadir-base h5,
.root-nadir-base h6,
.root-nadir-base a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.root-nadir-base p,
.root-nadir-base h1,
.root-nadir-base h2,
.root-nadir-base h3,
.root-nadir-base h4,
.root-nadir-base h5,
.root-nadir-base h6 {
    text-decoration: none;
}

.root-nadir-base img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.root-nadir-base {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.root-nadir-base a,
.root-nadir-base a:hover,
.root-nadir-base a:focus,
.root-nadir-base a:active {
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.root-nadir-base{
            background-color: #05070a;
            padding: 4rem 5%;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

.root-nadir-base p{
            color: #a0aec0;
            font-size: 0.9rem;
            opacity: 0.7;
        }

.root-nadir-base strong{
            color: #ffffff;
            font-size: 1.2rem;
            display: block;
            margin-bottom: 0.5rem;
        }