/* =================================================================
   SERVICES PAGE STYLES
   ================================================================= */

.s-page {
    background: var(--color-bg);
    color: var(--color-text);
    padding-top: 0;
    /* Hero handles its own padding */
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
    /* Prevents horizontal jiggle while allowing sticky */
}

/* Background Elements (Reused/Adapted) */
.tech-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(138, 66, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 66, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.tech-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 107, 255, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.tech-glow-2 {
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 66, 255, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* 1. The "Impact" Hero */
.s-hero {
    position: relative;
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

.s-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(138, 66, 255, 0.1);
}

.s-hero__main {
    position: relative;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
}

.s-hero__content {
    position: relative;
    z-index: 5;
}

.s-hero .title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 12vw, 7.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 40px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.s-hero .subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 50px;
}

.s-hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.btn-primary {
    display: inline-block;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 18px 38px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(138, 66, 255, 0.3);
    text-decoration: none;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(138, 66, 255, 0.5);
    color: #fff;
}

.btn-glitch:hover {
    animation: btnGlitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes btnGlitch {
    0% {
        text-shadow: 2px 0 0 var(--color-accent), -2px 0 0 var(--color-primary-light);
    }

    25% {
        text-shadow: -2px 0 0 var(--color-accent), 2px 0 0 var(--color-primary-light);
    }

    50% {
        text-shadow: 2px -2px 0 var(--color-accent), -2px 2px 0 var(--color-primary-light);
    }

    75% {
        text-shadow: -2px 2px 0 var(--color-accent), 2px -2px 0 var(--color-primary-light);
    }

    100% {
        text-shadow: 2px 0 0 var(--color-accent), -2px 0 0 var(--color-primary-light);
    }
}

/* HUD Elements */
.hero-hud {
    position: absolute;
    inset: -100px -50px;
    pointer-events: none;
    z-index: 1;
}

.hud-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--color-primary);
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.hud-item .label {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--color-primary-light);
    opacity: 0.6;
    letter-spacing: 1px;
}

.hud-item .value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.hud-tl {
    top: 10%;
    left: 0;
}

.hud-tr {
    top: 10%;
    right: 0;
    text-align: right;
    border-left: none;
    border-right: 2px solid var(--color-primary);
}

.hud-bl {
    bottom: 15%;
    left: 5%;
}

.hud-br {
    bottom: 15%;
    right: 5%;
    text-align: right;
    border-left: none;
    border-right: 2px solid var(--color-primary);
}

.hud-line-v {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(138, 66, 255, 0.1), transparent);
}

.hud-line-h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(138, 66, 255, 0.1), transparent);
}

/* Scroll Indicator */
.s-hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.s-hero__scroll:hover {
    opacity: 1;
}

.s-hero__scroll span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-hud {
        display: none;
    }

    .s-hero .title {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}

@media (max-width: 768px) {
    .s-hero {
        padding: 100px 0;
    }

    .s-hero .subtitle {
        font-size: 1.1rem;
    }
}

