/* Homepage enhancements — stats, process, hero panel, navbar scroll, back-to top */

:root {
    --success-color: #10b981;
}

.navbar.navbar-scrolled {
    padding: 0.65rem 0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.home-stats-bar {
    position: relative;
    z-index: 5;
    margin-top: -3rem;
    padding-bottom: 2rem;
}

.home-stat-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
}

.home-stat-value {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.home-stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.home-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    color: var(--primary);
    font-size: 1.35rem;
}

.hero-aside-panel {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.hero-aside-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-aside-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.hero-aside-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.hero-aside-list li:last-child {
    border-bottom: none;
}

.hero-aside-list i {
    color: #6ee7b7;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.hero-aside-cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-aside-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary);
}

.process-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.process-step {
    position: relative;
    text-align: center;
    padding: 2rem 1.25rem;
    height: 100%;
}

.process-step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.process-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.process-step-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.process-connector {
    display: none;
}

@media (min-width: 992px) {
    .process-connector {
        display: block;
        position: absolute;
        top: 4.5rem;
        right: -12%;
        width: 24%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), transparent);
        opacity: 0.35;
    }

    .process-step:last-child .process-connector {
        display: none;
    }
}

.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.testimonial-quote {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-role {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .hero-aside-panel {
        margin-top: 2.5rem;
    }

    .home-stats-bar {
        margin-top: -1.5rem;
    }
}

/* Pricing comparison table */
.compare-section {
    padding: 100px 0;
    background: var(--white);
}

.compare-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    background: var(--white);
}

.compare-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: collapse;
}

.compare-table thead th {
    padding: 1.25rem 1rem;
    text-align: center;
    vertical-align: bottom;
    background: var(--light);
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.95rem;
}

.compare-table thead th:first-child {
    text-align: left;
    min-width: 200px;
}

.compare-table thead th.is-featured {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    position: relative;
}

.compare-plan-name {
    display: block;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.compare-plan-price {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.compare-plan-period {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.compare-popular-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.compare-table tbody td,
.compare-table tbody th {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
}

.compare-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    position: sticky;
    left: 0;
    z-index: 1;
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
    border-bottom: none;
}

.compare-check {
    color: var(--success-color);
    font-size: 1.25rem;
}

.compare-dash {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.compare-price-cell {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Homepage FAQ */
.home-faq-section {
    padding: 100px 0;
    background: var(--light);
}

.home-faq-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--white);
}

.home-faq-accordion .accordion-button {
    font-weight: 600;
    padding: 1.15rem 1.35rem;
    font-size: 1rem;
    color: var(--dark);
    background: var(--white);
}

.home-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: none;
}

.home-faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.home-faq-accordion .accordion-body {
    padding: 0 1.35rem 1.25rem;
    color: var(--gray);
    line-height: 1.75;
}

.testimonial-domain {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--gray);
    font-style: normal;
}

.testimonial-domain code {
    font-size: 0.78rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
