/* Index */
.index-icon-container {
    background: var(--primary-100);
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    color: var(--primary);
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
    border-radius: var(--border-radius);
    font-weight: 800;
}

[data-theme-style="dark"] .index-icon-container {
    background: var(--gray-100);
}

.index-background {
    /* Rich blue gradient: light sky top-left → deeper blue bottom-right */
    background: linear-gradient(135deg, #e8f6ff 0%, #c8e8f8 25%, #a0d4f0 55%, #6fb8e8 80%, #5aaae0 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Subtle circuit-board / tech-line overlay */
.index-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 100, 180, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 100, 180, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    z-index: 0;
    pointer-events: none;
}

/* Soft radial glow from top-left for depth */
.index-background::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.55) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.index-background > .container {
    position: relative;
    z-index: 2;
}

[data-theme-style="dark"] .index-background {
    background: #0F172A;
}

.index-button-hero {
    background: var(--accent) !important; /* Tiger Flame for high conversion */
    border: none;
    color: white !important;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(242, 100, 48, 0.25);
}

.index-button-hero:hover {
    background: #d94b1a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 100, 48, 0.35);
}

.index-hero-form {
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

[data-theme-style="dark"] .index-hero-form {
    background: #1e293b;
}

.index-hero-form input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 1.05rem;
}

.index-hero-form input:focus {
    box-shadow: none !important;
    background: transparent !important;
}

.index-header {
    font-size: 3.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0F172A;
}

.index-subheader {
    font-size: 1.35rem;
    color: #475569; /* Slate 600 */
    letter-spacing: -0.01em;
}

.index-button {
    padding: 0.8rem 3.5rem;
    font-size: 1.1rem;
}

/* Index fade */
.index-fade {
    position: absolute;
    background: linear-gradient(0deg, #F8FAFC, transparent) !important;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
}

/* Index testimonial */
.index-testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 3px solid var(--white);
    background: var(--white);
    position: absolute;
    left: 50%;
    margin-left: -32px;
}

.index-testimonial-comment {
    margin-left: 18px;
}

/* Index FAQ */
.index-faq svg {
    transition: all .15s;
    color: var(--primary-800);
}

/* Timeline */
.index-timeline {
    position: relative;
}

.index-timeline::before {
    content: '';
    position: absolute;
    border-left: 2px solid rgba(15, 23, 42, 0.1);
    height: 100%;
    left: calc(57px / 2);
}

/* Index call to action */
.index-cta {
    background: #0F172A;
    color: #FFFFFF !important;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.index-cta > .container {
    position: relative;
    z-index: 2;
}

/* Custom Pricing Cards for Landing Page */
#plans .pricing-card {
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 1.5rem;
    background: white;
}

.index-card {
    border: 1px solid var(--neutral-light);
    border-radius: 12px;
    background: white;
    transition: all .3s ease-in-out;
}

.index-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-4px);
}

[data-theme-style="dark"] #plans .pricing-card {
    background: #1E293B;
}

#plans .pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08) !important;
}

#plans .pricing-card .btn {
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 700;
    background: var(--primary) !important;
    border: none !important;
    color: white !important;
}

#plans .pricing-card .btn:hover {
    background: #3730A3 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

/* Specific styling to make the middle plan stand out if checking exact names */
#plans .col-xl-4:nth-child(2) .pricing-card {
    transform: scale(1.02);
    z-index: 1;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.1) !important;
}

#plans .col-xl-4:nth-child(2) .pricing-card:hover {
    transform: scale(1.02) translateY(-2px);
}

/* Footer Background Continuation */
.footer-background {
    color: #334155 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.footer-background .app-footer {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}

.footer-background a {
    color: #64748B !important;
}

.footer-background a:hover {
    color: #0F172A !important;
}

.footer-background .text-muted {
    color: #94A3B8 !important;
}

.footer-background .footer-logo {
    max-height: 1.5rem;
    height: 1.5rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .index-header {
        font-size: 2.25rem !important;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .index-subheader {
        font-size: 1.15rem !important;
    }

    .index-button, .index-button-hero, .btn {
        padding: 0.85rem 1.5rem !important;
        min-height: 48px; /* Standardize large tap target */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .index-hero-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .index-hero-form input {
        text-align: center;
        margin-bottom: 0.5rem;
        min-height: 48px;
    }

    #plans .col-xl-4:nth-child(2) .pricing-card {
        transform: scale(1); /* Remove zoom on mobile to prevent overflow */
    }

    #plans .col-xl-4:nth-child(2) .pricing-card:hover {
        transform: scale(1) translateY(-2px);
    }
    
    .card-body {
        padding: 1.25rem !important; /* Tighter padding on mobile to save space */
    }

    .audit-score-circle {
        transform: scale(0.9) !important; /* Scale down massive score ring slightly */
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    /* Ensure dashboard stats stack nicely instead of side-by-side flex */
    .d-flex.flex-md-row {
        flex-direction: column !important;
        text-align: center;
    }

    .d-flex.flex-md-row .mr-4 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    .d-flex.align-items-center {
        justify-content: center;
    }
}
