/* ==========================================
   UI/UX MASTERPIECE: SAAS THEME V6.0 (DARK MODE ENGINE)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* 1. CSS VARIABLES (The Magic Setup) */

:root {
    --bg-main: #ffffff;
    --bg-sec: #f8fafc;
    --bg-card: #ffffff;
    --text-title: #0f172a;
    --text-body: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 1);
    --logo-filter: grayscale(100%) opacity(0.4);
    --shadow-color: rgba(15, 23, 42, 0.05);
    --acc-item-bg: #ffffff;
}


/* Dark Mode Overrides */

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-sec: #1e293b;
    --bg-card: #1e293b;
    --text-title: #f8fafc;
    --text-body: #94a3b8;
    --border-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --logo-filter: grayscale(100%) brightness(2) opacity(0.5);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --acc-item-bg: #1e293b;
}


/* Smooth Transition for Theme Change */

body,
section,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
.feat-card,
.step-box,
.saas-window {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.home-wrapper {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-title);
    overflow-x: hidden;
}


/* --- KILL OLD THEME ARTIFACTS --- */

.section-title::before,
.section-title::after,
.hero-header::before,
.hero-header::after {
    display: none !important;
    content: none !important;
}

hr {
    border: 0 !important;
    height: 1px !important;
    background-color: var(--border-color) !important;
    margin: 20px 0 !important;
}


/* --- HERO SECTION --- */

.hero-premium {
    padding: 160px 15px 100px;
    background: radial-gradient(circle at top right, var(--bg-sec) 0%, var(--bg-main) 50%);
    position: relative;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: #0d6efd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.update-badge .dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-premium h1 {
    font-size: 4.2rem;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: var(--text-title);
}

.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-premium p.lead-txt {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 500;
    max-width: 100%;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 16px 35px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25);
    transition: all 0.3s ease;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(13, 110, 253, 0.4);
}

.btn-modern-secondary {
    background: var(--bg-card);
    color: var(--text-title) !important;
    padding: 16px 35px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.btn-modern-secondary:hover {
    border-color: #0d6efd;
    color: #0d6efd !important;
    box-shadow: 0 10px 20px var(--shadow-color);
    transform: translateY(-3px);
}


/* --- UNIFIED CSS DASHBOARD --- */

.ui-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: floatWindow 6s ease-in-out infinite;
}

.ui-showcase::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #0d6efd 0%, #8b5cf6 100%);
    filter: blur(60px);
    opacity: 0.2;
    z-index: 0;
}

