/* =========================================================
   GymCMS — Pure Black & Orange Dark Theme (Enterprise Edition)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Core Brand Colors */
    --black: #000000;
    --black-soft: #0A0A0A;
    --orange: #F4791E;      /* Primary Orange */
    --orange-deep: #D9640F; /* Darker Orange for hovers */
    --orange-glow: rgba(244, 121, 30, 0.35);
    
    /* Dark Theme Surface Colors */
    --bg-main: #000000;       /* Pure Black Background */
    --bg-surface: #0A0A0A;    /* Ultra-dark grey for cards */
    --bg-panel: rgba(10, 10, 10, 0.7);
    --border: #1F1F1F;
    --border-light: rgba(255, 255, 255, 0.06);
    
    /* Typography Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --ink-400: #666666;
    --green: #1FAA6D;
    
    /* Utilities */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-glow: 0 10px 40px var(--orange-glow);
}

/* =========================================================
   1. RESET & BASE STYLES
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-main) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-size: 15.5px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection & Scrollbar */
::selection { background: var(--orange); color: #000; }
::-moz-selection { background: var(--orange); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; border: 2px solid var(--bg-main); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 800; margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   2. UTILITIES & TYPOGRAPHY
   ========================================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--orange) 0%, #FFB75E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.text-primary { color: var(--orange) !important; }
.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 600px; }

/* =========================================================
   3. BUTTONS
   ========================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: 14.5px; cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.btn-primary { 
    background: var(--orange); color: #fff; 
    box-shadow: 0 4px 15px var(--orange-glow);
}
.btn-primary:hover { 
    background: var(--orange-deep); 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 0 10px 25px rgba(244, 121, 30, 0.5); 
}
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-primary); }
.btn-outline:hover { background: rgba(244,121,30,0.1); border-color: var(--orange); color: var(--orange); }
.btn-glass { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-light); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--orange); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--orange); }
.btn-full { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* =========================================================
   4. HEADER & NAVIGATION
   ========================================================= */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 80px; display: flex; align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all .3s ease;
}
.header-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--text-secondary); transition: color 0.2s; }
.main-nav a:hover { color: var(--text-primary); text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 28px; color: #fff; cursor: pointer; z-index: 9999; }

/* =========================================================
   5. HERO SECTION & YOUTUBE LOOP
   ========================================================= */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 80px; overflow: hidden;
}
.video-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; overflow: hidden; pointer-events: none;
}
.video-background iframe {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw;
    min-height: 100vh; min-width: 177.77vh;
    transform: translate(-50%, -50%); pointer-events: none;
}
.video-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}
.video-gradient-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-main)); z-index: 1;
}
.hero-inner { position: relative; z-index: 10; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(244, 121, 30, 0.1); color: var(--orange);
    padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
    margin-bottom: 24px; border: 1px solid rgba(244, 121, 30, 0.3);
    backdrop-filter: blur(4px); letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.05; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 550px; margin-bottom: 34px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 40px; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }

