/* ============================================================================
   MAS-JO Learning Platform - Elegant Corporate Blue Theme
   ============================================================================ */

:root {
    /* Primary Colors - Corporate Blue */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Accent Colors */
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 6rem 2rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   Header
   ============================================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-900);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-800);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-600);
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-700);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-200);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.visual-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 140px;
    border: 1px solid var(--gray-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.visual-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.visual-card:nth-child(2) { animation: float 6s ease-in-out infinite 0.5s; }
.visual-card:nth-child(3) { animation: float 6s ease-in-out infinite 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.visual-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-600);
}

.visual-icon svg {
    width: 100%;
    height: 100%;
}

.visual-card span {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* ============================================================================
   Section Headers
   ============================================================================ */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================================
   Modules Section
   ============================================================================ */

.modules {
    padding: var(--section-padding);
    background: white;
}

.modules-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.module-card {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-100);
    line-height: 1;
    margin-bottom: 1rem;
}

.module-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.lesson-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lesson-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.lesson-icon {
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.lesson-content strong {
    display: block;
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.lesson-content p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================================================
   Features Section
   ============================================================================ */

.features {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.features-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================================================
   Technologies Section
   ============================================================================ */

.technologies {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
}

.technologies .section-title {
    color: white;
    margin-bottom: 2.5rem;
}

.tech-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.tech-name {
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
    background: var(--gray-900);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
}

.footer-brand .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 2rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.875rem 1.25rem;
    }

    .nav {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .module-card {
        padding: 1.75rem;
    }

    .module-number {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1.25rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .visual-card {
        padding: 1.5rem;
        min-width: 100px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
