/* STRICT MOBILE BOUNDARIES */
html, body { 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
    overflow-x: hidden !important; 
    width: 100vw; 
    max-width: 100%; 
    margin: 0; 
    padding: 0; 
}

*, *::before, *::after { box-sizing: border-box !important; }
img, video, svg { max-width: 100%; height: auto; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popupSlide { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.animate-fade-up { animation: fadeInUp .7s ease-out forwards; }
.animate-slide-right { animation: slideInRight .7s ease-out forwards; }
.opacity-0-init { opacity: 0; } 
.delay-100 { animation-delay: .1s; } .delay-200 { animation-delay: .2s; } .delay-300 { animation-delay: .3s; }

/* UTILITIES */
.card-hover { transition: all .4s cubic-bezier(.25,.4,.25,1); }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,.08); }
.gradient-text { background: linear-gradient(135deg, #3B82F6, #6366F1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-blur { background: rgba(255,255,255,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.hero-bg { background: #fafafa; background-image: radial-gradient(#e5e7eb 1px, transparent 1px); background-size: 24px 24px; }
.underline-gradient { position: relative; display: inline-block; }
.underline-gradient::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #3B82F6, #6366F1); border-radius: 2px; }

/* FAQ DROPDOWNS */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; }
.faq-answer.open { max-height: 500px; padding-bottom: 1.25rem; }

/* MENUS & NOTIFICATIONS */
.mobile-menu { display: none; position: fixed; inset: 0; background: #fff; z-index: 45; padding-top: 5rem; overflow-y: auto; }
.mobile-menu.open { display: block; }
.notification { position: fixed; bottom: 24px; right: 24px; background: #1F2937; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 9999; transform: translateY(100px); opacity: 0; transition: all .4s ease; display: flex; align-items: center; gap: 8px; max-width: 90vw; }
.notification.show { transform: translateY(0); opacity: 1; }
input:focus, select:focus { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 4px rgba(59,130,246,.1); }

/* PERFECT MOBILE LIGHTBOX */
.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.95); z-index: 99999; justify-content: center; align-items: center; padding: 16px; touch-action: none; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 95vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff; user-select: none; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: rgba(0,0,0,0.7); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; font-size: 20px; z-index: 201; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.7); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; font-size: 24px; z-index: 201; }
.lightbox-prev { left: 12px; } .lightbox-next { right: 12px; }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; background: rgba(0,0,0,0.7); padding: 6px 16px; border-radius: 20px; z-index: 201; }

/* PROOF IMAGES */
.proof-img-card { overflow: hidden; cursor: pointer; position: relative; display: flex; flex-direction: column; width: 100%; }
.proof-img-card .img-wrap { position: relative; width: 100%; overflow: hidden; background: #f3f4f6; flex-grow: 1; }
.proof-img-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.proof-img-card:hover img { transform: scale(1.03); }

/* TERMINAL MOCKUPS */
.mockup-main { width: 100%; max-width: 100%; min-height: 480px; background: #0F172A; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid #1E293B; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.mockup-header { background: #1E293B; padding: 12px 16px; display: flex; items-center; gap: 8px; border-bottom: 1px solid #334155; }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-slide { display: none; width: 100%; padding: 0; animation: fadeInUp .4s ease-out; height: 100%; flex-direction: column; } 
.mockup-slide.active { display: flex; }
.prompt-window { padding: 24px; font-family: 'JetBrains Mono', 'Courier New', monospace; color: #38BDF8; font-size: 13px; line-height: 1.6; overflow-y: auto; height: 400px; white-space: pre-wrap; word-break: break-word; }
.prompt-window .keyword { color: #F472B6; font-weight: bold; }
.prompt-window .string { color: #A3E635; }
.prompt-window .comment { color: #64748B; font-style: italic; }

.thumb-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px; scrollbar-width: none; width: 100%; }
.thumb-strip::-webkit-scrollbar { display: none; }
.thumb-pill { flex-shrink: 0; min-width: 90px; padding: 10px 12px; border-radius: 10px; border: 2px solid transparent; background: #f9fafb; cursor: pointer; transition: all .25s; text-align: center; font-size: 11px; font-weight: 600; color: #6b7280; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.thumb-pill.active { border-color: #3B82F6; background: #EFF6FF; color: #1d4ed8; }
.thumb-pill .thumb-icon { font-size: 18px; line-height: 1; }

.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; color: white; transition: all .2s; }
.carousel-nav:hover { background: rgba(255,255,255,.2); }
.carousel-prev { left: 12px; } .carousel-next { right: 12px; }

/* CALL CARD - FIXED HEIGHT & GAP ISSUE */
.call-card { background: linear-gradient(135deg,#fff,#fafbfc); border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; transition: all .3s; position: relative; overflow: hidden; display: flex; flex-direction: column; width: 100%; height: 100%; }
.call-card:hover { border-color: #3B82F6; box-shadow: 0 12px 32px rgba(59,130,246,.12); transform: translateY(-4px); }
.call-card-number { position: absolute; top: 16px; right: 16px; background: linear-gradient(135deg,#F59E0B,#EF4444); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.play-btn { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,#F59E0B,#EF4444); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; box-shadow: 0 8px 20px rgba(239,68,68,.25); flex-shrink: 0; }
.waveform { display: flex; align-items: center; gap: 2px; height: 32px; }
.waveform-bar { width: 3px; background: linear-gradient(180deg,#F59E0B,#EF4444); border-radius: 2px; opacity: .6; }

/* POPUP */
.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 300; justify-content: center; align-items: center; padding: 16px; backdrop-filter: blur(8px); }
.popup-overlay.open { display: flex; }
.popup-box { background: #fff; border-radius: 20px; max-width: 440px; width: 100%; padding: 32px; position: relative; animation: popupSlide .4s forwards; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.popup-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: #f3f4f6; border: none; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: #333; }

/* MOBILE RESPONSIVE GUARDS */
@media(max-width: 1024px) { .hero-mockup { display: none; } }
@media(max-width: 640px) { 
    .mockup-main { min-height: auto; } 
    .prompt-window { height: 350px; font-size: 12px; }
    .popup-box { padding: 24px; } 
    .carousel-nav { display: none; }
}