/* Dashboard Glass Mockup & Animations */
@keyframes float {
    0% { transform: perspective(1000px) rotateY(-5deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-5deg) translateY(-10px); }
    100% { transform: perspective(1000px) rotateY(-5deg) translateY(0px); }
}
.glass-panel {
    background: var(--bg-panel); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,1); overflow: hidden;
}
.hero-mock { animation: float 6s ease-in-out infinite; border: 1px solid rgba(244,121,30,0.2); }
.hero-mock:hover { animation: none; transform: perspective(1000px) rotateY(0deg); border-color: var(--orange); box-shadow: var(--shadow-glow); }
.hero-mock-header { background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-light); padding: 14px 20px; display: flex; align-items: center; gap: 15px; }
.hero-mock-dots span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.hero-mock-dots span:nth-child(1) { background: #ff5f56; }
.hero-mock-dots span:nth-child(2) { background: #ffbd2e; }
.hero-mock-dots span:nth-child(3) { background: #27c93f; }
.hero-mock-title { font-size: 13px; color: var(--text-secondary); font-weight: 500; font-family: 'Inter', sans-serif; }
.hero-mock-body { display: flex; height: calc(100% - 45px); }
.hero-mock-sidebar { width: 80px; border-right: 1px solid var(--border-light); padding: 20px 15px; display:flex; flex-direction:column; gap:15px; background: rgba(0,0,0,0.2); }
.nav-item { height: 12px; border-radius: 4px; background: var(--border-light); }
.nav-item.active { background: var(--orange); box-shadow: 0 0 10px var(--orange-glow); }
.hero-mock-content { flex: 1; padding: 25px; display: flex; flex-direction: column; gap: 20px; }
.hero-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.stat-card { background: rgba(255,255,255,0.02); padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); transition: all 0.3s; }
.stat-card:hover { border-color: rgba(244,121,30,0.3); background: rgba(244,121,30,0.02); }
.stat-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { display: block; font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 5px; font-family: 'Sora', sans-serif; }
.hero-mock-chart-container { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-top: 10px; height: 100%; }
.chart-bar { flex: 1; background: var(--border-light); border-radius: 4px 4px 0 0; transition: 0.3s; }
.chart-bar.active, .chart-bar:hover { background: var(--orange); box-shadow: 0 0 15px var(--orange-glow); }

/* =========================================================
   6. SECTIONS, GRIDS & SPLIT LAYOUTS
   ========================================================= */
section { padding: 100px 0; }
.bg-surface { background: var(--bg-surface); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-eyebrow { color: var(--orange); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.section-title { font-size: clamp(32px, 4vw, 46px); margin-bottom: 24px; line-height: 1.1; }
.section-sub { color: var(--text-secondary); font-size: 18px; margin-bottom: 50px; }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-layout.reverse .split-image { order: 2; }
.split-layout.reverse .split-content { order: 1; }
.rounded-image { width: 100%; border-radius: var(--radius-lg); display: block; border: 1px solid var(--border); }
.shadow-neon { box-shadow: 0 20px 50px rgba(0,0,0,1), 0 0 40px rgba(244,121,30,0.1); }
.floating-card { position: absolute; display: flex; align-items: center; gap: 15px; padding: 15px 24px; border-radius: var(--radius-md); background: rgba(10, 10, 10, 0.95); border: 1px solid rgba(255,255,255,0.1); z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }

.feature-list-clean { list-style: none; padding: 0; }
.feature-list-clean li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; font-size: 16px; color: var(--text-secondary); line-height: 1.5; }
.feature-list-clean i { color: var(--orange); font-size: 20px; }

/* Bento Grid Architecture */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }
.bento-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; transition: all 0.3s; }
.bento-item:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }

/* Basic Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { background: var(--bg-surface); border: 1px solid var(--border); padding: 40px 30px; border-radius: var(--radius-lg); transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(244, 121, 30, 0.5); box-shadow: var(--shadow-glow); background: rgba(20,20,20,1); }
.feature-icon-box { width: 60px; height: 60px; border-radius: 16px; background: rgba(244, 121, 30, 0.1); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; border: 1px solid rgba(244,121,30,0.2); }
.feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); margin: 0; }

/* =========================================================
   7. PRICING & VALUE CARDS
   ========================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.price-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all .3s ease; position: relative; overflow: hidden; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.8); border-color: rgba(244,121,30,0.3); }
.price-card.popular { border-color: var(--orange); box-shadow: 0 0 30px rgba(244,121,30,0.15); background: linear-gradient(180deg, rgba(244,121,30,0.08) 0%, var(--bg-surface) 100%); }
.price-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 16px; border-radius: 0 0 8px 8px; }

/* =========================================================
   8. TESTIMONIALS
   ========================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card { padding: 40px; text-align: left; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.testimonial-stars { color: var(--orange); font-size: 18px; margin-bottom: 24px; letter-spacing: 2px; }
.testimonial-quote { font-size: 16px; font-style: italic; margin-bottom: 30px; color: #E0E0E0; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.testimonial-name { font-weight: 700; font-size: 16px; color: #fff; }
.testimonial-role { font-size: 13px; color: var(--text-secondary); }

/* =========================================================
   9. FAQ & ACCORDION
   ========================================================= */
.faq-list { max-width: 800px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; cursor: pointer; font-weight: 600; font-size: 18px; color: #fff; }
.faq-question i { color: var(--orange); transition: transform .3s ease; font-size: 24px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-secondary); font-size: 16px; }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 24px; }

/* =========================================================
   10. FINAL CTA & FOOTER
   ========================================================= */
.final-cta-section { padding: 60px 0 120px; }
.glass-cta {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    text-align: center; box-shadow: 0 40px 80px rgba(0,0,0,1);
    position: relative; overflow: hidden;
}
.glass-cta::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(244,121,30,0.08) 0%, transparent 50%); pointer-events: none;
}

.site-footer { background: var(--bg-main); border-top: 1px solid var(--border); padding: 80px 24px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--border-light); }
.footer-desc { font-size: 15px; color: var(--text-secondary); margin-top: 20px; line-height: 1.6; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 24px; letter-spacing: 0.5px; }
.site-footer a { display: block; font-size: 15px; color: var(--text-secondary); margin-bottom: 14px; transition: color .2s; }
.site-footer a:hover { color: var(--orange); padding-left: 5px; }
.footer-bottom { text-align: center; padding: 30px 0; font-size: 14px; color: var(--ink-400); }