/* 2. The "Holistic Ecosystem" */
.s-ecosystem {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.s-ecosystem__header {
    text-align: center;
    margin-bottom: 80px;
}

.s-ecosystem__header .tagline {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.s-ecosystem__header .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.s-ecosystem__header .subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Venn Diagram */
.venn-container {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.venn-diagram {
    position: relative;
    width: 650px;
    height: 600px;
    transform-style: preserve-3d;
}

.venn-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    mix-blend-mode: screen;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.circle-1 {
    /* Engineering */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(46, 107, 255, 0.3), rgba(46, 107, 255, 0.05));
    border: 1px solid rgba(46, 107, 255, 0.4);
}

.circle-2 {
    /* Design */
    bottom: 50px;
    right: 0;
    background: radial-gradient(circle at center, rgba(138, 66, 255, 0.3), rgba(138, 66, 255, 0.05));
    border: 1px solid rgba(138, 66, 255, 0.4);
}

.circle-3 {
    /* Growth */
    bottom: 50px;
    left: 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.v-content i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

.v-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.v-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intersections Labels */
.venn-label {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: center;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 4;
    line-height: 1.3;
    letter-spacing: 1px;
}

.venn-label.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary-light);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(138, 66, 255, 0.2);
}

.label-1 {
    top: 30%;
    right: 15%;
}

/* Eng + Des */
.label-2 {
    top: 30%;
    left: 15%;
}

/* Eng + Gro */
.label-3 {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

/* Des + Gro */

.venn-center {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 6;
    pointer-events: none;
    background: rgba(10, 15, 46, 0.8);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.venn-center i {
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.venn-center span {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Mobile Stack */
.ecosystem-stack {
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.eco-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.eco-icon {
    font-size: 1.2rem;
    color: var(--color-primary-light);
    background: rgba(138, 66, 255, 0.1);
    padding: 10px 15px;
    border-radius: 12px;
    white-space: nowrap;
}

.eco-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.eco-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .s-hero {
        padding: 140px 0 80px;
    }

    .s-hero .title {
        font-size: 2.8rem;
    }

    /* Switch to Stack on Mobile */
    .venn-diagram {
        display: none;
    }

    .ecosystem-stack {
        display: flex;
    }

    .s-ecosystem {
        padding: 80px 0;
    }
}

/* 3. Service Pillars (Sticky Scroll) */
.s-pillars {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    overflow: visible;
    /* Required for position: sticky to function */
    overflow-x: clip;
    /* Prevents horizontal overflow from bg-text without breaking sticky */
}

.s-pillars::before,
.s-pillars::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 11;
    pointer-events: none;
    display: none;
}

/* @media (max-width: 1024px) {
    .s-pillars::before {
        display: block;
        left: 0;
        background: linear-gradient(to right, var(--color-bg) 20%, transparent);
    }

    .s-pillars::after {
        display: block;
        right: 0;
        background: linear-gradient(to left, var(--color-bg) 20%, transparent);
    }
} */

.s-pillars__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 22vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.s-pillars__grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(138, 66, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.pillars-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.pillars-sidebar {
    height: fit-content;
    align-self: start;
    /* Critical for sticky behavior in CSS Grid */
}

.pillar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 35px;
    position: relative;
}

.pillar-progress-track {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.pillar-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0%;
    background: rgba(138, 66, 255, 0.3);
    z-index: 1;
}

.pillar-indicator {
    position: absolute;
    left: -1px;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
    z-index: 2;
    border-radius: 2px;
    pointer-events: none;
}

.pillar-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    color: var(--color-text-muted);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border-radius: 0 12px 12px 0;
    margin-left: -35px;
    /* Pull back to align with track */
    padding-left: 35px;
    text-decoration: none;
}

.pillar-link:hover {
    color: var(--color-text);
}

.pillar-link.active {
    color: var(--color-primary-light);
    background: linear-gradient(90deg, rgba(138, 66, 255, 0.08), transparent);
}

.pillar-link .num {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.pillar-link.active .num {
    opacity: 1;
}

.pillar-link .text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Content Blocks */
.pillar-block {
    margin-bottom: 150px;
    scroll-margin-top: 150px;
}

.pillar-block:last-child {
    margin-bottom: 0;
}

.pillar-header {
    margin-bottom: 50px;
}

.pillar-badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.pillar-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.pillar-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 700px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 66, 255, 0.3);
}

.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(138, 66, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card i {
    font-size: 2rem;
    color: var(--color-primary-light);
    margin-bottom: 20px;
    display: block;
}

.pillar-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .pillars-wrapper {
        display: block;
    }

    .pillars-sidebar {
        display: none !important;
    }

    .pillar-block {
        margin-bottom: 80px;
        scroll-margin-top: 100px;
    }

    .pillar-block:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .pillar-header h2 {
        font-size: 2.5rem;
    }
}

/* 4. Tech Radar Section */
.s-radar {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.s-radar__header {
    text-align: center;
    margin-bottom: 80px;
}

.s-radar__header .tagline {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.s-radar__header .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.s-radar__header .subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
}

.radar-interface {
    width: 600px;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at center, rgba(138, 66, 255, 0.05) 0%, transparent 70%),
        repeating-radial-gradient(circle at center, transparent 0, transparent 49px, rgba(255, 255, 255, 0.02) 50px);
    border-radius: 50%;
}

/* Orbits */
.radar-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Allow mouse to pass through the orbit div */
}

.orbit-1 {
    width: 250px;
    height: 250px;
    animation: radarSpin 20s linear infinite;
}

.orbit-2 {
    width: 400px;
    height: 400px;
    animation: radarSpin 30s linear infinite reverse;
}

.orbit-3 {
    width: 550px;
    height: 550px;
    animation: radarSpin 40s linear infinite;
}

@keyframes radarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Tech Items */
.tech-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable mouse events for the icons */
    z-index: 2;
    /* Position on circle using trig logic in CSS or transforms */
    top: 50%;
    left: 50%;
}

