/* 
   AI ACADEMY - MOBILE-FIRST COMPACT DESIGN
   UI/UX PRO MAX - Optimized for performance & precision
*/

:root {
    /* Industry Palette: Techno-SciFi Deep Space */
    --bg-color: #030303;
    --bg-surface: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #161622;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    /* slate-400 */
    --text-muted: #64748b;
    /* slate-500 */

    --accent-orange: #f97316;
    /* orange-500 */
    --accent-violet: #8b5cf6;
    /* violet-500 */
    --accent-cyan: #06b6d4;
    /* cyan-500 */

    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    --glass-bg: rgba(10, 10, 15, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Responsive Spacing */
    --section-gap: clamp(40px, 8vh, 80px);
    --container-max: 1100px;
    --nav-height: 64px;

    /* Safe Typography */
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* 1. RESET & CORE - NO HORIZONTAL SCROLL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. BACKGROUND */
.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.25;
    border-radius: 50%;
    animation: float 20s infinite alternate linear;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-violet);
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(20px, 30px) rotate(10deg);
    }
}

/* 3. COMPACT NAVBAR */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.nav-links {
    display: none;
    /* Desktop only */
}

/* 4. MOBILE DRAWER */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

#navLinks.active {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-surface);
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
    z-index: 999;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* 5. HERO - MOBILE COMPACT */
.hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.btn {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
}

/* 6. STATS */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.stat-lab {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 7. VISUAL MOCKUP - SCALED FOR MOBILE */
.mockup-container {
    margin: 60px auto;
    width: 100%;
}

.phone {
    width: 250px;
    aspect-ratio: 9/19;
    background: #000;
    margin: 0 auto;
    border-radius: 36px;
    border: 10px solid #1a1a1a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.app-ui {
    padding: 20px;
    height: 100%;
    background: #08080c;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 8. BENTO GRID - COMPACT */
.bento-section {
    padding: 80px 0;
}

.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 9. TIMELINE */
.timeline-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.timeline {
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.t-item {
    position: relative;
}

.t-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--accent-violet);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-violet);
}

/* 10. CTA */
.cta-box {
    margin: 80px 0;
    padding: 40px 24px;
    background: linear-gradient(135deg, #1A1A24, #0a0a0f);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* 11. FOOTER - FIXED LOGO */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.f-logo {
    width: 40px;
    /* FIXED SIZE */
    height: 40px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.f-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 12. DESKTOP ADAPTATION */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 32px;
    }

    .mobile-toggle {
        display: none;
    }

    .hero {
        padding-top: 160px;
        padding-bottom: 120px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
        min-width: 180px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .bento-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 280px);
    }

    .bento-card.large {
        grid-column: span 3;
        grid-row: span 2;
    }

    .bento-card.tall {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card.small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .f-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .f-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* LEGAL PAGES UX */
.legal-main {
    padding-top: 120px;
}

.legal-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.legal-card h2 {
    color: var(--accent-violet);
    margin-bottom: 16px;
}

/* UTILS */
.fade-in {
    animation: fadeIn 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}