/* FUNNEL GO — DESIGN SYSTEM | Manrope | Dark/Light Mode */

:root {
    /* Brand (fixed in both modes) */
    --fg-blue: #2196F3;
    --fg-blue-hover: #1976D2;
    --fg-blue-deep: #0D47A1;
    --fg-green: #10B981;
    --fg-orange: #F59E0B;

    /* Adaptive tokens — Light */
    --bg-body: #ffffff;
    --bg-soft: #f7f8fc;
    --bg-muted: #f1f3f8;
    --bg-card: #ffffff;
    --bg-nav: rgba(255,255,255,0.92);
    --bg-blue-tint: #E3F2FD;
    --bg-green-tint: #D1FAE5;
    --bg-purple-tint: #ede9fe;
    --bg-amber-tint: #fef3c7;

    --text-heading: #1a0a3e;
    --text-body: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-faint: #9ca3af;

    --border: #e2e6ef;
    --border-soft: rgba(0,0,0,0.04);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.14);
    --shadow-blue: 0 4px 24px rgba(33,150,243,0.25);

    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
    --radius-xl: 24px; --radius-full: 9999px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Adaptive tokens — Dark */
.dark {
    --bg-body: #0d1117;
    --bg-soft: #161b22;
    --bg-muted: #1c2128;
    --bg-card: #161b22;
    --bg-nav: rgba(13,17,23,0.92);
    --bg-blue-tint: rgba(33,150,243,0.12);
    --bg-green-tint: rgba(16,185,129,0.12);
    --bg-purple-tint: rgba(139,92,246,0.12);
    --bg-amber-tint: rgba(245,158,11,0.12);

    --text-heading: #e6edf3;
    --text-body: #e6edf3;
    --text-secondary: #b1bac4;
    --text-muted: #8b949e;
    --text-faint: #6e7681;

    --border: #30363d;
    --border-soft: rgba(255,255,255,0.04);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-blue: 0 4px 24px rgba(33,150,243,0.2);
}

/* BASE */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--text-body); background: var(--bg-body);
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* NAV */
.fg-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow 0.3s var(--ease-out), background 0.35s ease;
}
.fg-nav.scrolled { box-shadow: var(--shadow-sm); }

.fg-nav-link {
    padding: 8px 16px; font-size: 0.88rem; font-weight: 500;
    color: var(--text-secondary); border-radius: var(--radius-sm);
    transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 4px;
}
.fg-nav-link:hover { color: var(--fg-blue); background: var(--bg-blue-tint); }

.fg-nav-dropdown { position: relative; }
.fg-nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 8px; min-width: 220px;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
    transition: all 0.25s var(--ease-out); z-index: 50;
}
.fg-nav-dropdown:hover .fg-nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.fg-nav-dropdown:hover .fg-chevron { transform: rotate(180deg); }
.fg-chevron { transition: transform 0.2s ease; }

.fg-nav-dropdown-item {
    display: block; padding: 10px 14px; font-size: 0.87rem; font-weight: 500;
    color: var(--text-secondary); border-radius: var(--radius-sm); transition: all 0.15s ease;
}
.fg-nav-dropdown-item:hover { background: var(--bg-blue-tint); color: var(--fg-blue); }

