/* Dual Engine Homepage Styles */
/* Load this AFTER styles.css */

/* --- Dual Engine Hero --- */
.hero__headline-dual {
    font-size: var(--font-size-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    background: linear-gradient(to right, #0ea5e9, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subheadline-dual {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-8);
}

/* --- Dual Engine Pillars --- */
.dual-engine-section {
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
}

.dual-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.dual-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.dual-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.dual-card__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
    color: var(--color-white);
}

.dual-card__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
    display: block;
}

.outcome-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: var(--font-size-sm);
    margin-top: var(--space-4);
}

/* Neural Network Image Node */
.neural-node--image {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero Badge (Left) --- */
.hero__badge-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.4));
}

.hero__badge-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* --- Badge Eyebrow (Clean Image) --- */
.hero__badge-eyebrow {
    margin-bottom: var(--space-6);
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.2));
    /* Removed failed capsule style */
}

.hero__badge-img-small {
    height: 70px;
    /* Decent size for logo alone */
    width: auto;
    object-fit: contain;
}

/* Hide old badge text */
.hero__badge-text {
    display: none;
}

/* Hide old badge layouts */
.hero__badge-left,
.hero__badge-column {
    display: none;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .neural-network {
        transform: scale(0.8);
    }
}

/* --- Neural Network Container --- */
.neural-network {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ensure no background image (robot) bleeds through from styles.css */
    background: none !important;
}

/* --- Neural Core (Center Hub) --- */
.neural-core {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}

.neural-core__inner {
    z-index: 2;
}

.neural-core__text {
    font-size: 14px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.neural-core__pulse {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- Neural Network Chips (Glass Pills) --- */
.neural-node--orb {
    position: absolute;
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    align-items: center;
    gap: 12px;
    z-index: 5;
    animation: float-badge 6s ease-in-out infinite;
    transform-origin: center;

    /* Glass Chip Style */
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Pill Shape */
    padding: 8px 16px 8px 8px;
    /* Extra padding right for text */
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    min-width: 160px;
    /* Ensure breadth */
}

.neural-node--orb:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.2);
    z-index: 20;
}

.neural-orb__icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
}

/* Fix Icon Hover Scale (remove it) */
.neural-node--orb:hover .neural-orb__icon {
    transform: none;
    box-shadow: none;
}

.neural-orb__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left Align Text */
    text-align: left;
    opacity: 1;
    /* Always Visible */
    background: transparent;
    padding: 0;
}

.neural-orb__title {
    font-size: 12px;
    /* Bigger font */
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.neural-orb__metric {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 500;
}

.neural-node__img {
    width: 60%;
    height: auto;
    object-fit: contain;
}

.neural-node__pulse {
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- Business Impact Section --- */
.impact-section {
    padding: var(--space-12) 0;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.impact-metric {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.impact-label {
    font-size: var(--font-size-lg);
    color: var(--color-white);
    margin-top: var(--space-2);
}

.impact-sub {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .dual-grid,
    .impact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* --- Salesforce Cloud Partner Badge --- */
.hero__sf-cloud {
    position: absolute;
    top: 12%;
    /* Safe distance from headline */
    left: 6%;
    /* Slightly more left for breathing room */
    z-index: 20;
    width: 180px;
    height: auto;
    /* Floating Animation */
    animation: cloud-float-horizontal 6s ease-in-out infinite;
    /* Drop shadow on container */
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.sf-cloud-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sf-cloud-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Remove SVG specific styles */
.sf-cloud-svg {
    display: none;
}

.sf-cloud-content {
    position: absolute;
    top: 55%;
    /* Adjusted for image center visually */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 75%;
}

.sf-logo-text {
    height: 28px;
    /* Slightly larger for the vector logo */
    width: auto;
    margin-bottom: 3px;
    display: block;
}

.sf-partner-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-top: 2px;
}

.sf-partner-type span {
    font-family: 'Salesforce Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #032d60;
    letter-spacing: 0.8px;
    /* Slightly wider for premium look */
    text-transform: uppercase;
}

@keyframes cloud-float-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-15px);
    }
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .hero__sf-cloud {
        width: 130px;
        top: 10%;
        left: 5%;
    }

    .sf-logo-text {
        height: 18px;
    }

    .sf-partner-type span {
        font-size: 9px;
    }
}

/* --- NEW: Split Hero 50/50 Layout --- */
.hero__split-container {
    display: flex;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

/* Split Sections */
.hero__split-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.5s ease;
    overflow: hidden;
    cursor: crosshair;
}

/* Background Gradients */
.hero__split-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.hero__split-left .hero__split-bg {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.hero__split-right .hero__split-bg {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Hover Interaction: Expand slightly */
.hero__split-section:hover {
    flex: 1.1;
}

.hero__split-section:hover .hero__split-bg {
    opacity: 0.6;
}

/* --- Center Icons (Default State) --- */
.hero__center-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.hero__icon-img {
    width: 100px;
    height: auto;
}

/* Hide/Shrink Icon on Hover to reveal Card */
.hero__split-section:hover .hero__center-icon {
    transform: scale(0.5) translateY(-100px);
    opacity: 0;
}

/* --- Holographic Projector Beam --- */
.hero__projector-beam {
    position: absolute;
    top: 50%;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: all 0.4s ease-out;
    z-index: 9;
    pointer-events: none;
}

/* Left Beam: From Left Side */
.hero__split-left .hero__projector-beam {
    left: 0;
    transform-origin: left;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
}

/* Right Beam: From Right Side */
.hero__split-right .hero__projector-beam {
    right: 0;
    transform-origin: right;
    background: linear-gradient(270deg, transparent, #a855f7, transparent);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Beam Animation on Hover */
.hero__split-section:hover .hero__projector-beam {
    width: 50%;
    /* Shoot to center */
    opacity: 1;
}

/* --- Holographic Card (The Reveal) --- */
.hero__hologram-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8) rotateX(10deg);
    width: 80%;
    max-width: 400px;
    padding: var(--space-8);

    /* Glassmorphism */
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

    opacity: 0;
    pointer-events: none;
    /* Initially non-interactive */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
    /* Wait for beam */
    z-index: 10;

    text-align: center;
    color: white;
}

/* Specific Card Borders */
.hero__split-left .hero__hologram-card {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.15);
}

.hero__split-right .hero__hologram-card {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

/* Hologram Appear State */
.hero__split-section:hover .hero__hologram-card {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    pointer-events: auto;
}

.hero__hologram-badge {
    width: 120px;
    margin-top: var(--space-4);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* --- Mobile Stack --- */
@media (max-width: 768px) {
    .hero__split-container {
        flex-direction: column;
        height: auto;
    }

    .hero__split-section {
        min-height: 400px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* On mobile, maybe show cards by default or tap to reveal? 
       For now keeping hover logic but easy to tap */
    .hero__center-icon {
        transform: scale(0.8);
    }
}