/* ═══════════════════════════════════════════════════════════
   FORNEUS TECHNOLOGIES — Global Design System
   Multi-Page · Dark Military-Grade · Glassmorphism · Neon
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --bg-primary: #070707;
    --bg-secondary: #0A0A0A;
    --bg-elevated: #0E0E12;
    --bg-card: rgba(12, 12, 16, 0.72);
    --bg-card-hover: rgba(18, 18, 26, 0.85);

    --cyan: #00F0FF;
    --cyan-dim: #00a8b3;
    --cyan-ghost: rgba(0, 240, 255, 0.06);
    --blue: #0066FF;
    --blue-electric: #3388FF;
    --garm-blue: #00a2ff;
    --purple: #bc13fe;
    --red-alert: #FF2D2D;
    --red-dim: #991a1a;
    --green-online: #00E676;

    --gray-100: #E8E8E8;
    --gray-200: #B0B0B0;
    --gray-300: #707070;
    --gray-400: #404040;
    --gray-500: #1A1A1E;

    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-glow: rgba(0, 240, 255, 0.15);

    --font-heading: 'Space Grotesk', 'Rajdhani', sans-serif;
    --font-body: 'Inter', 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1280px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--gray-200);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection {
    background: rgba(0, 240, 255, .2);
    color: var(--cyan)
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

ul {
    list-style: none
}

/* ─── Utilities ─── */
.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--blue-electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem
}

.page-main {
    flex: 1
}

/* ─── Global Glassmorphism System ─── */
.glass-premium {
    background: linear-gradient(135deg, rgba(10, 20, 25, 0.1), rgba(5, 10, 15, 0.25));
    border: 1px solid rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.glass-card {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.2), rgba(10, 15, 20, 0.4));
    border: 1px solid rgba(0, 240, 255, 0.08);
    /* Minimal cyan hint */
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.glass-overlay {
    background: rgba(7, 7, 7, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Allocation Bar Animation */
@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: var(--final-width);
    }
}

.alloc-bar-fill {
    animation: fillBar 1.5s cubic-bezier(0.1, 0.5, 0.5, 1) forwards;
}

/* ═══════════════════════════════════════════════
   HEADER / NAVIGATION  (shared across all pages)
   ═══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(7, 7, 7, .6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: padding .35s var(--ease-out-expo);
}

.site-header.scrolled {
    padding: .6rem 0
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, .25));
    transition: filter .3s;
}

.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, .45));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem
}

.nav-links a {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-300);
    position: relative;
    padding: .35rem 0;
    transition: color .3s;
}

.nav-links a:hover {
    color: var(--gray-100)
}

.nav-links a.active {
    color: var(--cyan)
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 240, 255, .5);
}

.nav-links .nav-cta {
    padding: .45rem 1.1rem;
    border: 1px solid rgba(0, 240, 255, .3);
    border-radius: 4px;
    color: var(--cyan) !important;
    transition: all .3s;
}

.nav-links .nav-cta:hover {
    background: rgba(0, 240, 255, .08);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, .15);
}

.nav-links .nav-cta.active::after {
    display: none
}

/* hamburger - mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-200);
    margin: 5px 0;
    transition: all .3s
}

/* ═══════════════════════════════════════════════
   HERO SECTION  (index.html)
   ═══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particles-bg canvas {
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 0%, var(--bg-primary) 72%),
        linear-gradient(180deg, transparent 0%, var(--bg-primary) 96%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 880px;
    padding: 0 2rem;
    pointer-events: none;
}

.hero-content .hero-badge,
.hero-content .hero-title,
.hero-content .hero-sub,
.hero-content .btn-glow,
.hero-content .hero-stats {
    pointer-events: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem 1rem;
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    color: var(--cyan);
    background: var(--cyan-ghost);
    margin-bottom: 2rem;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.14;
    color: var(--gray-100);
    margin-bottom: 1.4rem;
    letter-spacing: -.02em;
}

.hero-sub {
    font-size: clamp(.92rem, 1.4vw, 1.12rem);
    color: var(--gray-300);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* ── CTA Button (reusable) ── */
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 2.4rem;
    background: transparent;
    border: 1px solid var(--cyan);
    border-radius: 4px;
    color: var(--cyan);
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all .4s var(--ease-out-expo);
}

.btn-glow:hover {
    background: rgba(0, 240, 255, .08);
    box-shadow: 0 0 30px rgba(0, 240, 255, .2), 0 0 60px rgba(0, 240, 255, .08),
        inset 0 0 30px rgba(0, 240, 255, .04);
    transform: translateY(-2px);
}

.btn-glow .glow-bg {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(0, 240, 255, .12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.btn-glow:hover .glow-bg {
    opacity: 1
}

/* ── Hero Stats ── */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center
}

.stat-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gray-100)
}

.stat-label {
    display: block;
    font-size: .68rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .2rem
}

.stat-sep {
    width: 1px;
    height: 38px;
    background: var(--border-subtle)
}

/* scroll arrow */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-hint span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════════════ */
.section {
    padding: 7rem 0
}

.section-header {
    text-align: center;
    margin-bottom: 3.8rem
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .18em;
    color: var(--cyan-dim);
    margin-bottom: .9rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: .9rem;
}

.section-desc {
    font-size: .95rem;
    color: var(--gray-300);
    max-width: 540px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   PRODUCT CARDS  (ecosystem.html)
   ═══════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.4rem;
}

.product-card {
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all .5s var(--ease-out-expo);
    cursor: default;
}

.product-card:hover {
    border-color: rgba(0, 240, 255, .22);
    background: var(--bg-card-hover);
    transform: translateY(-10px)
}

.card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, .08), transparent 60%);
}

.product-card:hover .card-glow {
    opacity: 1
}

.card-body {
    position: relative;
    z-index: 2;
    padding: 2rem 1.7rem
}

.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    margin-bottom: 1.4rem;
    color: var(--cyan);
    background: var(--cyan-ghost);
    transition: all .4s;
}

.card-icon svg {
    width: 22px;
    height: 22px
}

/* Product logo images in cards */
.card-icon.product-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(0, 240, 255, .2);
    background: rgba(0, 240, 255, .04);
    box-shadow: 0 0 16px rgba(0, 240, 255, .06), inset 0 0 16px rgba(0, 240, 255, .03);
    margin-bottom: 1.6rem;
}

.card-icon.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, .2));
}

.product-card:hover .card-icon.product-logo {
    border-color: rgba(0, 240, 255, .45);
    box-shadow: 0 0 24px rgba(0, 240, 255, .15), inset 0 0 16px rgba(0, 240, 255, .05);
}

.product-card:hover .card-icon.product-logo img {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, .35));
}

/* Restricted (ELIGOS) product logo override */
.restricted .card-icon.product-logo {
    border-color: rgba(255, 45, 45, .2) !important;
    background: rgba(255, 45, 45, .04) !important;
    box-shadow: 0 0 12px rgba(255, 45, 45, .06), inset 0 0 12px rgba(255, 45, 45, .03) !important;
}

.restricted:hover .card-icon.product-logo {
    border-color: rgba(255, 45, 45, .45) !important;
    box-shadow: 0 0 24px rgba(255, 45, 45, .15), inset 0 0 16px rgba(255, 45, 45, .05) !important;
}

.restricted .card-icon.product-logo img {
    filter: drop-shadow(0 0 4px rgba(255, 45, 45, .2)) !important;
}

.restricted:hover .card-icon.product-logo img {
    filter: drop-shadow(0 0 8px rgba(255, 45, 45, .35)) !important;
}

.product-card:hover .card-icon {
    border-color: rgba(0, 240, 255, .35);
    box-shadow: 0 0 18px rgba(0, 240, 255, .1)
}

.card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-100);
    letter-spacing: .08em;
    margin-bottom: .3rem;
}

.card-tagline {
    font-size: .78rem;
    color: var(--cyan-dim);
    font-weight: 500;
    letter-spacing: .04em;
    margin-bottom: .9rem
}

.card-desc {
    font-size: .86rem;
    color: var(--gray-300);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 1.4rem
}

.card-status {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .12em;
    color: var(--gray-300);
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400)
}

.status-dot.online {
    background: var(--green-online);
    box-shadow: 0 0 8px rgba(0, 230, 118, .5);
    animation: blink 2.5s ease-in-out infinite
}

/* ── ELIGOS restricted ── */
.product-card.restricted {
    border-color: rgba(255, 45, 45, .15);
    background: rgba(15, 8, 8, .8)
}

.product-card.restricted:hover {
    border-color: rgba(255, 45, 45, .35);
    transform: translateY(-4px)
}

.card-glow.red {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 45, .1), transparent 60%)
}

.card-restricted-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 45, 45, .02) 2px, rgba(255, 45, 45, .02) 4px);
    pointer-events: none;
}

.restricted .card-icon {
    border-color: rgba(255, 45, 45, .2) !important;
    color: var(--red-alert) !important;
    background: rgba(255, 45, 45, .05) !important
}

.restricted:hover .card-icon {
    border-color: rgba(255, 45, 45, .4) !important;
    box-shadow: 0 0 18px rgba(255, 45, 45, .12) !important
}

.restricted .card-name {
    color: var(--red-alert) !important
}

.restricted .card-tagline {
    color: var(--red-dim) !important;
    font-family: var(--font-mono)
}