/* MOBILE MENU */
.fg-mobile-menu { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.fg-mobile-menu.active { display: block; }
.fg-mobile-panel {
    position: absolute; top: 0; right: 0; width: 300px; max-width: 85vw; height: 100%;
    background: var(--bg-body); padding: 24px; box-shadow: var(--shadow-xl);
    overflow-y: auto; transform: translateX(100%); transition: transform 0.35s var(--ease-out);
}
.fg-mobile-menu.active .fg-mobile-panel { transform: translateX(0); }
.fg-mobile-link {
    display: block; padding: 12px 16px; font-size: 0.88rem; font-weight: 600;
    color: var(--text-secondary); border-radius: var(--radius-sm); transition: all 0.15s ease;
}
.fg-mobile-link:hover { background: var(--bg-blue-tint); color: var(--fg-blue); }

/* THEME TOGGLE */
.fg-theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 1px solid var(--border);
    background: var(--bg-soft); color: var(--text-muted);
    transition: all 0.3s ease; flex-shrink: 0;
}
.fg-theme-toggle:hover { border-color: var(--fg-blue); color: var(--fg-blue); background: var(--bg-blue-tint); }
.fg-theme-toggle svg { width: 18px; height: 18px; }
.fg-theme-toggle .icon-sun { display: none; }
.fg-theme-toggle .icon-moon { display: block; }
.dark .fg-theme-toggle .icon-sun { display: block; }
.dark .fg-theme-toggle .icon-moon { display: none; }

/* BUTTONS */
.fg-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 14px 32px; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.92rem; transition: all 0.35s var(--ease-out);
    cursor: pointer; border: 2px solid transparent; white-space: nowrap;
    text-decoration: none; font-family: 'Manrope', system-ui, sans-serif;
}
.fg-btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.fg-btn:hover svg { transform: translateX(3px); }

.fg-btn-primary { background: var(--fg-blue); color: #fff; border-color: var(--fg-blue); box-shadow: var(--shadow-blue); }
.fg-btn-primary:hover { background: var(--fg-blue-hover); border-color: var(--fg-blue-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(33,150,243,0.35); }

.fg-btn-outline { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.fg-btn-outline:hover { border-color: var(--fg-blue); color: var(--fg-blue); transform: translateY(-2px); }

.fg-btn-white { background: var(--bg-body); color: var(--text-heading); border-color: var(--bg-body); box-shadow: var(--shadow-md); }
.fg-btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.fg-btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* TAG */
.fg-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-blue); }
.fg-tag::before { content: ''; width: 32px; height: 2px; background: var(--fg-blue); border-radius: 1px; }
.fg-tag-center { justify-content: center; }
.fg-tag-center::before { display: none; }

/* CARDS */
.fg-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.4s var(--ease-out); position: relative; overflow: hidden; }
.fg-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.fg-card-accent::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--fg-blue), #0D47A1); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.fg-card-accent:hover::after { transform: scaleX(1); }
.fg-card-image { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); transition: all 0.4s var(--ease-out); background: var(--bg-card); }
.fg-card-image:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); border-color: transparent; }

/* CHECK LIST */
.fg-check-list { display: flex; flex-direction: column; gap: 8px; }
.fg-check-item { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--text-secondary); font-weight: 500; }
.fg-check-item::before { content: '✓'; width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: var(--bg-green-tint); color: var(--fg-green); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; }

/* CTA BOX */
.fg-cta-box { background: linear-gradient(145deg, var(--fg-blue) 0%, #0D47A1 100%); border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.fg-cta-box::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.06); top: -100px; left: -100px; }
.fg-cta-box::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.04); bottom: -150px; right: -150px; }