/* Fix for rotation logic: 
   The .tech-item is child of .radar-orbit. 
   .radar-orbit spins. 
   .tech-item needs to be placed at specific angle.
   AND .tech-item needs to counter-spin to stay upright.
*/
.orbit-1 .tech-item {
    transform: rotate(var(--angle)) translate(125px) rotate(calc(var(--angle) * -1));
}

.orbit-2 .tech-item {
    transform: rotate(var(--angle)) translate(200px) rotate(calc(var(--angle) * -1));
}

.orbit-3 .tech-item {
    transform: rotate(var(--angle)) translate(275px) rotate(calc(var(--angle) * -1));
}

/* To keep upright, we need to animate the rotation component that counters the parent. */
.tech-item i {
    display: block;
    animation: iconCounterSpin linear infinite;
}

.orbit-1 .tech-item i {
    animation-duration: 20s;
}

.orbit-2 .tech-item i {
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 .tech-item i {
    animation-duration: 40s;
}

@keyframes iconCounterSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.tech-item:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(138, 66, 255, 0.4);
    z-index: 10;
}

/* Center Core */
.radar-core {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.radar-core img {
    width: 40px;
}

.core-pulse {
    position: absolute;
    inset: -20px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulseRadar 2s infinite;
}

@keyframes pulseRadar {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Scanner */
.radar-scanner {
    position: absolute;
    width: 550px;
    height: 550px;
    top: 25px;
    left: 25px;
    /* Offset by (600-550)/2 */
    transform-origin: center;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(138, 66, 255, 0.3) 90deg, transparent 90deg);
    animation: radarScan 4s linear infinite;
    pointer-events: none;
    filter: blur(2px);
}

@keyframes radarScan {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Info Panel */
.radar-info-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(138, 66, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    text-align: left;
    position: absolute;
    bottom: 40px;
    right: 0;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(138, 66, 255, 0.1);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--color-accent);
}

.status-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.radar-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.radar-info-panel p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.tech-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.spec-item strong {
    font-size: 1rem;
    color: var(--color-primary-light);
    font-family: var(--font-heading);
}

/* Hover Pause */
.radar-interface:hover .radar-orbit,
.radar-interface:hover .tech-item i,
.radar-interface:hover .radar-scanner {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .radar-container {
        gap: 20px;
    }

    .radar-interface {
        transform: scale(0.6);
        margin: -120px 0;
        touch-action: none;
    }

    .radar-info-panel {
        position: relative;
        width: 100%;
        bottom: auto;
        right: auto;
        margin-top: 0;
        border: 1px solid rgba(138, 66, 255, 0.3);
        border-radius: 24px;
        background: rgba(10, 15, 46, 0.5);
    }
}

/* ============================================
   SYSTEM DIAGNOSTIC STRIP (NEW)
   ============================================ */
.s-system-diagnostic {
    padding: 80px 0;
    background: var(--color-bg);
    position: relative;
    z-index: 5;
}

.diagnostic-strip {
    background: rgba(138, 66, 255, 0.05);
    border: 1px solid rgba(138, 66, 255, 0.2);
    border-radius: 24px;
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.diagnostic-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.diagnostic-visual {
    flex-shrink: 0;
}

.mini-terminal {
    width: 280px;
    background: #050816;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    gap: 6px;
}

.terminal-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-body {
    padding: 15px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-primary-light);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.terminal-body .line {
    opacity: 0.8;
}

.terminal-body .blink {
    animation: blink 1s infinite;
}

.diagnostic-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.diagnostic-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 500px;
}

.diagnostic-action {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .diagnostic-strip {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .diagnostic-strip::before {
        width: 100%;
        height: 4px;
    }
    
    .diagnostic-content p {
        margin: 0 auto;
    }
}

/* 5. Execution Protocol */
.s-protocol {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.protocol-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 25vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.protocol-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(138, 66, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 66, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

.protocol-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(46, 107, 255, 0.05), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.s-protocol__header {
    text-align: center;
    margin-bottom: 80px;
}

.s-protocol__header .tagline {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.s-protocol__header .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.s-protocol__header .subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.protocol-container {
    width: 100%;
    overflow: hidden;
    padding-left: max(24px, calc((100vw - 1300px) / 2));
    /* Align with container */
    position: relative;
    z-index: 2;
    padding: 0 max(24px, calc((100vw - 1300px) / 2));
}

.protocol-progress-container {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 0 24px;
    display: none;
    /* Desktop only */
}

.protocol-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.protocol-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.protocol-track {
    display: flex;
    gap: 120px;
    width: fit-content;
    padding: 100px 0;
    padding-right: 60vw;
    /* Increased to allow last card to fully center and focus */
    will-change: transform;
}

.protocol-card {
    width: 500px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 60px;
    transition: background 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Optimization for animations */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.protocol-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 66, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(138, 66, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary-light);
}

.protocol-card h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
}

.protocol-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.step-features i {
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .s-protocol {
        height: auto;
        padding: 100px 0;
    }

    .protocol-bg-text {
        font-size: 40vw;
    }

    .protocol-container {
        padding: 0 24px;
    }

    .protocol-track {
        flex-direction: column;
        width: 100%;
        padding: 40px 0 80px;
        gap: 40px;
    }

    .protocol-card {
        width: 100%;
        padding: 40px;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        position: relative;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .protocol-card:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 40px;
        top: 100%;
        width: 2px;
        height: 40px;
        background: var(--color-primary);
        opacity: 0.2;
    }
}

/* 6. The Diagnostic (Legacy vs Laboratory) */
.s-diagnostic {
    padding: 140px 0;
    background: var(--color-bg);
    position: relative;
    overflow: visible;
    z-index: 5;
}

.s-diagnostic__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 22vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.s-diagnostic__header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.s-diagnostic__header .tagline {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--color-primary-light);
    margin-bottom: 20px;
    opacity: 0.8;
}

.s-diagnostic__header .title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.s-diagnostic__header .subtitle {
    max-width: 750px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.diagnostic-interface {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    gap: 60px;
}

.diag-sector {
    flex: 1;
    padding: 50px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    min-height: 550px;
}

.legacy-sector {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.lab-sector {
    border-color: rgba(138, 66, 255, 0.4);
    background: rgba(138, 66, 255, 0.05);
    box-shadow: 0 0 30px rgba(138, 66, 255, 0.05);
}

.sector-header .status-tag {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #ef4444;
    opacity: 0.6;
}

.sector-header .status-tag.optimized {
    color: var(--color-accent);
    opacity: 1;
}

.sector-header h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
}

.diag-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.diag-point {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.diag-point h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.diag-point p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.diag-point .point-icon {
    font-size: 1.4rem;
    color: #ef4444;
}

.lab-sector .diag-point .point-icon {
    color: var(--color-accent);
}

.diag-point:hover,
.diag-point.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.lab-sector .diag-point:hover,
.lab-sector .diag-point.active {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 20px rgba(138, 66, 255, 0.1);
}

.diag-divider {
    width: 2px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.sector-header .status-tag.optimized {
    color: var(--color-accent);
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sector-header .status-tag.optimized::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: modStatusBlink 1s infinite;
}

.sector-footer {
    margin-top: auto;
    font-family: monospace;
    font-size: 0.7rem;
    opacity: 0.4;
    color: var(--color-primary-light);
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .diagnostic-interface {
        flex-direction: column;
    }

    .diag-divider {
        height: 2px;
        width: 100%;
        margin: 20px 0;
    }

    .diag-sector {
        padding: 30px;
    }
}

/* 7. The Output (Case Studies) */
.s-output {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.s-output__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.s-output__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(138, 66, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 66, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

.s-output__header {
    text-align: center;
    margin-bottom: 80px;
}

.s-output__header .tagline {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.s-output__header .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.s-output__header .subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.output-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    transition: background 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.output-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(138, 66, 255, 0.3);
}

.output-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(138, 66, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.output-card:hover::before {
    opacity: 1;
}

.output-metric {
    margin-bottom: 20px;
}

.output-metric .val {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 5px;
}

.output-metric .lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary-light);
    font-weight: 700;
}

.output-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.output-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.output-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.output-link i {
    transition: transform 0.3s ease;
}

.output-card:hover .output-link {
    color: var(--color-text);
}

.output-card:hover .output-link i {
    transform: translate(3px, -3px);
}

.output-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.output-tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 100px;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .output-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 8. Creative CTA */
.s-cta {
    padding: 180px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-visual-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(138, 66, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 66, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}

.cta-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 66, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.cta-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
    opacity: 0.3;
    animation: ctaScan 6s linear infinite;
}

@keyframes ctaScan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

.s-cta__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.cta-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 40px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.cta-status .pulse {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.s-cta__content .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
}

.s-cta__content .subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.s-cta__actions {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.btn-outline {
    padding: 18px 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    font-weight: 700;
    transition: all 0.4s ease;
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-bg);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .s-cta {
        padding: 100px 0;
    }

    .s-cta__actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
}