/* ==========================================================================
   M-Tech Systems — Next-Gen Glassmorphism & Animated UI Design System
   100% Pure CSS3 | GPU Hardware-Accelerated | Mobile-First Responsive
   ========================================================================== */

:root {
    --glass-bg-light: rgba(255, 255, 255, 0.78);
    --glass-bg-light-hover: rgba(255, 255, 255, 0.94);
    --glass-border-light: rgba(226, 232, 240, 0.9);
    --glass-border-glow-light: rgba(14, 165, 233, 0.5);
    --glass-shadow-light: 0 10px 30px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.85);
    --glass-shadow-hover-light: 0 22px 45px -12px rgba(14, 165, 233, 0.20), inset 0 1px 0 0 rgba(255, 255, 255, 1);

    --glass-bg-dark: rgba(15, 23, 42, 0.68);
    --glass-bg-dark-hover: rgba(30, 41, 59, 0.84);
    --glass-border-dark: rgba(255, 255, 255, 0.10);
    --glass-border-glow-dark: rgba(56, 189, 248, 0.55);
    --glass-shadow-dark: 0 12px 35px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    --glass-shadow-hover-dark: 0 24px 50px -12px rgba(14, 165, 233, 0.28), 0 0 25px -5px rgba(99, 102, 241, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
}

/* Smooth scrolling & base canvas */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    width: 100%;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.09) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.09) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(14, 165, 233, 0.05) 0px, transparent 60%);
    background-attachment: fixed;
}

html.dark body {
    background-color: #060b16 !important;
    background-image:
        radial-gradient(at 10% 5%, rgba(14, 165, 233, 0.16) 0px, transparent 45%),
        radial-gradient(at 90% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 45%),
        radial-gradient(at 50% 60%, rgba(139, 92, 246, 0.09) 0px, transparent 55%),
        radial-gradient(at 85% 90%, rgba(6, 182, 212, 0.12) 0px, transparent 45%);
    background-attachment: fixed;
}

/* ==========================================================================
   0. Guaranteed Utility Polyfills & Mobile-First Grid Rules
   ========================================================================== */
[x-cloak] {
    display: none !important;
}

.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-7 { gap: 1.75rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-x-6 { column-gap: 1.5rem !important; }

.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-7 { padding: 1.5rem !important; }
.p-8 { padding: 1.5rem !important; }
@media (min-width: 640px) {
    .p-7 { padding: 1.75rem !important; }
    .p-8 { padding: 2rem !important; }
    .sm\:p-8 { padding: 2rem !important; }
    .sm\:p-10 { padding: 2.5rem !important; }
}
@media (min-width: 1024px) {
    .lg\:p-12 { padding: 3rem !important; }
}

.p-1\.5 { padding: 0.375rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-14 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-16 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.py-20 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

@media (min-width: 640px) {
    .py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

.pt-8 { padding-top: 2rem !important; }
.pb-5 { padding-bottom: 1.25rem !important; }

.mb-1\.5 { margin-bottom: 0.375rem !important; }
.mb-2\.5 { margin-bottom: 0.625rem !important; }
.mb-10 { margin-bottom: 2.25rem !important; }
.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1\.5 { margin-top: 0.375rem !important; }

.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem !important; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem !important; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem !important; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

/* Explicit Responsive Grid System for Cards & Products */
.mtech-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (min-width: 640px) {
    .mtech-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.75rem !important;
    }
}

@media (min-width: 1024px) {
    .mtech-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2rem !important;
    }
}

/* ==========================================================================
   1. Animated Ambient Background Orbs & Tech Grid
   ========================================================================== */
.mtech-ambient-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: strict;
}

.mtech-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(40px);
    opacity: 0.22;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: mtechOrbFloat 22s ease-in-out infinite alternate;
}

html.dark .mtech-orb {
    opacity: 0.16;
}

@media (max-width: 768px) {
    .mtech-ambient-canvas {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtech-orb {
        animation: none !important;
    }
}

.mtech-orb-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -80px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    animation-duration: 18s;
}

.mtech-orb-2 {
    width: 300px;
    height: 300px;
    top: 25%;
    right: -100px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    animation-duration: 24s;
    animation-delay: -5s;
}