/* FOOTER */
.fg-footer { background: #0b111e; color: rgba(255,255,255,0.5); }
.dark .fg-footer { background: #060a10; }
.fg-footer a { transition: color 0.2s ease; }
.fg-footer a:hover { color: #fff; }
.fg-footer-social-link { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; color: rgba(255,255,255,0.5); }
.fg-footer-social-link:hover { border-color: var(--fg-blue); background: rgba(33,150,243,0.1); color: var(--fg-blue); }

/* REVEAL */
.fg-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fg-reveal.visible { opacity: 1; transform: translateY(0); }
.fg-reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.fg-reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.fg-reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fg-reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.fg-reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }

/* ANIMATIONS */
@keyframes fg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fg-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
@keyframes fg-fade-in-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.fg-animate-float { animation: fg-float 5s ease-in-out infinite; }
.fg-animate-float-delay { animation: fg-float 5s ease-in-out 2s infinite; }
.fg-animate-pulse { animation: fg-pulse 2s ease infinite; }
.fg-animate-fade-in { animation: fg-fade-in-up 0.9s var(--ease-out) both; }
.fg-animate-fade-in-delay { animation: fg-fade-in-up 0.9s var(--ease-out) 0.15s both; }

/* DARK SECTION (always dark) */
.fg-dark-section { background: linear-gradient(168deg, #1a0a3e 0%, #1e0d4a 50%, #0D47A1 100%); color: #fff; position: relative; overflow: hidden; }
.fg-dark-section-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.fg-glass-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); backdrop-filter: blur(8px); transition: all 0.3s ease; }
.fg-glass-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }

/* TESTIMONIALS */
.fg-testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.3s var(--ease-out); }
.fg-testimonial:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.fg-testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--fg-blue), #0D47A1); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: #fff; flex-shrink: 0; }

/* FAQ */
.fg-faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s ease; background: var(--bg-card); }
.fg-faq-item.active { border-color: var(--fg-blue); box-shadow: var(--shadow-sm); }
.fg-faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--text-heading); transition: color 0.2s ease; user-select: none; width: 100%; text-align: left; font-size: 0.95rem; font-family: 'Manrope', system-ui, sans-serif; background: transparent; border: none; }
.fg-faq-question:hover { color: var(--fg-blue); }
.fg-faq-question svg { transition: transform 0.3s ease; flex-shrink: 0; color: var(--text-faint); width: 20px; height: 20px; }
.fg-faq-item.active .fg-faq-question svg { transform: rotate(180deg); color: var(--fg-blue); }
.fg-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.fg-faq-item.active .fg-faq-answer { max-height: 300px; }
.fg-faq-answer-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* RESPONSIVE */
@media (max-width: 1024px) { .fg-nav-desktop { display: none !important; } .fg-nav-hamburger { display: flex !important; } }
@media (min-width: 1025px) { .fg-nav-hamburger { display: none !important; } .fg-mobile-menu { display: none !important; } }

/* =============================================
   DARK MODE — Global overrides
   Must beat: Tailwind utilities, inline styles, Divi wrappers
   ============================================= */

/* === NUCLEAR: Kill ALL white backgrounds from Divi and WordPress wrappers === */
.dark,
.dark body,
.dark #page-container,
.dark #et-main-area,
.dark #main-content,
.dark .et_builder_inner_content,
.dark .et_pb_section,
.dark .et_pb_row,
.dark .et_pb_column,
.dark .et_pb_module,
.dark .et_pb_text_inner,
.dark .et_pb_code_inner,
.dark .entry-content,
.dark .post-content,
.dark article,
.dark main {
    background-color: var(--bg-body) !important;
    color: var(--text-body) !important;
}

/* === Section backgrounds === */
.dark section,
.dark .bg-white {
    background-color: var(--bg-body) !important;
}

/* Soft background sections — use a class instead of inline style */
.dark .fg-bg-soft,
.dark section[style*="bg-soft"],
.dark section[style*="background:var(--bg-soft)"] {
    background-color: var(--bg-soft) !important;
}

/* === Text colors === */
.dark .text-gray-900,
.dark .text-gray-800,
.dark .text-gray-700 { color: var(--text-body) !important; }
.dark .text-gray-600,
.dark .text-gray-500 { color: var(--text-muted) !important; }
.dark .text-gray-400,
.dark .text-gray-300 { color: var(--text-faint) !important; }

/* Headings */
.dark h1, .dark h2, .dark h3,
.dark .text-fg-purple { color: var(--text-heading) !important; }

