/* ============================================================================
   GENX ACADEMY - ELITE DESIGN LAYOUT SYSTEM
   Purpose: Premium SaaS Layout & Structural Fixes
   Version: 2.0 - Total Cleanup
   ============================================================================ */

/* ============================================================================
   1. GLOBAL RESET & FOUNDATION
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #f8fafc;
    background: #050505;
}

/* ============================================================================
   2. STRUCTURAL ALIGNMENT - THE GRID
   ============================================================================ */

/* Standard Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing - Let it Breathe */
section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
}

/* ============================================================================
   3. HEADER - FIXED & GLASSMORPHISM
   ============================================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1000;

    /* Dark Glassmorphism Effect */
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Subtle Bottom Border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    /* Soft Shadow */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.03);

    transition: all 0.3s ease;
}

/* Header Container - Perfect Flexbox Alignment */
.header .container,
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #e11d48;
}

/* Navigation Menu - Perfectly Centered */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.2s ease;
    position: relative;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: #e11d48;
}

/* Navigation Buttons Container */
.nav-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header Spacer to Prevent Content Overlap */
.header-spacer {
    height: 65px;
}

/* ============================================================================
   4. HERO SECTION - CLEAN & ALIGNED
   ============================================================================ */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 30px;

    /* Dark Premium Background */
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;

    /* Subtle Glow */
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}

/* Hero Headline - Perfect Baseline Alignment */
.hero-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 32px;
}

.text-top,
.text-bottom {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.text-main {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #e11d48;
    line-height: 1;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 32px;
}

/* ============================================================================
   5. STATS CARDS - PERFECT GRID
   ============================================================================ */

.stats-container {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 24px;
}

/* CSS Grid for Perfect Alignment */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat Card - Premium Soft UI */
.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;

    /* Dark Shadow */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);

    /* Smooth Transition */
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: #e11d48;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   6. BUTTONS - PROFESSIONAL GRADIENT
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none !important;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

/* Primary Button - Premium Gradient */
.btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.3);
}

/* Secondary/Outline Button */
.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(225, 29, 72, 0.05);
    border-color: #e11d48;
    color: #e11d48 !important;
}

/* Gold/Get Access Button */
.btn-gold {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.3);
}

/* ============================================================================
   7. CARDS & CONTAINERS - SOFT UI
   ============================================================================ */

.card,
.feature-box,
.module-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;

    /* Dark Shadow */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease;
}

.card:hover,
.feature-box:hover,
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

/* ============================================================================
   8. TYPOGRAPHY - READABILITY
   ============================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
    color: #94a3b8;
}

/* ============================================================================
   9. UTILITY CLASSES
   ============================================================================ */

/* Remove All Underlines from Links */
a {
    text-decoration: none;
}

/* Soft Shadows */
.shadow-soft {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.03) !important;
}

.shadow-soft-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06) !important;
}

/* Consistent Border Radius */
.rounded {
    border-radius: 16px !important;
}

/* Light Border */
.border-light {
    border: 1px solid #f1f5f9 !important;
}

/* ============================================================================
   10. MOBILE RESPONSIVENESS
   ============================================================================ */

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header .container,
    .nav-flex {
        height: 70px;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        min-height: 60vh;
        padding: 60px 0 40px;
    }

    .hero-content {
        padding: 40px 24px;
    }

    section {
        padding: 80px 0;
    }
}

/* ============================================================================
   END OF ELITE LAYOUT SYSTEM
   ============================================================================ */