/* Custom Theme Overrides for Premium Dark Mode */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Color Palette - Neon Indigo & Cyan */
    --bs-primary: #6366f1;
    /* Indigo 500 */
    --bs-primary-rgb: 99, 102, 241;
    --bs-secondary: #0ea5e9;
    /* Sky 500 */
    --bs-secondary-rgb: 14, 165, 233;

    /* Dark Theme Surfaces */
    --bg-body: #020617;
    /* Slate 950 - Deepest Blue/Black */
    --bg-surface: #0f172a;
    /* Slate 900 */
    --bg-surface-light: #1e293b;
    /* Slate 800 */

    /* Text Colors */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #cbd5e1;
    /* Slate 300 */

    /* Premium Gradients */
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, rgba(2, 6, 23, 0) 70%);

    /* Fonts */
    --bs-body-font-family: 'Outfit', sans-serif;
    --bs-heading-font-family: 'Outfit', sans-serif;

    /* UI Finishes */
    --card-border-radius: 20px;
    --btn-border-radius: 12px;

    /* Glassmorphism Dark */
    --glass-bg: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.main-wrapper {
    position: relative;
    z-index: 2;
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bg-body);
    color: var(--text-muted);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ------------------
   HERO SECTION REDESIGN
   ------------------ */
.hero-style-1 {
    position: relative;
    background: transparent;
    overflow: hidden;
}

/* The main colored background of the hero */
.bg-primary-gradient {
    background: var(--gradient-hero) !important;
    position: relative;
    z-index: 1;
}

/* Decorative Glow Effect behind hero */
.bg-primary-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: var(--gradient-glow);
    z-index: -1;
    pointer-events: none;
}

/* Hero Text */
.display-font,
.hero-content-wrap h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Highlighted Text in Hero */
.hero-style-1 mark {
    background: transparent;
    color: white;
    padding: 0;
}

.hero-style-1 mark::after {
    display: none;
    /* Remove default underline highlight if any */
}

