/* Landing Page Specific Styles */

:root {
    --vyc-data-blue: #4B5563; /* Slate-like blue for data/graphs */
    --vyc-warning-red: #EF4444; /* Soft red for "Overpriced" */
    --vyc-success-green: #10B981; /* Green for "Good Deal" */
    --vyc-accent-orange: #F59E0B; /* Orange for pulsing target */
}

/* Hero Section Updates */
.vyc-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.vyc-visual-abstract {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 30px -5px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.6);
    padding: 20px;
}

.vyc-visual-abstract::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
}

.vyc-visual-abstract canvas {
    border-radius: 12px;
}

/* Interactive Hook (Car A vs Car B) */
.vyc-vs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}

.vyc-car-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    position: relative;
}

.vyc-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

.vyc-car-card.winner {
    border-color: var(--vyc-success-green) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.vyc-car-card.loser {
    opacity: 0.6;
}

.vyc-vs-badge {
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--muted);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Scrollytelling Section */
.vyc-scrolly-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

.vyc-scrolly-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* More width for the chart */
    gap: 60px;
    align-items: start;
    position: relative;
    padding-bottom: 10vh;
}

.vyc-scrolly-text {
    padding-top: 10vh;
}

.vyc-scrolly-step {
    min-height: 40vh; /* Reduced height for tighter scroll */
    opacity: 0.3;
    transition: opacity 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.vyc-scrolly-step h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--vyc-data-blue);
}

.vyc-scrolly-step p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6B7280;
}

.vyc-scrolly-step.active {
    opacity: 1;
    transform: translateX(10px); /* Subtle movement on activation */
    transition: all 0.5s ease;
}

.vyc-scrolly-visual {
    position: sticky;
    top: 37vh;
    height: 25vh; /* Reduced to half */
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 1px solid rgba(229, 231, 235, 0.7);
}

.vyc-scrolly-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%);
    border-radius: 20px 20px 0 0;
}

.vyc-scrolly-visual canvas {
    border-radius: 12px;
}

/* Buyer/Seller Toggle */
.vyc-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.vyc-toggle-switch {
    background: #e5e7eb;
    border-radius: 30px;
    padding: 4px;
    display: flex;
    position: relative;
    cursor: pointer;
}

.vyc-toggle-option {
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 2;
    transition: color 0.3s;
}

.vyc-toggle-option.active {
    color: #fff;
}

.vyc-toggle-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 50%; /* Adjust based on option width */
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 25px;
    transition: transform 0.3s;
}

/* Mock Dashboard Cards */
.vyc-mock-dashboard {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.vyc-mock-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    text-align: left;
}

.vyc-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.vyc-mock-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vyc-mock-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.vyc-mock-badge.neutral {
    background: #e0f2fe;
    color: #075985;
}

.vyc-mock-score {
    font-weight: 800;
    color: var(--vyc-data-blue);
}

.vyc-mock-title {
    font-weight: 600;
    color: #6b7280;
}

.vyc-mock-price-row {
    margin-bottom: 24px;
}

.vyc-mock-price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 8px;
}

.vyc-mock-price-sub {
    color: #6b7280;
    font-size: 1rem;
}

.vyc-mock-bar-container {
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    position: relative;
    margin-bottom: 24px;
}

.vyc-mock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 6px;
}

.vyc-mock-marker {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vyc-mock-marker::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #111827;
}

.vyc-mock-savings {
    background: #f0fdf4;
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.vyc-mock-prediction {
    display: flex;
    gap: 12px;
}

.vyc-mock-prediction-item {
    flex: 1;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vyc-mock-prediction-item span {
    font-size: 0.8rem;
    color: #6b7280;
}

.vyc-mock-prediction-item strong {
    font-size: 1.1rem;
    color: #111827;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .vyc-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .vyc-vs-grid {
        grid-template-columns: 1fr;
    }
    
    .vyc-vs-badge {
        margin: -20px auto;
    }
    
    .vyc-scrolly-container {
        grid-template-columns: 1fr;
    }
    
    .vyc-scrolly-visual {
        position: relative;
        top: 0;
        height: 300px;
        margin-bottom: 40px;
    }
}

/* Stats Section Styling */
.vyc-stats {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.vyc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.vyc-stat-item {
    padding: 32px 24px;
    background: #f9fafb;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.vyc-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    background: #fff;
    border-color: #e5e7eb;
}

.vyc-stat-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #e0f2fe;
    color: #0284c7;
}

.vyc-stat-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

/* Specific colors for different stats */
.vyc-stat-item:nth-child(1) .vyc-stat-icon-wrapper {
    background: #dbeafe;
    color: #2563eb;
}

.vyc-stat-item:nth-child(2) .vyc-stat-icon-wrapper {
    background: #dcfce7;
    color: #16a34a;
}

.vyc-stat-item:nth-child(3) .vyc-stat-icon-wrapper {
    background: #fef3c7;
    color: #d97706;
}

.vyc-stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.vyc-stat-item p {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}