.mtech-orb-3 {
    width: 280px;
    height: 280px;
    bottom: 5%;
    left: 10%;
    background: linear-gradient(135deg, #3b82f6, #14b8a6);
    animation-duration: 22s;
    animation-delay: -10s;
}

@media (min-width: 768px) {
    .mtech-orb-1 { width: 420px; height: 420px; }
    .mtech-orb-2 { width: 380px; height: 380px; }
    .mtech-orb-3 { width: 340px; height: 340px; }
}

@keyframes mtechOrbFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(30px, 25px, 0) scale(1.06); }
    100% { transform: translate3d(-25px, 40px, 0) scale(0.95); }
}

.bg-grid-glow {
    position: relative;
    background-size: 36px 36px;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

html.dark .bg-grid-glow {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* ==========================================================================
   2. Floating Glass Header, Desktop Pill & Mobile Drawer Navigation
   ========================================================================== */
.mtech-glass-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark .mtech-glass-header {
    background: rgba(6, 11, 22, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

/* CRITICAL: Desktop Navigation Pill is strictly hidden below 1024px (lg) */
.mtech-nav-pill {
    display: none !important;
}

.mtech-desktop-cta {
    display: none !important;
}

.mtech-mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .mtech-nav-pill {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        padding: 6px;
        border-radius: 9999px;
        background: rgba(241, 245, 249, 0.75);
        border: 1px solid rgba(226, 232, 240, 0.9);
        backdrop-filter: blur(12px);
    }

    html.dark .mtech-nav-pill {
        background: rgba(15, 23, 42, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mtech-desktop-cta {
        display: inline-flex !important;
    }

    .mtech-mobile-menu-btn {
        display: none !important;
    }

    .mtech-mobile-drawer {
        display: none !important;
    }
}

.mtech-nav-link {
    position: relative;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.25s ease;
    white-space: nowrap;
}

html.dark .mtech-nav-link {
    color: #cbd5e1;
}

.mtech-nav-link:hover {
    color: #0284c7;
    background: rgba(255, 255, 255, 0.7);
}

html.dark .mtech-nav-link:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.06);
}

.mtech-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    font-weight: 600;
}

/* Mobile Navigation Drawer */
.mtech-mobile-drawer {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.875rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
}

html.dark .mtech-mobile-drawer {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.65);
}

.mtech-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
}

html.dark .mtech-mobile-link {
    color: #e2e8f0;
}

.mtech-mobile-link:hover {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
}

html.dark .mtech-mobile-link:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.mtech-mobile-link.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 16px -4px rgba(14, 165, 233, 0.4);
}

/* ==========================================================================
   3. Glass Cards, Panels & Containers
   ========================================================================== */
.mtech-glass-card {
    position: relative;
    background: var(--glass-bg-light);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    border: 1px solid var(--glass-border-light);
    border-radius: 1.25rem;
    box-shadow: var(--glass-shadow-light);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.25s ease,
                background-color 0.25s ease;
    overflow: hidden;
}

@media (max-width: 768px) {
    .mtech-glass-card {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
}

html.dark .mtech-glass-card {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: var(--glass-shadow-dark);
}

.mtech-glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
    z-index: 1;
}

html.dark .mtech-glass-card::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
}

@media (hover: hover) {
    .mtech-glass-card:hover {
        transform: translateY(-6px);
        background: var(--glass-bg-light-hover);
        border-color: var(--glass-border-glow-light);
        box-shadow: var(--glass-shadow-hover-light);
    }

    html.dark .mtech-glass-card:hover {
        background: var(--glass-bg-dark-hover);
        border-color: var(--glass-border-glow-dark);
        box-shadow: var(--glass-shadow-hover-dark);
    }

    .mtech-glass-card:hover::before {
        left: 150%;
    }
}

/* Featured / Highlighted Glass Card (e.g. Popular Pricing Tier) */
.mtech-glass-card-featured {
    position: relative;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.93) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    border-radius: 1.35rem;
    box-shadow: 0 20px 50px -10px rgba(14, 165, 233, 0.3), 0 0 30px -5px rgba(99, 102, 241, 0.25);
    color: #ffffff;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