.restricted .card-desc {
    color: var(--gray-400) !important
}

.restricted .card-status {
    color: var(--red-alert) !important
}

.restricted .status-dot {
    background: var(--red-alert) !important;
    box-shadow: 0 0 8px rgba(255, 45, 45, .5) !important;
    animation: blink 1.5s ease-in-out infinite !important
}

/* ═══════════════════════════════════════════════════════════════
   ECOSYSTEM CARD LOGO — DISPLACEMENT MAP GLITCH
   SVG feTurbulence + feDisplacementMap + random layer tears
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper gets displacement filter applied via JS */
.card-icon.product-logo {
    position: relative;
    overflow: visible;
}

/* The logo image inside the card gets the tear animation */
.card-icon.product-logo img {
    animation: cardLogoGlitchTear 6s infinite linear;
}

/* R/G/B channel split layers via pseudo-elements on the wrapper */
.card-icon.product-logo::before,
.card-icon.product-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    mix-blend-mode: screen;
}

/* Red channel ghost */
.card-icon.product-logo::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 0, 80, 0.15), transparent 70%);
    animation: cardGlitchLayerR 6s infinite linear;
}

/* Cyan channel ghost */
.card-icon.product-logo::after {
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 255, 250, 0.15), transparent 70%);
    animation: cardGlitchLayerB 6s infinite linear;
}

/* Eligos (restricted) uses red tones for its channel ghosts */
.restricted .card-icon.product-logo::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 0, 0, 0.2), transparent 70%);
}

.restricted .card-icon.product-logo::after {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 120, 0, 0.15), transparent 70%);
}

/* ── KEYFRAMES: CARD LOGO TEAR ──
   6s cycle. Calm 0-72%, micro-jitter 73%, 
   EXPLOSION 74-78%, REASSEMBLE 79-82%, calm 83-100% */
@keyframes cardLogoGlitchTear {

    0%,
    72% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0) skewX(0deg) scaleX(1);
        filter: drop-shadow(0 0 4px rgba(0, 240, 255, .2));
    }

    /* Micro-jitter warning */
    73% {
        clip-path: inset(0 0 0 0);
        transform: translate(-1px, 0.5px) skewX(0.5deg);
        filter: drop-shadow(0 0 6px rgba(0, 240, 255, .3));
    }

    /* EXPLOSION — top slice tears left-up */
    74% {
        clip-path: inset(0 0 60% 0);
        transform: translate(-8px, -3px) skewX(-8deg) scaleX(1.02);
        filter: drop-shadow(-3px 0 0 #ff00c1) drop-shadow(3px 0 0 #00fff9);
    }

    /* Middle slice shoots right */
    75% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(10px, 1px) skewX(6deg) scaleX(0.98);
        filter: drop-shadow(-4px 0 0 #ff00c1) drop-shadow(4px 0 0 #00fff9);
    }

    /* Bottom slice drops down-left */
    76% {
        clip-path: inset(60% 0 0 0);
        transform: translate(-6px, 4px) skewX(-5deg) scaleX(1.03);
        filter: drop-shadow(0 0 8px rgba(0, 240, 255, .6));
    }

    /* Quick narrow band tears right */
    77% {
        clip-path: inset(15% 0 55% 0);
        transform: translate(12px, -1px) skewX(10deg);
        filter: drop-shadow(-2px 0 0 #ff00c1);
    }

    /* Another slice — vertical noise */
    77.5% {
        clip-path: inset(45% 0 20% 0);
        transform: translate(-7px, 2px) skewX(-4deg);
        filter: drop-shadow(2px 0 0 #00fff9);
    }

    /* REASSEMBLE — drifting back */
    78% {
        clip-path: inset(0 0 0 0);
        transform: translate(4px, 0) skewX(3deg);
        filter: drop-shadow(0 0 4px rgba(0, 240, 255, .4));
    }

    79% {
        clip-path: inset(0 0 0 0);
        transform: translate(-2px, 0) skewX(-1deg);
        filter: drop-shadow(0 0 4px rgba(0, 240, 255, .3));
    }

    /* SNAP — instant recombination */
    80%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0) skewX(0deg) scaleX(1);
        filter: drop-shadow(0 0 4px rgba(0, 240, 255, .2));
    }
}

/* ── KEYFRAMES: RED ADJUSTMENT LAYER — tears opposite ── */
@keyframes cardGlitchLayerR {

    0%,
    72%,
    80%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    74% {
        opacity: 0.7;
        transform: translate(6px, -2px);
        clip-path: inset(5% 0 55% 0);
    }

    75% {
        opacity: 0.5;
        transform: translate(-8px, 3px);
        clip-path: inset(35% 0 25% 0);
    }

    76% {
        opacity: 0.6;
        transform: translate(10px, 1px);
        clip-path: inset(55% 0 5% 0);
    }

    77% {
        opacity: 0.4;
        transform: translate(-5px, -1px);
        clip-path: inset(20% 0 40% 0);
    }

    78% {
        opacity: 0.2;
        transform: translate(2px, 0);
        clip-path: inset(0 0 0 0);
    }
}

/* ── KEYFRAMES: BLUE/CYAN ADJUSTMENT LAYER — opposite direction ── */
@keyframes cardGlitchLayerB {

    0%,
    72%,
    80%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }

    74% {
        opacity: 0.6;
        transform: translate(-5px, 3px);
        clip-path: inset(10% 0 50% 0);
    }

    75% {
        opacity: 0.7;
        transform: translate(7px, -2px);
        clip-path: inset(40% 0 20% 0);
    }

    76% {
        opacity: 0.5;
        transform: translate(-9px, -1px);
        clip-path: inset(60% 0 0 0);
    }

    77% {
        opacity: 0.45;
        transform: translate(6px, 2px);
        clip-path: inset(10% 0 50% 0);
    }

    78% {
        opacity: 0.15;
        transform: translate(-1px, 0);
        clip-path: inset(0 0 0 0);
    }
}

/* ── Hover intensifies the displacement ── */
.product-card:hover .card-icon.product-logo img {
    animation-duration: 4s;
}

.product-card:hover .card-icon.product-logo::before,
.product-card:hover .card-icon.product-logo::after {
    animation-duration: 4s;
}

/* ═══════════════════════════════════════════════════════════════
   MULTI-FRAGMENT GLITCH SYSTEM — JS-Driven Horizontal Slicing
   10-15 thin strips tear apart in random directions with
   RGB ghost layers and scan-line artifacts
   ═══════════════════════════════════════════════════════════════ */

/* Base fragment — absolute clone of the original image */
.glitch-fragment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform, opacity;
    transition: none;
    backface-visibility: hidden;
    z-index: 5;
}

/* Red channel ghost fragment */
.glitch-fragment--r {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform, opacity;
    mix-blend-mode: screen;
    opacity: 0;
    z-index: 6;
    filter: brightness(1.2) hue-rotate(-30deg) saturate(2);
}

/* Cyan/Blue channel ghost fragment */
.glitch-fragment--b {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform, opacity;
    mix-blend-mode: screen;
    opacity: 0;
    z-index: 6;
    filter: brightness(1.2) hue-rotate(160deg) saturate(2);
}

/* Thin horizontal scan-line artifacts between fragments */
.glitch-scanline-bar {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 1px;
    background: rgba(0, 240, 255, 0.4);
    pointer-events: none;
    opacity: 0;
    z-index: 7;
    box-shadow: 0 0 4px rgba(0, 240, 255, 0.3);
}

/* When multi-fragment JS engine is active, ensure wrapper allows overflow.
   The existing glitchTearMain animation continues as a BASELINE effect.
   JS hides the original image only DURING bursts via inline opacity. */
.multi-frag-active {
    position: relative !important;
    overflow: visible !important;
}

/* ═══════════════════════════════════════════════
   LEAFLET MAP  (network.html)
   ═══════════════════════════════════════════════ */
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow:
        0 0 60px rgba(0, 0, 0, .5),
        0 0 100px rgba(0, 240, 255, .04),
        inset 0 0 60px rgba(0, 240, 255, .02);
}

.map-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(transparent,
            transparent 2px,
            rgba(0, 240, 255, 0.05) 3px,
            rgba(0, 240, 255, 0.05) 4px);
}

#map {
    width: 100%;
    height: 88vh;
    min-height: 700px;
    background: var(--bg-secondary);
}

/* dark mapbox / stamen tiles overrides */
.leaflet-container {
    background: #070707 !important
}

.leaflet-control-zoom a {
    background: var(--bg-elevated) !important;
    color: var(--gray-200) !important;
    border-color: var(--border-subtle) !important;
}

.leaflet-control-attribution {
    display: none !important;
}

/* Custom attribution below map */
.map-attribution {
    text-align: center;
    font-family: var(--font-mono);
    font-size: .58rem;
    color: var(--gray-400);
    letter-spacing: .1em;
    margin-top: .8rem;
    text-transform: uppercase;
}

/* pulsing marker */
.pulse-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.pulse-marker.blue {
    background: var(--blue-electric);
    box-shadow: 0 0 10px rgba(51, 136, 255, .6)
}

.pulse-marker.red {
    background: var(--red-alert);
    box-shadow: 0 0 10px rgba(255, 45, 45, .6)
}