.saas-window {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px var(--shadow-color);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.window-header {
    background: var(--bg-sec);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.window-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-header .dot.red {
    background: #ef4444;
}

.window-header .dot.yellow {
    background: #f59e0b;
}

.window-header .dot.green {
    background: #10b981;
}

.window-body {
    padding: 30px;
}

.w-balance-title {
    font-size: 0.9rem;
    color: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.w-balance-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-title);
    line-height: 1;
    margin-bottom: 30px;
}

.w-balance-amount span {
    color: var(--text-body);
    font-size: 2.5rem;
}

.w-chart {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 100px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.w-chart .bar {
    flex: 1;
    background: var(--border-color);
    border-radius: 6px 6px 0 0;
    transition: 0.3s;
}

.w-chart .bar:hover {
    background: #93c5fd;
}

.w-chart .bar.active {
    background: linear-gradient(180deg, #0d6efd 0%, #3b82f6 100%);
    box-shadow: 0 -5px 15px rgba(13, 110, 253, 0.2);
}

.w-stats {
    display: flex;
    gap: 10px;
}

.w-stat-item {
    flex: 1;
    background: var(--bg-sec);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.w-stat-item i {
    font-size: 1.5rem;
    color: #0d6efd;
}

.w-stat-item div h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-title);
}

.w-stat-item div p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes floatWindow {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}


/* --- TRUST STRIP --- */

.trust-strip {
    padding: 40px 0;
    background: var(--bg-main);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.trust-strip p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    filter: var(--logo-filter);
    transition: 0.4s;
}

.trust-logos:hover {
    filter: grayscale(0%) opacity(1);
}

.trust-logos i {
    font-size: 2.2rem;
    color: #94a3b8;
}


/* --- SECTION TITLES --- */

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h6 {
    color: #0d6efd;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-title);
}


/* --- STEPS --- */

.steps-premium {
    padding: 80px 0 140px;
    background: var(--bg-sec);
}

.step-box {
    padding: 40px 20px;
    text-align: center;
    transition: 0.4s;
    border-radius: 24px;
    background: transparent;
}

.step-box:hover {
    background: var(--bg-card);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    color: #0d6efd;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: 0.4s;
    border: 1px solid var(--border-color);
}

.step-box:hover .step-icon-wrapper {
    background: #0d6efd;
    color: #fff;
    transform: scale(1.1);
    border-color: #0d6efd;
}

.step-box h4 {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-title);
}

.step-box p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* --- FLOATING STATS BANNER --- */

.stats-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.stats-inner {
    background: linear-gradient(135deg, #0d6efd 0%, #3b82f6 100%);
    border-radius: 32px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px rgba(13, 110, 253, 0.25);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-inner::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stat-box {
    position: relative;
    z-index: 2;
}

.stat-box h4 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-box p {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin: 0;
}


/* --- FEATURES (HOVER REVEAL) --- */

.features-premium {
    padding: 100px 0;
    background: var(--bg-main);
}

.feat-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 220px;
}

.feat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px var(--shadow-color);
    border-color: rgba(13, 110, 253, 0.3);
    background: var(--bg-sec);
}

.feat-icon-box {
    width: 65px;
    height: 65px;
    background: var(--bg-sec);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 20px;
    transition: 0.5s ease;
}

.feat-card:hover .feat-icon-box {
    background: #0d6efd;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    border-color: #0d6efd;
}

.feat-card h5 {
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 0;
    transition: 0.3s;
    font-size: 1.2rem;
}

.feat-hint {
    color: var(--text-body);
    margin-top: 15px;
    transition: 0.3s;
    opacity: 0.5;
}

.feat-card:hover .feat-hint {
    opacity: 0;
    height: 0;
    margin: 0;
    transform: translateY(10px);
}

.feat-desc-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.feat-card:hover .feat-desc-wrapper {
    max-height: 200px;
    opacity: 1;
    margin-top: 20px;
}

.feat-desc-wrapper p {
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}


/* --- FAQs (Fixed & Polished) --- */

.faqs-premium {
    padding: 100px 0;
    background: var(--bg-sec);
}

.accordion {
    position: relative;
    z-index: 10;
}

.accordion-item {
    border: 1px solid var(--border-color) !important;
    margin-bottom: 15px;
    border-radius: 16px !important;
    overflow: hidden;
    background: var(--acc-item-bg);
}

.accordion-button {
    font-weight: 700;
    color: var(--text-title);
    padding: 20px 25px;
    font-size: 1.05rem;
    box-shadow: none !important;
    background: var(--acc-item-bg);
    border: none !important;
    outline: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

.accordion-body {
    padding: 20px 25px;
    color: var(--text-body);
    line-height: 1.8;
    background: var(--bg-main);
}


/* FAQ Dark Mode Tweak (Slightly lighter arrow) */

[data-theme="dark"] .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* --- MEGA CTA --- */

.final-cta {
    padding: 80px 20px;
    text-align: center;
    margin: 0 20px 80px;
    border-radius: 32px;
    box-shadow: 0 30px 60px var(--shadow-color);
    background: linear-gradient(45deg, #0f172a, #1e293b, #0d6efd, #0f172a);
    background-size: 300% 300%;
    animation: moveGradient 8s ease infinite;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.final-cta h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.final-cta p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.btn-white-cta {
    background: #ffffff;
    color: #0f172a !important;
    padding: 18px 45px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-white-cta:hover {
    transform: scale(1.05);
    color: #0d6efd !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}


/* --- FLOATING THEME TOGGLE BUTTON --- */

.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-title);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 25px var(--shadow-color);
    border: none;
    outline: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
}


/* Responsive */

@media (max-width: 991px) {
    .hero-premium {
        padding: 120px 15px 80px;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-premium h1 {
        font-size: 3rem;
    }
    .ui-showcase {
        margin-top: 50px;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .stats-wrapper {
        margin-top: -60px;
    }
    .stat-box h4 {
        font-size: 2.8rem;
    }
}