@media (hover: hover) {
    .mtech-glass-card-featured:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 28px 60px -10px rgba(14, 165, 233, 0.45), 0 0 40px 0px rgba(99, 102, 241, 0.35);
    }
}

/* ==========================================================================
   4. Glowing Icons, Badges & Mobile-Responsive Typography
   ========================================================================== */
.mtech-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0284c7;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(8px);
    max-width: 100%;
}

html.dark .mtech-eyebrow-badge {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(99, 102, 241, 0.18));
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    box-shadow: 0 2px 15px rgba(56, 189, 248, 0.15);
}

.mtech-pulse-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #0ea5e9;
    box-shadow: 0 0 8px #0ea5e9;
    animation: mtechDotPulse 2s infinite;
}

@keyframes mtechDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.mtech-gradient-heading {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
}

html.dark .mtech-gradient-heading {
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 55%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 639px) {
    h1.mtech-gradient-heading {
        font-size: 2rem !important;
        line-height: 1.22 !important;
    }
    h2.mtech-gradient-heading {
        font-size: 1.65rem !important;
        line-height: 1.28 !important;
    }
}

.mtech-icon-box {
    height: 3.25rem;
    width: 3.25rem;
    flex-shrink: 0;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #0284c7;
    box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.2);
    transition: all 0.35s ease;
}

html.dark .mtech-icon-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(99, 102, 241, 0.2) 100%);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.group:hover .mtech-icon-box,
.mtech-glass-card:hover .mtech-icon-box {
    background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 10px 25px -4px rgba(14, 165, 233, 0.5);
}

/* ==========================================================================
   5. Futuristic Buttons
   ========================================================================== */
.mtech-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.78rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.925rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #4f46e5 100%);
    background-size: 200% 200%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
}

.mtech-btn-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.55), 0 0 20px rgba(79, 70, 229, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

.mtech-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.mtech-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.78rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.925rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #1e293b;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
    text-align: center;
}

html.dark .mtech-btn-secondary {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

.mtech-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #0ea5e9;
    color: #0284c7;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.15);
}

html.dark .mtech-btn-secondary:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   6. Hero Frame & Floating Animations
   ========================================================================== */
.mtech-hero-media-frame {
    position: relative;
    border-radius: 1.35rem;
    padding: 8px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.25), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px -15px rgba(14, 165, 233, 0.25);
    animation: mtechHeroFloat 7s ease-in-out infinite alternate;
}

@media (min-width: 640px) {
    .mtech-hero-media-frame {
        border-radius: 1.5rem;
        padding: 10px;
    }
}

@keyframes mtechHeroFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

/* Section Alternating Glass Backdrop */
.mtech-section-glass {
    position: relative;
    background: rgba(241, 245, 249, 0.6);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

html.dark .mtech-section-glass {
    background: rgba(15, 23, 42, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   7. Form Inputs, reCAPTCHA & Interactive Controls Upgrade
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
    transition: all 0.25s ease !important;
    border-radius: 0.75rem !important;
    max-width: 100%;
}

html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark input[type="url"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark select,
html.dark textarea {
    background-color: rgba(15, 23, 42, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

/* Prevent reCAPTCHA overflow on small mobile screens */
.g-recaptcha {
    max-width: 100%;
    overflow-x: auto;
}
@media (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.88);
        transform-origin: 0 0;
    }
}

/* Carousel Arrows Glass Upgrade */
.carousel-arrow {
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
    transition: all 0.25s ease !important;
}

html.dark .carousel-arrow {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1) !important;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* CTA Banner Glass Upgrade */
.mtech-cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2.25rem 1.25rem;
    background: linear-gradient(135deg, #090d16 0%, #0f172a 45%, #1e1b4b 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 25px 60px -15px rgba(14, 165, 233, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
    .mtech-cta-banner {
        border-radius: 2rem;
        padding: 3.5rem 2.5rem;
    }
}

.mtech-cta-banner::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -120px;
    right: -80px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.mtech-cta-banner::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -140px;
    left: -80px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer Glass Upgrade */
.mtech-glass-footer {
    position: relative;
    z-index: 10;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

html.dark .mtech-glass-footer {
    background: rgba(6, 11, 22, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   8. Ultra-Converting Product Landing Page & Smart Auto-Bento Engine
   ========================================================================== */

/* Top Trust Strip */
.mtech-lp-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.22);
    font-size: 0.78rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 1.5rem;
}

html.dark .mtech-lp-trust-strip {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(56, 189, 248, 0.25);
    color: #bae6fd;
}

.mtech-lp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Split Hero Layout */
.mtech-lp-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .mtech-lp-hero-grid {
        grid-template-columns: 7fr 5fr;
        gap: 2.75rem;
        align-items: center;
    }
}

/* High-Converting Buy Box Card */
.mtech-buy-box-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #0b1120 0%, #111827 50%, #1e1b4b 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.28), 0 0 30px -5px rgba(79, 70, 229, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
    overflow: hidden;
}

@media (min-width: 640px) {
    .mtech-buy-box-card {
        padding: 1.85rem 2rem;
    }
}

.mtech-buy-box-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.mtech-cta-buy-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.85rem;
    border-radius: 0.95rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 45%, #0ea5e9 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.mtech-cta-buy-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px -4px rgba(16, 185, 129, 0.65), 0 0 25px rgba(14, 165, 233, 0.45);
}

.mtech-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff !important;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.55);
    transition: all 0.25s ease;
}