/* =========================================================
   11. MODAL & FORM OVERRIDES (Popup Fixes)
   ========================================================= */
.modal-overlay { 
    display: none; 
    position: fixed; top: 0; left: 0; 
    width: 100vw; height: 100vh; 
    background: rgba(0, 0, 0, 0.85); 
    z-index: 99999; 
    align-items: center; justify-content: center; 
    padding: 20px; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex !important; }

.modal { 
    background: var(--bg-surface); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 40px; 
    width: 100%; max-width: 480px; 
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,1), 0 0 40px rgba(244,121,30,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close { 
    position: absolute; top: 20px; right: 20px; 
    background: #1A1A1A; color: #fff; border: 1px solid #333; 
    width: 36px; height: 36px; border-radius: 50%; 
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; font-size: 16px;
}
.modal-close:hover { background: var(--orange); border-color: var(--orange); }

.modal h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.modal p { color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; }

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; color: #CCC; font-weight: 500; font-size: 13px; margin-bottom: 8px; }
.form-group input, .form-group select {
    width: 100%; background: #000; border: 1px solid #333; color: #fff;
    border-radius: 8px; padding: 14px; font-size: 15px; font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus { 
    border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(244,121,30,0.2); 
}
.modal .btn-primary { width: 100%; margin-top: 10px; padding: 16px; font-size: 16px; }

/* =========================================================
   12. WHATSAPP FLOATING BUTTON
   ========================================================= */
.whatsapp-float {
    position: fixed !important; 
    bottom: 30px !important; right: 30px !important; 
    z-index: 9998 !important;
    width: 60px !important; height: 60px !important; 
    border-radius: 50% !important; 
    background: #25D366 !important; color: #fff !important;
    display: flex !important; align-items: center !important; justify-content: center !important; 
    font-size: 32px !important;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4) !important; 
    animation: pulse 2.5s infinite !important;
    text-decoration: none !important;
}
.whatsapp-float img, .whatsapp-float i { width: 35px; height: 35px; font-size: 35px; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    50% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
}

/* =========================================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================================= */
@media (max-width: 992px) {
    /* Collapse grids */
    .hero-inner, .split-layout { grid-template-columns: 1fr !important; gap: 2rem !important; text-align: center !important; }
    .split-content ul { text-align: left; }
    
    /* Hide heavy 3D mockup on tablets */
    .hero-mock { display: none !important; }
    
    /* Force Bento Grid to stack vertically */
    .bento-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .bento-item, .glass-panel[style*="grid-column"] { width: 100% !important; padding: 24px !important; }
    
    /* Fix images overflowing on mobile */
    .bento-grid img { position: relative !important; right: auto !important; bottom: auto !important; width: 100% !important; max-width: 300px !important; margin: 20px auto 0 !important; }

    /* Reverse order on split layouts */
    .split-layout.reverse .split-image { order: 1 !important; }
    .split-layout.reverse .split-content { order: 2 !important; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0 !important; }
    .hide-mobile { display: none !important; }
    
    /* Typography Adjustments */
    .hero h1, .hero-title { font-size: 36px !important; }
    .section-title { font-size: 28px !important; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }
    .hero-trust div { justify-content: center !important; }
    
    /* Mobile Navigation */
    .site-header { background: rgba(0,0,0,0.95); }
    .mobile-menu-btn { display: block !important; position: relative; z-index: 10001; }
    .main-nav { 
        position: fixed; top: 80px; left: 0; right: 0; 
        background: #0A0A0A; flex-direction: column; align-items: flex-start; 
        padding: 30px; gap: 20px; border-bottom: 1px solid #222; 
        display: none !important; /* Hidden by default, toggled via JS */
        box-shadow: 0 20px 40px rgba(0,0,0,0.9);
        height: auto; max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .main-nav.open { display: flex !important; }
    .main-nav a.nav-link { width: 100%; padding: 10px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.05); }

    /* Center floating cards on mobile */
    .floating-card {
        position: relative !important;
        top: auto !important; right: auto !important; left: auto !important; bottom: auto !important;
        margin: -20px auto 20px !important; max-width: 90%; justify-content: center;
    }
    
    /* Footer & Compare Table Fixes */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .compare-table-wrap { overflow-x: auto; padding-bottom: 20px; }
    
    /* Reposition WhatsApp button slightly higher for mobile Safari bars */
    .whatsapp-float { bottom: 20px !important; right: 20px !important; width: 55px !important; height: 55px !important; }
}

/* Accessibility Focus States */
a:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px;
}