/* =============================================
   AVENOIR.AI - Modern Design System
   AI-First. Clean. Premium.
   ============================================= */

/* ─────────────── CSS Variables ─────────────── */
:root {
    /* Colors: Light Professional IT Theme */
    --color-white: #ffffff;
    --color-light: #f8fafc;
    --color-light-gray: #f1f5f9;
    --color-border: #e2e8f0;

    /* Text Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;

    /* Brand Colors - Vibrant Accents */
    --color-primary: #0066cc;
    /* Professional Blue */
    --color-primary-dark: #004999;
    --color-secondary: #f97316;
    /* Vibrant Orange */
    --color-cyan: #0891b2;
    /* Teal/Cyan */
    --color-cyan-light: #22d3ee;
    --color-cyan-glow: rgba(8, 145, 178, 0.2);
    --color-violet: #7c3aed;
    /* Purple */
    --color-violet-glow: rgba(124, 58, 237, 0.2);
    --color-blue: #2563eb;
    /* Bright Blue */
    --color-blue-glow: rgba(37, 99, 235, 0.2);
    --color-teal: #0d9488;
    --color-green: #16a34a;

    /* Dark colors for contrast sections */
    --color-dark: #0f172a;
    --color-navy: #1e3a5f;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066cc, #7c3aed);
    --gradient-bright: linear-gradient(135deg, #0891b2, #2563eb);
    --gradient-warm: linear-gradient(135deg, #f97316, #ec4899);
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    --gradient-section: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Borders & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px var(--color-cyan-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
}

/* ─────────────── Reset & Base ─────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─────────────── Container ─────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ─────────────── Buttons ─────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px var(--color-blue-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-blue-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ─────────────── Header ─────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.header__logo {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.header__logo span {
    color: var(--color-primary);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.header__nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--color-primary);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

.header__cta {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header__cta:hover {
    background: var(--color-primary-dark);
}

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    /* WCAG min-target 44px — ensures comfortable tap on mobile */
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
}

.header__mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-fast);
}

/* ─────────────── Hero Section ─────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background: Light gradient with subtle color zones */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background: var(--color-white);
}

.hero__bg-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg,
            #0f172a 0%,
            #1e1b4b 40%,
            #0c1929 70%,
            #020617 100%);
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Smooth blend between light left and dark right */
.hero__bg-blend {
    position: absolute;
    left: 42%;
    top: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg,
            var(--color-white) 0%,
            rgba(255, 255, 255, 0.7) 20%,
            rgba(15, 23, 42, 0.3) 60%,
            rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Glowing accents on dark background */
.hero__bg-right::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 60%);
    filter: blur(50px);
}

.hero__bg-right::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 35%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
    filter: blur(50px);
}

/* Floating particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero__particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s infinite ease-in-out;
}

.hero__particles span:nth-child(1) {
    top: 20%;
    left: 60%;
    animation-delay: 0s;
}

.hero__particles span:nth-child(2) {
    top: 40%;
    left: 70%;
    animation-delay: 1s;
}

.hero__particles span:nth-child(3) {
    top: 60%;
    left: 55%;
    animation-delay: 2s;
}

.hero__particles span:nth-child(4) {
    top: 30%;
    left: 80%;
    animation-delay: 3s;
}

.hero__particles span:nth-child(5) {
    top: 70%;
    left: 65%;
    animation-delay: 4s;
}

.hero__particles span:nth-child(6) {
    top: 50%;
    left: 75%;
    animation-delay: 5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

/* Hero Content */
.hero__content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-16);
    padding-top: var(--header-height);
    min-height: 100vh;
}

.hero__text {
    max-width: 600px;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on badge */
.hero__badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 102, 204, 0.2) 50%,
            transparent 100%);
    animation: badge-shimmer 3s ease-in-out infinite;
}

@keyframes badge-shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* AI Badge Animation */
.hero__badge-ai {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* AI Sparkle Icon */
.ai-sparkle {
    color: var(--color-primary);
    filter: drop-shadow(0 0 4px rgba(0, 102, 204, 0.5));
    animation: sparkle-glow 2s ease-in-out infinite;
}

.sparkle-main {
    animation: sparkle-pulse 1.5s ease-in-out infinite;
    transform-origin: center;
}

.sparkle-dot {
    animation: sparkle-twinkle 2s ease-in-out infinite;
}

.sparkle-dot--1 {
    animation-delay: 0s;
}

.sparkle-dot--2 {
    animation-delay: 0.5s;
}

.sparkle-dot--3 {
    animation-delay: 1s;
}

.ai-pulse {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: sparkle-ring 2s ease-out infinite;
    opacity: 0;
}

.ai-pulse--2 {
    animation-delay: 1s;
}

@keyframes sparkle-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(0, 102, 204, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.8));
    }
}

@keyframes sparkle-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(10deg);
    }
}

@keyframes sparkle-twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.5);
    }
}

@keyframes sparkle-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes robot-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes robot-blink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

@keyframes antenna-glow {
    0% {
        fill: var(--color-primary);
        opacity: 0.5;
    }

    100% {
        fill: var(--color-cyan);
        opacity: 1;
    }
}

@keyframes arm-wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

@keyframes robot-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Headline */
.hero__headline {
    font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

/* Rotating services text */
.hero__rotating {
    display: inline-block;
    position: relative;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
}

.hero__rotating-track {
    display: flex;
    flex-direction: column;
    animation: rotate-words 10s ease-in-out infinite;
}

.hero__rotating-track span {
    display: block;
    height: 1.2em;
    line-height: 1.2em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes rotate-words {

    0%,
    16% {
        transform: translateY(0);
    }

    20%,
    36% {
        transform: translateY(-1.2em);
    }

    40%,
    56% {
        transform: translateY(-2.4em);
    }

    60%,
    76% {
        transform: translateY(-3.6em);
    }

    80%,
    96% {
        transform: translateY(-4.8em);
    }

    100% {
        transform: translateY(0);
    }
}

/* Subheadline */
.hero__subheadline {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* Trust signals */
.hero__trust {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.hero__trust-dot {
    width: 4px;
    height: 4px;
    background: var(--color-border);
    border-radius: 50%;
}

/* CTAs */
.hero__ctas {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Right side visual */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

/* ─────────────── Neural Network Visual ─────────────── */
.neural-network {
    position: relative;
    width: 400px;
    height: 400px;
}

/* Central Core */
.neural-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.neural-core__inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0c4a6e, #581c87, #134e4a, #7c2d12, #0c4a6e);
    background-size: 400% 400%;
    border-radius: 50%;
    animation: core-pulse 3s ease-in-out infinite, core-color-cycle 8s ease infinite;
    box-shadow:
        0 0 40px rgba(6, 182, 212, 0.4),
        0 0 80px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-core__text {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.neural-core__pulse {
    position: absolute;
    inset: -20px;
    border: 2px solid var(--color-cyan);
    border-radius: 50%;
    animation: core-ring-pulse 2s ease-out infinite;
    opacity: 0;
}

@keyframes core-color-cycle {

    0%,
    100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 0%;
    }
}

@keyframes core-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes core-ring-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Neural Nodes */
.neural-nodes {
    position: absolute;
    inset: 0;
}

.neural-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    animation: node-pulse 2s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 20px var(--color-cyan-glow);
}

.neural-node::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 50%;
    animation: node-ring 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes node-pulse {

    0%,
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.3);
        opacity: 1;
    }
}

@keyframes node-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* SVG Connection Lines */
.neural-connections {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    overflow: visible;
}

.neural-line {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 2;
    stroke-linecap: round;
    animation: line-flow 3s ease-in-out infinite;
}

.neural-line--secondary {
    stroke-width: 1;
    opacity: 0.5;
    animation-delay: 1s;
}

@keyframes line-flow {

    0%,
    100% {
        stroke-dasharray: 0 200;
        stroke-dashoffset: 0;
        opacity: 0.3;
    }

    50% {
        stroke-dasharray: 100 200;
        stroke-dashoffset: -50;
        opacity: 0.8;
    }
}

/* Flowing Data Particles */
.data-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.data-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-cyan), 0 0 20px var(--color-cyan-glow);
    animation: particle-flow var(--duration) linear infinite;
}

.data-particle:nth-child(1) {
    animation-name: particle-path-1;
}

.data-particle:nth-child(2) {
    animation-name: particle-path-2;
    background: var(--color-violet);
    box-shadow: 0 0 10px var(--color-violet);
}

.data-particle:nth-child(3) {
    animation-name: particle-path-3;
}

.data-particle:nth-child(4) {
    animation-name: particle-path-4;
    background: var(--color-blue);
    box-shadow: 0 0 10px var(--color-blue);
}

.data-particle:nth-child(5) {
    animation-name: particle-path-5;
    background: var(--color-secondary);
    box-shadow: 0 0 10px var(--color-secondary);
}

.data-particle:nth-child(6) {
    animation-name: particle-path-6;
}

@keyframes particle-path-1 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-120px, -80px);
        opacity: 0;
    }
}

@keyframes particle-path-2 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(100px, -100px);
        opacity: 0;
    }
}

@keyframes particle-path-3 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(140px, 20px);
        opacity: 0;
    }
}

