/* CSS for index_contact_newww.html */

/* ── Font Fallback Metric Overrides (reduce CLS during swap) ── */
    @font-face {
        font-family: 'Inter Fallback';
        src: local('Arial');
        size-adjust: 107.64%;
        ascent-override: 90%;
        descent-override: 22.43%;
        line-gap-override: 0%;
    }
    body, .font-inter {
        font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    }

    /* ── Hero ── */
    .hero-section {
        background: #ffffff;
        position: relative;
        overflow: hidden;
    }

    .hero-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(100px);
        opacity: 0.7;
        pointer-events: none;
        z-index: 0;
    }

    .hero-blob-1 {
        width: 500px;
        height: 500px;
        background: rgba(4, 107, 252, 0.3);
        top: -180px;
        left: -120px;
    }

    .hero-blob-2 {
        width: 400px;
        height: 400px;
        background: rgba(255, 153, 0, 0.2);
        top: 40px;
        right: -80px;
    }

    .hero-blob-3 {
        width: 350px;
        height: 350px;
        background: rgba(4, 107, 252, 0.2);
        bottom: -80px;
        left: 30%;
    }

    @media (max-width: 768px) {
        .hero-blob { opacity: 0.35; filter: blur(120px); }
        .hero-blob-1 { width: 300px; height: 300px; }
        .hero-blob-2 { width: 250px; height: 250px; }
        .hero-blob-3 { width: 220px; height: 220px; }
    }

    .hero-content {
        position: relative;
        z-index: 10;
    }

    .hero-grid {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-image:
            linear-gradient(rgba(4, 107, 252, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(4, 107, 252, 0.03) 1px, transparent 1px);
        background-size: 60px 60px;
        pointer-events: none;
        z-index: 1;
    }

    /* ── Section blobs ── */
    .section-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(120px);
        pointer-events: none;
        z-index: 0;
    }
    .section-blob-blue  { background: rgba(4, 107, 252, 0.15); }
    .section-blob-orange { background: rgba(255, 153, 0, 0.12); }

    /* ── Macrobox dark ── */
    .macrobox-dark {
        background: #04143d;
        position: relative;
        overflow: hidden;
    }
    .macrobox-dark::before {
        content: '';
        position: absolute;
        top: -30%; right: -15%;
        width: 500px; height: 500px;
        background: radial-gradient(circle, rgba(4, 107, 252, 0.4) 0%, transparent 60%);
        pointer-events: none;
    }
    .macrobox-dark::after {
        content: '';
        position: absolute;
        bottom: -25%; left: -10%;
        width: 400px; height: 400px;
        background: radial-gradient(circle, rgba(255, 153, 0, 0.25) 0%, transparent 60%);
        pointer-events: none;
    }

    /* ── Animated gradient mesh ── */
    @keyframes meshDrift { 0% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.05); } 66% { transform: translate(-20px,15px) scale(0.95); } 100% { transform: translate(0,0) scale(1); } }
    .mesh-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; animation: meshDrift 12s ease-in-out infinite; }
    .mesh-blob-reverse { animation-direction: reverse; animation-duration: 15s; }

    /* ── Dot pattern ── */
    .dot-pattern::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(4,107,252,0.04) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; z-index: 1; }

    /* ── Buttons ── */
    .btn-pill { border-radius: 50px; }
    .btn-pill:focus-visible {
        outline-offset: 3px;
        border-radius: 50px;
    }
    .btn-pill:active {
        transform: scale(0.97);
    }

    /* ── Feature cards ── */
    .feature-card {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08), 0 8px 20px -6px rgba(4,20,61,0.12);
    }

    /* ── FAQ Accordion ── */
    .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    .faq-item.active .faq-answer { max-height: 600px; }
    .faq-item.active .faq-icon { transform: rotate(45deg); background: #046bfc; color: white; }

    /* ── Scroll-reveal ── */
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
    .reveal-d1 { transition-delay: 0.1s; }
    .reveal-d2 { transition-delay: 0.2s; }
    .reveal-d3 { transition-delay: 0.3s; }
    .reveal-d4 { transition-delay: 0.4s; }

    /* ── Toast Snackbar ── */
    .toast-snackbar {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(120px);
        z-index: 9999;
        background: #04143d;
        color: white;
        padding: 14px 24px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 12px 40px rgba(0,0,0,0.25);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 90vw;
    }
    .toast-snackbar.visible {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .toast-snackbar .toast-icon {
        width: 20px; height: 20px;
        flex-shrink: 0;
    }
    .toast-snackbar .toast-close {
        margin-left: 8px;
        background: rgba(255,255,255,0.15);
        border: none;
        color: white;
        min-width: 44px; min-height: 44px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        line-height: 1;
        transition: background 0.2s;
        flex-shrink: 0;
    }
    .toast-snackbar .toast-close:hover { background: rgba(255,255,255,0.25); }

    @media (max-width: 768px) {
        .toast-snackbar { bottom: 120px; }
    }

    /* ── Scroll-margin for fixed nav ── */
    section[id] {
        scroll-margin-top: 140px;
    }

    /* ── Accessibility ── */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border-width: 0;
    }

    :focus-visible {
        outline: 2px solid #046bfc;
        outline-offset: 2px;
    }

    /* ── Reduced motion ── */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
        .reveal, .reveal-left, .reveal-right {
            opacity: 1 !important;
            transform: none !important;
        }
    }

    /* ── Print ── */
    @media print {
        nav, footer, .hero-blob, .hero-grid, .section-blob, .mesh-blob, .toast-snackbar { display: none !important; }
        body { background: white !important; color: #000 !important; font-size: 12pt; }
        section { background: white !important; box-shadow: none !important; break-inside: avoid; }
        .macrobox-dark { background: #f5f5f5 !important; color: #000 !important; }
        h1, h2, h3, h4, p, li, span, a { color: #000 !important; }
        .faq-answer { max-height: none !important; overflow: visible !important; }
    }