.pulse-marker::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    animation: markerPing 2.2s ease-out infinite;
}

.pulse-marker.blue::after {
    border: 2px solid rgba(51, 136, 255, .35)
}

.pulse-marker.red::after {
    border: 2px solid rgba(255, 45, 45, .35)
}

.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .75rem;
    color: var(--gray-300)
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%
}

.legend-dot.lbl {
    background: var(--blue-electric);
    box-shadow: 0 0 6px rgba(51, 136, 255, .5)
}

.legend-dot.lrd {
    background: var(--red-alert);
    box-shadow: 0 0 6px rgba(255, 45, 45, .5)
}

.map-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 2.5rem;
    border-left: 1px solid var(--border-subtle);
}

.map-counter .num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan)
}

.map-counter .lbl {
    font-size: .64rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: .1em
}

/* ═══════════════════════════════════════════════
   ACCESS FORM  (access.html)
   ═══════════════════════════════════════════════ */
.access-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 6rem 0;
}

.access-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.8rem 2.4rem;
}

.access-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    margin: 0 auto 1.6rem;
    color: var(--cyan);
    background: var(--cyan-ghost);
}

.access-icon svg {
    width: 26px;
    height: 26px
}

.access-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-100);
    text-align: center;
    margin-bottom: .45rem;
}

.access-desc {
    font-size: .85rem;
    color: var(--gray-300);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
}

.form-group {
    margin-bottom: .85rem
}

.form-input {
    width: 100%;
    padding: .85rem 1rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: var(--gray-100);
    font-family: var(--font-body);
    font-size: .88rem;
    outline: none;
    transition: all .3s;
}

.form-input::placeholder {
    color: var(--gray-400)
}

.form-input:focus {
    border-color: rgba(0, 240, 255, .3);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, .05)
}

.form-submit {
    width: 100%;
    padding: .9rem;
    margin-top: .6rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, .1), rgba(0, 102, 255, .1));
    border: 1px solid rgba(0, 240, 255, .25);
    border-radius: 8px;
    color: var(--cyan);
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}

.form-submit:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, .15), rgba(0, 102, 255, .15));
    box-shadow: 0 0 25px rgba(0, 240, 255, .15);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   PRIVACY PAGE
   ═══════════════════════════════════════════════ */
.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem
}

.prose h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 1.5rem
}

.prose h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-100);
    margin: 2rem 0 .8rem
}

.prose p {
    font-size: .9rem;
    color: var(--gray-300);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-weight: 300
}

/* ═══════════════════════════════════════════════
   BACK BUTTON  (project detail pages)
   ═══════════════════════════════════════════════ */
.btn-back {
    position: fixed !important;
    top: 100px !important;
    /* Adjust below the header */
    left: 40px !important;
    z-index: 9999 !important;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #00feff;
    padding: 10px 20px;
    color: #00feff;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #00feff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 254, 255, 0.5);
}

/* ═══════════════════════════════════════════════
   STRATEGIC PARTNERS
   ═══════════════════════════════════════════════ */
.partners-section {
    padding: 5rem 0 4rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.partners-title {
    text-align: center;
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--gray-400);
    text-transform: uppercase;
    margin-bottom: 3.5rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    /* Monochrome metallic gray */
    transition: all .5s var(--ease-out-expo);
    cursor: default;
    /* We use data-hover-color for the specific brand color via CSS variables if needed, 
       but standard CSS works best here. */
}

.partner-logo svg {
    height: 100%;
    width: auto;
    transition: all .5s var(--ease-out-expo);
    filter: drop-shadow(0 0 0 transparent);
}

.partner-logo:hover {
    color: attr(data-hover-color color, var(--cyan));
    transform: translateY(-2px) scale(1.05);
}

/* Specific Hover Colors using nth-child to override the attr() limit in some browsers */
.partner-logo:nth-child(1):hover {
    color: #4285F4;
    filter: drop-shadow(0 0 15px rgba(66, 133, 244, 0.4));
}

.partner-logo:nth-child(2):hover {
    color: #0089D6;
    filter: drop-shadow(0 0 15px rgba(0, 137, 214, 0.4));
}

.partner-logo:nth-child(3):hover {
    color: #FF9900;
    filter: drop-shadow(0 0 15px rgba(255, 153, 0, 0.4));
}

.partner-logo:nth-child(4):hover {
    color: #76B900;
    filter: drop-shadow(0 0 15px rgba(118, 185, 0, 0.4));
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 2.5rem;
    }

    .partner-logo {
        height: 32px;
    }
}

/* ═══════════════════════════════════════════════
   FOOTER  (shared)
   ═══════════════════════════════════════════════ */
.site-footer {
    padding: 1.8rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-100);
    letter-spacing: .08em
}

.footer-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: .7;
    transition: opacity .3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-copy {
    font-size: .72rem;
    color: var(--gray-400)
}

.footer-links {
    display: flex;
    gap: 1.4rem
}

.footer-links a {
    font-size: .72rem;
    color: var(--gray-400);
    transition: color .3s
}

.footer-links a:hover {
    color: var(--gray-200)
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes badgePulse {

    0%,
    100% {
        border-color: rgba(0, 240, 255, .15)
    }

    50% {
        border-color: rgba(0, 240, 255, .3)
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

@keyframes scrollPulse {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top
    }

    50% {
        opacity: 1;
        transform: scaleY(1)
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom
    }
}

@keyframes markerPing {
    0% {
        transform: scale(1);
        opacity: .8
    }

    100% {
        transform: scale(3.5);
        opacity: 0
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: all .7s var(--ease-out-expo)
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media(max-width:768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: rgba(7, 7, 7, .96);
        backdrop-filter: blur(20px);
        transition: right .4s var(--ease-out-expo);
        padding: 2rem;
        z-index: 999;
    }

    .nav-links.open {
        right: 0
    }

    .nav-toggle {
        display: block;
        z-index: 1001
    }

    .hero-stats {
        gap: 1.2rem
    }

    .hero-sub br {
        display: none
    }

    .products-grid {
        grid-template-columns: 1fr
    }

    #map {
        height: 50vh
    }

    .map-legend {
        flex-direction: column;
        gap: .8rem
    }

    .map-counter {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        padding-top: .8rem
    }

    .footer-inner {
        flex-direction: column;
        text-align: center
    }

    .footer-brand {
        flex-direction: column;
        gap: .4rem
    }
}

@media(max-width:480px) {
    .hero-title {
        font-size: 1.8rem
    }

    .hero-stats {
        flex-direction: column;
        gap: .8rem
    }

    .stat-sep {
        width: 40px;
        height: 1px
    }

    .access-card {
        padding: 2rem 1.5rem
    }
}

/* ═══════════════════════════════════════════════
   INDEX OVERHAUL & TACTICAL GLITCH LOGO
   ═══════════════════════════════════════════════ */

/* ── Hero Metrics Bar (Index) ── */
.hero-metrics-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.hero-metrics-bar .metric-item {
    text-align: center;
}

.hero-metrics-bar .m-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-100);
}

.hero-metrics-bar .m-lbl {
    display: block;
    font-size: .6rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-top: .2rem;
}

.hero-metrics-bar .metric-sep {
    width: 1px;
    height: 30px;
    background: var(--border-subtle);
}

/* ── Divisions Section ── */
.divisions-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(0, 240, 255, 0.02) 50%, var(--bg-primary) 100%);
    position: relative;
    z-index: 2;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.division-card {
    position: relative;
    padding: 2.5rem;
    background: rgba(12, 12, 16, 0.4);
    /* Transparent glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all .5s var(--ease-out-expo);
    display: block;
    overflow: hidden;
}

.division-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.division-card .div-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.division-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 1rem;
}

.division-card h3 .div-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 0.2em;
    margin-bottom: 0.2rem;
}

.division-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-300);
    font-weight: 300;
}

/* ── Tech Foundation Section ── */
.tech-foundation-section {
    padding: 6rem 0 10rem;
    position: relative;
    z-index: 2;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-card {
    text-align: center;
    padding: 2rem;
    background: rgba(12, 12, 16, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-expo);
}

.tech-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(15, 20, 25, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.06);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tech-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gray-100);
    margin-bottom: 0.8rem;
}

.tech-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════
   TACTICAL GLITCH LOGO SYSTEM — Premium Tearing Contour
   Chromatic Aberration · Scanlines · Accent-Adaptive
   ═══════════════════════════════════════════════════════ */

/* ── Project Header — Logo LEFT of Title ── */
.project-header-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    z-index: 10;
    width: 100%;
}

.project-header-container h1 {
    flex-shrink: 1;
}

/* ── Logo Container ── */
/* ═══════════════════════════════════════════════════════════════
   TACTICAL GLITCH LOGO SYSTEM — VIOLENT TEAR-APART + SCANLINE
   The logo rips into 3 horizontal slices that fly apart in 
   opposite directions, then snap back. A bright scanning line 
   sweeps top-to-bottom over the image.
   ═══════════════════════════════════════════════════════════════ */

.tactical-glitch-logo-container {
    position: relative;
    flex-shrink: 0;
    z-index: 5;
    pointer-events: none;
}

.tactical-glitch-logo-wrapper {
    position: relative;
    display: inline-block;
    isolation: isolate;
    overflow: visible;
}