@keyframes particle-path-4 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(80px, 120px);
        opacity: 0;
    }
}

@keyframes particle-path-5 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-100px, 100px);
        opacity: 0;
    }
}

@keyframes particle-path-6 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-150px, 10px);
        opacity: 0;
    }
}

/* Orbiting Rings */
.neural-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    animation: orbit-rotate 20s linear infinite;
}

.neural-orbit--1 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-color: rgba(34, 211, 238, 0.15);
}

.neural-orbit--1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--color-cyan);
}

.neural-orbit--2 {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    border-color: rgba(168, 85, 247, 0.12);
    animation-duration: 25s;
    animation-direction: reverse;
}

.neural-orbit--2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-violet);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--color-violet);
}

.neural-orbit--3 {
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    border-color: rgba(59, 130, 246, 0.1);
    animation-duration: 30s;
}

.neural-orbit--3::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 5px;
    height: 5px;
    background: var(--color-blue);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 15px var(--color-blue);
}

@keyframes orbit-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Floating metrics */
.hero__metrics {
    position: absolute;
    inset: 0;
}

.hero__metric {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    animation: metric-float 8s infinite ease-in-out;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    overflow: visible;
}

/* Neon glow border effect */
.hero__metric::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--orb-color-1), var(--orb-color-2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Outer glow */
.hero__metric::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Orb 1: Cyan-Blue (3x Faster) */
.hero__metric--1 {
    --orb-color-1: #06b6d4;
    --orb-color-2: #3b82f6;
    --orb-glow: rgba(6, 182, 212, 0.4);
    top: 12%;
    right: 12%;
    animation-delay: 0s;
}

/* Orb 2: Purple-Pink (40% Savings) */
.hero__metric--2 {
    --orb-color-1: #a855f7;
    --orb-color-2: #ec4899;
    --orb-glow: rgba(168, 85, 247, 0.4);
    top: 18%;
    left: 12%;
    animation-delay: 1.5s;
}

/* Orb 3: Emerald-Teal (50+ Clients) */
.hero__metric--3 {
    --orb-color-1: #10b981;
    --orb-color-2: #14b8a6;
    --orb-glow: rgba(16, 185, 129, 0.4);
    top: 50%;
    transform: translateY(-50%);
    right: 8%;
    animation-delay: 3s;
}

/* Orb 4: Indigo-Violet (100+ Projects) */
.hero__metric--4 {
    --orb-color-1: #6366f1;
    --orb-color-2: #8b5cf6;
    --orb-glow: rgba(99, 102, 241, 0.4);
    bottom: 18%;
    left: 12%;
    animation-delay: 0.8s;
}

/* Orb 5: Sky-Cyan (95% Retention) */
.hero__metric--5 {
    --orb-color-1: #0ea5e9;
    --orb-color-2: #22d3ee;
    --orb-glow: rgba(14, 165, 233, 0.4);
    bottom: 12%;
    right: 12%;
    animation-delay: 2.2s;
}

/* Hover effects - bright neon glow */
.hero__metric:hover {
    transform: scale(1.15);
    background: rgba(15, 23, 42, 0.8);
}

.hero__metric:hover::after {
    opacity: 1;
    inset: -15px;
}

.hero__metric--3:hover {
    transform: scale(1.15) translateY(-50%);
}

.hero__metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-1);
}

.hero__metric-icon svg {
    width: 20px;
    height: 20px;
}

.hero__metric-value {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
}

.hero__metric-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 70px;
    line-height: 1.2;
}

@keyframes metric-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero__scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-slate);
    border-radius: var(--radius-full);
    position: relative;
}

.hero__scroll span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: var(--radius-full);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }
}

/* =========================================
   7. HERO SECTION (FIXED)
   ========================================= */
.hero {
    padding: 80px 0 50px;
    /* Much tighter */
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero__content {
    display: flex;
    align-items: flex-start;
    /* Align to top for uniform look */
    justify-content: space-between;
    gap: var(--space-10);
    position: relative;
}

.hero__text {
    flex: 1;
    max-width: 52%;
    /* No padding-top - starts immediately */
}

.hero__visual {
    position: relative;
    flex: 0 0 48%;
    /* Larger visual area */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    /* Bigger solar system */
}

/* ========== FLOATING ROBOT MASCOT ========== */
.hero__robot {
    position: absolute;
    width: 80px;
    height: 112px;
    z-index: 25;
    filter: drop-shadow(0 10px 25px rgba(99, 102, 241, 0.4));
    pointer-events: none;
    transition: all 2.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Initial position */
    top: 20%;
    left: 10%;
    animation: robot-hover 3s ease-in-out infinite;
}

.hero__robot svg {
    width: 100%;
    height: 100%;
}

/* Z-index states for passing behind/in front */
.hero__robot.behind {
    z-index: 1;
    opacity: 0.7;
    filter: drop-shadow(0 5px 15px rgba(99, 102, 241, 0.2)) blur(0.5px);
}

.hero__robot.front {
    z-index: 100;
    opacity: 1;
    filter: drop-shadow(0 15px 30px rgba(99, 102, 241, 0.5));
}

/* Subtle bobbing animation */
@keyframes robot-hover {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Hide old AI label */
.hero__ai-label {
    display: none;
}

/* Remove old badge styles */
.hero__badge {
    display: none;
}

/* =========================================
   MOBILE HERO ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero__content {
        flex-direction: column;
        padding-top: 10px;
    }

    .hero__text {
        max-width: 100%;
        text-align: center;
        order: 2;
    }

    .hero__visual {
        order: 1;
        flex: none;
        width: 100%;
        min-height: 300px;
        margin-bottom: 20px;
    }

    .hero__ai-label {
        top: 10px;
        right: 10px;
        transform: scale(0.9);
    }

    .hero__ctas {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 24px;
    }

    /* Stats Line Contrast */
    .hero__trust {
        font-size: 0.85rem;
        color: #64748b;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .hero__trust span {
        white-space: nowrap;
    }

    .hero__trust-dot {
        display: none;
    }
}



/* ─────────────── Logo Marquee Section ─────────────── */
.logos-section {
    padding: var(--space-16) 0 var(--space-16);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    overflow: hidden;
}

/* Seamless variant - flows from hero */
.logos-section--seamless {
    padding: var(--space-8) 0 var(--space-10);
    background: #ffffff;
    border-top: none;
    margin-top: -1px;
}

.logos-section__label {
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.logos-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logos-marquee::before,
.logos-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-white) 0%, transparent 100%);
}

.logos-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, var(--color-white) 100%);
}

.logos-marquee__track {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    animation: marquee 25s linear infinite;
    width: max-content;
}

.logos-marquee__track:hover {
    animation-play-state: paused;
}

.logos-marquee__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 80px;
    padding: 0 16px;
}

.logos-marquee__item img {
    width: auto;
    height: auto;
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
    opacity: 1;
    transition: all var(--transition-base);
}

.logos-marquee__item:hover img {
    transform: scale(1.08);
    opacity: 0.85;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─────────────── Case Studies Section ─────────────── */
.case-studies {
    padding: var(--space-12) 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.case-studies__header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.case-studies__eyebrow {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7c3aed;
    margin-bottom: var(--space-4);
    position: relative;
}

.case-studies__eyebrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border-radius: 2px;
}

.case-studies__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: var(--space-4);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.case-studies__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid Layout */
.case-studies__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.case-studies__stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Base Card Styles with Premium Animations */
.case-card {
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;

    /* Staggered reveal animation */
    opacity: 0;
    transform: translateY(40px);
}

.case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards */
.case-card:nth-child(1) {
    transition-delay: 0s;
}

.case-card:nth-child(2) {
    transition-delay: 0.15s;
}

.case-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Card Header Base Styles */
.case-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.case-card__logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* White Badge Style */
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.case-card:hover .case-card__logo {
    transform: scale(1.05);
}

.case-card__industry {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
}

.case-card__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-3);
}

.case-card__challenge {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.case-card__metrics {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.case-card__metric {
    text-align: center;
}

.case-card__metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #a78bfa;
    display: inline;
}

.case-card__metric-suffix {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a78bfa;
}

.case-card__metric-label {
    display: block;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-card__quote {
    font-style: italic;
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    border-left: 3px solid #8b5cf6;
    padding-left: var(--space-4);
    margin-bottom: var(--space-6);
}

.case-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #a78bfa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.case-card__cta span {
    transition: transform 0.2s ease;
}

.case-card__cta:hover {
    color: #c4b5fd;
}

.case-card__cta:hover span {
    transform: translateX(4px);
}

/* AI Text - Elegant Gradient Pulse */
.text-ai {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: ai-glow 2s ease-in-out infinite alternate;
}

@keyframes ai-glow {
    0% {
        filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8)) drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
    }
}

/* Featured Card - Unlimited Premium Dark Theme with White Header */
.case-card--featured {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    grid-row: span 1;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Featured Card WHITE Header - Restored */
.case-card--featured .case-card__header {
    background: #ffffff !important;
    padding: 24px 28px !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: relative;
    z-index: 2;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}



/* Logo Styles - Clean on White */
.case-card--featured .case-card__logo {
    height: 48px;
    /* Slightly larger */
    max-width: 180px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    display: block;
}

/* Badges Container - Right Side Stack */
.case-card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Industry tag - Clean style */
.case-card--featured .case-card__industry {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #7c3aed !important;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: none;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
}

/* Featured Badge - Relative in Flex Container */
.case-card--featured .case-card__badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
    z-index: 10 !important;
    animation: badge-pulse 3s infinite;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: -1;
    /* Ensure distinct visual order if needed */
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.3);
    }
}