/* Protect always-white-text sections */
.dark .fg-dark-section,
.dark .fg-dark-section * { background-color: transparent !important; }
.dark .fg-dark-section { background: linear-gradient(168deg, #1a0a3e 0%, #1e0d4a 50%, #0D47A1 100%) !important; }
.dark .fg-dark-section h1,
.dark .fg-dark-section h2,
.dark .fg-dark-section h3,
.dark .fg-dark-section p,
.dark .fg-dark-section span,
.dark .fg-dark-section div { color: inherit !important; }
.dark .fg-cta-box h2,
.dark .fg-cta-box p { color: #ffffff !important; }

/* === Borders === */
.dark .border-gray-200,
.dark .border-gray-100,
.dark .border-b { border-color: var(--border) !important; }

/* === Cards === */
.dark .fg-card,
.dark .fg-card-image,
.dark .fg-testimonial {
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
}

.dark .fg-card-image .p-7,
.dark .fg-card-image > div:last-child {
    background-color: var(--bg-card) !important;
}

/* === Process step circles === */
.dark [style*="box-shadow:0 0 0 8px"] {
    box-shadow: 0 0 0 8px var(--bg-body) !important;
}
.dark [style*="background:var(--bg-body)"] {
    background-color: var(--bg-body) !important;
}

/* === Shadows === */
.dark .shadow-lg { box-shadow: var(--shadow-lg) !important; }
.dark .shadow-2xl,
.dark .shadow-xl { box-shadow: var(--shadow-xl) !important; }
.dark .shadow-sm { box-shadow: var(--shadow-sm) !important; }

/* === Check items === */
.dark .fg-check-item { color: var(--text-secondary) !important; }

/* === Links === */
.dark .text-fg-blue { color: var(--fg-blue) !important; }

/* === Tint backgrounds === */
.dark .bg-purple-100 { background-color: var(--bg-purple-tint) !important; }
.dark .bg-amber-100 { background-color: var(--bg-amber-tint) !important; }
.dark .bg-fg-blue-light { background-color: var(--bg-blue-tint) !important; }
.dark .bg-fg-green-light { background-color: var(--bg-green-tint) !important; }

/* === Nav === */
.dark .fg-nav-dropdown-menu { background-color: var(--bg-card) !important; border-color: var(--border) !important; }

/* === Buttons === */
.dark .fg-btn-white { background: var(--bg-card) !important; color: var(--text-heading) !important; border-color: var(--border) !important; }
.dark .fg-btn-outline { color: var(--text-secondary) !important; border-color: var(--border) !important; }
.dark .fg-btn-outline:hover { color: var(--fg-blue) !important; border-color: var(--fg-blue) !important; }

/* === Glass cards (already dark, keep as is) === */
.dark .fg-glass-card { background: rgba(255,255,255,0.06) !important; }

/* === Inline style overrides for sections using style="" === */
.dark [style*="background:var(--bg-body)"],
.dark [style*="background: var(--bg-body)"] {
    background-color: var(--bg-body) !important;
}
.dark [style*="background:var(--bg-soft)"],
.dark [style*="background: var(--bg-soft)"] {
    background-color: var(--bg-soft) !important;
}

/* === Color overrides for inline style text === */
.dark [style*="color:var(--text-heading)"],
.dark [style*="color: var(--text-heading)"] {
    color: var(--text-heading) !important;
}
.dark [style*="color:var(--text-muted)"],
.dark [style*="color: var(--text-muted)"] {
    color: var(--text-muted) !important;
}
.dark [style*="color:var(--text-faint)"],
.dark [style*="color: var(--text-faint)"] {
    color: var(--text-faint) !important;
}
.dark [style*="color:var(--text-body)"],
.dark [style*="color: var(--text-body)"] {
    color: var(--text-body) !important;
}
.dark [style*="color:var(--text-secondary)"],
.dark [style*="color: var(--text-secondary)"] {
    color: var(--text-secondary) !important;
}

/* === Border inline styles === */
.dark [style*="border:1px solid var(--border)"],
.dark [style*="border: 1px solid var(--border)"] {
    border-color: var(--border) !important;
}