/* ── The Main Logo Image: PREMIUM CYBER-TEAR (Violent Tear Restored) ── */
.tactical-glitch-logo {
    display: block;
    position: relative;
    clip-path: inset(0 0 0 0);
    filter: drop-shadow(0 0 10px var(--accent-color));
    animation: glitchTearMain 3.5s infinite linear;
    height: auto;
    width: 260px;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Index Ghost Logo — Invisible except during glitch */
.index-ghost-logo {
    --logo-idle-opacity: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ── SCANNING LINE — bright horizontal bar that sweeps top→bottom ── */
.tactical-glitch-logo-wrapper::before {
    content: "";
    position: absolute;
    left: -20%;
    width: 140%;
    height: 3px;
    top: 0%;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-color, rgba(0, 240, 255, 0.3)) 15%,
            var(--accent-color, rgba(0, 240, 255, 0.9)) 40%,
            rgba(255, 255, 255, 0.95) 50%,
            var(--accent-color, rgba(0, 240, 255, 0.9)) 60%,
            var(--accent-color, rgba(0, 240, 255, 0.3)) 85%,
            transparent 100%);
    box-shadow:
        0 0 15px var(--accent-color, rgba(0, 240, 255, 0.7)),
        0 0 40px var(--accent-color, rgba(0, 240, 255, 0.3)),
        0 -4px 12px var(--accent-color, rgba(0, 240, 255, 0.2)),
        0 4px 12px var(--accent-color, rgba(0, 240, 255, 0.2));
    opacity: 0;
    animation: scanLineSwoop 3s linear infinite;
}

/* ── CRT SCANLINES overlay (faint horizontal lines) ── */
.tactical-glitch-logo-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.06) 2px,
            rgba(0, 0, 0, 0.06) 4px);
    pointer-events: none;
    z-index: 4;
    opacity: 0.35;
    animation: crtPulse 3.5s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAMES — MAIN TEAR: the logo VIOLENTLY rips into 3 
   horizontal slices that fly in opposite directions, then 
   snap back together.
   
   Timeline (5s cycle):
   0-70%   → calm
   71%     → micro-jitter warning
   72-73%  → EXPLOSION — 3 slices fly apart
   74-76%  → CHAOS — slices shift, flicker, skew
   77-79%  → REASSEMBLE — slices drift back
   80%     → SNAP — instant recombination
   81-100% → calm afterglow
   ═══════════════════════════════════════════════════════════════ */

/* ── THE SLICED GLITCH ANIMATION (Original Violent Tear) ── */
@keyframes glitchTearMain {

    /* 0-70%: Calm state */
    0%,
    70% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0) skewX(0deg);
        filter: drop-shadow(0 0 10px var(--accent-color));
    }

    /* 71%: Micro-jitter warning */
    71% {
        clip-path: inset(0 0 0 0);
        transform: translate(-3px, 1px) skewX(2deg);
        filter: drop-shadow(0 0 10px var(--accent-color));
    }

    /* 72%: EXPLOSION - Top Slice violently tears left */
    72% {
        clip-path: inset(0 0 65% 0);
        transform: translate(-35px, -5px) skewX(-20deg);
        filter: drop-shadow(-8px 0 0 #ff00c1) drop-shadow(8px 0 0 #00fff9);
    }

    /* 73%: EXPLOSION - Bottom Slice violently tears right */
    73% {
        clip-path: inset(65% 0 0 0);
        transform: translate(45px, 5px) skewX(30deg);
        filter: drop-shadow(-8px 0 0 #ff00c1) drop-shadow(8px 0 0 #00fff9);
    }

    /* 74%: CHAOS - Middle Slice shifts */
    74% {
        clip-path: inset(25% 0 35% 0);
        transform: translate(-25px, -2px) skewX(-10deg);
        filter: drop-shadow(0 0 20px var(--accent-color));
    }

    /* 75%: CHAOS - Multiple random slices */
    75% {
        clip-path: inset(45% 0 15% 0);
        transform: translate(30px, 3px) skewX(15deg);
        filter: drop-shadow(-5px 0 0 #ff00c1);
    }

    /* 76%: CHAOS - Quick flicker narrow slice */
    76% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-20px, 0) skewX(-5deg);
        filter: drop-shadow(5px 0 0 #00fff9);
    }

    /* 77%: REASSEMBLE - Drifting back */
    77% {
        clip-path: inset(0 0 0 0);
        transform: translate(15px, 0) skewX(8deg);
        filter: drop-shadow(0 0 10px var(--accent-color));
    }

    /* 78%: Jitter before snap */
    78% {
        clip-path: inset(0 0 0 0);
        transform: translate(-5px, 0) skewX(-2deg);
    }

    /* 80% - 100%: SNAP and calm */
    80%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0) skewX(0deg);
        filter: drop-shadow(0 0 10px var(--accent-color));
    }
}

/* ═══════ SCANNING LINE — Bright bar sweeps top→bottom ═══════ */
@keyframes scanLineSwoop {

    0%,
    68% {
        top: -5%;
        opacity: 0;
    }

    70% {
        top: -5%;
        opacity: 0;
    }

    71% {
        top: 0%;
        opacity: 0.9;
    }

    80% {
        top: 100%;
        opacity: 0.9;
    }

    81% {
        top: 105%;
        opacity: 0;
    }

    /* Second sweep during reassemble */
    82% {
        top: 105%;
        opacity: 0;
    }

    83% {
        top: 100%;
        opacity: 0.6;
    }

    88% {
        top: 0%;
        opacity: 0.6;
    }

    89% {
        top: -5%;
        opacity: 0;
    }

    100% {
        top: -5%;
        opacity: 0;
    }
}

/* ═══════ CRT SCANLINES PULSE ═══════ */
@keyframes crtPulse {

    0%,
    70%,
    82%,
    100% {
        opacity: 0.3;
    }

    72%,
    78% {
        opacity: 0.9;
    }

    76% {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   INDEX PAGE — GHOST LOGO 
   Invisible by default. Materializes ONLY during the tear 
   sequence, then fades back to nothing.
   ═══════════════════════════════════════════════════════════════ */
.index-ghost-logo {
    opacity: 0;
    animation: indexGhostTear 3s linear infinite;
}

@keyframes indexGhostTear {

    /* Invisible */
    0%,
    70%,
    82%,
    100% {
        opacity: 0;
        clip-path: inset(-50% -50% -50% -50%);
        transform: translate(0, 0);
        filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.15));
    }

    /* Initial Rupture */
    71.5% {
        opacity: 0.7;
        transform: translate(-10px, 0) scale(1.1);
        filter: drop-shadow(-15px 0 0 rgba(255, 0, 60, 0.9)) drop-shadow(15px 0 0 rgba(0, 240, 255, 0.9));
    }

    /* Aggressive Tearing - Top */
    72% {
        opacity: 0.9;
        clip-path: inset(-50% -50% 70% -50%);
        transform: translate(60px, -15px) skewX(10deg);
        filter: drop-shadow(12px 0 0 rgba(255, 0, 60, 1)) drop-shadow(-12px 0 0 rgba(0, 240, 255, 1));
    }

    /* Aggressive Tearing - Middle */
    73% {
        opacity: 1;
        clip-path: inset(30% -50% 30% -50%);
        transform: translate(-70px, 10px) skewX(-15deg);
        filter: drop-shadow(-15px 0 0 rgba(255, 0, 60, 1)) drop-shadow(15px 0 0 rgba(0, 240, 255, 1));
    }

    /* Aggressive Tearing - Bottom */
    74% {
        opacity: 0.9;
        clip-path: inset(70% -50% -50% -50%);
        transform: translate(50px, 20px) skewX(12deg);
        filter: drop-shadow(10px 0 0 rgba(255, 0, 60, 1)) drop-shadow(-10px 0 0 rgba(0, 240, 255, 1));
    }

    /* Materialization Chaos */
    76% {
        opacity: 1;
        clip-path: inset(-50% -50% -50% -50%);
        transform: translate(25px, -5px) skewX(-5deg) scale(1.05);
        filter: drop-shadow(0 0 40px rgba(0, 240, 255, 1)) brightness(2);
    }

    /* Reassemble / Stabilization */
    79% {
        opacity: 0.9;
        clip-path: inset(-50% -50% -50% -50%);
        transform: translate(-5px, 0) scale(1);
        filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.7)) brightness(1.5);
    }

    /* Sudden Dissolve */
    81% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Ghost wrapper scanning line also syncs */
.index-ghost-logo-wrapper::before {
    display: none !important;
}

@keyframes indexScanSwoop {

    0%,
    70%,
    82%,
    100% {
        top: -5%;
        opacity: 0;
    }

    71% {
        top: 0%;
        opacity: 0.9;
    }

    80% {
        top: 100%;
        opacity: 0.9;
    }

    81% {
        top: 105%;
        opacity: 0;
    }
}

.index-ghost-logo-wrapper::after {
    animation: indexCrtPulse 3s linear infinite !important;
}

@keyframes indexCrtPulse {

    0%,
    70%,
    82%,
    100% {
        opacity: 0;
    }

    72%,
    78% {
        opacity: 0.9;
    }
}