.mtech-btn-whatsapp:hover {
    background: #25D366;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.45);
}

.mtech-btn-demo-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0f2fe !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.35);
    transition: all 0.25s ease;
}

.mtech-btn-demo-outline:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: #38bdf8;
    transform: translateY(-2px);
}

/* SaaS Browser Window Frame */
.mtech-browser-window {
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 25px 60px -15px rgba(14, 165, 233, 0.28);
}

.mtech-browser-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mtech-browser-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mtech-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
}

.mtech-browser-url {
    font-size: 0.72rem;
    font-family: ui-monospace, monospace;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Scrollable Thumbnail Filmstrip */
.mtech-thumb-strip {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.75rem 0.25rem 0.35rem;
    scrollbar-width: thin;
}

.mtech-thumb-btn {
    flex: 0 0 88px;
    height: 56px;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    cursor: pointer;
}

@media (min-width: 640px) {
    .mtech-thumb-btn {
        flex: 0 0 110px;
        height: 68px;
    }
}

.mtech-thumb-btn.active {
    border-color: #0ea5e9;
    opacity: 1;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

/* Smart Auto-Bento Content Styling */
.mtech-smart-content {
    font-size: 1rem;
    line-height: 1.75;
}

.mtech-bento-section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 2.5rem 0 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .mtech-bento-section-title {
        font-size: 2.25rem;
    }
}

.mtech-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    margin: 1.75rem 0;
}

@media (min-width: 640px) {
    .mtech-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .mtech-bento-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mtech-bento-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-light);
    border-top: 3px solid #0ea5e9;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

html.dark .mtech-bento-card {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
    border-top: 3px solid #38bdf8;
    box-shadow: var(--glass-shadow-dark);
}

.mtech-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow-hover-light);
}

html.dark .mtech-bento-card:hover {
    box-shadow: var(--glass-shadow-hover-dark);
}

.mtech-bento-card h3,
.mtech-bento-card h4 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 0.65rem 0 !important;
    line-height: 1.35 !important;
}

html.dark .mtech-bento-card h3,
html.dark .mtech-bento-card h4 {
    color: #ffffff !important;
}

.mtech-bento-lead {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.85rem !important;
}

html.dark .mtech-bento-lead {
    color: #94a3b8;
}

.mtech-bento-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.mtech-bento-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    padding: 0.45rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(241, 245, 249, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

html.dark .mtech-bento-item {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Checkmark Benefits Grid */
.mtech-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

@media (min-width: 640px) {
    .mtech-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }
}

.mtech-benefit-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.9rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #0f172a;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

html.dark .mtech-benefit-pill {
    color: #f1f5f9;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.28);
}

/* Sticky Bottom Conversion Bar */
.mtech-sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.4);
    padding: 0.75rem 1rem;
}

