@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-blue: #2563EB;
    --primary-dark: #111827;
    --bg-light: #F9FAFB;
    --glass: rgba(255, 255, 255, 0.75);
    --font-main: 'Inter', system-ui, sans-serif;
    --gradient-brand: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    --nav-height: 85px;
    --brand-primary: #0ea5e9;
    --brand-violet: #7c3aed;
}

body { font-family: var(--font-main); background-color: var(--bg-light); color: var(--primary-dark); overflow-x: hidden; }

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
.fw-black { font-weight: 500 !important; } /* Fixed: Set to 900 for executive headers */
.ls-tight { letter-spacing: -1px !important; }
.ls-1 { letter-spacing: 1px !important; }

.hero-title { font-size: clamp(3rem, 5vw, 4rem); letter-spacing: -1.5px; }
.hero-gradient { background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hover-primary { transition: color 0.3s ease; }
.hover-primary:hover { color: var(--brand-primary) !important; }

.hover-violet { transition: color 0.3s ease; }
.hover-violet:hover { color: var(--brand-violet) !important; }

.hover-warning { transition: color 0.3s ease; }
.hover-warning:hover { color: #ffc107 !important; }

/* =========================================
   BUTTONS & CARDS
========================================= */
.text-gradient-hero { background: linear-gradient(to right, #0ea5e9, #7c3aed, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.btn-hero1 { background: linear-gradient(135deg, #0d6efd 0%, #084298 100%); color: white !important; box-shadow: 0 4px 12px rgba(13,110,253,0.25); border: none; }
.btn-hero2 { background: linear-gradient(135deg, #6f42c1 0%, #461fa3 100%); color: white !important; box-shadow: 0 4px 12px rgba(111,66,193,0.05); border: none; }

.btn:focus, .btn:active, .btn-student:focus, .btn-official:focus { outline: none !important; box-shadow: none !important; color: white !important;}

.btn-primary-gradient { background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-violet) 100%); color: #ffffff !important; border: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-primary-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3) !important; }
.btn-student { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); color: white !important; border: none; transition: all 0.3s ease;}
.btn-student:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3) !important; color: white !important; }
.btn-official { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); color: white !important; border: none;transition: all 0.3s ease;}
.btn-official:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3) !important; color: white !important; }

.trust-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); }
.trust-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(15, 76, 129, 0.08); }
.hover-lift { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; } 
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(15,23,42,0.08) !important; }