/* ═══════ RESPONSIVE — New Sections + Glitch ═══════ */
@media (max-width: 768px) {
    .divisions-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-metrics-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .hero-metrics-bar .metric-sep {
        width: 40px;
        height: 1px;
    }

    .project-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .tactical-glitch-logo {
        height: 140px;
    }
}

/* ═══════ PREMIUM FOOTER (3-Column) ═══════ */
.footer-tagline {
    font-size: .78rem;
    color: var(--gray-300);
    margin-bottom: .6rem;
    font-weight: 300;
}

.footer-badges {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.footer-badges .badge {
    font-family: var(--font-mono);
    font-size: .55rem;
    letter-spacing: .12em;
    color: var(--cyan-dim);
    border: 1px solid rgba(0, 240, 255, .12);
    padding: .2rem .6rem;
    border-radius: 3px;
    background: rgba(0, 240, 255, .03);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gray-200);
    margin-bottom: .3rem;
}

.footer-col a {
    font-size: .72rem;
    color: var(--gray-400);
    transition: color .3s;
}

.footer-col a:hover {
    color: var(--cyan);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: .68rem;
    color: var(--gray-400);
    letter-spacing: .04em;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* ─── Tactical UI Components ─── */
.hud-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
}

.hud-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-4px);
}

.hud-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 8px;
    border: 1px solid var(--blue-electric);
    color: var(--blue-electric);
    border-radius: 4px;
    text-transform: uppercase;
}

.card-tag.red {
    border-color: var(--red-alert);
    color: var(--red-alert);
}

.card-tag.green {
    border-color: var(--green-online);
    color: var(--green-online);
}

.hud-text {
    color: var(--gray-200);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Visualization Elements */
.energy-bar-container {
    margin: 1.5rem 0;
}

.energy-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-300);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.energy-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    border-radius: 2px;
}

.fill-cyan {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    width: 75%;
}

.fill-red {
    background: var(--red-alert);
    box-shadow: 0 0 10px var(--red-alert);
    width: 100%;
}

.fill-green {
    background: var(--green-online);
    box-shadow: 0 0 10px var(--green-online);
    width: 100%;
}

.cheat-sheet {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--gray-400);
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-200);
    font-style: italic;
}

.alert-box {
    background: rgba(255, 45, 45, 0.05);
    border: 1px solid rgba(255, 45, 45, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    color: var(--red-alert);
    font-size: 1.25rem;
}

.alert-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--red-alert);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Animations ─── */
@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ═══════════════════════════════════════════════════════════════
   KAIROS REBUILD — BENTO & CTA
   ═══════════════════════════════════════════════════════════════ */

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.2rem;
    position: relative;
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.bento-item:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
    padding: 3rem;
}

.bento-icon {
    font-size: 2.2rem;
    color: var(--cyan);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}

.bento-item h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.bento-item p {
    color: var(--gray-300);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 300;
}

.bento-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.05);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.cta-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-top: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 32px;
    padding: 5rem 2rem;
    text-align: center;
    backdrop-filter: blur(25px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 240, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0.5;
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}

.cta-card p {
    color: var(--gray-200);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 300;
}

.cta-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    /* ── 1. TACTICAL MOBILE NAVIGATION ── */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        z-index: 10001;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10000;
        padding: 2rem;
        margin: 0;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.4rem;
        letter-spacing: 0.1em;
    }

    /* ── 2. GRID & BENTO BOX COLLAPSE ── */
    .bento-grid,
    .divisions-grid,
    .cap-grid,
    .footer-grid,
    .hero-metrics-bar,
    .hero-stat-row,
    .stats-row,
    .division-cards,
    .metrics-grid,
    .neural-specs,
    .risk-pillars,
    .stealth-modules,
    .roadmap-grid {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        gap: 1.5rem !important;
    }

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto !important;
    }

    .metric-sep,
    .hero-sep,
    .stat-sep {
        display: none !important;
    }

    .project-header-container {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        padding-top: 1rem;
    }

    .project-header-container h1 {
        text-align: center !important;
        margin: 0 !important;
    }

    .tactical-glitch-logo-container {
        margin: 0 auto;
    }

    /* ── 2.5. FORCE SINGLE-COLUMN ON ALL INLINE GRID/FLEX LAYOUTS ──
       Project pages use inline styles for 2fr/1fr grids and flex rows.
       Override with !important to ensure premium mobile stacking. */
    .el-section [style*="grid-template-columns"],
    .el-section [style*="display: grid"],
    .page-main [style*="grid-template-columns"],
    .page-main [style*="display: grid"] {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .el-section [style*="display: flex"],
    .page-main>section [style*="display: flex"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Prevent text truncation on bento cards */
    .bento-card p,
    .bento-card span,
    .bento-card li {
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* ── 3. PREMIUM RESPONSIVE TABLES — Stacked Card Layout ── */
    .table-wrapper {
        display: block;
        width: 100%;
        margin: 2rem 0;
        border: none;
    }

    .table-wrapper table {
        display: block;
        width: 100%;
    }

    .table-wrapper thead {
        display: none;
        /* Hide column headers — labels move inline */
    }

    .table-wrapper tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .table-wrapper tr {
        display: flex;
        flex-direction: column;
        background: rgba(12, 12, 16, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 240, 255, 0.12);
        border-radius: 10px;
        padding: 1.2rem 1rem;
        gap: 0.6rem;
        transition: border-color 0.3s;
    }

    .table-wrapper tr:hover {
        border-color: rgba(0, 240, 255, 0.3);
    }

    .table-wrapper td {
        display: block;
        padding: 0.5rem 0;
        white-space: normal;
        word-wrap: break-word;
        border: none !important;
        text-align: left;
    }

    /* First cell = METRIC NAME (bold header) */
    .table-wrapper td:first-child {
        font-family: var(--font-heading, 'Rajdhani', sans-serif);
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--gray-100, #eee);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding-bottom: 0.4rem;
        border-bottom: 1px solid rgba(0, 240, 255, 0.1) !important;
        margin-bottom: 0.3rem;
    }

    /* Second cell = LEGACY value (subdued) */
    .table-wrapper td:nth-child(2) {
        font-size: 0.82rem;
        color: var(--gray-400, #888);
        padding-left: 0.8rem;
        position: relative;
    }

    .table-wrapper td:nth-child(2)::before {
        content: '▸ LEGACY: ';
        font-family: var(--font-mono, monospace);
        font-size: 0.65rem;
        color: var(--gray-500, #666);
        letter-spacing: 0.1em;
    }

    /* Third cell = OUR SYSTEM value (highlighted) */
    .table-wrapper td:nth-child(3),
    .table-wrapper td.highlight-cell {
        font-size: 0.85rem;
        font-weight: 600;
        color: #fff !important;
        padding: 0.6rem 0.8rem !important;
        background: rgba(0, 240, 255, 0.08) !important;
        border-radius: 6px;
        border-left: 2px solid var(--accent-color, rgba(0, 240, 255, 0.5)) !important;
    }

    .table-wrapper td:nth-child(3)::before,
    .table-wrapper td.highlight-cell::before {
        content: '◆ ';
        font-size: 0.6rem;
        color: var(--accent-color, rgba(0, 240, 255, 0.7));
    }

    /* Eligos red-themed tables */
    .table-wrapper td[style*="rgba(255,51,51"] {
        background: rgba(255, 51, 51, 0.08) !important;
        border-left: 2px solid rgba(255, 51, 51, 0.5) !important;
    }

    /* ── 4. PADDING & TYPOGRAPHY SCALING ── */
    .page-main,
    .hero,
    .kairos-hero,
    .el-hero,
    .garm-hero {
        padding-top: 100px !important;
        padding-bottom: 4rem !important;
    }

    h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.8rem) !important;
        line-height: 1.1 !important;
    }

    .hero-sub {
        font-size: 1rem !important;
        padding: 0 1rem;
        margin-bottom: 2rem !important;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Fix back button positioning for mobile scroll */
    .btn-back {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 2rem;
        display: inline-flex !important;
        width: auto;
    }

    /* ── Case Study Cards Mobile ── */
    .case-grid {
        grid-template-columns: 1fr !important;
    }

    .case-card {
        min-height: 280px !important;
    }

    /* ── Tech Stack Mobile ── */
    .stack-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Counter Bar Mobile ── */
    .counter-bar {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ── Comparison Matrix Mobile ── */
    .cmp-matrix {
        font-size: 0.75rem !important;
    }

    .cmp-matrix th,
    .cmp-matrix td {
        padding: 0.6rem 0.4rem !important;
    }
}

/* ═══════════════════════════════════════════════════════
   CONTENT ENHANCEMENT — Case Study Cards
   ═══════════════════════════════════════════════════════ */

.impact-section {
    padding: 80px 2rem;
    position: relative;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color, var(--cyan)), transparent);
    opacity: 0.3;
}

.impact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.impact-header .section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .18em;
    color: var(--accent-color, var(--cyan-dim));
    margin-bottom: .9rem;
    text-transform: uppercase;
}

.impact-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 1rem;
}

.impact-header p {
    color: var(--gray-300);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Case Study Grid ── */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.8rem;
    max-width: var(--container);
    margin: 0 auto;
}

.case-card {
    position: relative;
    min-height: 580px;
    perspective: 1000px;
    cursor: pointer;
}

.case-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.case-card:hover .case-card-inner {
    transform: rotateY(180deg);
}