/* Content Area - Restored Dark Background */
.case-card--featured .case-card__content {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 28px;
    padding-top: 20px;
    position: relative;
    z-index: 3;
}

/* Glowing Border on Hover */
.case-card--featured:hover {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.4),
        0 25px 50px rgba(139, 92, 246, 0.25);
    transform: translateY(-6px);
}

/* AI Neural Network Animation */
/* AI Neural Network Overlay - Interactive on hover */
.case-card__ai-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.case-card--featured:hover .case-card__ai-overlay {
    opacity: 0.7;
}

/* AI Particles - Enhanced with hover drift */
.ai-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #a78bfa 0%, #8b5cf6 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px #8b5cf6, 0 0 24px #8b5cf6;
    animation: ai-pulse 3s ease-in-out infinite, particle-float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Particle attracts toward center on hover */
.case-card--featured:hover .ai-particle {
    animation: ai-pulse-hover 1.5s ease-in-out infinite;
    transform: translate(calc((50% - var(--x)) * 0.15),
            calc((50% - var(--y)) * 0.15)) scale(1.3);
}

@keyframes ai-pulse-hover {

    0%,
    100% {
        opacity: 0.7;
        box-shadow: 0 0 15px #a78bfa, 0 0 30px #8b5cf6;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 25px #a78bfa, 0 0 50px #8b5cf6;
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(5px, -5px);
    }

    50% {
        transform: translate(-3px, 3px);
    }

    75% {
        transform: translate(-5px, -3px);
    }
}

.ai-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ai-line {
    stroke: rgba(139, 92, 246, 0.3);
    stroke-width: 1;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: ai-draw-line 4s ease-in-out infinite;
}

.ai-line:nth-child(2) {
    animation-delay: 0.5s;
}

.ai-line:nth-child(3) {
    animation-delay: 1s;
}

.ai-line:nth-child(4) {
    animation-delay: 1.5s;
}

.ai-line:nth-child(5) {
    animation-delay: 2s;
}

@keyframes ai-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes ai-draw-line {
    0% {
        stroke-dashoffset: 200;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -200;
    }
}

.case-card--featured>*:not(.case-card__ai-overlay) {
    position: relative;
    z-index: 1;
}

.case-card--featured:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
}

/* Enhanced Featured Badge */
.case-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    border-radius: 24px;
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2);
    z-index: 10;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
    }
}

/* Logo with improved blending - removes white backgrounds */
.case-card--featured .case-card__logo {
    height: 36px;
    opacity: 0.95;
    transition: all 0.3s ease;
    /* Mix-blend-mode: screen makes white backgrounds transparent on dark */
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.1);
}

