:root {
    --ec-primary: #4361ee;
    --ec-secondary: #7209b7;
    --ec-accent: #f72585;
    --ec-dark: #050816;
    --ec-panel: rgba(20, 20, 35, 0.6);
    --ec-border: rgba(255, 255, 255, 0.08);
    --ec-gradient: linear-gradient(135deg, var(--ec-primary), var(--ec-accent));
}

/* Global Overrides for this page */
body {
    background-color: var(--ec-dark);
}

/* 1. HERO: THE INFINITE STREAM */
.vc-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

#tunnelCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.vc-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
}

.vc-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--ec-primary);
    background: rgba(67, 97, 238, 0.1);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.vc-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.vc-title .gradient-text {
    background: var(--ec-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vc-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.vc-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--ec-primary), transparent);
    transform-origin: top;
}

/* 2. ARCHITECTURE: X-RAY INSPECTION */
.vc-xray {
    padding: 150px 0;
    position: relative;
}

.vc-header {
    text-align: center;
    margin-bottom: 80px;
}

.vc-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.vc-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.xray-interface {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--ec-border);
    background: #000;
}

.xray-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.xray-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-surface {
    z-index: 1;
}

.view-internal {
    z-index: 2;
    /* This will be clipped by JS/CSS */
    clip-path: inset(0 100% 0 0); /* Initial state */
    filter: grayscale(100%) contrast(1.2) brightness(0.8); /* X-ray look */
}

