/* =========================================
   Introx V5 - Fully Responsive SaaS CSS
   ========================================= */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100vw;
    max-width: 100%;
}
body.nav-active { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
section, header, footer, main, nav { max-width: 100%; overflow-x: hidden; }

/* Container */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.wrap-sm { max-width: 800px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* Columns */
.two-col { display: flex; gap: 64px; align-items: center; }
.two-col > * { flex: 1; min-width: 0; }
.two-col.reverse { flex-direction: row-reverse; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Utility Components */
.card { background: white; border-radius: 16px; padding: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.7); border: 1px solid #e2e8f0; border-radius: 100px; padding: 8px 16px; font-size: 0.875rem; font-weight: 600; margin-bottom: 24px; }
.pill-light { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.2); color: #1e40af; }
.pill-dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: #e2e8f0; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { padding: 10px 0 10px 32px; position: relative; color: #475569; border-bottom: 1px solid #f1f5f9; font-size: 1rem; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: #10b981; font-weight: 800; font-size: 1.1rem; }
.cross-list { list-style: none; margin-top: 20px; }
.cross-list li { padding: 10px 0 10px 32px; position: relative; color: #94a3b8; border-bottom: 1px solid #f1f5f9; font-size: 1rem; }
.cross-list li:last-child { border-bottom: none; }
.cross-list li::before { content: "\2715"; position: absolute; left: 0; color: #ef4444; font-weight: 800; font-size: 1rem; }
.before-card { border: 1.5px solid #fecaca; background: #fff5f5; }
.after-card { border: 1.5px solid #d1fae5; background: #f0fdf4; }

/* Typography - Fluid */
h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; color: #0f172a; }
h2 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; color: #0f172a; }
h3 { font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 16px; color: #0f172a; }
h4 { font-size: clamp(1rem, 3vw, 1.25rem); font-weight: 700; margin-bottom: 12px; color: #0f172a; }
p { font-size: clamp(1rem, 2.5vw, 1.125rem); color: #475569; margin-bottom: 16px; line-height: 1.7; }
.eyebrow { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: #2563eb; margin-bottom: 16px; display: block; }
.text-gradient { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Sections */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }
.bg-white { background: #ffffff; }
.bg-light { background: #f8fafc; }
.bg-dark { background: #060913; }
.bg-dark-2 { background: #0f172a; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 10px; font-weight: 700;
    font-size: 1rem; cursor: pointer; border: none;
    transition: all 0.25s ease; white-space: nowrap;
    text-decoration: none; line-height: 1.4;
}
.btn-blue { background: #2563eb; color: white; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-blue:hover { background: #1d4ed8; color: white; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37,99,235,0.4); }
.btn-outline { background: white; color: #0f172a; border: 1.5px solid #cbd5e1; }
.btn-outline:hover { border-color: #2563eb; color: #2563eb; transform: translateY(-2px); }
.btn-blue-outline { background: white; color: #2563eb; border: 1.5px solid #2563eb; }
.btn-blue-outline:hover { background: #2563eb; color: white; transform: translateY(-2px); }
.btn-white { background: white; color: #2563eb; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.btn-white:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.25); transform: translateY(-2px); }
.btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ================================
   NAVBAR
   ================================ */
.topbar { display: none; }

.navbar {
    position: sticky; top: 0; z-index: 500;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid #f1f5f9; padding: 14px 0;
}
.navbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.logo-name { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px; color: #071022; }
.nav-menu-container { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-menu a { font-weight: 600; color: #334155; font-size: 0.88rem; transition: color 0.2s; white-space: nowrap; }
.nav-menu a:hover { color: #2563eb; }
.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-nav-blue { background: #2563eb; color: white; padding: 8px 18px; border-radius: 99px; font-weight: 700; border: none; transition: background 0.2s; font-size: 0.875rem; cursor: pointer; white-space: nowrap; }
.btn-nav-blue:hover { background: #1d4ed8; }
.btn-nav-solid { background: linear-gradient(135deg, #e11d48 0%, #7c3aed 100%); color: white; padding: 8px 18px; border-radius: 99px; font-weight: 700; border: none; transition: opacity 0.2s; white-space: nowrap; font-size: 0.875rem; cursor: pointer; }
.btn-nav-solid:hover { opacity: 0.9; }

/* ================================
   HAMBURGER MENU TOGGLE
   ================================ */
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 600; flex-shrink: 0;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: #0f172a; border-radius: 2px; transition: all 0.3s; }

/* Hamburger X state */
body.nav-active .menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.nav-active .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-active .menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================
   MOBILE MENU OVERLAY
   ================================ */
/* Backdrop - lives in <body> level, always hidden until nav-active */
.menu-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 550;
}
body.nav-active .menu-backdrop { display: block; }

/* Try for Free pill shown in mobile navbar */
.nav-try-mobile {
    display: none;
    background: linear-gradient(135deg, #e11d48 0%, #7c3aed 100%);
    color: white; padding: 7px 14px; border-radius: 99px;
    font-weight: 700; font-size: 0.8rem; white-space: nowrap;
    text-decoration: none;
}

/* Mobile nav panel */
.mobile-nav {
    display: none; /* Hidden on desktop */
}

/* Expert Support Section */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.expert-card { background: #fff; padding: 28px 24px; border-radius: 16px; text-align: center; border: 1px solid #f1f5f9; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.expert-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.expert-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: white; }
.expert-name { font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.expert-role { font-size: 0.875rem; color: #64748b; }

/* Premium CTA */
.bg-deep-navy { background: linear-gradient(135deg, #111827 0%, #0f172a 100%); position: relative; overflow: hidden; }
.bg-deep-navy::after { content: ""; position: absolute; top: -50%; right: -20%; width: 80%; height: 200%; background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%); transform: rotate(-20deg); pointer-events: none; }
.cta-content { position: relative; z-index: 10; padding: 72px 0 64px; }
.cta-heading { font-size: clamp(1.8rem, 6vw, 3.5rem); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 32px; letter-spacing: -0.02em; }
.cta-subtext { color: #94a3b8; font-size: clamp(1rem, 2.5vw, 1.2rem); max-width: 600px; margin: 0 auto 48px; }

/* Decorative Blobs - no filter:blur to avoid performance issues */
.blob { position: absolute; border-radius: 50%; opacity: 0.4; z-index: 0; pointer-events: none; }
.blob-blue { width: 400px; height: 400px; background: rgba(37,99,235,0.08); }
.blob-purple { width: 320px; height: 320px; background: rgba(124,58,237,0.08); }

/* Testimonials */
.t-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; display: flex; flex-direction: column; justify-content: space-between; }
.t-stars { color: #facc15; font-size: 1.1rem; margin-bottom: 16px; display: flex; gap: 4px; }
.t-quote { font-size: 1rem; font-style: italic; color: #475569; margin-bottom: 24px; line-height: 1.6; }
.t-author { display: flex; align-items: center; gap: 16px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #475569; flex-shrink: 0; font-size: 0.9rem; }
.t-name { font-weight: 700; color: #0f172a; }
.t-role { font-size: 0.8rem; color: #64748b; }

/* FAQ Section */
.faq-wrap { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { border-bottom: 1px solid #e2e8f0; padding: 24px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-weight: 700; font-size: 1.1rem; color: #0f172a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question svg { transition: transform 0.3s; stroke: #64748b; flex-shrink: 0; }
.faq-answer { display: none; margin-top: 16px; font-size: 1rem; color: #475569; line-height: 1.6; }

/* Footer */
.footer { background: #0b1120; padding: 80px 0 40px; color: #e2e8f0; position: relative; overflow: hidden; }
.footer::before { content: "Introx"; position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); font-size: min(25vw, 200px); font-weight: 900; color: rgba(255,255,255,0.02); line-height: 1; pointer-events: none; z-index: 0; white-space: nowrap; }
.footer-wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 64px; }
.footer-heading { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 20px; }
.footer-links a { display: block; font-size: 0.9rem; color: #94a3b8; margin-bottom: 12px; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: #38bdf8; }
.footer-contact-big { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: white; line-height: 1.2; margin-bottom: 20px; }
.footer-contact-big span { color: #38bdf8; }
.btn-footer-outline { border: 1.5px solid #38bdf8; color: white; background: transparent; padding: 12px 28px; border-radius: 99px; font-weight: 700; display: inline-block; transition: all 0.2s; }
.btn-footer-outline:hover { background: #38bdf8; color: #0b1120; }
.footer-middle { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 40px; flex-wrap: wrap; gap: 24px; }
.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: center; align-items: center; color: white; transition: all 0.2s; font-size: 0.85rem; }
.social-icon:hover { border-color: white; background: rgba(255,255,255,0.1); }
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.app-badge { height: 42px; background: white; border-radius: 8px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: black; font-weight: 700; font-size: 0.8rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }
.app-badge img { height: 22px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #64748b; flex-wrap: wrap; gap: 24px; }
.footer-legal-text { max-width: 55%; line-height: 1.7; }
.cert-badges { display: flex; gap: 10px; }
.cert-badge { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.55rem; text-align: center; font-weight: 700; color: #94a3b8; }

/* Floating WhatsApp */
.wa-float, .whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(37,211,102,0.35); z-index: 9999; transition: transform 0.3s; }
.wa-float:hover, .whatsapp-float:hover { transform: scale(1.1) translateY(-3px); }
.wa-float svg, .whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
    .nav-menu { gap: 18px; }
    .two-col { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-legal-text { max-width: 60%; }
    .section-lg { padding: 100px 0; }
}

/* Mobile */
@media (max-width: 768px) {
    main { padding-top: 64px; }
    /* Show hamburger, hide desktop nav */
    .menu-toggle { display: flex; }
    .nav-menu-container { display: none; }  /* Hide the desktop nav container */
    /* Show a small Try for Free pill inline on mobile navbar */
    .nav-try-mobile { display: block; }

    /* Mobile slide-in panel */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0; right: -100%;
        width: min(85%, 360px);
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 700;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 40px 40px;
        overflow-y: auto;
        box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    }
    body.nav-active .mobile-nav { right: 0; }

    .mobile-nav-close {
        position: absolute; top: 20px; right: 20px;
        background: #f1f5f9; border: none; cursor: pointer;
        width: 40px; height: 40px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.4rem; color: #64748b; transition: all 0.2s;
    }
    .mobile-nav-close:hover { background: #e2e8f0; color: #0f172a; }

    .mobile-nav-links { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 32px; }
    .mobile-nav-links a { font-size: 1.15rem; font-weight: 600; color: #334155; padding: 14px 20px; border-radius: 12px; transition: all 0.2s; text-align: center; }
    .mobile-nav-links a:hover { background: #f8fafc; color: #2563eb; }

    .mobile-nav-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
    .mobile-nav-actions a { text-align: center; width: 100%; padding: 14px; border-radius: 99px; font-weight: 700; font-size: 1rem; display: block; }
    .mobile-nav-actions .btn-nav-blue { background: #2563eb; color: white; }
    .mobile-nav-actions .btn-nav-solid { background: linear-gradient(135deg, #e11d48, #7c3aed); color: white; }

    /* Hide blobs - they are 400-500px wide and cause horizontal overflow */
    .blob { display: none !important; }

    /* Sections */
    .section { padding: 64px 0; }
    .section-sm { padding: 48px 0; }
    .section-lg { padding: 80px 0; }

    /* Layouts */
    .two-col, .two-col.reverse { flex-direction: column !important; gap: 36px; text-align: center; }
    .two-col > * { width: 100%; min-width: unset; max-width: 100%; }
    .three-col { grid-template-columns: 1fr !important; gap: 20px; }
    .four-col { grid-template-columns: 1fr 1fr !important; gap: 16px; }

    /* Disable expensive hover transforms on mobile */
    .expert-card:hover { transform: none; }
    .btn:hover { transform: none; }
    .btn-nav-blue:hover, .btn-nav-solid:hover { transform: none; }

    /* Buttons */
    .btn-row { justify-content: center; flex-direction: column; gap: 12px; align-items: center; }
    .btn-row .btn { width: 100%; max-width: 300px; }
    .btn { white-space: normal; line-height: 1.4; }

    /* Footer */
    .footer { padding: 60px 0 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .footer-links a { display: block; text-align: center; }
    .footer-middle { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
    .app-badges { justify-content: center; }
    .social-icons { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
    .footer-legal-text { max-width: 100%; }
    .footer-contact-big { font-size: 1.75rem; }
    .cert-badges { justify-content: center; }

    /* Pricing */
    .pricing-card { padding: 28px 20px !important; }
    .pricing-featured { transform: none !important; width: 100% !important; position: relative !important; }

    /* Industry strip */
    .industry-strip { gap: 16px !important; }

    /* WhatsApp */
    .wa-float, .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .wa-float svg, .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .wrap, .wrap-sm { padding: 0 18px; }
    .section { padding: 56px 0; }
    .section-lg { padding: 64px 0; }
    p { font-size: 1rem; }
    .footer-grid { gap: 28px; }
    .four-col { grid-template-columns: 1fr !important; }
    /* Hide decorative blobs that cause overflow */
    .blob { display: none !important; }
    /* Fix inline grid-template-columns inside sections */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