.case-card--featured:hover .case-card__logo {
    opacity: 1;
    filter: brightness(1.4) contrast(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.case-card--featured .case-card__title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

/* Small Cards (Light Theme) */
.case-card--small {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: var(--space-6);
}

.case-card--small:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.case-card--small .case-card__title {
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.case-card--small .case-card__metrics {
    margin-bottom: var(--space-4);
}

.case-card--small .case-card__metric-value,
.case-card--small .case-card__metric-suffix {
    color: #7c3aed;
    font-size: 1.5rem;
}

.case-card--small .case-card__metric-label {
    color: var(--color-text-muted);
}

.case-card--small .case-card__cta {
    color: #7c3aed;
}

.case-card--small .case-card__cta:hover {
    color: #6d28d9;
}

/* Footer Button */
.case-studies__footer {
    text-align: center;
}

.btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #7c3aed;
    background: transparent;
    border: 2px solid #7c3aed;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn--outline:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

/* ─────────────── Services Section (AI Modern) ─────────────── */
.services-section {
    padding: var(--space-12) 0;
    /* Subtle tech grid background */
    background-color: #f8fafc;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
    overflow: hidden;
    /* Needed for 3d perspective */
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Staggered Reveal Animation */
.reveal-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade out grid at edges */
.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #ffffff, transparent);
    pointer-events: none;
}

.services__header {
    text-align: center;
    margin-bottom: var(--space-10);
    position: relative;
    z-index: 1;
}

.services__eyebrow {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.services__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: var(--space-4);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.services__subtitle {
    font-size: var(--font-size-lg);
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Modern Service Card */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: var(--space-10);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.1s ease;
    /* Fast transition for 3D tilt */
    position: relative;
    overflow: visible;
    /* Changed for 3D glow */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    /* Transform handled by JS for tilt, removing static hover transform */
    border-color: transparent;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 0 0 2px var(--card-color);
}

/* Gradient Glow Background on Hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--card-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
    transform: translateZ(-10px);
    /* Push glow back */
    border-radius: 20px;
}



.service-card:hover::before {
    opacity: 0.15;
}



.service-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transform: translateZ(20px);
    /* Lift icon */
    animation: float 6s ease-in-out infinite;
}

.service-card__icon,
.service-card__svg {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.service-card__svg {
    color: var(--card-color);
}

.service-card:hover .service-card__svg {
    color: #ffffff;
}

.service-card:hover .service-card__icon {
    filter: brightness(0) invert(1);
}


.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: var(--space-3);
}

.service-card__desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: var(--space-8);
    flex-grow: 1;
}

.service-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--card-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card__link span {
    transition: transform 0.2s ease;
}

.service-card__link:hover span {
    transform: translateX(4px);
}

/* Individual Card Colors */
.service-card--salesforce {
    --card-color: #00a1e0;
}

.service-card--data {
    --card-color: #f59e0b;
}

.service-card--ai {
    --card-color: #8b5cf6;
}

.service-card--sap {
    --card-color: #008fd3;
}

.service-card--other {
    --card-color: #10b981;
}


/* ─────────────── Process Section (AI Modern) ─────────────── */
.process-section {
    padding: var(--space-14, 3.5rem) 0;
    background: #0f172a;
    /* Dark theme for contrast */
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Blueprint Grid Background */
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.process__header {
    text-align: center;
    margin-bottom: var(--space-10);
    position: relative;
    z-index: 1;
}

.process__eyebrow {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.process__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.process__subtitle {
    font-size: var(--font-size-lg);
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.process__timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* Glowing Connecting Line */
.process__line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    z-index: 1;
}

.process__line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f472b6, #a78bfa, #22d3ee);
    /* Pink -> Purple -> Cyan */
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process__timeline.scrolled-in .process__line-fill {
    width: 100%;
}

/* Individual Step */
.process__step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 var(--space-4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.process__timeline.scrolled-in .process__step {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay for Steps */
.process__timeline.scrolled-in .process__step:nth-child(2) {
    transition-delay: 0.2s;
}

.process__timeline.scrolled-in .process__step:nth-child(3) {
    transition-delay: 0.5s;
}

.process__timeline.scrolled-in .process__step:nth-child(4) {
    transition-delay: 0.8s;
}

.process__timeline.scrolled-in .process__step:nth-child(5) {
    transition-delay: 1.1s;
}

.process__icon-wrapper {
    width: 100px;
    height: 100px;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-8);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 8px rgba(15, 23, 42, 1);
    /* Fake margin to cover line */
}

.process__step:hover .process__icon-wrapper {
    border-color: #a78bfa;
    box-shadow: 0 0 0 8px rgba(15, 23, 42, 1), 0 0 20px rgba(167, 139, 250, 0.4);
    transform: scale(1.1);
}

.process__step-number {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.process__icon {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.process__step:hover .process__icon {
    color: #ffffff;
}

.process__step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-3);
}

.process__step-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Responsive Process */
@media (max-width: 768px) {
    .process__timeline {
        flex-direction: column;
        gap: var(--space-8);
    }

    .process__line {
        top: 0;
        left: 50px;
        width: 4px;
        height: 100%;
        margin-left: -2px;
    }

    .process__line-fill {
        width: 100%;
        height: 0%;
        top: 0;
        transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .process__timeline.scrolled-in .process__line-fill {
        height: 100%;
        width: 100%;
    }

    .process__step {
        display: flex;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
        margin-bottom: var(--space-8);
        opacity: 1 !important;
        /* Disable fade-in stagger on mobile for usability */
        transform: none !important;
    }

    .process__icon-wrapper {
        margin: 0 var(--space-6) 0 0;
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        box-shadow: 0 0 0 8px #0f172a;
        /* Solid background match */
    }

    /* Reset delays for mobile */
    .process__timeline.scrolled-in .process__step {
        transition-delay: 0s !important;
    }
}

.services__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.services__eyebrow {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.services__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.services__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    justify-content: center;
}

/* Service Card Styles */
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: var(--space-8);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color, #cbd5e1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: background 0.3s ease;
}

.service-card:hover .service-card__icon-wrapper {
    background: var(--icon-bg, #f1f5f9);
}

.service-card__icon {
    width: 36px;
    height: auto;
    object-fit: contain;
}

.service-card__svg {
    width: 32px;
    height: 32px;
    color: var(--card-color, #64748b);
}

.service-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.service-card__desc {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    flex-grow: 1;
}

.service-card__link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--card-color, #0f172a);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.service-card__link span {
    transition: transform 0.2s ease;
}

.service-card__link:hover span {
    transform: translateX(4px);
}

/* Individual Card Colors */
.service-card--salesforce {
    --card-color: #00a1e0;
    /* Salesforce Blue */
    --icon-bg: rgba(0, 161, 224, 0.1);
}

.service-card--data {
    --card-color: #f59e0b;
    /* Amber */
    --icon-bg: rgba(245, 158, 11, 0.1);
}

.service-card--ai {
    --card-color: #8b5cf6;
    /* Violet */
    --icon-bg: rgba(139, 92, 246, 0.1);
}

.service-card--sap {
    --card-color: #008fd3;
    /* SAP Blue */
    --icon-bg: rgba(0, 143, 211, 0.1);
}

.service-card--other {
    /* Emerald */
    --icon-bg: rgba(16, 185, 129, 0.1);
}

/* ─────────────── Process Section ─────────────── */
.process-section {
    padding: var(--space-12) 0;
    background: #ffffff;
    overflow: hidden;
}

.process__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.process__eyebrow {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e11d48;
    background: rgba(225, 29, 72, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.process__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.process__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.process__timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Connecting Line */
.process__line {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.process__line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e11d48, #7c3aed, #00a1e0);
    animation: process-line-fill 3s ease-out forwards;
}

@keyframes process-line-fill {
    to {
        width: 100%;
    }
}

/* Individual Step */
.process__step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 var(--space-4);
}

.process__icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.process__step:hover .process__icon-wrapper {
    border-color: #e11d48;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.15);
}

.process__step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #e11d48;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process__icon {
    width: 32px;
    height: 32px;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.process__step:hover .process__icon {
    color: #e11d48;
}

.process__step-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.process__step-desc {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Responsive Process */
@media (max-width: 768px) {
    .process__timeline {
        flex-direction: column;
        gap: var(--space-8);
    }

    .process__line {
        top: 0;
        left: 40px;
        width: 2px;
        height: 100%;
    }

    .process__line-fill {
        width: 100%;
        height: 0%;
        top: 0;
        animation: process-line-fill-mobile 3s ease-out forwards;
    }

    @keyframes process-line-fill-mobile {
        to {
            height: 100%;
        }
    }

    .process__step {
        display: flex;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
    }

    .process__icon-wrapper {
        margin: 0 var(--space-6) 0 0;
        flex-shrink: 0;
    }
}

/* ─────────────── Footer (temporary) ─────────────── */
.footer {
    padding: var(--space-8) 0;
    background: var(--color-light-gray);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ─────────────── Responsive ─────────────── */
@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-12);
    }

    .hero__text {
        max-width: 100%;
    }

    .hero__subheadline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__ctas {
        justify-content: center;
    }

    .hero__visual {
        height: 350px;
    }

    .hero__bg-left {
        width: 100%;
    }

    .hero__bg-right {
        display: none;
    }

    .hero__bg-blend {
        display: none;
    }
}

@media (max-width: 768px) {
    .header__nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 90vw);
        height: 100vh;
        background: rgba(5, 10, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 0;
        z-index: 9999;
        box-shadow: -4px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(34,211,238,0.1);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header__nav-list.active {
        transform: translateX(0);
    }

    .header__nav-list li {
        width: 100%;
    }

    .header__nav-list .header__nav-link {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        color: rgba(255,255,255,0.85);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .header__nav-list .header__nav-link:hover,
    .header__nav-list .header__nav-link.active {
        color: #22d3ee;
    }

    .header__nav-list .header__nav-link::after {
        display: none;
    }

    .header__nav-list .mega-menu {
        display: none !important;
    }

    .header__cta {
        display: none;
    }

    .header__mobile-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }

    .header__mobile-toggle span {
        background: #fff;
        transition: all 0.3s ease;
    }

    .header__mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header__mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header__mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero__headline {
        font-size: var(--font-size-3xl);
    }

    .hero__subheadline {
        font-size: var(--font-size-lg);
    }

    .hero__trust {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .hero__ctas {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Case Studies Mobile */
    .case-studies__grid {
        /* minmax(0,1fr) stops the column from being forced wider than the
           container by card content (metric min-widths) — that blowout was
           pushing the cards off-center to the right on narrow phones. */
        grid-template-columns: minmax(0, 1fr);
    }

    .case-card {
        min-width: 0;
    }

    .case-card__metrics {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .case-card__metric {
        flex: 1 1 40%;
        min-width: 0;
    }

    .case-card--featured .case-card__title {
        font-size: 1.25rem;
    }
}

/* ─────────────── System Core (Hybrid Services) ─────────────── */
.system-core-section {
    padding: 120px 0;
    min-height: 850px;
    /* SUGGESTION: Deep Indigo Void */
    /* Highlights the Amber Terminal (Complementary) and frames the center */
    background: radial-gradient(ellipse at center, #1e1b4b 0%, #020617 80%);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.system-core-section .services__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    text-align: center;
}

/* Magnetic Title Effect - Enhanced Flow */
.magnetic-text {
    background: linear-gradient(110deg, #94a3b8 20%, #ffffff 50%, #94a3b8 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.magnetic-text::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    box-shadow: 0 0 10px #38bdf8;
    border-radius: 2px;
}

.system-core-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.system-core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left: Holographic Display */
.holo-display {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    position: relative;
    height: 400px;
    align-items: center;
}

.holo-carousel-stage {
    width: 320px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    animation: holoRotate 20s infinite linear;
    cursor: pointer;
}

.holo-carousel-stage:hover {
    animation-play-state: paused;
}

/* Base Card Styling - OPTION 3: REACTIVE INTELLIGENCE */
.holo-card {
    position: absolute;
    width: 300px;
    height: 220px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Default: Stealth/Glass Mode */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Service Colors Configuration */
.holo-card[data-service="salesforce"] {
    --theme-color: #38bdf8;
}

/* Sky Blue */
.holo-card[data-service="data"] {
    --theme-color: #f59e0b;
}

/* Amber */
.holo-card[data-service="ai"] {
    --theme-color: #ef4444;
}

/* Red */
.holo-card[data-service="sap"] {
    --theme-color: #10b981;
}

/* Emerald */

/* Hover State: ACTIVATED */
.holo-card:hover {
    transform: scale(1.1) translateZ(20px);
    z-index: 20;

    /* The color comes alive on hover */
    border-color: var(--theme-color);
    box-shadow: 0 0 40px var(--theme-color), inset 0 0 20px rgba(0, 0, 0, 0.2);
    background: rgba(15, 23, 42, 0.95);
    /* Solidifies to make text readable */
}

/* Icons - Reactive */
.holo-card .service-card__icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    /* Slate-400 */
    transition: all 0.3s ease;
}

.holo-card:hover .service-card__icon-wrapper {
    background: var(--theme-color);
    color: #000;
    /* Contrast against bright theme color */
    border-color: var(--theme-color);
    box-shadow: 0 0 20px var(--theme-color);
    transform: scale(1.1) rotate(5deg);
}

.holo-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.holo-card span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.3s;
}

.holo-card:hover span {
    color: var(--theme-color);
}

/* Touch devices: no real hover — don't let a sticky :hover scale/flatten a card
   out of its rotated 3D position while the carousel is spinning. */
@media (hover: none) {
    .holo-card:hover {
        transform: none;
    }
    .holo-carousel-stage:hover {
        animation-play-state: running;
    }
}

/* Right: Command Terminal - DISTINCT THEME (Classic Black) */
.cmd-terminal {
    background: #000000;
    /* Pure Black */
    border: 1px solid rgba(56, 189, 248, 0.3);
    /* Electric Blue Border */
    border-radius: 12px;
    padding: 0;
    font-family: 'Fira Code', monospace;
    height: 420px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* System CTA Bridge */
.system-cta-wrapper {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* =========================================
   QUANTUM PROTOCOL SECTION
   ========================================= */
.quantum-section {
    padding: 100px 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quantum-header {
    text-align: center;
    margin-bottom: 80px;
}

.quantum-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pipeline Container */
.pipeline-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 100px;
}

/* The Connecting Beam */
.pipeline-track {
    position: absolute;
    top: 30px;
    /* Aligns with markers */
    left: 50px;
    right: 50px;
    height: 2px;
    background: #1e293b;
    z-index: 0;
}

.track-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    animation: flowLine 3s infinite ease-in-out;
    box-shadow: 0 0 10px #38bdf8;
}

@keyframes flowLine {
    0% {
        left: 0%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Phases */
.q-phase {
    position: relative;
    z-index: 2;
    width: 23%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phase-marker {
    width: 60px;
    height: 60px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.q-phase:hover .phase-marker,
.active-marker {
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    background: #0f172a;
}

.phase-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.q-phase:hover .phase-card {
    transform: translateY(-5px);
    border-color: #94a3b8;
}

.phase-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.phase-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.phase-output {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* SPECIAL: Staffing Execution Card */
.main-card {
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
    transform: scale(1.05);
}

.staffing-module {
    margin-top: 15px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px dashed #38bdf8;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.module-header {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #38bdf8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blink-dot {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.module-content strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.module-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-content li {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 2px;
}

/* Ticker */
.vendor-ticker-wrapper {
    background: #1e293b;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #334155;
}

.ticker-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #10b981;
    /* Success Green */
    white-space: nowrap;
    margin-right: 15px;
    font-weight: bold;
}

.ticker-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.btn--system {
    position: relative;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn--system:hover {
    background: #fff;
    color: #020617;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn--system .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.btn--system:hover .btn-glow {
    transform: scale(1);
}

.cmd-header {
    background: rgba(56, 189, 248, 0.05);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmd-title {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.cmd-status {
    font-size: 0.7rem;
    color: #c084fc;
    /* Purple (Live Monitoring) */
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.cmd-status-dot {
    width: 6px;
    height: 6px;
    background: #c084fc;
    /* Purple Dot */
    border-radius: 50%;
    box-shadow: 0 0 8px #c084fc;
    animation: blink 2s infinite;
}

.cmd-content {
    padding: 25px;
    flex-grow: 1;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.8;
    overflow-y: auto;
    min-height: 0;
}

.cmd-line {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.cmd-prompt {
    color: #38bdf8;
    /* Blue Prompt */
    margin-right: 12px;
    font-weight: 700;
}

.cmd-highlight {
    color: #22d3ee;
    /* Cyan Highlight */
    font-weight: 600;
}

.cmd-success {
    color: #4ade80;
    /* Green Success */
    font-weight: 600;
}

.cmd-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: #38bdf8;
    /* Blue Cursor */
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes holoRotate {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile/Tablet Responsiveness */
@media (max-width: 900px) {
    .system-core-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .holo-display {
        perspective: 900px;
        height: 320px;
    }

    /* Holo carousel sizes overridden by the mobile-stack block further below — these are now harmless leftovers */
    .holo-carousel-stage {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* =========================================
   QUANTUM PROTOCOL SECTION
   ========================================= */
.quantum-section {
    padding: 100px 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quantum-header {
    text-align: center;
    margin-bottom: 80px;
}

.quantum-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pipeline Container */
.pipeline-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 100px;
}

/* The Connecting Beam */
.pipeline-track {
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #1e293b;
    z-index: 0;
}

.track-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    animation: flowLine 3s infinite ease-in-out;
    box-shadow: 0 0 10px #38bdf8;
}

@keyframes flowLine {
    0% {
        left: 0%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Phases */
.q-phase {
    position: relative;
    z-index: 2;
    width: 23%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phase-marker {
    width: 60px;
    height: 60px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.q-phase:hover .phase-marker,
.active-marker {
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    background: #0f172a;
}

.phase-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.q-phase:hover .phase-card {
    transform: translateY(-5px);
    border-color: #94a3b8;
}

.phase-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.phase-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.phase-output {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* SPECIAL: Staffing Execution Card */
.main-card {
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
    transform: scale(1.05);
}

.staffing-module {
    margin-top: 15px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px dashed #38bdf8;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.module-header {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #38bdf8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blink-dot {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.module-content strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.module-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-content li {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 2px;
}

/* Ticker */
.vendor-ticker-wrapper {
    background: #1e293b;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #334155;
}

.ticker-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #10b981;
    /* Success Green */
    white-space: nowrap;
    margin-right: 15px;
    font-weight: bold;
}

.ticker-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* =========================================
   SPLIT TERMINAL SECTION (Binary Choice)
   ========================================= */

/* Transition Gradient Divider */
.split-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #020617 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.split-section {
    height: 90vh;
    min-height: 700px;
    border-top: none;
    background: #000;
    position: relative;
}

.split-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.split-pillar {
    flex: 1;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth aggressive ease */
    overflow: hidden;
    cursor: crosshair;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.split-pillar:last-child {
    border-right: none;
}

/* BACKGROUNDS */
.pillar-left {
    background: #000;
    transition: background 0.5s;
}

.pillar-right {
    background: #000;
    transition: background 0.5s;
}

/* Restore colors on hover */
.split-pillar:hover.pillar-left {
    background: #020617;
}

.split-pillar:hover.pillar-right {
    background: #0f172a;
}

.pillar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
    background-size: cover;
    mix-blend-mode: overlay;
}

/* HOVER INTERACTIONS */
.split-pillar {
    /* DEFAULT STATE: Still Mode (Black/Blank) */
    background: #000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, color 0.4s;
    color: #fff;
}

.split-container:hover .split-pillar {
    opacity: 0.3;
    /* Non-interacted sides fade out */
    background: #000;
    /* Ensure they stay black */
}

.split-container:hover .split-pillar:hover {
    flex: 1.8;
    /* Expand */
    opacity: 1;
    /* Focus */
    filter: grayscale(0%);
    background: #ffffff;
    /* ACTIVE = WHITE */
    color: #0f172a;
    /* Text becomes dark */
}

/* CONTENT STYLING */
.pillar-content {
    position: relative;
    z-index: 2;
    transition: transform 0.5s;
    max-width: 600px;
    margin: 0 auto;
}

.pillar-icon svg {
    width: 60px;
    height: 60px;
    color: #94a3b8;
    margin-bottom: 20px;
    transition: all 0.3s;
    filter: grayscale(1);
}

.split-pillar:hover .pillar-icon svg {
    filter: grayscale(0);
    transform: scale(1.1);
    color: #0f172a;
    /* Dark Icon on White */
}

.pillar-eyebrow {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #38bdf8;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.7;
}

.split-pillar:hover .pillar-eyebrow {
    color: #0284c7;
    /* Darker Blue for White BG */
    font-weight: bold;
}

.pillar-header h2 {
    font-size: 3rem;
    color: #fff;
    margin: 0 0 20px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    color: transparent;
}

.split-pillar:hover .pillar-header h2 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #000;
}

/* BLANK WAY: Hidden by default */
.pillar-body {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    transform: translateY(30px);
    transition: all 0.5s 0.1s;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

/* Fix vertical rhythm - consistent spacing */
.pillar-body p {
    margin-bottom: 24px;
}

/* Reveal body on hover */
.split-pillar:hover .pillar-body {
    opacity: 1;
    max-height: 600px;
    margin-top: 20px;
    transform: translateY(0);
    color: #475569;
    /* Dark Gray text */
}

/* LISTS & TICKERS */
.pillar-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.split-pillar:hover .pillar-features {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pillar-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    color: #94a3b8;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.split-pillar:hover .pillar-features li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #0284c7;
}

.pillar-features span {
    color: #38bdf8;
    font-family: 'Fira Code';
    font-size: 0.8rem;
}

.split-pillar:hover .pillar-features span {
    color: #0284c7;
    font-weight: bold;
}

/* Unified List Style - Terminal Grid */
.mini-ticker {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    border-radius: 0;
}

.split-pillar:hover .mini-ticker {
    background: rgba(16, 185, 129, 0.1);
    border-color: #059669;
}

.ticker-item {
    font-size: 0.9rem;
    color: #94a3b8;
    font-family: 'Fira Code';
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item::before {
    content: '●';
    color: #38bdf8;
    font-size: 0.6rem;
}

.split-pillar:hover .ticker-item {
    color: #059669;
    font-weight: 600;
}

/* Domain Expertise Grid */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 10px 0;
    max-height: 120px;
    overflow-y: auto;
}

.domain-item {
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    border-left: 3px solid #a78bfa;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
}

.domain-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-expertise {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #a78bfa;
    line-height: 1.3;
}

/* Hover state - white background */
.split-pillar:hover .domain-grid {
    max-height: 130px;
}

.split-pillar:hover .domain-item {
    border-left-color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.split-pillar:hover .domain-name {
    color: #1e1b4b;
}

.split-pillar:hover .domain-expertise {
    color: #7c3aed;
}

/* BUTTONS - Enhanced with Glow */
.btn-pillar {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    transition: all 0.3s;
    animation: btn-pulse 2s ease-in-out infinite alternate;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 5px rgba(56, 189, 248, 0.2);
    }

    100% {
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.5), 0 0 30px rgba(56, 189, 248, 0.2);
    }
}

.btn-pillar:hover {
    background: #38bdf8;
    color: #000;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
    animation: none;
}

.split-pillar:hover .btn-pillar {
    border-color: #000;
    color: #000;
}

.split-pillar:hover .btn-pillar:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Specific Colors for Right Pillar ACTIVE */
.split-pillar:hover.pillar-right .pillar-eyebrow {
    color: #9333ea;
}

.split-pillar:hover.pillar-right .pillar-features span {
    color: #9333ea;
}

.split-pillar:hover.pillar-right .pillar-icon svg {
    color: #581c87;
}

.split-pillar:hover.pillar-right .btn-pillar {
    border-color: #9333ea;
    color: #9333ea;
}

.split-pillar:hover.pillar-right .btn-pillar:hover {
    background: #9333ea;
    color: #fff;
    border-color: #9333ea;
}

/* Specific Colors for Left Pillar ACTIVE (Cyan Accent) */
.split-pillar:hover.pillar-left .pillar-eyebrow {
    color: #0284c7;
}

.split-pillar:hover.pillar-left .pillar-features li {
    color: #0284c7;
}

.split-pillar:hover.pillar-left .pillar-features span {
    color: #0284c7;
    font-weight: bold;
}

.split-pillar:hover.pillar-left .pillar-icon svg {
    color: #0369a1;
}

.split-pillar:hover.pillar-left .btn-pillar {
    border-color: #0284c7;
    color: #0284c7;
}

.split-pillar:hover.pillar-left .btn-pillar:hover {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}


/* =========================================
   CONTACT SECTION: TERMINAL INPUT
   ========================================= */
.contact-section {
    padding: 100px 0;
    background: #020617;
    /* Matches Split Terminal Left */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-terminal {
    max-width: 800px;
    margin: 0 auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
}

.terminal-header {
    background: #1e293b;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.terminal-dots span:nth-child(1) {
    background: #ef4444;
}

/* Red */
.terminal-dots span:nth-child(2) {
    background: #f59e0b;
}

/* Yellow */
.terminal-dots span:nth-child(3) {
    background: #10b981;
}

/* Green */

.terminal-title {
    font-size: 0.8rem;
    color: #64748b;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 30px;
    color: #e2e8f0;
}

.terminal-prompt-line {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.prompt-user {
    color: #10b981;
    margin-right: 10px;
}

.prompt-cmd {
    color: #fff;
}

.terminal-output {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* FORM STYLES */
.terminal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #38bdf8;
    /* Cyan */
    font-size: 0.8rem;
    font-weight: 600;
}

.terminal-form input,
.terminal-form select,
.terminal-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #334155;
    color: #fff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    padding: 10px 0;
    width: 100%;
    transition: all 0.3s;
    outline: none;
}

.terminal-form input:focus,
.terminal-form select:focus,
.terminal-form textarea:focus {
    border-bottom-color: #38bdf8;
    box-shadow: 0 4px 6px -4px rgba(56, 189, 248, 0.2);
}

.terminal-form input::placeholder,
.terminal-form textarea::placeholder {
    color: #475569;
}

/* Custom Select Arrow Styling hack */
.terminal-form select {
    cursor: pointer;
    color: #94a3b8;
}

.terminal-form select option {
    background: #0f172a;
    color: #fff;
}

/* SUBMIT BUTTON */
.btn-terminal-submit {
    background: transparent;
    border: 1px solid #10b981;
    /* Green */
    color: #10b981;
    font-family: 'Fira Code', monospace;
    padding: 15px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.btn-terminal-submit:hover {
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    padding-left: 25px;
    /* Indent effect */
}

.btn-brackets {
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-terminal-submit:hover .btn-brackets {
    opacity: 1;
}

.btn-glitch-text::before {
    content: '';
    /* Removed '> ' prefix */
}

/* Mobile */
@media (max-width: 600px) {
    .terminal-body {
        padding: 20px;
    }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE FIXES — Split-pillar (Process section) must show content
   without hover since touch devices have no :hover state.
   Stacks vertically with all content always visible, with the
   colored "curtain" backgrounds preserved so the section has
   visual depth instead of looking like a flat black wall.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Stack the two pillars vertically instead of side-by-side */
    .split-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
    }
    .split-pillar {
        width: 100% !important;
        min-height: auto !important;
        padding: 2.5rem 1.5rem !important;
        position: relative !important;
    }
    /* Headings — were 4rem+ on desktop, that's overwhelming on mobile */
    .split-pillar .pillar-header h2,
    .pillar-left .pillar-header h2,
    .pillar-right .pillar-header h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
    }
    /* Curtain backgrounds — make each pillar visually distinct on mobile */
    .pillar-left {
        background: linear-gradient(180deg, #020617 0%, #0a1330 100%) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
    }
    .pillar-right {
        background: linear-gradient(180deg, #0a1330 0%, #170b34 100%) !important;
        border-bottom: 1px solid rgba(147, 51, 234, 0.15) !important;
    }
    .pillar-bg { display: none !important; }
    /* Section height: let it grow with the open curtain instead of a fixed 90vh/700px */
    .split-section {
        height: auto !important;
        min-height: auto !important;
    }
    /* ── Curtain "cover" — always visible (icon + eyebrow + title) ── */
    .pillar-icon,
    .pillar-eyebrow,
    .pillar-header {
        opacity: 1 !important;
        max-height: none !important;
        transform: none !important;
    }
    /* Inner content sits at full opacity once the body has slid open */
    .pillar-features,
    .domain-grid,
    .mini-ticker {
        opacity: 1 !important;
        transform: none !important;
    }
    /* Show ALL domain tags when open — no cramped inner scrollbar on mobile */
    .domain-grid {
        max-height: none !important;
        overflow: visible !important;
    }
    /* Higher contrast for domain names/expertise — the old shades blended into
       the purple card background and were nearly invisible on phones. */
    .domain-item {
        background: rgba(139, 92, 246, 0.16) !important;
        border-left-color: #c4b5fd !important;
    }
    .domain-name {
        color: #ffffff !important;
    }
    .domain-expertise {
        color: #d8caff !important;
    }
    /* ── Curtain body: collapsed by default, SLIDES OPEN on tap (.is-open) ──
       This recreates the desktop hover-reveal as a tap interaction on touch. */
    .pillar-body {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none !important;
        margin-top: 0 !important;
        transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.45s ease,
                    margin-top 0.5s ease;
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
        color: #cbd5e1 !important;
    }
    .split-pillar.is-open .pillar-body {
        opacity: 1 !important;
        max-height: 1600px !important;
        margin-top: 18px !important;
    }
    .pillar-body p {
        margin-bottom: 18px;
    }
    /* Whole pillar is tappable; subtle active accent when open */
    .split-pillar {
        cursor: pointer !important;
        transition: box-shadow 0.4s ease, background 0.4s ease !important;
    }
    .pillar-left.is-open  { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35), inset 0 40px 80px -40px rgba(56, 189, 248, 0.25) !important; }
    .pillar-right.is-open { box-shadow: inset 0 0 0 1px rgba(147, 51, 234, 0.35), inset 0 40px 80px -40px rgba(147, 51, 234, 0.25) !important; }
    /* Tap affordance — chevron flips when the curtain opens */
    .split-pillar .pillar-header {
        position: relative;
        padding-right: 34px;
    }
    .split-pillar .pillar-header::after {
        content: '';
        position: absolute;
        right: 4px;
        top: 12px;
        width: 12px;
        height: 12px;
        border-right: 2px solid #38bdf8;
        border-bottom: 2px solid #38bdf8;
        transform: rotate(45deg);
        transition: transform 0.4s ease;
        opacity: 0.85;
    }
    .pillar-right .pillar-header::after {
        border-color: #c4b5fd;
    }
    .split-pillar.is-open .pillar-header::after {
        transform: rotate(-135deg);
        top: 16px;
    }
    /* Left pillar (Managed Solutions) — keep dark, blue accents */
    .pillar-left .pillar-eyebrow {
        color: #38bdf8 !important;
        opacity: 1 !important;
    }
    .pillar-left .pillar-header h2 {
        color: #fff !important;
    }
    .pillar-left .pillar-features li,
    .pillar-left .pillar-features span {
        color: #cbd5e1 !important;
        opacity: 1 !important;
    }
    /* Right pillar (IT Augmentation) — purple accents on mobile */
    .pillar-right .pillar-eyebrow {
        color: #c4b5fd !important;
        opacity: 1 !important;
    }
    .pillar-right .pillar-header h2 {
        color: #fff !important;
    }
    .pillar-right .pillar-features li,
    .pillar-right .pillar-features span {
        color: #cbd5e1 !important;
        opacity: 1 !important;
    }
    /* CTA buttons stay visible and tappable */
    .btn-pillar {
        opacity: 1 !important;
        font-size: 0.75rem !important;
        padding: 14px 24px !important;
        margin-top: 1.5rem !important;
    }
    /* Disable the desktop hover transforms entirely on mobile */
    .split-pillar:hover,
    .split-pillar:hover.pillar-left,
    .split-pillar:hover.pillar-right {
        background: inherit !important;
        transform: none !important;
    }
    /* Pillar icon visible on mobile */
    .pillar-icon {
        margin-bottom: 1rem !important;
    }
    .pillar-icon svg {
        opacity: 0.8 !important;
        width: 56px !important;
        height: 56px !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE FIXES — Services Section (holo carousel + terminal)
   Three problems being solved here:
   1. The 3D carousel rotation cramps cards at narrow widths → flatten
   2. Terminal box and carousel were overlapping → enforce vertical
      stack with proper spacing
   3. Cards' fixed sizes from older media queries → full-width
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* PARENT GRID: force vertical stack with clear spacing */
    .system-core-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        align-items: stretch !important;
    }

    /* Carousel container: KEEP the desktop 3D rotating carousel on mobile,
       just give it enough room for the enlarged front-facing card. */
    .holo-display {
        perspective: 900px !important;
        height: 300px !important;
        min-height: 300px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    /* Inner stage: keep the 3D rotation animation running */
    .holo-carousel-stage,
    #holoCarousel {
        transform-style: preserve-3d !important;
        animation: holoRotate 20s infinite linear !important;
        display: block !important;
        width: 240px !important;
        max-width: 240px !important;
        height: 170px !important;
        position: relative !important;
        margin: 0 auto !important;
    }
    /* Cards: absolutely stacked in 3D. Do NOT override `transform` — each card's
       rotateY()+translateZ() comes from its inline style (tuned by the responsive
       translateZ script), and overriding it here is what used to flatten them. */
    .holo-card {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 240px !important;
        max-width: 240px !important;
        height: 170px !important;
        min-height: 170px !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 1.25rem !important;
        margin: 0 !important;
        opacity: 1 !important;
    }
    /* On touch devices there is no real hover — neutralise the desktop hover
       scale so a stray tap can't yank a card out of its rotated position. */
    .holo-card .service-card__icon-wrapper {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 0.6rem !important;
    }
    .holo-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.25rem !important;
    }
    .holo-card span {
        font-size: 0.72rem !important;
    }

    /* Terminal box: full-size like desktop (was shrunk to ~190px), sits below carousel */
    .cmd-terminal {
        position: relative !important;
        height: 440px !important;
        min-height: 440px !important;
        max-height: none !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    /* Tighter content so all service lines fit, and scroll if they don't */
    .cmd-content {
        padding: 18px 18px 20px !important;
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .cmd-content .cmd-line { margin-bottom: 9px !important; }

    /* CTA bridge between sections — keep CTA fully visible on mobile */
    .system-cta-wrapper {
        margin-top: 40px !important;
        position: relative !important;
    }
}

.testimonials-nexus {
    margin-top: 80px;
    border-top: 1px solid #e2e8f0;
    padding-top: 60px;
}

.testimonials__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.testimonials__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
}

.testimonials__line {
    height: 1px;
    background: #e2e8f0;
    flex-grow: 1;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8fafc;
    /* Very light gray/white */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: #cbd5e1;
}

.testimonial__icon {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    /* Light Blue */
    color: #0284c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.testimonial__icon svg {
    width: 20px;
    height: 20px;
}

.testimonial__quote {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.testimonial__quote strong {
    color: #0284c7;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #cbd5e1;
}

.author__info {
    display: flex;
    flex-direction: column;
}

.author__name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.author__role {
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Fira Code', monospace;
}

/* =========================================
   SYSTEM FOOTER
   ========================================= */
/* =========================================
   UNIFIED COMMAND CENTER (Footer)
   ========================================= */
.footer-unified {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.unified-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Info | Form */
    gap: 60px;
    align-items: start;
}

/* LEFT PANEL */
.footer-panel-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__grid-compact {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

/* Social Icons */
.footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: #38bdf8;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.system-status-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer__bottom-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #475569;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__bottom-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer__bottom-mini a {
    color: #64748b;
    text-decoration: none;
}

.footer__bottom-mini a:hover {
    color: #94a3b8;
}


/* RIGHT PANEL: Embedded Terminal */
.terminal-embedded {
    margin: 0;
    background:
        radial-gradient(ellipse at center, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0.03) 40%, transparent 70%),
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        #0B1121;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    position: relative;
    overflow: hidden;

    /* Surface glow */
    box-shadow:
        0 0 30px rgba(56, 189, 248, 0.15),
        0 0 60px rgba(56, 189, 248, 0.1),
        inset 0 0 100px rgba(56, 189, 248, 0.05);

    animation: surfaceGlow 3s ease-in-out infinite alternate;
}

/* Glowing surface overlay */
.terminal-embedded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: innerPulse 4s ease-in-out infinite;
    z-index: 0;
}

/* Sweeping light effect */
.terminal-embedded::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(56, 189, 248, 0.03) 45%,
            rgba(56, 189, 248, 0.05) 50%,
            rgba(56, 189, 248, 0.03) 55%,
            transparent 60%);
    animation: sweepLight 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above effects */
.terminal-embedded>* {
    position: relative;
    z-index: 1;
}

/* Surface glow animation */
@keyframes surfaceGlow {
    0% {
        box-shadow:
            0 0 30px rgba(56, 189, 248, 0.15),
            0 0 60px rgba(56, 189, 248, 0.1),
            inset 0 0 100px rgba(56, 189, 248, 0.05);
    }

    100% {
        box-shadow:
            0 0 40px rgba(56, 189, 248, 0.2),
            0 0 80px rgba(56, 189, 248, 0.15),
            inset 0 0 120px rgba(56, 189, 248, 0.08);
    }
}

/* Inner pulse animation */
@keyframes innerPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Sweeping light animation */
@keyframes sweepLight {
    0% {
        transform: translateX(-30%) translateY(-30%) rotate(0deg);
    }

    100% {
        transform: translateX(30%) translateY(30%) rotate(360deg);
    }
}

/* Enhanced glow on hover */
.terminal-embedded:hover {
    box-shadow:
        0 0 50px rgba(56, 189, 248, 0.25),
        0 0 100px rgba(56, 189, 248, 0.18),
        inset 0 0 150px rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
}

/* Compact Form Tweaks */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.terminal-embedded .terminal-body {
    padding: 25px;
}

/* Re-use existing footer styles (Logo, Socials, Links) */
.footer__logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer__logo span {
    color: #38bdf8;
}

.footer__desc {
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer__links {
    list-style: none;
    padding: 0;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer__links a:hover {
    color: #38bdf8;
    transform: translateX(5px);
    display: inline-block;
}

/* Status Re-use */
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: blink 2s infinite;
}

.status-text {
    color: #10b981;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
}

.footer__location {
    font-size: 0.9rem;
    color: #64748b;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Contact Info Blocks */
.footer__contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__contact-block {
    padding: 0;
}

.footer__contact-text {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.footer__email {
    color: #38bdf8;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer__email:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Social Links Hover */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

/* Bottom Mini Links Hover */
.footer__bottom-mini a:hover {
    color: #38bdf8;
}

/* Form Input Focus States */
.terminal-form input:focus,
.terminal-form select:focus,
.terminal-form textarea:focus {
    outline: none;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Brighter Placeholders */
.terminal-form input::placeholder,
.terminal-form textarea::placeholder {
    color: #64748b;
}

/* Button Color - Cyan Theme */
.terminal-form button,
.btn-terminal-submit {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

.terminal-form button:hover,
.btn-terminal-submit:hover {
    background: #38bdf8 !important;
    color: #0f172a !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Form Value Proposition */
.form-value-prop {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.value-prop-text {
    color: #38bdf8;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Form Trust Signals */
.form-trust-signals {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.trust-item:hover {
    color: #94a3b8;
}

/* Responsive Unified */
@media (max-width: 900px) {
    .unified-grid {
        grid-template-columns: 1fr;
        /* Stack */
        gap: 50px;
    }

    .footer-panel-left {
        order: 2;
        /* Form FIRST on mobile? Or Last? usually form last is better for footer flows */
        order: 2;
    }

    .footer-panel-right {
        order: 1;
        /* Actually, let's keep form on top or bottom? User said "footer left, form right". On mobile, form usually goes above links if it's a CTA. */
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Mobile Hero Metrics - Prevent Overlap */
@media (max-width: 768px) {
    .hero__metric {
        width: 85px;
        height: 85px;
    }

    .hero__metric-value {
        font-size: 1rem;
    }

    .hero__metric-label {
        font-size: 0.55rem;
    }

    /* Reposition orbs to prevent overlap */
    .hero__metric--1 {
        top: 5%;
        right: 5%;
    }

    .hero__metric--2 {
        top: 5%;
        left: 5%;
    }

    /* 50+ Happy Clients - move higher to avoid overlap with 95% Retention */
    .hero__metric--3 {
        top: 38%;
        right: 2%;
    }

    .hero__metric--4 {
        bottom: 28%;
        left: 5%;
    }

    /* 95% Client Retention - keep at bottom right */
    .hero__metric--5 {
        bottom: 5%;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .hero__metric {
        width: 78px;
        height: 78px;
    }

    .hero__metric-value {
        font-size: 0.9rem;
    }

    .hero__metric-label {
        font-size: 0.5rem;
    }

    /* Further adjust positions on very small screens */
    .hero__metric--3 {
        top: 32%;
        right: 0%;
    }

    .hero__metric--5 {
        bottom: 8%;
        right: 2%;
    }
}

/* ══════════════════════════════════════════════
   GLOBAL FIXES & ENHANCEMENTS
   Added across all pages for consistency
   ══════════════════════════════════════════════ */

/* ─── Header / Logo Visibility Fix ─── */
.header .header__logo {
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.header--scrolled {
    background: rgba(10, 10, 26, 0.95) !important;
    backdrop-filter: blur(12px) !important;
}

/* ─── Global Hero Enhancements (Orbs & Particles) ─── */
.cs-hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cs-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 8s ease-in-out infinite;
}

.cs-hero-orb--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent);
    top: -100px;
    right: 10%;
    animation-delay: 0s;
}

.cs-hero-orb--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent);
    bottom: -50px;
    left: 5%;
    animation-delay: -3s;
    animation-duration: 10s;
}

.cs-hero-orb--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    top: 40%;
    right: 30%;
    animation-delay: -6s;
    animation-duration: 12s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.1); }
    50% { transform: translate(-15px, 20px) scale(0.95); }
    75% { transform: translate(25px, 15px) scale(1.05); }
}

.cs-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cs-hero-particles span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 3px;
    height: 3px;
    background: rgba(96, 165, 250, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.4);
    animation: particleFloat var(--d) ease-in-out infinite;
    animation-delay: var(--s);
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.3); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   INDUSTRIES SECTION — Neon Glass Bento
   ═══════════════════════════════════════════════ */

.industries-section {
    position: relative;
    padding: 3.5rem 0 3rem;
    background: #050810;
    overflow: hidden;
}

/* Background Atmosphere */
.ind-sec__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ind-sec__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.ind-sec__glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent 70%);
    top: -20%;
    left: -10%;
}

.ind-sec__glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
    bottom: -10%;
    right: -10%;
}

.ind-sec__glow--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05), transparent 70%);
    top: 40%;
    left: 45%;
}

/* Header */
.ind-sec__header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.ind-sec__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.ind-sec__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ind-sec__title-accent {
    background: linear-gradient(135deg, #38bdf8, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid Layout */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    perspective: 1200px;
}

/* Stagger layout for a unique floating cascade */
.ind-card:nth-child(2),
.ind-card:nth-child(5) {
    margin-top: 3rem;
}

/* Glass Card */
.ind-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: 1.25rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    
    /* Using distinct transform properties for independent animations */
    scale: var(--hover-scale, 1);
    transition: scale 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease, 
                background 0.4s ease, 
                box-shadow 0.4s ease;
    
    /* Entry & Continuous Float Animation */
    opacity: 0;
    transform: translateY(20px) rotateX(10deg);
    animation: 
        indCardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        indFloat 6s ease-in-out infinite alternate;
    animation-delay: var(--delay), calc(var(--delay) + 0.8s);
}

@keyframes indCardReveal {
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes indFloat {
    0% { translate: 0 0px; box-shadow: 0 10px 30px -15px rgba(0,0,0,0.3); }
    100% { translate: 0 -12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
}

/* Card Background Mesh/Glow */
.ind-card__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* Sweeping Shine */
.ind-card__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    z-index: 1;
    pointer-events: none;
}

.ind-card:hover .ind-card__shine {
    animation: indShine 0.8s ease-in-out;
}

@keyframes indShine {
    100% { left: 200%; }
}

/* Icon Area */
.ind-card__icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ind-card__icon-glow {
    position: absolute;
    inset: -10px;
    background: var(--accent);
    filter: blur(20px);
    opacity: 0.2;
    border-radius: 50%;
    transition: opacity 0.4s ease;
}

.ind-card__icon-wrap svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

/* Typography & Content */
.ind-card__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.ind-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.ind-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ind-card__desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    max-width: 85%;
    transition: color 0.3s ease;
}

.ind-card__arrow {
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Hover States */
.ind-card:hover {
    --hover-scale: 1.03; /* Overrides default scale */
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    background: rgba(255, 255, 255, 0.05);
    /* Float shadow is handled by @indFloat animation, we just add glow here */
}

.ind-card:hover .ind-card__bg {
    opacity: 1;
}

.ind-card:hover .ind-card__icon-wrap {
    transform: scale(1.05);
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.ind-card:hover .ind-card__icon-glow {
    opacity: 0.5;
}

.ind-card:hover .ind-card__icon-wrap svg {
    transform: scale(1.1);
}

.ind-card:hover .ind-card__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.ind-card:hover .ind-card__desc {
    color: #e2e8f0;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ind-card:nth-child(2),
    .ind-card:nth-child(5) {
        margin-top: 0; /* Reset desktop stagger */
    }
    /* Stagger right column on tablet */
    .ind-card:nth-child(even) {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .industries-section {
        padding: 5rem 0 4rem;
    }

    .ind-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .ind-card__icon-wrap {
        width: 60px;
        height: 60px;
    }

    .ind-card__icon-wrap svg {
        width: 28px;
        height: 28px;
    }

    .ind-card__title {
        font-size: 1.15rem;
    }
}

@media (max-width: 640px) {
    .ind-grid {
        grid-template-columns: 1fr;
    }
    
    .ind-card:nth-child(even) {
        margin-top: 0; /* Reset stagger on mobile */
    }

    .ind-sec__title {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════ */

/* --- Pillars: Stack on mobile --- */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .split-pillar {
        flex: none;
        min-height: 350px;
        padding: 40px 6% !important;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .split-pillar:last-child {
        border-bottom: none;
    }

    .pillar-expanded {
        max-height: none !important;
    }

    .pillar-body, .pillar-features {
        font-size: 0.85rem !important;
    }
}

/* --- 3D Service Carousel: Scale down for mobile, keep rotation --- */
@media (max-width: 768px) {
    .system-core-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Scale the 3D display for mobile screens */
    .holo-display {
        perspective: 800px;
        height: 280px !important;
    }

    .holo-carousel-stage {
        width: 220px;
        height: 160px;
        /* Keep the rotation animation */
    }

    /* Scale cards down + hide backface to prevent mirrored text */
    .holo-card {
        width: 200px !important;
        height: 150px !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    .holo-card h3 {
        font-size: 0.95rem !important;
    }

    .holo-card span {
        font-size: 0.65rem !important;
    }

    .holo-card .service-card__icon-wrapper {
        width: 42px !important;
        height: 42px !important;
    }

    /* Terminal: full-size like desktop */
    .cmd-terminal {
        height: 440px !important;
        min-height: 440px !important;
    }
}

/* --- Logo Strip: Smaller on mobile --- */
@media (max-width: 768px) {
    .logos-section__track img,
    .logos-section__track svg {
        max-height: 28px;
    }
}

/* --- Footer: Stack properly --- */
@media (max-width: 768px) {
    .footer__grid,
    .footer-links-grid {
        grid-template-columns: 1fr !important;
    }

    .footer__social-links a svg {
        width: 18px;
        height: 18px;
    }

    .footer__contact-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- General overflow prevention --- */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    section, .container {
        overflow-x: hidden;
    }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE POLISH — 480px / 375px / 320px safety nets
   Covers the gap below the existing 768px breakpoints
   ══════════════════════════════════════════════════ */

/* ── 480px: shrink tall sections and heavy components ── */
@media (max-width: 480px) {

    /* Section vertical padding: cut 100-120px → 60px */
    .system-core-section { padding: 64px 0; min-height: auto; }
    .quantum-section     { padding: 60px 0; }
    .contact-section     { padding: 60px 0; }
    .footer-unified      { padding: 50px 0 28px; }

    /* Holo display: keep the 3D rotating carousel (see mobile carousel block above),
       scaled down a touch more for the smallest phones. */
    .holo-display          { height: 260px !important; min-height: 260px !important; perspective: 800px !important; }
    .holo-carousel-stage,
    #holoCarousel          { width: 210px !important; max-width: 210px !important; height: 150px !important; }
    .holo-card             { width: 210px !important; max-width: 210px !important; height: 150px !important; min-height: 150px !important; padding: 1rem !important; }
    .holo-card h3          { font-size: 0.95rem !important; }
    .holo-card span        { font-size: 0.68rem !important; }
    .cmd-terminal          { height: 420px !important; min-height: 420px !important; }

    /* Logo marquee: narrow fade so logos aren't hidden by 100px gradient */
    .logos-marquee::before,
    .logos-marquee::after  { width: 32px; }
    .logos-marquee__item   { width: 140px; height: 60px; padding: 0 10px; }
    .logos-marquee__item img { max-height: 44px; max-width: 110px; }

    /* Quantum cards: single column */
    .quantum-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

    /* Contact terminal: tighter padding */
    .contact-terminal { padding: 1.5rem !important; }

    /* Section heading rhythm */
    .section-label { font-size: 0.65rem; letter-spacing: 0.1em; }
}

/* ── 375px: tightest phones (iPhone SE, budget Android) ── */
@media (max-width: 375px) {

    /* Container: reduce side padding from 1.5rem → 1rem */
    .container { padding: 0 1rem; }

    /* Buttons: smaller, allow wrapping so they never overflow */
    .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
        white-space: normal;
        text-align: center;
    }

    /* Hero CTA row: wrap buttons vertically */
    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero__ctas .btn { width: 100%; justify-content: center; }

    /* Section headings: enforce a readable cap */
    .section-heading,
    .case-section__heading,
    .ind-sec__title,
    .about-hero__title,
    .quantum-title { font-size: clamp(1.5rem, 7.5vw, 2rem) !important; }

    /* Case study cards: reduce padding */
    .case-card { padding: 1rem; }
    .case-card__title { font-size: 1rem; }

    /* Footer links: tighter */
    .footer__heading { font-size: 0.75rem; }
    .footer-links-grid { gap: 24px; }

    /* Process timeline: single column steps */
    .process__steps { gap: 1.5rem; }
}

/* ── 320px: absolute floor ── */
@media (max-width: 320px) {

    /* Ensure nav panel never exceeds viewport (belt-and-suspenders) */
    .header__nav-list { width: 88vw; padding: 70px 1.25rem 1.25rem; }

    /* Typography: scale down another notch */
    html { font-size: 15px; }

    .container { padding: 0 0.875rem; }

    /* Hide decorative orbits on very small screens */
    .neural-orbit { display: none; }
}