/* Product Pages Styles - Unified with Main Site */

.product-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start; /* Align to top to respect padding */
    padding: 240px 60px 100px; /* Specific top padding */
    min-height: auto;
    max-width: 1600px;
    margin: 0 auto;
}

.product-hero-content h1 {
    font-size: 72px; /* Unified with main H1 */
    line-height: 1.1;
    margin-bottom: 32px;
    font-weight: 800;
    letter-spacing: -2px;
}

.product-hero-content .lead {
    font-size: 18px; /* Unified with main subtitle */
    color: var(--light-gray);
    margin-bottom: 48px;
    max-width: 600px;
    line-height: 1.8;
}

/* Container Alignment Override for Product Pages */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Tech Specs - Correct Implementation */
.tech-specs-wrapper {
    background: #080808;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 80px 0;
    padding: 40px 0;
}

.tech-specs-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
}

/* CSS Architectural Diagrams */
.arch-diagram {
    position: relative;
    height: 400px;
    width: 100%;
    perspective: 1000px;
}

/* Enhanced Control Hub Visual */
.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    border: 1px solid rgba(0, 98, 51, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(0, 98, 51, 0.15);
    z-index: 10;
}

.hub-center::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--green), transparent 60%);
    animation: spin 4s linear infinite;
    opacity: 0.5;
    z-index: -1;
}

.core-icon {
    color: var(--green);
    filter: drop-shadow(0 0 10px var(--green));
    animation: pulse 3s ease-in-out infinite;
}

.hub-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.orbit-1 { width: 220px; height: 220px; border-style: solid; border-color: rgba(255,255,255,0.08); }
.orbit-2 { width: 340px; height: 340px; border-style: dashed; animation: spin 60s linear infinite; }
.orbit-3 { width: 460px; height: 460px; border: 1px solid rgba(255,255,255,0.03); }

/* Orbiting Nodes Container */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    animation: rotateContainer 40s linear infinite;
}

.hub-node {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    animation: counterSpin 40s linear infinite;
}

.hub-node svg {
    opacity: 0.8;
    transition: all 0.3s;
}

.hub-node:hover {
    border-color: var(--green);
    box-shadow: 0 0 30px rgba(0, 98, 51, 0.3);
    transform: scale(1.1);
    z-index: 20;
}

.hub-node:hover svg {
    opacity: 1;
    color: var(--green);
}

.floating-query-badge {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 20;
}

@keyframes floatBadge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.particle-1 { animation-delay: 0s; }
.particle-2 { animation-delay: 0.8s; }
.particle-3 { animation-delay: 1.6s; }

.node-openai { top: 0; left: 50%; margin-left: -24px; margin-top: -24px; transform: none !important; }
.node-azure { top: 50%; right: 0; margin-right: -24px; margin-top: -24px; transform: none !important; }
.node-anthropic { bottom: 0; left: 50%; margin-left: -24px; margin-bottom: -24px; transform: none !important; }
.node-vertex { top: 50%; left: 0; margin-left: -24px; margin-top: -24px; transform: none !important; }
.node-mistral { top: 15%; right: 15%; margin-top: -24px; margin-right: -24px; transform: none !important; }

@keyframes rotateContainer {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes counterSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Chat Data Visual Enhanced */
.db-stack {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    z-index: 10;
}

.db-layer {
    height: 35px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.db-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 98, 51, 0.2), transparent);
    transform: translateX(-100%);
    animation: dbScan 3s ease-in-out infinite;
}

.db-layer:nth-child(1) { width: 100%; animation: pulseLayer 4s infinite; }
.db-layer:nth-child(2) { width: 95%; margin: 0 auto; animation: pulseLayer 4s infinite 1s; }
.db-layer:nth-child(3) { width: 90%; margin: 0 auto; animation: pulseLayer 4s infinite 2s; }
.db-layer:nth-child(4) { width: 85%; margin: 0 auto; animation: pulseLayer 4s infinite 3s; }

@keyframes pulseLayer {
    0%, 100% { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
    50% { border-color: rgba(0, 98, 51, 0.5); box-shadow: 0 0 20px rgba(0, 98, 51, 0.2); }
}

@keyframes dbScan {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.data-flow-particles {
    position: absolute;
    bottom: 160px;
    left: 50%;
    width: 2px;
    height: 180px;
    background: linear-gradient(to top, rgba(0, 98, 51, 0.3), transparent);
    transform: translateX(-50%);
}

.flow-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--green);
    animation: dataFlow 2s linear infinite;
    opacity: 0;
}

.particle-1 { animation-delay: 0s; }
.particle-2 { animation-delay: 0.6s; }
.particle-3 { animation-delay: 1.2s; }

@keyframes dataFlow {
    0% { bottom: 0; opacity: 0; transform: translateX(-50%) scale(0.5); }
    20% { opacity: 1; transform: translateX(-50%) scale(1); }
    80% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { bottom: 100%; opacity: 0; transform: translateX(-50%) scale(0.5); }
}

/* Bento Grid for Features */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    margin-top: 80px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-icon {
    font-size: 32px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.bento-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--white);
}

.bento-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* Technical Specs Bar */
.tech-specs {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    background: #080808;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 80px 0;
}

.spec-item {
    text-align: center;
}

.spec-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.spec-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .product-hero-split {
        grid-template-columns: 1fr;
        padding: 140px 5% 60px; /* Reduced top padding slightly */
        margin-top: 0;
        text-align: center;
    }
    
    .container, .tech-specs-container {
        padding: 0 5%;
    }
    
    .product-hero-content h1 {
        font-size: 36px; /* Slightly smaller for better fit */
    }
    
    .tech-specs-container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    /* Scale down architecture diagram for mobile */
    .arch-diagram {
        transform: scale(0.7);
        transform-origin: center top;
        height: 300px; /* Adjust height after scaling */
        margin-top: -20px;
    }

    .visual-dashboard {
        width: 100% !important;
        max-width: 100% !important;
    }

    .orbit-1 { width: 200px; height: 200px; }
    .orbit-2 { width: 280px; height: 280px; } /* Fits within 320px width */

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large, .bento-tall {
        grid-column: auto;
        grid-row: auto;
    }
}