.case-front,
.case-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ── Front: The Incident (Red) ── */
.case-front {
    background: rgba(20, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 45, 45, 0.2);
}

.case-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF3333, transparent);
}

.case-incident-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.case-incident-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: 0.8rem;
}

.case-incident-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 107, 107, 0.6);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.case-loss {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FF3333;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.case-loss-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-cause {
    font-size: 0.82rem;
    color: var(--gray-300);
    line-height: 1.55;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 45, 45, 0.1);
}

.case-flip-hint {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 107, 107, 0.4);
    text-align: right;
    letter-spacing: 0.1em;
}

/* ── Back: Our Solution (Green) ── */
.case-back {
    background: rgba(5, 20, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 230, 118, 0.2);
    transform: rotateY(180deg);
}

.case-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00E676, transparent);
}

.case-solution-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #00E676;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.case-solution-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #80FFB4;
    margin-bottom: 1rem;
}

.case-solution-text {
    font-size: 0.9rem;
    color: var(--gray-200);
    line-height: 1.7;
}

.case-solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #00E676;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════
   CONTENT ENHANCEMENT — Animated Counters
   ═══════════════════════════════════════════════════════ */

.counter-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.counter-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(10, 10, 14, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.counter-item:hover {
    border-color: var(--accent-color, var(--cyan));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.06);
}

.counter-value {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color, var(--cyan));
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.counter-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-300);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   CONTENT ENHANCEMENT — Tech Stack Badges
   ═══════════════════════════════════════════════════════ */

.stack-section {
    padding: 80px 2rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: var(--container);
    margin: 0 auto;
}

.stack-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 1.6rem;
    background: rgba(10, 10, 14, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.stack-row:hover {
    border-color: var(--accent-color, var(--cyan));
    background: rgba(15, 15, 20, 0.6);
    transform: translateX(6px);
}

.stack-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.stack-info {
    flex: 1;
}

.stack-layer {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-color, var(--cyan-dim));
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.stack-tech {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-100);
    margin-bottom: 0.3rem;
}

.stack-why {
    font-size: 0.8rem;
    color: var(--gray-300);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   CONTENT ENHANCEMENT — Comparison Matrix
   ═══════════════════════════════════════════════════════ */

.cmp-section {
    padding: 80px 2rem;
}

.cmp-matrix {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.cmp-matrix thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.cmp-matrix th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color, var(--cyan));
    padding: 1rem 0.8rem;
    text-align: center;
    background: rgba(10, 10, 14, 0.95);
    border-bottom: 2px solid var(--accent-color, var(--cyan));
}

.cmp-matrix th:first-child {
    text-align: left;
}

.cmp-matrix th.highlight-col {
    color: var(--gray-100);
    border-bottom-color: var(--accent-color, var(--cyan));
    background: rgba(0, 240, 255, 0.05);
}

.cmp-matrix td {
    padding: 0.9rem 0.8rem;
    text-align: center;
    color: var(--gray-300);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.cmp-matrix td:first-child {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gray-200);
    letter-spacing: 0.04em;
}

.cmp-matrix td.highlight-col {
    background: rgba(0, 240, 255, 0.03);
    color: var(--gray-100);
    font-weight: 500;
}

.cmp-matrix tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.cmp-matrix tbody tr:hover td.highlight-col {
    background: rgba(0, 240, 255, 0.06);
}

.cmp-check {
    color: #00E676;
    font-weight: 700;
}

.cmp-cross {
    color: #FF4444;
    opacity: 0.6;
}

.cmp-warn {
    color: #FFB300;
}

/* ═══════════════════════════════════════════════════════
   CONTENT ENHANCEMENT — Market Metrics
   ═══════════════════════════════════════════════════════ */

.market-section {
    padding: 60px 2rem;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.market-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(10, 10, 14, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--fill, 30%);
    background: linear-gradient(to top, rgba(0, 240, 255, 0.04), transparent);
    transition: height 0.5s ease;
}

.market-card:hover::before {
    height: calc(var(--fill, 30%) + 10%);
}

.market-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-color, var(--cyan-dim));
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    position: relative;
}

.market-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 0.5rem;
    position: relative;
}

.market-desc {
    font-size: 0.8rem;
    color: var(--gray-300);
    position: relative;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════
   INDEX — Cost of Not Having Us: Flip Cards
   ═══════════════════════════════════════════════════════ */

.idx-flip-card {
    perspective: 1000px;
    cursor: pointer;
    height: 280px;
}

.idx-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.idx-flip-card:hover .idx-flip-inner {
    transform: rotateY(180deg);
}

.idx-flip-front,
.idx-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.idx-flip-front {
    background: rgba(20, 5, 5, 0.6);
}

.idx-flip-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF3333, transparent);
    border-radius: 8px 8px 0 0;
}

.idx-flip-back {
    background: rgba(5, 20, 10, 0.6);
    transform: rotateY(180deg);
}

.idx-flip-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff73, transparent);
    border-radius: 8px 8px 0 0;
}

/* ── Donut Chart Animations ── */
@keyframes donutGrow1 {
    from {
        stroke-dasharray: 0 502;
        opacity: 0;
    }

    to {
        stroke-dasharray: 100 402;
        opacity: 1;
    }
}

@keyframes donutGrow2 {
    from {
        stroke-dasharray: 0 502;
        opacity: 0;
    }

    to {
        stroke-dasharray: 150 352;
        opacity: 1;
    }
}

@keyframes donutGrow3 {
    from {
        stroke-dasharray: 0 502;
        opacity: 0;
    }

    to {
        stroke-dasharray: 120 382;
        opacity: 1;
    }
}

@keyframes donutGrow4 {
    from {
        stroke-dasharray: 0 502;
        opacity: 0;
    }

    to {
        stroke-dasharray: 80 422;
        opacity: 1;
    }
}

/* ── Revenue Dashboard Bars ── */
@keyframes revBarGrow {
    from {
        width: 0;
    }

    to {
        width: var(--bar-w, 0%);
    }
}

.rev-bar-fill {
    height: 100%;
    border-radius: 4px;
    animation: revBarGrow 1.5s ease-out forwards;
    width: 0;
}

