/* =========================================================
   NEX AI PREMIUM APPLE-STYLE CSS
========================================================== */
:root {
    --apple-bg: #000000;
    --apple-text: #f5f5f7;
    --apple-text-muted: #86868b;
    --apple-blue: #2563eb; /* Corporate deep blue */
    --apple-blue-hover: #1d4ed8;
    --glass-bg: rgba(28, 28, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: light) {
    :root {
        --apple-bg: #ffffff;
        --apple-text: #1d1d1f;
        --apple-text-muted: #86868b;
        --glass-bg: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(0, 0, 0, 0.1);
    }
    
    .pure-black {
        background-color: #f5f5f7 !important;
    }
    
    .apple-nav.scrolled {
        background: rgba(255, 255, 255, 0.8);
    }
    
    .dark-panel {
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    
    .vignette-overlay {
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.2) 70%, rgba(255,255,255,1) 100%) !important;
    }


}

html {
    scroll-behavior: smooth;
}

/* Account for desktop sticky local navigation bar */
section[id], header[id] {
    scroll-margin-top: 60px;
}

body.app-mode section[id], body.app-mode header[id] {
    scroll-margin-top: 0 !important;
}

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

body.apple-dark {
    background-color: var(--apple-bg);
    color: var(--apple-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.pt-section { padding-top: 120px; }
.pb-section { padding-bottom: 120px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* =========================================================
   Typography & Gradients
========================================================== */
.apple-heading {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.apple-subhead {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-headline {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 60px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--apple-text-muted);
    max-width: 600px;
    margin: 0 auto 16px auto;
}

.hero-price {
    font-size: 1.2rem;
    color: var(--apple-text-muted);
    margin-bottom: 40px;
}

.iridescent-text {
    background: linear-gradient(120deg, #ffffff, var(--apple-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.metallic-text {
    background: linear-gradient(180deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   Global & Local Nav
========================================================== */
.global-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    font-size: 0.8rem;
    color: #e8e8ed;
}

.logo { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 16px; height: 16px; }

.local-nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Removes black background in dark mode */
}

.nav-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Removes black background in dark mode */
}

.nav-links { display: flex; gap: 32px; }
.nav-links a:hover { color: #fff; }

.local-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.local-nav-container {
    max-width: 100%;
    margin: 0 auto;
    height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.local-nav-title { font-weight: 600; font-size: 1.3rem; }
.local-nav-links { display: flex; gap: 24px; align-items: center; font-size: 0.8rem; }
.local-nav-links a { color: var(--apple-text-muted); }
.local-nav-links a:hover, .local-nav-links a.active { color: var(--apple-text); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary { background: var(--apple-blue); color: #fff; }
.btn-primary:hover { background: var(--apple-blue-hover); transform: scale(1.02); }
.btn-link { color: var(--apple-blue); background: transparent; }
.btn-link:hover { text-decoration: underline; }
.btn-buy { background: var(--apple-blue); color: #fff !important; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; }
.full-width { width: 100%; text-align: center; }
.mt-4 { margin-top: 16px; }

/* =========================================================
   Hero Section
========================================================== */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none !important;
}

#canvas-network { width: 100%; height: 100%; pointer-events: none !important; }
.hero-fade-out {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to bottom, transparent, var(--apple-bg));
    pointer-events: none !important;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.cta-group { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 30px; }

/* =========================================================
   Hardware Showcase / Avatar
========================================================== */
.vignette-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,1) 100%); 
    z-index: 2; 
    pointer-events: none;
}

.hardware-container { text-align: center; }
.hero-hardware-wrapper {
    position: relative;
    width: 300px; height: 300px;
    margin: 60px auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(145deg, #333, #000);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 2px 4px rgba(255,255,255,0.2);
}
.hardware-glow {
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,151,255,0.4) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 4s infinite alternate;
}
.hero-hardware-wrapper {
    cursor: pointer;
}
.hardware-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.5s;
    filter: blur(0px);
}
.hero-hardware-wrapper:hover .hardware-avatar {
    filter: blur(4px) brightness(0.6);
}
.hover-portal-hint {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; font-weight: 600; font-size: 1.1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.hero-hardware-wrapper:hover .hover-portal-hint {
    opacity: 1;
}
.hardware-avatar.expanding {
    transform: scale(60);
    opacity: 0;
    z-index: 999;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 24px;
}
.stat-num { font-size: 2.5rem; font-weight: 700; background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-desc { color: var(--apple-text-muted); font-size: 0.95rem; margin-top: 8px; }

/* =========================================================
   Bento Grid
========================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.bento-large { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.bento-small { display: flex; flex-direction: column; justify-content: center; }

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}
.bento-item:hover::before {
    opacity: 1;
}
.bento-content {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    flex: 1; min-width: 0;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px rgba(41, 151, 255, 0.1);
}

.bento-item h3 { font-size: 2rem; font-weight: 600; margin-bottom: 16px; }
.bento-desc { color: var(--apple-text-muted); font-size: 1.1rem; line-height: 1.5; margin-bottom: 24px; }
.bento-link {
    color: var(--apple-blue);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative !important;
    z-index: 12 !important;
    pointer-events: auto !important;
}

/* Consultation Section Stacking & Touch Fixes */
.consultation-split {
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}
.consultation-form-wrapper {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}
#homeConsultationForm {
    position: relative !important;
    z-index: 12 !important;
    pointer-events: auto !important;
}
#homeConsultationForm button[type="submit"] {
    position: relative !important;
    z-index: 15 !important;
    pointer-events: auto !important;
}

/* Chat Animation UI (Bento Large) */
.chat-animation-container {
    width: 380px;
    height: 400px;
    background: #000;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.chat-header {
    display: flex; align-items: center; padding: 16px;
    border-bottom: 1px solid var(--glass-border); background: #1c1c1e;
}
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2997ff, #9b2cfa); margin-right: 12px; }
.chat-info { display: flex; flex-direction: column; }
.chat-name { font-weight: 600; font-size: 0.9rem; }
.chat-status { font-size: 0.75rem; color: #32d74b; }

.chat-body { flex: 1; padding: 20px; overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black); display: flex; flex-direction: column; gap: 16px; position: relative; }
.chat-bubble { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 0.9rem; opacity: 0; transform: translateY(10px); animation: popIn 0.4s ease forwards; }
.bubble-user { align-self: flex-end; background: #2c2c2e; color: #fff; border-bottom-right-radius: 4px; }
.bubble-ai { align-self: flex-start; background: var(--apple-blue); color: white; border-bottom-left-radius: 4px; }

@keyframes popIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Indicators */
.voice-indicator, .workflow-indicator { position: relative; width: 60px; height: 60px; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; }
.bento-icon { width: 36px; height: 36px; z-index: 2; }
.ring-container { position: absolute; inset: -20px; }
.ring { position: absolute; inset: 0; border: 1px solid rgba(41,151,255,0.5); border-radius: 50%; animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.ring-2 { animation-delay: 1s; }

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* =========================================================
   Pricing Overview
========================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.pricing-column { background: var(--glass-bg); padding: 40px 30px; border-radius: 28px; border: 1px solid var(--glass-border); text-align: center; transition: transform 0.3s ease; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.pricing-column:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.pricing-column h4 { font-size: 1.5rem; color: var(--apple-text); }
.price-model { color: var(--apple-text-muted); font-size: 0.9rem; margin-top: 4px; }
.price-cost { font-size: 2rem; font-weight: 700; margin-top: 16px; color: var(--apple-text); }
.feature-divider { border: none; height: 1px; background: var(--glass-border); margin: 30px 0; }
.apple-features { text-align: left; }
.apple-features li { color: var(--apple-text); font-size: 0.9rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px; }

/* =========================================================
   Compare Modal Overlay
========================================================== */
.compare-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.compare-overlay.active { opacity: 1; pointer-events: auto; }
.compare-modal {
    width: 100%; max-width: 1200px; height: 85vh;
    background: rgba(28, 28, 30, 0.6); border: 1px solid var(--glass-border); border-radius: 32px;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black); position: relative;
    transform: scale(0.95) translateY(20px); transition: all 0.5s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.compare-overlay.active .compare-modal { transform: scale(1) translateY(0); }

.compare-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 40px 60px 20px; border-bottom: 1px solid var(--glass-border); }
.compare-header h2 { font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; }
.close-btn { background: rgba(255,255,255,0.1); border: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.close-btn:hover { background: rgba(255,255,255,0.2); }

.compare-scroll-area { display: flex; padding: 40px 40px 120px; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; width: 100%; }
.compare-scroll-area::-webkit-scrollbar { display: none; }
.agent-row { flex: 1; min-width: 220px; display: flex; flex-direction: column; scroll-snap-align: center; }
.agent-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 8px; }
.badge-current { font-size: 0.65rem; background: var(--apple-blue); padding: 4px 8px; border-radius: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; width: max-content; }

.agent-cards-container { display: flex; overflow-x: hidden; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 20px; }
.agent-cards-container::-webkit-scrollbar { display: none; }
.compare-card { flex: 0 0 100%; scroll-snap-align: start; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 20px; padding: 0; overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black); height: 240px; display: flex; flex-direction: column; }
.compare-card img { width: 100%; height: 120px; object-fit: cover; opacity: 0.8; }
.card-info { padding: 20px; flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.feature-text { font-size: 0.95rem; line-height: 1.4; color: #e8e8ed; }

.carousel-nav { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); display: flex; gap: 16px; z-index: 10; }
.nav-arrow { background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); border-radius: 50%; width: 44px; height: 44px; color: #fff; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; }
.nav-arrow:hover { background: rgba(255,255,255,0.2); }

.compare-bottom-nav { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 60px; background: rgba(28, 28, 30, 0.8); border-top: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.compare-tabs { display: flex; justify-content: center; gap: 10px; }
.tab-btn { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: #86868b; padding: 12px 24px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; }
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.tab-btn.active { background-color: #1d1d1f; color: #ffffff; border-color: rgba(255,255,255,0.2); }

/* =========================================================
   Apple-Style Checkout Form
========================================================== */
.checkout-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    z-index: 10;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.checkout-panel {
    display: flex;
    flex-wrap: wrap;
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    width: 100%;
}
.checkout-left { flex: 1; min-width: 300px; padding: 60px 40px; background: rgba(0, 0, 0, 0.2); border-right: 1px solid var(--glass-border); }
.checkout-right { flex: 1.2; min-width: 320px; padding: 60px 50px; background: transparent; }
.form-group { margin-bottom: 24px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 500; color: #86868b; }
.apple-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #f5f5f7;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.apple-input:focus { outline: none; border-color: rgba(41, 151, 255, 0.5); background: rgba(41, 151, 255, 0.05); box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1); }
.apple-input::placeholder { color: rgba(255, 255, 255, 0.2); }
.card-input-wrapper { position: relative; display: flex; align-items: center; }
.card-input-wrapper .input-icon { position: absolute; left: 14px; width: 18px; color: #86868b; }
.apple-input.with-icon { padding-left: 42px; }
.form-row { display: flex; gap: 16px; }

/* =========================================================
   Global Ambient Background Glow
========================================================== */

/* =========================================================
   Hyperspace Portal & Virtual Environment
========================================================== */
#hyperspace-tunnel {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9998;
    pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
#hyperspace-tunnel.active { opacity: 1; }

.hyper-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(41, 151, 255, 0.8);
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.5), inset 0 0 20px rgba(155, 44, 250, 0.5);
    opacity: 0;
}
#hyperspace-tunnel.active .hyper-ring {
    animation: teleport 1.5s cubic-bezier(0.1, 0, 0.1, 1) forwards;
}

@keyframes teleport {
    0% { transform: scale(0.1) rotate(0deg); opacity: 1; border-width: 1px; }
    100% { transform: scale(40) rotate(180deg); opacity: 0; border-width: 20px; }
}
.hyper-ring-1 { animation-delay: 0s !important; }
.hyper-ring-2 { animation-delay: 0.2s !important; }
.hyper-ring-3 { animation-delay: 0.4s !important; }
.hyper-ring-4 { animation-delay: 0.6s !important; }

.portal-dimension {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000;
    background: radial-gradient(circle at center, #0a0e17 0%, #000 100%);
    opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px; color: #fff;
}
.portal-dimension.active {
    opacity: 1; pointer-events: auto;
}

.return-reality {
    position: absolute; top: 40px; left: 40px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; padding: 12px 24px; border-radius: 30px;
    display: flex; align-items: center; gap: 8px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s; font-weight: 500;
}
.return-reality:hover {
    background: rgba(255,255,255,0.15); transform: translateX(-5px);
}

.portal-content { max-width: 1000px; text-align: center; }
.portal-content h2 { font-size: 3rem; margin-bottom: 60px; letter-spacing: -0.05em; background: linear-gradient(135deg, #fff, #aaa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.portal-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.portal-block {
    background: rgba(41, 151, 255, 0.05); border: 1px solid rgba(41, 151, 255, 0.1);
    padding: 30px; border-radius: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left;
}
.portal-block h3 { color: var(--apple-blue); margin-bottom: 12px; font-size: 1.25rem; }
.portal-block p { color: #ccc; line-height: 1.6; }

/* =========================================================
   Animations & Utils
========================================================== */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scale { opacity: 0; transform: scale(0.95); animation: fadeScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeScale { to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { opacity: 0.6; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1.05); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* Responsive basics */
@media (max-width: 768px) {
    /* Typography */
    .apple-heading { font-size: 2.4rem; }
    .section-headline { font-size: 1.9rem; margin-bottom: 36px !important; }
    .apple-subhead { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .pt-section { padding-top: 45px; }
    .pb-section { padding-bottom: 45px; }

    /* Navigation */
    .nav-container, .local-nav-container { padding: 0 16px; flex-wrap: wrap; }
    .global-nav { display: none !important; /* Hide global nav on mobile entirely to save height */ }
    .local-nav { height: auto; padding: 6px 0; }
    .local-nav-container { flex-direction: row; height: 42px; gap: 10px; align-items: center; justify-content: space-between; }
    .local-nav-logo { height: 26px !important; }
    .local-nav-links { 
        width: auto; 
        overflow-x: auto; 
        white-space: nowrap; 
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-end; 
        gap: 16px;
        padding-bottom: 0; 
    }
    .local-nav-links::-webkit-scrollbar { display: none; }
    .local-nav-links a { font-size: 0.78rem; }
    .btn-buy { padding: 4px 10px; border-radius: 8px; font-size: 0.72rem; }

    /* Hero & Hardware */
    .hero { padding-top: 100px; padding-bottom: 60px; }
    .hero-hardware-wrapper { width: 200px; height: 200px; margin: 30px auto; }
    
    /* Grids & Cards */
    .bento-grid, .pricing-grid, .grid-3, .portal-grid { grid-template-columns: 1fr; gap: 16px; }
    .bento-large { flex-direction: column; text-align: center; }
    .bento-large .bento-content { margin-bottom: 20px; align-items: center; }
    .bento-item { padding: 24px 20px; border-radius: 20px; }
    .bento-item h3 { font-size: 1.45rem; margin-bottom: 8px; }
    .bento-desc { font-size: 0.95rem; margin-bottom: 16px; }
    .stat-card { padding: 24px 16px; border-radius: 16px; }
    
    /* Chat & Compare */
    .chat-animation-container { width: 100%; max-width: 320px; height: 320px; margin: 0 auto; }
    .chat-simulation-container { min-height: 320px; height: auto; }
    .compare-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 16px 8px; }
    .compare-header h2 { font-size: 1.8rem; }
    .compare-scroll-area { padding: 16px 16px 120px; flex-direction: row; align-items: flex-start; gap: 16px; }
    .agent-row { flex: 0 0 85vw; width: 85vw; max-width: none; margin-bottom: 0; }
    
    .compare-bottom-nav { padding: 12px 16px; }
    .compare-tabs { gap: 6px; overflow-x: auto; padding-bottom: 4px; justify-content: flex-start; }
    .compare-tabs::-webkit-scrollbar { display: none; }
    .tab-btn { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
    
    /* Forms & Portal */
    .checkout-panel { flex-direction: column; }
    .checkout-left, .checkout-right { padding: 24px 16px; border-right: none; }
    .form-row { flex-direction: column; gap: 0; }
    .portal-dimension { padding: 16px; }
    .return-reality { top: 16px; left: 16px; padding: 8px 16px; font-size: 0.82rem; }
    .portal-content h2 { font-size: 1.8rem; margin-top: 45px; margin-bottom: 24px; }
}



/* =========================================================
   Custom Floating Chatbot
========================================================== */
.nuxus-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    pointer-events: none !important;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--apple-blue);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    float: right;
    pointer-events: auto !important;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: var(--apple-blue-hover);
}

.chat-window {
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: var(--apple-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom right;
}

.chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto !important;
}

.chat-header {
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header .chat-avatar {
    width: 36px;
    height: 36px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.chat-header .chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header .chat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--apple-text);
}

.chat-header .chat-status {
    font-size: 0.75rem;
    color: #10b981;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--apple-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.chat-close:hover {
    color: var(--apple-text);
}

.nuxus-chatbot-container .chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nuxus-chatbot-container .chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 1;
    transform: none;
    animation: bubblePop 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes bubblePop {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bot-msg {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--apple-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-msg {
    background: var(--apple-blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-action-btn {
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.chat-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
    opacity: 0.95;
}
.chat-action-btn:active {
    transform: translateY(0);
}

.chat-footer {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    gap: 8px;
}

.chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--apple-text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-footer input:focus {
    border-color: var(--apple-blue);
}

.chat-footer button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--apple-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.chat-footer button:hover {
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--apple-text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .nuxus-chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    .chat-window {
        width: calc(100vw - 40px);
        height: 60vh;
    }
}

/* =========================================================
   Apple-Style Footer
========================================================== */
.apple-footer {
    background: var(--apple-bg);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px 0;
    font-size: 0.85rem;
    color: var(--apple-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column h5 {
    color: var(--apple-text);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column ul a {
    color: var(--apple-text-muted);
    transition: color 0.2s ease;
}

.footer-column ul a:hover {
    color: var(--apple-text);
}

.footer-brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 4px;
}

.footer-tagline {
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--apple-text-muted);
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: #fff !important;
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    transform: translateY(-2px);
}

.footer-notes {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-divider {
    border: none;
    height: 1px;
    background: var(--glass-border);
    margin: 24px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.75rem;
}

.footer-contact-info {
    display: flex;
    gap: 24px;
    color: var(--apple-text-muted);
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: var(--apple-text);
}

.footer-contact-item svg {
    width: 14px;
    height: 14px;
    color: var(--apple-blue);
}

.footer-bottom-right {
    display: flex;
    gap: 16px;
}

.footer-bottom-right a {
    color: var(--apple-text-muted);
    transition: color 0.2s ease;
}

.footer-bottom-right a:hover {
    color: var(--apple-text);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-contact-info {
        flex-direction: column;
        gap: 12px;
    }

    /* =========================================================
       Safari, Chrome & In-App Webview Responsive Optimizations
       (For Instagram, TikTok, iOS Safari & Mobile viewports)
    ========================================================== */

    /* 1. Prevent forced iOS Safari auto-zoom on input elements */
    input, textarea, select, .chat-footer input {
        font-size: 16px !important;
    }

    /* 2. Premium tap-touch interaction: disable gray highlight box in Safari and Chrome iOS */
    a, button, .chat-toggle, .chat-action-btn, .tab-btn, .social-icon {
        -webkit-tap-highlight-color: transparent;
    }

    /* 3. Floating Chatbot & Sizing: adjust dynamic safe area heights for home bars & virtual keyboards */
    .nuxus-chatbot-container {
        bottom: calc(16px + env(safe-area-inset-bottom)) !important;
        right: calc(16px + env(safe-area-inset-right)) !important;
    }

    .chat-window {
        width: calc(100vw - 32px) !important;
        height: 60dvh !important; /* Dynamically resizes on keyboard active state */
        max-height: calc(100dvh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 20px !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
    }

    .chat-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .apple-footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
    }

    /* 4. Consultation & Checkout split panel responsiveness (prevents viewport bleeding) */
    .checkout-wrapper {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        min-height: 100svh !important;
        padding: 80px 16px 40px !important;
    }

    .consultation-split {
        padding: 32px 16px !important;
        gap: 32px !important;
        border-radius: 16px !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .consultation-form-wrapper {
        padding: 24px 16px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .consultation-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    /* Stack first and last name fields vertically on mobile */
    .name-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Smooth reading alignment for mobile textareas */
    textarea {
        line-height: 1.4 !important;
    }

    /* 5. Bento Grid Premium Scaling: Prevent fixed pixel widths from leaking horizontally */
    .chat-animation-container {
        width: 100% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
    }

    /* 6. Cinematic Intro: prevent dynamic viewport cutoff for logo alignment */
    #cinematic-intro {
        height: 100vh !important;
        height: 100dvh !important;
        height: 100svh !important;
    }

    #intro-video {
        object-fit: contain !important;
    }

    #skip-intro-btn {
        bottom: calc(24px + env(safe-area-inset-bottom)) !important;
        right: calc(24px + env(safe-area-inset-right)) !important;
    }

    /* 7. Subpage Navigation: Keep "Back to Home" link visible and elegantly scaled on mobile */
    .global-nav .nav-links {
        display: flex !important;
        gap: 16px !important;
    }
}

/* =========================================================
   Hide Mobile-Only Controls on Desktop / Tablet viewports
========================================================== */
.mode-switcher-pill,
.app-bottom-nav {
    display: none !important;
}

/* =========================================================
   Ultra-Premium Smartphone Optimizations (max-width: 480px)
   Engineered for absolute visual balance on small screens.
   Supports both Standard Web and iOS App Native views.
 ========================================================== */
@media (max-width: 480px) {
    /* 1. Tighter Typography & Layout scaling to fit perfectly on phones */
    .apple-heading {
        font-size: 2.1rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.04em !important;
    }
    
    .section-headline {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.03em !important;
        margin-bottom: 24px !important;
    }
    
    .apple-subhead {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 16px !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
    }
    
    /* 2. Micro-adjust paddings to increase valuable screen real-estate */
    .pt-section {
        padding-top: 40px !important;
    }
    
    .pb-section {
        padding-bottom: 40px !important;
    }
    
    .container {
        padding: 0 16px !important;
    }
    
    /* 3. Sleek Widget-style scaling for floating elements */
    .hero-hardware-wrapper {
        width: 160px !important;
        height: 160px !important;
        margin: 15px auto !important;
    }
    
    .globe-wrapper {
        height: 320px !important;
        margin-top: 20px !important;
    }
    
    .hardware-avatar {
        width: 140px !important;
        height: 140px !important;
    }
    
    .hardware-stats {
        gap: 16px !important;
        margin-top: 30px !important;
    }
    
    .hardware-stats .stat-card {
        padding: 16px !important;
    }
    
    .hardware-stats .stat-num {
        font-size: 2.2rem !important;
    }
    
    /* 4. Compact Buttons & Inputs */
    .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .cta-group {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .cta-group .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .apple-input {
        padding: 10px 12px !important;
        font-size: 16px !important; /* Prevent forced iOS Safari auto-zoom */
        border-radius: 10px !important;
    }
    
    .name-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* 5. Compact Floating Chatbot for unobtrusive scrolling */
    .chat-toggle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .chat-toggle svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .chat-window {
        width: calc(100vw - 24px) !important;
        height: 60dvh !important;
        max-height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 16px !important;
    }
    
    .chat-header {
        padding: 12px 14px !important;
    }
    
    .chat-body {
        padding: 14px !important;
        gap: 12px !important;
    }
    
    .chat-footer {
        padding: 10px 12px !important;
    }
    
    .chat-bubble {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        max-width: 85% !important;
    }

    /* 6. Tighten Compare Agent cards */
    .agent-row {
        flex: 0 0 90vw !important;
        width: 90vw !important;
    }
    
    .compare-scroll-area {
        padding: 10px 10px 130px !important;
        gap: 16px !important;
    }

    /* 7. Tighten Footers & Brands */
    .footer-brand-logo {
        height: 28px !important;
    }
    
    .local-nav-logo {
        height: 26px !important;
    }

    /* =========================================================
       8. Dynamic Switcher UI & Native iOS App Mode Overrides
    ========================================================== */
    
    /* Segmented Switcher Pill */
    .mode-switcher-pill {
        position: fixed;
        bottom: calc(20px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        z-index: 10002;
        background: rgba(20, 20, 22, 0.8);
        backdrop-filter: blur(20px) saturate(190%);
        -webkit-backdrop-filter: blur(20px) saturate(190%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 30px;
        padding: 3px;
        display: flex !important; /* Force override of desktop none style */
        gap: 2px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto !important; /* Guarantee touch inputs propagate */
    }
    
    .switcher-btn {
        border: none;
        background: transparent;
        color: #86868b;
        font-size: 0.72rem;
        font-weight: 600;
        padding: 6px 14px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        font-family: 'Inter', sans-serif;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .switcher-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .switcher-btn.active {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    /* Native App Bottom Tab Bar Navigation */
    .app-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(56px + env(safe-area-inset-bottom));
        background: rgba(18, 18, 20, 0.8);
        backdrop-filter: blur(24px) saturate(190%);
        -webkit-backdrop-filter: blur(24px) saturate(190%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 10001;
        display: none; /* Only flex in app-mode */
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    }
    
    .app-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #86868b;
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 500;
        gap: 3px;
        transition: all 0.2s ease;
        flex: 1;
        height: 100%;
        border: none;
        background: none;
        padding: 0;
    }
    
    .app-nav-item i, .app-nav-item svg {
        width: 20px !important;
        height: 20px !important;
        transition: transform 0.2s ease;
    }
    
    .app-nav-item:active i, .app-nav-item:active svg {
        transform: scale(0.9);
    }
    
    .app-nav-item.active {
        color: var(--apple-blue);
    }

    /* App-Mode Layout Adjustments */
    body.app-mode {
        background-color: #000000 !important;
    }
    
    body.app-mode .mode-switcher-pill {
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        top: auto !important;
    }
    
    body.app-mode .app-bottom-nav {
        display: flex !important; /* Force override of desktop none style */
        pointer-events: auto !important;
    }
    
    /* Hide top navigations in iOS App View to maximize vertical area */
    body.app-mode .local-nav,
    body.app-mode .global-nav {
        display: none !important;
    }
    
    /* Make App Mode extremely compact (Micro-sizing headings, widgets, and paddings) */
    body.app-mode .apple-heading {
        font-size: 1.85rem !important;
        line-height: 1.12 !important;
    }
    
    body.app-mode .section-headline {
        font-size: 1.45rem !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }
    
    body.app-mode .apple-subhead {
        font-size: 1.25rem !important;
        margin-bottom: 12px !important;
    }
    
    body.app-mode .hero-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 20px !important;
        line-height: 1.45 !important;
    }

    body.app-mode .pt-section {
        padding-top: 30px !important;
    }
    
    body.app-mode .pb-section {
        padding-bottom: 30px !important;
    }
    
    /* Bento & Grid scaling in App Mode */
    body.app-mode .bento-grid,
    body.app-mode .grid-3 {
        gap: 12px !important;
    }
    
    body.app-mode .bento-item,
    body.app-mode .stat-card {
        padding: 16px !important;
        border-radius: 16px !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
    }

    body.app-mode .bento-item h3,
    body.app-mode .stat-card h3 {
        font-size: 1.15rem !important;
        margin-bottom: 6px !important;
    }
    
    body.app-mode .bento-desc,
    body.app-mode .stat-desc {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }

    /* Circular AI receptionist widget */
    body.app-mode .hero-hardware-wrapper {
        width: 140px !important;
        height: 140px !important;
        margin: 10px auto !important;
    }
    
    body.app-mode .hardware-avatar {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Stacking forms inside app mode */
    body.app-mode .consultation-split {
        padding: 24px 16px !important;
        gap: 24px !important;
        border-radius: 16px !important;
    }
    
    body.app-mode .consultation-form-wrapper {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
    
    body.app-mode .consultation-content h2 {
        font-size: 1.7rem !important;
    }
    
    body.app-mode .name-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* Move chatbot toggle up dynamically to not overlap bottom navigation bar and switcher */
    .nuxus-chatbot-container {
        bottom: calc(85px + env(safe-area-inset-bottom)) !important;
        right: 16px !important;
    }

    body.app-mode .nuxus-chatbot-container {
        bottom: calc(140px + env(safe-area-inset-bottom)) !important;
        right: 16px !important;
    }
    
    body.app-mode .chat-window {
        bottom: 0 !important;
        height: 52dvh !important;
    }
    
    /* Ensure content is not cut off at the bottom of the page (under both switcher and bottom nav) */
    body.app-mode footer,
    body.app-mode section:last-of-type,
    body.app-mode .checkout-wrapper {
        padding-bottom: calc(145px + env(safe-area-inset-bottom)) !important;
    }

    /* Checkout & Consultation panel optimizations on smartphones (both modes) */
    .checkout-wrapper {
        padding: 60px 12px 40px !important;
    }
    
    .checkout-panel {
        border-radius: 16px !important;
    }
    
    .checkout-left {
        padding: 24px 16px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    .checkout-right {
        padding: 24px 16px !important;
    }
}
