/* GoAccount - Custom CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ---- NAVBAR ---- */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 2px 20px rgba(30,64,175,0.12);
}

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #1e40af 70%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.4);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.5);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Hero Dashboard mockup */
.hero-dashboard {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}

.dashboard-header {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-dot {
    width: 10px; height: 10px; border-radius: 50%;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.chart-bar {
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s ease;
}

/* Floating cards */
.float-card {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float-anim 4s ease-in-out infinite;
}

.float-card-2 {
    animation-delay: 2s;
}

@keyframes float-anim {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ---- FEATURES ---- */
.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(30,64,175,0.12);
    border-color: #bfdbfe;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* ---- PRICING ---- */
.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(30,64,175,0.15);
}

.pricing-card.popular {
    border-color: #1e40af;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    transform: scale(1.03);
    box-shadow: 0 25px 70px rgba(30,64,175,0.35);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 18px;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.7rem;
}

/* ---- STATS ---- */
.stats-section {
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 5rem;
    color: #dbeafe;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(30,64,175,0.1);
}

/* ---- FAQ ---- */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.faq-item.open {
    border-color: #bfdbfe;
    box-shadow: 0 4px 20px rgba(30,64,175,0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: background 0.3s ease;
}

.faq-question:hover { background: #f8fafc; }

.faq-question .faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.open .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--gray);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 18px;
}

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* ---- CONTACT ---- */
.contact-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    color: var(--dark);
}

.contact-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.contact-input::placeholder { color: #94a3b8; }

/* ---- FOOTER ---- */
.footer {
    background: #0f172a;
    color: #94a3b8;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover { color: #60a5fa; }

.footer-divider {
    border-color: rgba(255,255,255,0.08);
}

/* ---- UTILITIES ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- ANIMATIONS ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Smooth counter */
.counter { display: inline-block; }

/* Ripple button effect */
.btn-primary:active, .btn-outline:active {
    transform: scale(0.98) translateY(0);
}

/* Trusted logos */
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-section { min-height: auto; padding-bottom: 3rem; }
    .float-card { display: none; }
}

@media (max-width: 768px) {
    .section-title { font-size: 1.85rem; }
    .section-subtitle { font-size: 0.95rem; }
    .hero-dashboard { margin-top: 32px; }

    /* Pricing */
    .pricing-card { padding: 28px 20px; }
    .pricing-card.popular { transform: scale(1); box-shadow: 0 12px 40px rgba(30,64,175,0.25); }
    .pricing-card.popular:hover { transform: translateY(-6px); }
    .price-amount { font-size: 2.2rem; }

    /* FAQ */
    .faq-question { padding: 14px 18px; font-size: 0.92rem; }
    .faq-answer { padding: 0 18px; }
    .faq-item.open .faq-answer { padding: 0 18px 14px; }

    /* Stats */
    .stat-number { font-size: 2.2rem; }

    /* Testimonials */
    .testimonial-card { padding: 22px; }

    /* CTA buttons */
    .cta-section .flex { flex-direction: column; align-items: center; }
    .cta-section .flex a { width: 100%; max-width: 320px; justify-content: center; }

    /* Contact */
    .contact-input { padding: 10px 14px; }
}

@media (max-width: 640px) {
    /* Hero */
    .hero-section { min-height: auto; }
    .hero-badge { font-size: 0.78rem; padding: 5px 12px; }

    /* Buttons */
    .btn-primary, .btn-outline { padding: 12px 22px; font-size: 0.92rem; gap: 6px; }

    /* Feature cards */
    .feature-card { padding: 22px 18px; }
    .feature-icon { width: 48px; height: 48px; font-size: 1.3rem; }

    /* Pricing */
    .pricing-card { padding: 24px 16px; }
    .price-amount { font-size: 2rem; }

    /* Footer */
    .footer { padding-top: 2.5rem; }

    /* WhatsApp & back-to-top position on small screens */
    .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
    .back-to-top { bottom: 80px; right: 16px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.55rem; }
    .section-subtitle { font-size: 0.9rem; }

    /* Hero text */
    .hero-section h1 { font-size: 2rem !important; }
    .hero-section p  { font-size: 0.95rem !important; }

    /* Stat numbers */
    .stat-number { font-size: 1.9rem; }

    /* Testimonial quote mark */
    .testimonial-card::before { font-size: 3.5rem; top: -5px; }
}

@media (max-width: 360px) {
    .section-title { font-size: 1.4rem; }
    .btn-primary, .btn-outline { padding: 11px 18px; font-size: 0.875rem; }
}

/* =============================================
   EXIT-INTENT POPUP
   ============================================= */

.exit-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.exit-popup-box {
    background: #fff;
    border-radius: 24px;
    padding: 2.25rem 2rem 1.75rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.exit-popup-overlay.show .exit-popup-box {
    transform: translateY(0) scale(1);
}

/* Close Button */
.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.exit-popup-close:hover { background: #e2e8f0; color: #1e293b; transform: scale(1.1); }

/* Header */
.exit-popup-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.exit-popup-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.exit-popup-sub {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

/* Benefits Row */
.exit-popup-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 0;
}
.exit-benefit { text-align: center; }
.exit-benefit-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 0.625rem;
}
.exit-benefit-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.exit-benefit-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}

/* CTA Button */
.exit-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 14px;
    text-decoration: none;
    margin-bottom: 0.875rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}
.exit-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
.exit-popup-cta:active { transform: scale(0.98); }

/* Note */
.exit-popup-note {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ---- Popup Mobile ---- */
@media (max-width: 600px) {
    .exit-popup-box { padding: 1.75rem 1.25rem 1.5rem; border-radius: 18px; }
    .exit-popup-title { font-size: 1.4rem; }
    .exit-popup-sub   { font-size: 0.875rem; margin-bottom: 1.1rem; }
    .exit-popup-benefits { gap: 0.6rem; padding: 1rem 0; }
    .exit-benefit-icon { width: 2.75rem; height: 2.75rem; font-size: 1.1rem; border-radius: 0.75rem; }
    .exit-benefit-title { font-size: 0.78rem; }
    .exit-benefit-desc  { font-size: 0.7rem; }
    .exit-popup-cta { font-size: 0.95rem; padding: 0.875rem 1rem; }
}

@media (max-width: 380px) {
    .exit-popup-benefits { grid-template-columns: 1fr; border: none; gap: 0.5rem; padding: 0.5rem 0 1rem; }
    .exit-benefit { display: flex; align-items: center; gap: 0.75rem; text-align: left; background: #f8fafc; border-radius: 0.75rem; padding: 0.625rem 0.875rem; }
    .exit-benefit-icon { flex-shrink: 0; margin: 0; width: 2.5rem; height: 2.5rem; }
    .exit-benefit-title { margin-bottom: 0.1rem; }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 35px rgba(37,211,102,0.6);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 6px 35px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30,64,175,0.4);
    text-decoration: none;
}

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

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