/* ── Responsive: Cost Section & Flip Cards ── */
@media (max-width: 900px) {
    .cost-donut-grid {
        grid-template-columns: 1fr !important;
    }

    .idx-flip-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 600px) {
    .idx-flip-grid {
        grid-template-columns: 1fr !important;
    }

    .idx-flip-card {
        height: 240px;
    }

    .rev-model-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM SECTION OVERHAUL — Replacing Tailwind utilities
   Capital Deployment, Tech Stack, Allocation Matrix, 
   Profitability, Asset Cards, Security DNA, Compliance,
   Trust Artifacts, Vulnerability Disclosure
   ═══════════════════════════════════════════════════════════════ */

/* ─── Layout Utilities ─── */
.u-flex {
    display: flex;
}

.u-flex-col {
    display: flex;
    flex-direction: column;
}

.u-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.u-flex-between {
    display: flex;
    align-items: center;
    justify-content: between;
}

.u-flex-start {
    display: flex;
    align-items: flex-start;
}

.u-items-center {
    align-items: center;
}

.u-justify-between {
    justify-content: space-between;
}

.u-justify-center {
    justify-content: center;
}

.u-flex-wrap {
    flex-wrap: wrap;
}

.u-gap-2 {
    gap: 0.5rem;
}

.u-gap-3 {
    gap: 0.75rem;
}

.u-gap-4 {
    gap: 1rem;
}

.u-gap-6 {
    gap: 1.5rem;
}

.u-gap-8 {
    gap: 2rem;
}

.u-gap-10 {
    gap: 2.5rem;
}

.u-gap-12 {
    gap: 3rem;
}

.u-text-center {
    text-align: center;
}

.u-relative {
    position: relative;
}

.u-overflow-hidden {
    overflow: hidden;
}

.u-mt-2 {
    margin-top: 0.5rem;
}

.u-mt-3 {
    margin-top: 0.75rem;
}

.u-mt-4 {
    margin-top: 1rem;
}

.u-mt-6 {
    margin-top: 1.5rem;
}

.u-mt-8 {
    margin-top: 2rem;
}

.u-mt-12 {
    margin-top: 3rem;
}

.u-mb-1 {
    margin-bottom: 0.25rem;
}

.u-mb-2 {
    margin-bottom: 0.5rem;
}

.u-mb-3 {
    margin-bottom: 0.75rem;
}

.u-mb-4 {
    margin-bottom: 1rem;
}

.u-mb-6 {
    margin-bottom: 1.5rem;
}

.u-mb-8 {
    margin-bottom: 2rem;
}

.u-mb-16 {
    margin-bottom: 4rem;
}

.u-ml-7 {
    margin-left: 1.75rem;
}

.u-p-4 {
    padding: 1rem;
}

.u-p-5 {
    padding: 1.25rem;
}

.u-p-6 {
    padding: 1.5rem;
}

.u-p-8 {
    padding: 2rem;
}

.u-pt-4 {
    padding-top: 1rem;
}

.u-pt-6 {
    padding-top: 1.5rem;
}

.u-w-full {
    width: 100%;
}

.u-shrink-0 {
    flex-shrink: 0;
}

.u-inline-block {
    display: inline-block;
}

.u-inline-flex {
    display: inline-flex;
}

.u-hidden {
    display: none;
}

/* ─── Typography Utilities ─── */
.u-text-white {
    color: #fff;
}

.u-text-gray-300 {
    color: var(--gray-200);
}

.u-text-gray-400 {
    color: var(--gray-300);
}

.u-text-gray-500 {
    color: var(--gray-400);
}

.u-font-bold {
    font-weight: 700;
}

.u-font-mono {
    font-family: var(--font-mono);
}

.u-uppercase {
    text-transform: uppercase;
}

.u-tracking-wide {
    letter-spacing: 0.1em;
}

.u-tracking-wider {
    letter-spacing: 0.15em;
}

.u-italic {
    font-style: italic;
}

.u-leading-relaxed {
    line-height: 1.7;
}

.u-text-2xs {
    font-size: 0.55rem;
}

.u-text-xs {
    font-size: 0.65rem;
}

.u-text-xs2 {
    font-size: 0.6rem;
}

.u-text-sm {
    font-size: 0.75rem;
}

.u-text-sm2 {
    font-size: 0.7rem;
}

.u-text-base {
    font-size: 0.86rem;
}

.u-text-lg {
    font-size: 1.125rem;
}

/* ─── Color Utilities ─── */
.u-text-cyan {
    color: var(--cyan);
}

.u-text-cyan-400 {
    color: #22d3ee;
}

.u-text-cyan-500 {
    color: var(--cyan);
}

.u-text-blue-400 {
    color: #60a5fa;
}

.u-text-blue-500 {
    color: #3b82f6;
}

.u-text-green-400 {
    color: #4ade80;
}

.u-text-green-500 {
    color: #00E676;
}

.u-text-purple-400 {
    color: #c084fc;
}

.u-text-purple-500 {
    color: #9333ea;
}

.u-text-orange-400 {
    color: #fb923c;
}

.u-text-orange-500 {
    color: #f97316;
}

.u-text-red {
    color: #ff0055;
}

/* ─── Border Utilities ─── */
.u-border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.u-border-t-cyan {
    border-top: 1px solid rgba(0, 240, 255, 0.15);
}

/* ─── Allocation Cards (Capital Deployment) ─── */
.alloc-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alloc-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.alloc-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.alloc-card.border-l-cyan {
    border-left: 4px solid var(--cyan);
}

.alloc-card.border-l-green {
    border-left: 4px solid #00E676;
}

.alloc-card.border-l-purple {
    border-left: 4px solid #9333ea;
}

.alloc-card.border-l-orange {
    border-left: 4px solid #f97316;
}

.alloc-card:hover.border-l-cyan {
    border-color: rgba(0, 240, 255, 0.3);
}

.alloc-card:hover.border-l-green {
    border-color: rgba(0, 230, 118, 0.3);
}

.alloc-card:hover.border-l-purple {
    border-color: rgba(147, 51, 234, 0.3);
}

.alloc-card:hover.border-l-orange {
    border-color: rgba(249, 115, 22, 0.3);
}

.alloc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.alloc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alloc-dot.cyan {
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.alloc-dot.green {
    background: #00E676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.alloc-dot.purple {
    background: #9333ea;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.alloc-dot.orange {
    background: #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.alloc-pct {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
}

.alloc-pct.cyan {
    color: #22d3ee;
}

.alloc-pct.green {
    color: #4ade80;
}

.alloc-pct.purple {
    color: #c084fc;
}

.alloc-pct.orange {
    color: #fb923c;
}

.alloc-desc {
    font-size: 0.7rem;
    color: var(--gray-300);
    margin-left: 1.75rem;
}

.alloc-roi {
    margin-top: 0.5rem;
    margin-left: 1.75rem;
    font-size: 0.6rem;
    font-family: var(--font-mono);
}

.alloc-roi.cyan {
    color: var(--cyan);
}

.alloc-roi.green {
    color: #00E676;
}

.alloc-roi.purple {
    color: #9333ea;
}

.alloc-roi.orange {
    color: #f97316;
}

.alloc-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    text-align: center;
    background-color: rgba(0, 240, 255, 0.02);
}

.alloc-note p {
    font-size: 0.75rem;
    color: var(--gray-200);
    font-style: italic;
    line-height: 1.7;
}

.alloc-note .burn-rate {
    margin-top: 0.75rem;
    font-size: 0.6rem;
    color: var(--gray-300);
    font-family: var(--font-mono);
}

/* Capital deployment layout */
.capital-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.capital-chart {
    display: flex;
    justify-content: center;
    width: 100%;
}

.capital-breakdown {
    width: 100%;
}

@media (min-width: 1024px) {
    .capital-layout {
        flex-direction: row;
    }

    .capital-chart {
        width: 50%;
    }

    .capital-breakdown {
        width: 50%;
    }
}

/* ─── Technology Stack ─── */
.tech-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tech-layers {
    width: 100%;
}

.tech-benchmarks {
    width: 100%;
}

@media (min-width: 1024px) {
    .tech-layout {
        flex-direction: row;
    }

    .tech-layers {
        width: 60%;
    }

    .tech-benchmarks {
        width: 40%;
    }
}

.tech-layers-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-layer {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.tech-layer:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.tech-layer.layer-cyan {
    border-left: 4px solid var(--cyan);
    border-color: rgba(0, 240, 255, 0.1);
    border-left-color: var(--cyan);
}

.tech-layer.layer-blue {
    border-left: 4px solid #0066FF;
    border-color: rgba(0, 102, 255, 0.1);
    border-left-color: #0066FF;
}

.tech-layer.layer-purple {
    border-left: 4px solid #9333ea;
    border-color: rgba(147, 51, 234, 0.1);
    border-left-color: #9333ea;
}

.tech-layer.layer-green {
    border-left: 4px solid #00E676;
    border-color: rgba(0, 230, 118, 0.1);
    border-left-color: #00E676;
}

.tech-layer.layer-orange {
    border-left: 4px solid #f97316;
    border-color: rgba(249, 115, 22, 0.1);
    border-left-color: #f97316;
}

.tech-layer.layer-cyan-glow {
    border-left: 4px solid var(--cyan);
    border-color: rgba(0, 240, 255, 0.15);
    border-left-color: var(--cyan);
    background: rgba(0, 240, 255, 0.02);
}

.tech-layer:hover.layer-cyan {
    border-color: rgba(0, 240, 255, 0.3);
    border-left-color: var(--cyan);
}

.tech-layer:hover.layer-blue {
    border-color: rgba(0, 102, 255, 0.3);
    border-left-color: #0066FF;
}

.tech-layer:hover.layer-purple {
    border-color: rgba(147, 51, 234, 0.3);
    border-left-color: #9333ea;
}

.tech-layer:hover.layer-green {
    border-color: rgba(0, 230, 118, 0.3);
    border-left-color: #00E676;
}

.tech-layer:hover.layer-orange {
    border-color: rgba(249, 115, 22, 0.3);
    border-left-color: #f97316;
}

.tech-layer-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-layer-num {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    width: 4rem;
    flex-shrink: 0;
}

.tech-layer-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
}

.tech-layer-desc {
    font-size: 0.65rem;
    color: var(--gray-300);
    margin-top: 0.25rem;
}

.tech-layer-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.05;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.tech-layer:hover .tech-layer-icon {
    opacity: 0.15;
}

/* Benchmark panel */
.benchmark-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
}

.benchmark-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 2rem;
}

.benchmark-group {
    margin-bottom: 2rem;
}

.benchmark-group:last-child {
    margin-bottom: 0;
}

.benchmark-label {
    font-size: 0.7rem;
    color: var(--gray-200);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bench-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bench-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
}

.bench-bar-track {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.bench-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.bench-bar-fill.cst {
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.bench-bar-fill.legacy {
    background: var(--gray-300);
}

.bench-bar-fill.onprem {
    background: var(--gray-300);
}

.bench-bar-fill.na {
    background: rgba(127, 29, 29, 0.5);
}

.benchmark-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.benchmark-footer p {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: rgba(0, 240, 255, 0.5);
}

/* ─── Profitability Engine Cards ─── */
.profit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .profit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.profit-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.profit-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.2);
}

.profit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.profit-card-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.profit-card-type {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.profit-card-detail {
    font-size: 0.7rem;
    color: var(--gray-300);
    margin-bottom: 0.35rem;
}

.profit-card-detail strong {
    color: #fff;
}

.profit-card-roi {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profit-roi-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.profit-roi-label {
    font-size: 0.55rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── Strategic Asset Cards ─── */
.asset-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .asset-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.asset-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.75rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.asset-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.asset-card-id {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--gray-300);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.asset-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.asset-card-desc {
    font-size: 0.72rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.asset-card-meta {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.asset-card-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.asset-card-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease-out;
}

.asset-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
    text-decoration: none;
}

.asset-card-action:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--cyan);
}

/* ─── Security DNA Cards (trust-center) ─── */
.dna-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .dna-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dna-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.75rem;
    transition: all 0.3s var(--ease-out-expo);
    border-top: 3px solid var(--cyan);
}

.dna-card:nth-child(2) {
    border-top-color: #0066FF;
}

.dna-card:nth-child(3) {
    border-top-color: #9333ea;
}