.hero-style-1 mark.position-relative {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Hero "Commencer" Button */
.hero-style-1 .primary-btn {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.hero-style-1 .primary-btn:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
    transform: translateY(-2px);
}

/* Promo Items (Cards below hero) */
.promo-item {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    color: var(--text-muted);
}

.promo-item h6 {
    color: var(--text-main);
}

.promo-item i {
    color: var(--bs-primary) !important;
    /* Force icons to primary color */
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
    /* Glow effect for icons */
}

/* ------------------
   GLOBAL UI OVERRIDES
   ------------------ */

/* Dark Cards */
.card,
.app_list_item,
.pricing-column,
.bg-white {
    background-color: var(--bg-surface-light) !important;
    border: var(--glass-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
}

.pricing-column {
    text-align: center;
}

/* Robust Equal Height Fix (Desktop Only) */
@media (min-width: 992px) {
    .pricing-wrapper .row {
        align-items: stretch;
    }

    .pricing-wrapper .row>div {
        display: flex !important;
        flex-direction: column;
    }

    .pricing-column {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: 100% !important;
        /* Force full height */
        flex: 1 0 auto;
    }

    .pricing-column .btn {
        margin-top: auto !important;
        /* Force button to bottom */
        display: block;
        width: 100%;
    }
}

/* Text inside cards needing override */
.card h3,
.card h4,
.pricing-column h3,
.pricing-column h4,
.app_list_item h6 {
    color: var(--text-main) !important;
}

/* Section Backgrounds */
.light-bg {
    background-color: var(--bg-body) !important;
}

.gray-light-bg {
    background-color: var(--bg-surface) !important;
}

/* Navbar Dark */
.navbar,
.header-nav .nav-menu {
    background-color: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu.bg-white {
    background-color: #ffffff !important;
    color: #0f172a !important;
    /* Dark Slate for contrast */
    border-radius: var(--card-border-radius);
    /* Optional: keep it rounded */
}

.nav-menu.bg-white .nav-link,
.nav-menu.bg-white i,
.nav-menu.bg-white a {
    color: #0f172a !important;
    text-shadow: none !important;
}

/* Fix Logo Size */
.header-nav .logo {
    max-height: 50px;
    /* Restrict height to prevent navbar expansion */
    width: auto;
}

.nav-link,
.header-nav a {
    color: var(--text-muted) !important;
}

.nav-link:hover,
.header-nav a:hover {
    color: var(--bs-primary) !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Buttons */
.btn-primary,
.primary-btn {
    background: var(--gradient-primary) !important;
    border: none;
    color: white !important;
}

/* Pricing Badges */
.pricing-badge {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

/* FAQ Overrides */
.card-header-faq h5,
.card-header-faq .text-dark,
.text-question {
    color: var(--text-main) !important;
}

/* Premium Card Style Updates */
.pricing-column {
    padding: 3rem 2rem !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px -15px rgba(99, 102, 241, 0.3) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.pricing-column h3.h5 {
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted) !important;
}

.pricing-column .monthly-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    background-clip: text;
}

.pricing-column .monthly-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-column .feature-list li {
    margin-bottom: 0.8rem;
    display: block;
    /* Removed flex to allow text-center */
    line-height: 1.5;
}

/* Removed specific icon margin since icons are gone */
.pricing-column .feature-list i {
    display: none;
}

.pricing-column .btn {
    border-radius: 50px;
    /* Pillow button for premium feel */
    padding: 1rem 2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    width: 100%;
    margin-top: auto;
    /* Push button to bottom */
}

.pricing-column .btn:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.popular-badge {
    background: var(--gradient-primary);
    color: white;
    position: absolute;
    top: 15px;
    right: 15px;
    left: auto;
    width: auto;
    padding: 6px 14px;
    transform: none;
    text-align: center;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* App List items logos background */
.app_list_item {
    background: white !important;
    /* Keep logos on white for visibility if they are transparent PNGs with dark text */
    /* If logos are unified, we can make this dark, but usually they are original brand colors */
    border-radius: var(--card-border-radius);
    padding: 1rem;
    transition: transform 0.3s;
}

/* WAIT - User wants dark mode. Logos on white boxes look bad in dark mode. 
   Let's try a light gray or keep white but with a glow. 
   Actually, many logos are dark. Let's keep a subtle off-white or light gray for the logo containers specifically 
   so the logos are visible, OR filter them to white. 
   Safer bet: Light Gray container for logos to ensure visibility. */
.app_list_item {
    background-color: #f1f5f9 !important;
    /* Slate 100 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer,
.footer-section {
    background-color: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature Lists */
.feature-list li {
    color: var(--text-muted);
}

.feature-list i {
    color: var(--bs-primary) !important;
}

/* Section Shapes */
.position-absolute img {
    opacity: 0.1;
    /* Fade out the decorative shapes so they don't clash */
}

/* Forms */
.form-control {
    background-color: var(--bg-body);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control:focus {
    background-color: var(--bg-surface);
    color: white;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* ------------------
   PREMIUM FOOTER STYLES
   ------------------ */
.footer {
    background-color: #0b1120 !important;
    /* Extremely dark slate/black */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
    position: relative;
    overflow: hidden;
}

/* Subtle glow at the top of footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.footer-widget .text-white {
    color: var(--text-muted) !important;
    opacity: 0.85;
    font-weight: 300;
}

.widget-title {
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem !important;
    /* More breathing room */
}

/* Footer Links */
.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav li a {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-nav li a:hover {
    color: var(--bs-primary) !important;
    transform: translateX(5px);
    /* Slide effect */
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* Contact Info Highlight */
.footer-widget-2 ul li a[href^="mailto"],
.footer-widget-2 ul li a[href^="https://wa.me"] {
    font-weight: 500;
}

/* Payment Icons Container */
.payment-list li {
    background-color: rgba(255, 255, 255, 0.05) !important;
    /* Glassy background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-right: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 8px !important;
    width: 50px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-list li:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--bs-primary);
}

.payment-list li img {
    max-height: 100%;
    width: auto;
    filter: brightness(0.9);
}

/* Bottom Copyright Bar */
.footer-copyright {
    background-color: #020617 !important;
    /* Match body bg for seamless bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 25px 0;
}

.copyright-txt p,
.copyright-links a {
    color: #64748b !important;
    /* Darker muted text for low priority info */
    font-size: 0.9rem;
    font-weight: 400;
}

.copyright-links a {
    margin-left: 25px !important;
    transition: color 0.3s ease;
}

.copyright-links a:hover {
    color: var(--bs-primary) !important;
}

/* How It Works - Step Cards */
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3) !important;
}


/* ------------------
   HEADER STYLES
   ------------------ */
.main-header {
    z-index: 999;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0) 100%);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.social-link {
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--bs-primary) !important;
}


@media (max-width: 576px) {
    .social-link i.fa-2xl {
        font-size: 1.5em;
        /* Reduce size on mobile (default fa-2xl is 2em) */
    }

    .social-link {
        margin-right: 1rem !important;
        /* Reduce margin on mobile */
    }
}