.view-internal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(67, 97, 238, 0.1);
    background-image: linear-gradient(rgba(67, 97, 238, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 97, 238, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.xray-scanner {
    position: absolute;
    top: 0;
    left: 0; /* Moves with clip-path */
    width: 4px;
    height: 100%;
    background: var(--ec-accent);
    z-index: 10;
    box-shadow: 0 0 20px var(--ec-accent);
}

.view-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    padding: 6px 12px;
    border: 1px solid var(--ec-border);
    font-family: monospace;
    font-size: 0.8rem;
    color: #fff;
    border-radius: 4px;
}

/* 3. METHODOLOGY: ASSEMBLY LINE */
.vc-assembly {
    padding: 0;
    height: 100vh; /* Force full height for pinning */
    display: flex;
    align-items: center; /* Vertically center the track */
    overflow: hidden; /* For horizontal scroll */
    background: var(--ec-dark);
}

.assembly-track {
    display: flex;
    gap: 40px;
    padding-left: 10vw; /* Start offset */
    padding-right: 10vw; /* End offset */
    width: max-content;
}

.assembly-intro {
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.assembly-intro h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.assembly-stage {
    width: 400px;
    height: 500px;
    background: var(--ec-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.assembly-stage:hover {
    border-color: var(--ec-primary);
}

.stage-id {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 20px;
    right: 30px;
}

.assembly-stage h3 {
    font-size: 1.5rem;
    margin-top: auto;
    margin-bottom: 10px;
}

.assembly-stage p {
    color: var(--color-text-muted);
}

.stage-visual {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--ec-primary);
}

/* 4. TECH STACK: MODULE RACK */
.vc-rack {
    padding: 150px 0;
}

.rack-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.rack-unit {
    background: #111;
    border: 1px solid #333;
    height: 80px;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    perspective: 1000px;
}

.rack-unit.active {
    border-color: var(--ec-primary);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.2);
    transform: translateX(10px);
}

.rack-unit:hover {
    transform: translateX(20px); /* Eject effect */
}

.unit-face {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1a1a1a, #222);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-family: monospace;
    font-weight: 600;
    border-left: 4px solid var(--ec-primary);
    z-index: 2;
}

.rack-unit.active .unit-face {
    background: #222;
    color: #fff;
}

.rack-unit[data-tech="stripe"] .unit-face { border-color: #635bff; }
.rack-unit[data-tech="algolia"] .unit-face { border-color: #003dff; }
.rack-unit[data-tech="klaviyo"] .unit-face { border-color: #25e797; }

.unit-drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ec-primary);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

/* 5. PERFORMANCE: MISSION CONTROL */
.vc-control {
    padding: 150px 0;
}

.control-panel {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.panel-header h3 {
    font-family: monospace;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.status-light.green {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 2s infinite;
}

.panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    height: 400px;
}

.panel-widget {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.graph-widget {
    grid-row: span 3;
    position: relative;
}

.graph-widget canvas {
    width: 100% !important;
    height: 100% !important;
}

.metric-widget .label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.metric-widget .value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.metric-widget .value.stable { color: var(--ec-accent); }

/* 6. INTEGRATIONS: NEURAL MESH */
.vc-neural {
    position: relative;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#neuralCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.neural-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none; /* Let clicks pass to canvas if needed */
}

.neural-header {
    margin-bottom: 60px;
}

.neural-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.neural-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.neural-system {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 40px auto 0;
}

.core-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 10;
    pointer-events: auto;
}

.core-inner {
    width: 100%;
    height: 100%;
    background: var(--ec-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 40px rgba(67, 97, 238, 0.4);
    position: relative;
    z-index: 2;
}

.core-ring {
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.satellite-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100px;
    pointer-events: auto;
}

.sat-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.sat-2 { top: 50%; right: 0%; transform: translateY(-50%); }
.sat-3 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.sat-4 { top: 50%; left: 0%; transform: translateY(-50%); }

.sat-icon {
    width: 60px;
    height: 60px;
    background: var(--ec-bg-card);
    border: 1px solid var(--ec-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.satellite-node:hover .sat-icon {
    border-color: var(--ec-primary);
    color: #fff;
    background: rgba(67, 97, 238, 0.1);
    transform: scale(1.1);
}

.sat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* 7. CTA: DEPLOYMENT TERMINAL */
.vc-launch {
    padding: 150px 0;
}

.launch-terminal {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.t-dots {
    display: flex;
    gap: 6px;
}

.t-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.t-status {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--ec-accent);
    letter-spacing: 1px;
}

.terminal-content {
    padding: 60px;
    text-align: center;
}

.terminal-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.terminal-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-deploy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ec-primary);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
}

.btn-deploy:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.5);
    background: var(--ec-secondary);
}

/* FAQ */
.wd-faq {
    padding: 100px 0;
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.faq-intro h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.faq-intro p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--ec-border);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-trigger i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger i {
    transform: rotate(45deg);
    color: var(--ec-primary);
}

.faq-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-body {
    padding-bottom: 20px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .xray-interface {
        height: 400px;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .graph-widget {
        grid-row: auto;
        height: 250px;
    }
    
    .neural-system {
        width: 100%;
        height: 400px;
    }
    
    .faq-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vc-title {
        font-size: 3rem;
    }

    .vc-hero {
        padding-top: 100px;
    }

    .vc-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .xray-interface {
        height: 300px;
    }

    .assembly-stage {
        width: 300px;
        height: 400px;
        padding: 30px;
    }

    .stage-id {
        font-size: 3rem;
    }

    .stage-visual {
        font-size: 3rem;
    }

    .rack-container {
        grid-template-columns: 1fr;
    }

    .neural-system {
        height: 350px;
        margin-top: 20px;
    }

    .core-node {
        width: 80px;
        height: 80px;
    }

    .core-inner {
        font-size: 1.5rem;
    }

    .satellite-node {
        width: 80px;
    }

    .sat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .launch-terminal {
        border-radius: 16px;
    }

    .terminal-content {
        padding: 40px 20px;
    }

    .terminal-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .vc-title {
        font-size: 2.5rem;
    }

    .assembly-stage {
        width: 260px;
        height: 350px;
    }

    .neural-system {
        height: 300px;
        width: 100%; 
        max-width: 340px;
        margin: 20px auto 0;
    }
    
    .core-node {
        width: 70px;
        height: 70px;
    }

    .core-inner {
        font-size: 1.2rem;
    }

    .satellite-node {
        width: 70px;
    }

    .sat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .sat-label {
        font-size: 0.7rem;
    }
    
    /* Tighter positioning for mobile */
    .sat-1 { top: 0; }
    .sat-3 { bottom: 0; }
    .sat-2 { right: 0; }
    .sat-4 { left: 0; }
}