.dna-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.dna-card-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.dna-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.dna-card-desc {
    font-size: 0.75rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* ─── Compliance Roadmap (trust-center) ─── */
.compliance-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.compliance-phase {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.3s;
    position: relative;
}

.compliance-phase:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.15);
}

.compliance-phase-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(0, 240, 255, 0.3);
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
}

.compliance-phase-marker.complete {
    background: rgba(0, 230, 118, 0.1);
    border-color: #00E676;
    color: #00E676;
}

.compliance-phase-marker.in-progress {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
    animation: blink 2.5s ease-in-out infinite;
}

.compliance-phase-content {
    flex: 1;
}

.compliance-phase-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.compliance-phase-desc {
    font-size: 0.72rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.compliance-phase-status {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.compliance-phase-status.done {
    color: #00E676;
}

.compliance-phase-status.active {
    color: var(--cyan);
}

.compliance-phase-status.pending {
    color: var(--gray-300);
}

.compliance-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.compliance-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--cyan);
    transition: width 1.5s ease-out;
}

.compliance-progress-fill.done {
    background: #00E676;
}

/* ─── Trust Artifacts Cards (trust-center) ─── */
.trust-artifacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .trust-artifacts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-artifact-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.75rem;
    transition: all 0.3s var(--ease-out-expo);
    border-top: 3px solid var(--cyan);
}

.trust-artifact-card:nth-child(2) {
    border-top-color: #0066FF;
}

.trust-artifact-card:nth-child(3) {
    border-top-color: #9333ea;
}

.trust-artifact-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.trust-artifact-icon {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.trust-artifact-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.trust-artifact-desc {
    font-size: 0.72rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.trust-artifact-phase {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    padding: 0.35rem 0.75rem;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 4px;
    display: inline-block;
}

/* ─── Vulnerability Disclosure (trust-center) ─── */
.vuln-section {
    text-align: center;
    padding: 4rem 0;
}

.vuln-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 1rem;
}

.vuln-section p {
    font-size: 0.9rem;
    color: var(--gray-300);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ─── Quote Block ─── */
.shark-quote-block {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-left: 4px solid var(--cyan);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.shark-quote-block p {
    font-size: 0.78rem;
    color: var(--gray-200);
    font-style: italic;
    line-height: 1.7;
}

.shark-quote-block .quote-attr {
    margin-top: 0.75rem;
    font-size: 0.6rem;
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-style: normal;
}

/* ─── Surgical Allocation Matrix Table ─── */
.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
    margin-top: 1.5rem;
}

.matrix-table thead th {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(0, 240, 255, 0.15);
    white-space: nowrap;
}

.matrix-table tbody td {
    padding: 0.7rem 1rem;
    color: var(--gray-200);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.matrix-table tbody tr {
    transition: background 0.2s;
}

.matrix-table tbody tr:hover {
    background: rgba(0, 240, 255, 0.02);
}

.matrix-table tbody tr:last-child td {
    font-weight: 700;
    color: #fff;
    border-top: 2px solid rgba(0, 240, 255, 0.1);
    border-bottom: none;
}

.matrix-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── Tag utility (already exists as .tag in some areas but let's ensure) ─── */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--cyan-dim);
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   FLIP CARDS — Problem/Solution Engine Cards
   ═══════════════════════════════════════════════ */

/* Engine section wrapper */
.engine-flip-section {
    margin-bottom: 3.5rem;
}

.engine-flip-section .engine-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.engine-flip-section .engine-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.engine-flip-section .engine-name {
    font-family: var(--font-raj);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.engine-flip-section .engine-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-left: auto;
    opacity: 0.7;
}

/* Flip cards grid */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Individual flip card */
.flip-card {
    perspective: 1200px;
    height: 340px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

/* ── FRONT FACE (Problem) ── */
.flip-card-front {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.8rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.flip-card:hover .flip-card-front {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.flip-card-front .problem-icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    filter: grayscale(0.3);
}

.flip-card-front .problem-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.flip-card-front .problem-title {
    font-family: var(--font-raj);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.flip-card-front .problem-desc {
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.6;
    flex: 1;
}

.flip-card-front .problem-stat {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.flip-card-front .problem-stat .stat-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff4757;
}

.flip-card-front .problem-stat .stat-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-card-front .flip-hint {
    position: absolute;
    bottom: 1rem;
    right: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: flipHintPulse 2.5s ease-in-out infinite;
}

@keyframes flipHintPulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── BACK FACE (Solution) ── */
.flip-card-back {
    background: rgba(15, 15, 20, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.8rem;
}

.flip-card-back .solution-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.flip-card-back .solution-title {
    font-family: var(--font-raj);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.flip-card-back .solution-desc {
    font-size: 0.78rem;
    color: var(--gray-300);
    line-height: 1.65;
    flex: 1;
}

.flip-card-back .solution-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.flip-card-back .metric-item {
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
}

.flip-card-back .metric-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.flip-card-back .metric-label {
    font-size: 0.55rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* ── ENGINE COLOR ACCENTS ── */

/* KAIROS — Cyan */
.engine-kairos .flip-card-front {
    border-top: 3px solid var(--cyan);
}

.engine-kairos .flip-card-front .problem-tag {
    color: var(--cyan);
}

.engine-kairos .flip-card-back {
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-top: 3px solid var(--cyan);
}

.engine-kairos .flip-card-back .solution-tag {
    color: var(--cyan);
}

.engine-kairos .flip-card-back .metric-item {
    background: rgba(0, 240, 255, 0.05);
}

.engine-kairos .flip-card-back .metric-value {
    color: var(--cyan);
}

.engine-kairos .engine-dot {
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.engine-kairos .engine-sub {
    color: var(--cyan);
}

.engine-kairos .flip-card:hover .flip-card-front {
    border-color: rgba(0, 240, 255, 0.25);
}

/* ELIGOS — Red */
.engine-eligos .flip-card-front {
    border-top: 3px solid #ff4757;
}

.engine-eligos .flip-card-front .problem-tag {
    color: #ff4757;
}

.engine-eligos .flip-card-back {
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-top: 3px solid #ff4757;
}

.engine-eligos .flip-card-back .solution-tag {
    color: #ff4757;
}

.engine-eligos .flip-card-back .metric-item {
    background: rgba(255, 71, 87, 0.06);
}

.engine-eligos .flip-card-back .metric-value {
    color: #ff4757;
}

.engine-eligos .engine-dot {
    background: #ff4757;
    box-shadow: 0 0 12px #ff4757;
}

.engine-eligos .engine-sub {
    color: #ff4757;
}

.engine-eligos .flip-card:hover .flip-card-front {
    border-color: rgba(255, 71, 87, 0.3);
}

/* GARM — Blue */
.engine-garm .flip-card-front {
    border-top: 3px solid var(--blue);
}

.engine-garm .flip-card-front .problem-tag {
    color: var(--blue);
}

.engine-garm .flip-card-back {
    border: 1px solid rgba(51, 153, 255, 0.2);
    border-top: 3px solid var(--blue);
}

.engine-garm .flip-card-back .solution-tag {
    color: var(--blue);
}

.engine-garm .flip-card-back .metric-item {
    background: rgba(51, 153, 255, 0.06);
}

.engine-garm .flip-card-back .metric-value {
    color: var(--blue);
}

.engine-garm .engine-dot {
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
}

.engine-garm .engine-sub {
    color: var(--blue);
}

.engine-garm .flip-card:hover .flip-card-front {
    border-color: rgba(51, 153, 255, 0.3);
}

/* PHANES — Purple */
.engine-phanes .flip-card-front {
    border-top: 3px solid var(--purple);
}

.engine-phanes .flip-card-front .problem-tag {
    color: var(--purple);
}

.engine-phanes .flip-card-back {
    border: 1px solid rgba(153, 51, 255, 0.2);
    border-top: 3px solid var(--purple);
}

.engine-phanes .flip-card-back .solution-tag {
    color: var(--purple);
}

.engine-phanes .flip-card-back .metric-item {
    background: rgba(153, 51, 255, 0.06);
}

.engine-phanes .flip-card-back .metric-value {
    color: var(--purple);
}

.engine-phanes .engine-dot {
    background: var(--purple);
    box-shadow: 0 0 12px var(--purple);
}

.engine-phanes .engine-sub {
    color: var(--purple);
}

.engine-phanes .flip-card:hover .flip-card-front {
    border-color: rgba(153, 51, 255, 0.3);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .flip-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.2rem;
    }

    .flip-card {
        height: 360px;
    }
}

@media (max-width: 640px) {
    .flip-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .flip-card {
        height: 380px;
    }

    .engine-flip-section .engine-label {
        flex-wrap: wrap;
    }

    .engine-flip-section .engine-sub {
        margin-left: 0;
        width: 100%;
    }
}

/* ─── Glass Panel (ensure it works without Tailwind) ─── */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

/* ─── Responsive: hide on mobile ─── */
@media (max-width: 767px) {
    .u-hide-mobile {
        display: none !important;
    }

    .alloc-grid {
        gap: 0.75rem;
    }

    .asset-cards-grid {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .u-hide-desktop {
        display: none !important;
    }
}

/* Revenue Projection Bars */
.rev-bar-fill {
    height: 100%;
    width: 0;
    width: var(--bar-w, 0%);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left;
    animation: growBar 1.8s ease-out forwards;
}

@keyframes growBar {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}