﻿/* Vulnerability Intelligence Page Styles */
/* Scoped to avoid conflicts with header.css */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted) / 0.3) 50%, hsl(var(--background)) 100%);
    padding: 5rem 0 8rem;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(128, 128, 128, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.04) 1px, transparent 1px);
    background-size: 14px 24px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    animation: fade-in 0.6s ease-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Page Content Buttons (scoped to main to avoid header conflicts) */
main .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

main .btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

main .btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
    transform: translateY(-2px);
}

main .btn-outline {
    background-color: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

main .btn-outline:hover {
    background-color: hsl(var(--accent));
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--muted) / 0.3);
    padding: 3rem 0;
}

.stats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-subtitle {
    color: hsl(var(--muted-foreground));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Threat Monitor Section */
.threat-monitor-section {
    padding: 5rem 0;
}

.threat-monitor-card {
    max-width: 80rem;
    margin: 0 auto;
    border: 2px solid hsl(var(--primary) / 0.2);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--muted) / 0.3) 100%);
    padding: 3rem;
}

.threat-monitor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .threat-monitor-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.threat-monitor-visual {
    display: flex;
    justify-content: center;
}

.pulse-container {
    width: 16rem;
    height: 16rem;
    position: relative;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-1 {
    animation-delay: 0s;
}

.pulse-2 {
    inset: 2rem;
    background-color: hsl(var(--primary) / 0.2);
    animation-delay: 0.5s;
}

.pulse-3 {
    inset: 4rem;
    background-color: hsl(var(--primary) / 0.3);
    animation-delay: 1s;
}

.pulse-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-center svg {
    width: 8rem;
    height: 8rem;
    stroke: hsl(var(--primary));
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 50%;
    padding: 2rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.threat-monitor-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.threat-monitor-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.threat-monitor-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: hsl(var(--background));
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
}

.check-icon {
    flex-shrink: 0;
    stroke: hsl(var(--success, 142 76% 36%));
    margin-top: 0.125rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background-color: hsl(var(--muted) / 0.3);
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
}

.steps-list {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: hsl(var(--background));
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    transition: border-color 0.3s;
}

.step-item:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.step-number-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.step-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--primary) / 0.4);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.step-icon {
    stroke: hsl(var(--primary));
}

.step-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
}

/* Intelligence Sources Section */
.sources-section {
    padding: 5rem 0;
}

.sources-card {
    max-width: 72rem;
    margin: 0 auto;
    border: 2px solid hsl(var(--primary) / 0.2);
    border-radius: 0.75rem;
    background-color: hsl(var(--card));
    overflow: hidden;
}

.sources-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.sources-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sources-subtitle {
    color: hsl(var(--muted-foreground));
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .sources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.source-item {
    text-align: center;
    padding: 1rem;
    background-color: hsl(var(--muted) / 0.5);
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.source-item:hover {
    transform: translateY(-2px);
}

.source-icon {
    margin: 0 auto 0.5rem;
    stroke: hsl(var(--primary));
}

.source-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Why Choose Section */
.why-choose-section {
    padding: 5rem 0;
    background-color: hsl(var(--muted) / 0.3);
}

.benefits-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: hsl(var(--background));
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    transition: border-color 0.3s;
}

.benefit-item:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.benefit-icon {
    stroke: hsl(var(--primary));
}

.benefit-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
}

/* VDB Link Section */
.vdb-link-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--background)) 50%, hsl(var(--background)) 100%);
}

.vdb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .vdb-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.vdb-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vdb-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.vdb-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
}

.vdb-image {
    position: relative;
}

.vdb-image-glow {
    position: absolute;
    inset: 0;
    background-color: hsl(var(--primary) / 0.1);
    filter: blur(3rem);
    border-radius: 50%;
}

.vdb-img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid hsl(var(--border));
}

/* Final CTA Section */
.final-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--background)) 50%, hsl(var(--primary) / 0.05) 100%);
}

.final-cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.final-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.final-cta-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
}

.final-cta-emphasis {
    font-size: 1.125rem;
    font-weight: 600;
}

.final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 5rem;
    }

    .threat-monitor-card {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .step-number-group {
        flex-direction: column;
        align-items: flex-start;
    }
}
