/* SentinelScan - Custom Styles */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #0f172a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding-top: 76px;
    position: relative;
    overflow: hidden;
    color: #e2e8f0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, -1%) scale(1.05); }
}

.hero-section .lead {
    color: #94a3b8;
}

.hero-section .text-muted {
    color: #94a3b8 !important;
}

.hero-section .btn-outline-dark {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-section .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-image-wrapper {
    position: relative;
}

/* Dashboard Preview */
.dashboard-preview {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.preview-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dots .dot.red { background: #ef4444; }
.preview-dots .dot.yellow { background: #f59e0b; }
.preview-dots .dot.green { background: #10b981; }

.preview-title {
    color: #94a3b8;
    font-size: 13px;
}

.preview-content {
    padding: 24px;
}

.scan-result {
    background: #0f172a;
    border-radius: 8px;
    padding: 20px;
}

.scan-result h6 {
    color: #e2e8f0;
}

.finding-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.finding-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
}

.finding-item span:nth-child(2) {
    flex: 1;
}

.finding-item.critical {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
}

.finding-item.critical i { color: #ef4444; }

.finding-item.high {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
}

.finding-item.high i { color: #f59e0b; }

.finding-item.medium {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}

.finding-item.medium i { color: #3b82f6; }

.finding-item.low {
    background: rgba(100, 116, 139, 0.1);
    border-left: 3px solid #64748b;
}

.finding-item.low i { color: #64748b; }

/* Scan progress in dashboard preview */
.scan-progress .progress {
    border-radius: 3px;
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12) !important;
}

/* Stat Icons */
.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 20px;
}

.feature-card h5 {
    margin-bottom: 8px;
}

/* Step numbers (How It Works) */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* Section headings */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Trusted-by / social proof strip */
.trust-strip {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.trust-strip .trust-item i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Code Block */
.code-block {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-header {
    background: #0f172a;
    padding: 12px 16px;
    border-bottom: 1px solid #334155;
}

.code-block pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    color: #a5f3fc;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Pricing Cards */
.card.border-primary {
    border-width: 2px;
}

/* Scanner Grid */
.scanner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.scanner-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.scanner-item:hover {
    background: #fff;
    border-color: var(--primary-color);
}

.scanner-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

/* Comparison Table */
.comparison-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 600;
    padding: 16px;
}

.comparison-table td {
    padding: 16px;
    vertical-align: middle;
}

.comparison-table .highlight {
    background: rgba(79, 70, 229, 0.05);
}

/* FAQ Accordion */
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary-color);
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .dashboard-preview {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .preview-content {
        padding: 16px;
    }

    .finding-item {
        font-size: 12px;
        padding: 10px;
    }

    .finding-item span:nth-child(2) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Footer link colors on dark background */
footer.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer.bg-dark .text-muted:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA section enhanced */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 40% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Pricing Toggle */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.pricing-toggle .btn {
    border-radius: 6px;
    padding: 8px 20px;
}

.pricing-toggle .btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Plan badge */
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Integration logos */
.integration-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.integration-logos img {
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.integration-logos img:hover {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-card .quote {
    font-size: 18px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 20px;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
}
