/* Page Specific Styles */

/* Roadmap Visuals */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--neon-green));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.6);
    /* Glass effect */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Left/Right Alternating */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
    /* Push to left */
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    /* Push to right */
}

/* Dots */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tech-void);
    border: 4px solid var(--primary-blue);
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-right: 0;
    }

    .timeline-dot {
        left: 20px;
    }
}

/* Maturity Matrix Table */
.matrix-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Force scroll on mobile */
}

.matrix-table th,
.matrix-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.matrix-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.matrix-table td {
    background: rgba(255, 255, 255, 0.02);
    color: #cbd5e1;
    vertical-align: top;
}

.matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.matrix-level-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Level Colors */
.level-1 {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.level-2 {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.level-3 {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.level-4 {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
}

.level-5 {
    background: rgba(34, 197, 94, 0.2);

    /* Visual Placeholders */
    .visual-placeholder {
        width: 100%;
        height: 200px;
        background: rgba(0, 0, 0, 0.3);
        border: 1px dashed rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-bottom: 1.5rem;
        position: relative;
        overflow: hidden;
    }

    .visual-placeholder svg {
        width: 48px;
        height: 48px;
        opacity: 0.5;
        margin-bottom: 1rem;
    }

    .visual-placeholder span {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.5);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    /* Agent Cards */
    .agent-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .agent-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0.5rem;
        padding: 1rem;
        text-align: center;
        transition: all 0.3s ease;
    }

    .agent-card:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
        border-color: rgba(59, 130, 246, 0.3);
    }

    .agent-icon {
        width: 32px;
        height: 32px;
        margin: 0 auto 0.5rem;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-blue);
    }

    /* Micro Demo */
    .micro-demo-container {
        padding: 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 0.5rem;
        margin-top: 1rem;
        text-align: center;
    }

    .demo-screen {
        height: 120px;
        background: #0f172a;
        border-radius: 4px;
        margin-bottom: 1rem;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .defect-overlay {
        position: absolute;
        inset: 0;
        background: rgba(239, 68, 68, 0.2);
        border: 2px solid #ef4444;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    opacity: 1;
}

/* Architecture Diagram */
.layer-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.module-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Page Specifics */
.product-hero {
    /* Specific overrides if needed, mostly reuses standard sections */
}

.pattern-grid-lg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}