/* =========================================
   UI COMPONENTS (Mac Window & Marquee)
========================================= */
.mac-window { background: #f8fafc; border-radius: 24px; box-shadow: 0 30px 60px -12px rgba(15,23,42,0.15); border: 1px solid rgba(15,23,42,0.05); overflow: hidden; }
.mac-header { background: #ffffff; padding: 16px 24px; border-bottom: 1px solid rgba(15,23,42,0.05); display: flex; align-items: center; gap: 8px; }
.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.mac-dot.close { background: #ff5f56; } .mac-dot.min { background: #ffbd2e; } .mac-dot.max { background: #27c93f; }

.trust-marquee { background: white; display: flex; overflow: hidden; white-space: nowrap; border-bottom: 1px solid rgba(0,0,0,0.05); }
.marquee-track { display: flex; animation: scrollMarquee 25s linear infinite; gap: 5rem; padding-right: 5rem; }
.marquee-item { font-size: 1.1rem; color: #94a3b8; transition: color 0.3s ease; padding: 1.5rem 0; font-weight: 600; }
.marquee-item:hover { color: var(--brand-primary); }

@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   PREMIUM NAVBAR
========================================= */
.nav-spacer { height: var(--nav-height); }
.glass-nav { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); min-height: var(--nav-height); padding: 15px 0; }
.glass-nav.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); padding: 10px 0; }

.custom-nav-link { font-weight: 600; color: #475569 !important; font-size: 0.95rem; padding: 8px 16px !important; border-radius: 50px; transition: all 0.3s ease; position: relative; }
.custom-nav-link:hover { color: #0f172a !important; }
.custom-nav-link.active { color: var(--brand-primary) !important; background: rgba(14, 165, 233, 0.08); }

.custom-toggler { width: 45px; height: 45px; background: #f8fafc; border-radius: 50%; border: 1px solid rgba(14, 165, 233, 0.15) !important; position: relative; display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 5px; transition: all 0.3s ease; padding: 0;cursor: pointer;}
.custom-toggler:focus { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); outline: none;}
.toggler-icon { display: block; width: 22px; height: 2px; background-color: var(--brand-primary); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.custom-toggler[aria-expanded="true"] .top-bar { transform: translateY(7px) rotate(45deg); }
.custom-toggler[aria-expanded="true"] .middle-bar { opacity: 0; }
.custom-toggler[aria-expanded="true"] .bottom-bar { transform: translateY(-7px) rotate(-45deg); }

.glass-panel { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.5); }
.text-gradient-primary { background: linear-gradient(135deg, #0ea5e9 0%, #2563EB 50%, #7C3AED 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bg-gradient-primary { background: linear-gradient(135deg, #0ea5e9 0%, #2563EB 50%, #7C3AED 100%); }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
.anim-spin-slow { animation: spin-slow 20s linear infinite; }

/* =========================================
   Product Detail
========================================= */

.gallery-stage { aspect-ratio: 1 / 1; background: #ffffff; border-radius: 1.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-stage img { transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.gallery-stage:hover img { transform: scale(1.08); }
.thumb-btn { width: 80px; height: 80px; border-radius: 1rem; border: 2px solid transparent; background: #ffffff; cursor: pointer; transition: all 0.2s; padding: 0.5rem; }
.thumb-btn:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.thumb-btn.active { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); }

.qty-stepper { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 50rem; padding: 0.35rem; display: inline-flex; align-items: center; height: 54px; box-shadow: 0 2px 4px rgba(0,0,0,0.02);transition: border-color 0.2s ease; }
.qty-stepper:focus-within { border-color: #cbd5e1; }

.qty-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: #f8fafc; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.qty-btn:hover { background: #2563eb; color: #ffffff; transform: scale(1.05);}
.qty-btn:active { transform: scale(0.95); }

.qty-input { width: 48px; border: none; background: transparent; text-align: center; font-size: 1.125rem; font-weight: 700; color: #0f172a; outline: none; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.nav-tabs-custom .nav-link { color: #64748b; font-weight: 700; border: none; padding: 1rem 0; margin-right: 2rem; border-bottom: 3px solid transparent; transition: all 0.3s ease; background: transparent; }
.nav-tabs-custom .nav-link:hover { color: #0f172a; }
.nav-tabs-custom .nav-link.active { color: #2563eb; border-bottom-color: #2563eb; }
    
.pulse-dot { width: 10px; height: 10px; background-color: #10b981; border-radius: 50%; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
    
.sticky-sidebar { position: sticky; top: 120px; }
.mobile-sticky-cta { box-shadow: 0 -10px 30px rgba(0,0,0,0.08); z-index: 1040; padding-bottom: env(safe-area-inset-bottom); }

/* =========================================
   ERROR FAILSAFES (403, 404, 500)
========================================= */
.error-canvas { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #f8fafc; position: relative; overflow: hidden; text-align: center; }
.error-code-massive { font-size: clamp(8rem, 20vw, 16rem); font-weight: 900; line-height: 0.85; letter-spacing: -0.06em; background: linear-gradient(180deg, #0f172a 0%, rgba(15,23,42,0) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1.5rem; user-select: none; }
.error-title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; color: #0f172a; letter-spacing: -0.03em; margin-bottom: 1rem; }
.error-desc { font-size: 1.1rem; color: #64748b; line-height: 1.6; margin-bottom: 2.5rem; max-width: 450px; margin-left: auto; margin-right: auto;}

/* =========================================
   FLOATING ACTIONS
========================================= */
.whatsapp-float { position: fixed; width: 45px; height: 45px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; text-decoration: none; bottom: 30px !important; right: 20px !important; }
.whatsapp-float:hover { background-color: #128c7e; color: #fff; transform: translateY(-5px); }

.back-to-top { position: fixed; bottom: 100px; right: 20px; width: 45px; height: 45px; background-color: #0f172a; color: white; border: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; transition: all 0.3s ease; opacity: 0; visibility: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #fff; color: #000; transform: translateY(-5px); }

/* =========================================
   MEDIA QUERIES
========================================= */
@media (min-width: 992px) {
    .custom-toggler { display: none !important; }
}

@media (max-width: 991px) {
    .glass-nav { padding: 10px 0; }
    .navbar-collapse { position: absolute; top: 100%; left: 15px; right: 15px; width: calc(100% - 30px); background: #ffffff; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15); border: 1px solid rgba(0, 0, 0, 0.05); margin-top: 10px; z-index: 1050; }
    .custom-nav-link { padding: 12px 16px !important; border-radius: 12px;}
    .custom-nav-link:hover { background: #f8fafc; }
}

@media (max-width: 768px) {
    .whatsapp-float { bottom: 20px !important; right: 15px !important; width: 35px; height: 35px; font-size: 20px; }
    .back-to-top { bottom: 65px; right: 15px; width: 35px; height: 35px; }
}