/* ========== VARIABLES ========== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --mcp-color: #06b6d4;
    --mcp-color-light: #22d3ee;
    --agents-color: #ec4899;
    --agents-color-light: #f472b6;
    --bg-dark: #0b0d1f;
    --bg-darker: #070815;
    --bg-card: #151830;
    --bg-card-hover: #1c1f3d;
    --bg-light: #f8f9fc;
    --text-primary: #f1f5f9;
    --text-secondary: #a0a5c2;
    --text-dark: #1e293b;
    --text-dark-secondary: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, #06b6d4, #6366f1, #ec4899);
    --gradient-text: linear-gradient(135deg, #22d3ee, #818cf8, #f472b6);
    --gradient-mcp: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-agents: linear-gradient(135deg, #8b5cf6, #ec4899);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 13, 31, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 13, 31, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 400;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu li a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--gradient) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    animation: float 20s infinite;
    filter: blur(2px);
}

.particle:nth-child(1) { width: 450px; height: 450px; top: -120px; left: -120px; animation-delay: 0s; background: var(--gradient-mcp); }
.particle:nth-child(2) { width: 350px; height: 350px; top: 40%; right: -100px; animation-delay: -5s; background: var(--gradient-agents); }
.particle:nth-child(3) { width: 220px; height: 220px; bottom: -50px; left: 30%; animation-delay: -10s; }
.particle:nth-child(4) { width: 160px; height: 160px; top: 20%; left: 60%; animation-delay: -3s; background: var(--gradient-mcp); }
.particle:nth-child(5) { width: 280px; height: 280px; bottom: 20%; right: 25%; animation-delay: -7s; background: var(--gradient-agents); }
.particle:nth-child(6) { width: 180px; height: 180px; top: 60%; left: 10%; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.btn-mcp {
    background: var(--gradient-mcp);
    color: #fff;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-mcp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-agents {
    background: var(--gradient-agents);
    color: #fff;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
}

.btn-agents:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.btn-block {
    width: 100%;
}

.btn-course {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.section-courses {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.section-dark .section-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-dark-secondary);
}

.section-dark .section-description {
    color: var(--text-secondary);
}

/* ========== COURSES GRID ========== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.course-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.course-mcp::before {
    background: var(--gradient-mcp);
}

.course-agents::before {
    background: var(--gradient-agents);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-mcp:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.course-agents:hover {
    border-color: rgba(236, 72, 153, 0.3);
}

.course-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.course-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}

.course-mcp .course-icon {
    background: var(--gradient-mcp);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.course-agents .course-icon {
    background: var(--gradient-agents);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

.course-tag {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-mcp .course-tag {
    background: rgba(6, 182, 212, 0.12);
    color: var(--mcp-color);
}

.course-agents .course-tag {
    background: rgba(236, 72, 153, 0.12);
    color: var(--agents-color);
}

.course-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.course-mcp h3 span {
    background: var(--gradient-mcp);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-agents h3 span {
    background: var(--gradient-agents);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark-secondary);
    margin-bottom: 16px;
}

.course-description {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.course-description strong {
    color: var(--text-dark);
}

.course-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.course-mcp .course-features li i {
    color: var(--mcp-color);
    width: 18px;
}

.course-agents .course-features li i {
    color: var(--agents-color);
    width: 18px;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.price-currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark-secondary);
}

.price-value {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.course-mcp .price-value {
    background: var(--gradient-mcp);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-agents .price-value {
    background: var(--gradient-agents);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== TUTOR ========== */
.tutor-card {
    display: flex;
    gap: 48px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.tutor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
}

.tutor-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.tutor-image-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient);
    overflow: hidden;
}

.tutor-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tutor-social-links {
    display: flex;
    gap: 10px;
}

.tutor-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-secondary);
    transition: var(--transition);
    font-size: 1rem;
}

.tutor-social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.tutor-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.tutor-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.tutor-bio {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tutor-bio strong {
    color: var(--text-dark);
}

.tutor-credentials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.credential-badge:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* ========== CTA FINAL ========== */
.section-cta {
    background: var(--bg-dark);
    color: var(--text-primary);
    text-align: center;
}

.cta-final {
    max-width: 700px;
    margin: 0 auto;
}

.cta-final h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-final p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-darker);
    color: var(--text-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand > span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
}

/* ========== SCROLL ANIMATIONS ========== */
.course-card,
.feature-card,
.tutor-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.course-card.visible,
.feature-card.visible,
.tutor-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(11, 13, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .section {
        padding: 70px 0;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .course-card {
        padding: 32px 24px;
    }

    .tutor-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 32px;
    }

    .tutor-credentials {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .course-card h3 {
        font-size: 1.3rem;
    }

    .price-value {
        font-size: 2.4rem;
    }
}
