/* Landing Page Specific Styles */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: box-shadow var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width var(--transition-normal);
}

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

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.6s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: slideUp 1s ease;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slideUp 1.2s ease;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: slideUp 1.4s ease;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-card.floating {
    animation: floating 3s ease-in-out infinite;
}

.hero-mascot {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.card-content {
    margin-top: 1rem;
}

.streak-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.streak-display i {
    font-size: 1.5rem;
}

.streak-number {
    font-size: 2rem;
    font-family: var(--font-heading);
}

.streak-label {
    font-size: 0.95rem;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.decoration-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: floating 6s ease-in-out infinite;
}

.decoration-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: floating 8s ease-in-out infinite;
}

.decoration-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: floating 10s ease-in-out infinite;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Languages Section */
.languages {
    padding: 5rem 0;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.language-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 2px solid transparent;
}

.language-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.language-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.language-card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.language-card p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.language-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.language-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bento Grid Features Section */
.bento-features {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.bento-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--gray-900);
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bento-card {
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.bento-large {
    grid-column: span 4;
}

.bento-medium {
    grid-column: span 2;
}

.bento-tall {
    grid-column: span 3;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 3;
}

.bento-content {
    margin-bottom: 1.5rem;
}

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

.bento-card-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.bento-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Modal */
#videoModal .modal-content {
    max-width: 800px;
    background: #000;
    padding: 0;
    position: relative;
}

#videoModal .video-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

#videoModal video {
    width: 100%;
    border-radius: 12px;
}

/* Quiz Visual */
.quiz-mockup {
    width: 100%;
    background-color: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quiz-badge {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

.quiz-progress {
    font-weight: 700;
    color: var(--gray-700);
}

.quiz-question {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 1rem;
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.quiz-option:hover {
    border-color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

.quiz-option.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* Tasks Visual */
.task-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--gray-700);
    transition: transform var(--transition-fast);
}

.task-card:hover {
    transform: translateX(5px);
}

.task-card i {
    font-size: 1.25rem;
    color: var(--gray-400);
}

.task-card.completed {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-green);
}

.task-card.completed i {
    color: var(--primary-green);
}

/* Languages Visual */
.lang-badges {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.lang-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.lang-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.lang-badge i {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--white);
}

.lang-badge.python i {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.lang-badge.java i {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.lang-badge.cpp i {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Community Visual */
.leaderboard-mini {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-fast);
}

.leader-item:hover {
    transform: translateX(5px);
}

.leader-item .rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 50px;
}

.leader-item .name {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
}

.leader-item .xp {
    font-weight: 700;
    color: var(--gray-700);
}

.leader-item.gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: #fbbf24;
}

.leader-item.gold .rank {
    color: #fbbf24;
}

.leader-item.silver {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1) 0%, rgba(107, 114, 128, 0.1) 100%);
    border-color: #9ca3af;
}

.leader-item.silver .rank {
    color: #6b7280;
}

.leader-item.bronze {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    border-color: #fb923c;
}

.leader-item.bronze .rank {
    color: #ea580c;
}

/* Bento CTA */
.bento-cta {
    text-align: center;
    margin-top: 3rem;
}

.bento-cta .btn {
    min-width: 300px;
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large,
    .bento-medium,
    .bento-tall,
    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-features {
        padding: 3rem 0;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bento-large,
    .bento-medium,
    .bento-tall,
    .bento-wide {
        grid-column: span 1;
    }
    
    .bento-card {
        padding: 1.5rem;
    }
}
/* =============================================
   Testimonials Section
   ============================================= */
.testimonials-section {
    padding: 5rem 0 4rem;
    background: var(--white);
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fef9c3;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.testimonials-badge i { color: #f59e0b; }

.testimonials-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.testimonials-highlight {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Marquee rows */
.marquee-wrap {
    overflow: hidden;
    margin-bottom: 1.25rem;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
}

.marquee-left  { animation: marqueeLeft  38s linear infinite; }
.marquee-right { animation: marqueeRight 38s linear infinite; }

.marquee-wrap:hover .marquee-left,
.marquee-wrap:hover .marquee-right { animation-play-state: paused; }

@keyframes marqueeLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Testimonial card */
.tcard {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 1.4rem 1.5rem;
    width: 320px;
    flex-shrink: 0;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.tcard:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.tcard-featured {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
}

.tcard-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tavatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tcard-user { flex: 1; }
.tcard-name { font-weight: 700; font-size: 0.92rem; color: var(--gray-900); }
.tcard-handle { font-size: 0.78rem; color: var(--gray-500); }

.tcard-star-icon { color: #f59e0b; font-size: 0.9rem; margin-left: auto; }

.tcard-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.tcard-quote {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

/* =============================================
   Landing FAQ Section
   ============================================= */
.landing-faq {
    padding: 5rem 0;
    background: var(--gray-50);
}

.lfaq-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Left column */
.lfaq-left {
    position: sticky;
    top: 100px;
}

.lfaq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-purple);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.lfaq-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lfaq-highlight {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lfaq-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 360px;
}

.lfaq-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.lfaq-promo {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    align-items: flex-start;
}

.lfaq-promo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lfaq-promo-title { font-weight: 700; color: var(--gray-900); font-size: 0.95rem; }
.lfaq-promo-sub   { font-size: 0.8rem; color: var(--primary-purple); font-weight: 600; margin-bottom: 0.4rem; }
.lfaq-promo-body  { font-size: 0.83rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* Right column — accordion */
.lfaq-right { display: flex; flex-direction: column; gap: 0.75rem; }

.lfaq-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lfaq-item.open,
.lfaq-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.lfaq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    transition: color 0.2s;
}

.lfaq-item.open .lfaq-question { color: var(--primary-blue); }

.lfaq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--gray-500);
    transition: transform 0.3s, background 0.2s, border-color 0.2s, color 0.2s;
}

.lfaq-item.open .lfaq-icon {
    transform: rotate(45deg);
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.lfaq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 1.4rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.lfaq-item.open .lfaq-answer {
    max-height: 300px;
    padding: 0 1.4rem 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .lfaq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .lfaq-left { position: static; }
}

@media (max-width: 600px) {
    .testimonials-section { padding: 3rem 0 2.5rem; }
    .landing-faq { padding: 3rem 0; }
    .tcard { width: 280px; }
}

/* =============================================
   Learning Experience Section
   ============================================= */
.learn-exp {
    padding: 5rem 0;
    background: linear-gradient(160deg, #9cedef 0%, #4db8f0 30%, #3b82f6 65%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

/* subtle radial glow decorations */
.learn-exp::before,
.learn-exp::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.22;
}
.learn-exp::before {
    width: 520px;
    height: 520px;
    background: #fff;
    top: -120px;
    left: -80px;
}
.learn-exp::after {
    width: 400px;
    height: 400px;
    background: var(--primary-purple);
    bottom: -80px;
    right: -60px;
}

/* Header */
.learn-exp-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.learn-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.7);
    color: var(--gray-800);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.learn-exp-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.learn-exp-subtitle {
    font-size: 1.05rem;
    color: rgba(15,23,42,0.65);
    max-width: 560px;
    margin: 0 auto;
}

/* Two-column layout */
.learn-exp-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* ---- Profile Card ---- */
.lexp-profile-card {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.lexp-user-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lexp-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lexp-username {
    color: var(--gray-900);
    font-size: 1.15rem;
    font-weight: 700;
}

.lexp-meta {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.3rem;
    align-items: center;
}

.lexp-level {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.lexp-rank {
    color: var(--gray-500);
    font-size: 0.82rem;
}

/* Progress bar */
.lexp-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lexp-progress-label {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.lexp-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 999px;
    overflow: hidden;
}

.lexp-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
}

/* Stats */
.lexp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.lexp-stat {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: var(--radius-lg);
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.lexp-stat-icon { font-size: 1.3rem; }
.lexp-stat-val  { color: var(--gray-900); font-weight: 700; font-size: 1.05rem; }
.lexp-stat-lbl  { color: var(--gray-500); font-size: 0.72rem; }

/* Badges */
.lexp-badges-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
}

.lexp-badges {
    display: flex;
    gap: 0.6rem;
}

.lexp-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: default;
    transition: transform 0.2s;
}
.lexp-badge-icon:hover { transform: scale(1.15); }

/* Currently solving */
.lexp-solving {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: 0.85rem 1.1rem;
}

.lexp-solving-lbl {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.lexp-solving-title {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1rem;
}

/* ---- Code Editor Card ---- */
.lexp-editor-card {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lexp-editor-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.lexp-window-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.lexp-window-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.lexp-filename {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    flex: 1;
}

.lexp-editor-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lexp-py-ver {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}

.lexp-xp-pill {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

/* Code body */
.lexp-code-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}

.lexp-code {
    margin: 0;
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 2;
    white-space: pre;
    color: #cdd9e5;
}

.lc-ln     { color: rgba(255,255,255,0.2); user-select: none; display: inline-block; width: 2.2ch; text-align: right; margin-right: 1.5ch; }
.lc-comment{ color: #6a9955; }
.lc-kw     { color: #cc99cd; }
.lc-fn     { color: #7ec8e3; }
.lc-str    { color: #ce9178; }
.lc-num    { color: #b5cea8; }
.lc-op     { color: #d4d4d4; }

/* Output panel */
.lexp-output-panel {
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #0a0e14;
}

.lexp-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lexp-output-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
}

.lexp-run-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.lexp-run-btn:hover:not(:disabled) {
    opacity: 0.88;
    transform: scale(1.04);
}
.lexp-run-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.lexp-output-body {
    padding: 0.85rem 1.5rem 1rem;
    min-height: 52px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.lexp-output-idle  { color: rgba(255,255,255,0.25); font-style: italic; }
.lexp-output-result { color: #3dc97e; }
.lexp-output-result strong { color: #7ef5b5; }

/* Responsive */
@media (max-width: 1024px) {
    .learn-exp-layout {
        grid-template-columns: 1fr;
    }
    .lexp-profile-card {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .learn-exp { padding: 3rem 0; }
    .lexp-editor-topbar { flex-wrap: wrap; gap: 0.5rem; }
    .lexp-editor-meta { width: 100%; justify-content: flex-end; }
}

/* CTA Hero Section with Background Image */
.cta-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/images/cta-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    overflow: hidden;
}

.cta-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 50, 0.72) 0%,
        rgba(30, 10, 80, 0.68) 100%
    );
    backdrop-filter: blur(1px);
}

.cta-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 760px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.75rem;
}

.cta-badge i {
    color: #f0c040;
    font-size: 0.75rem;
}

.cta-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.cta-hero-highlight {
    background: linear-gradient(90deg, #7c5ff4, #38d9c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.cta-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(124, 95, 244, 0.55);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.95rem 2.5rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 30px rgba(124, 95, 244, 0.4);
}

.cta-hero-btn:hover {
    background: rgba(124, 95, 244, 0.8);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 40px rgba(124, 95, 244, 0.6);
}

.cta-hero-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cta-hero {
        min-height: 400px;
    }

    .cta-hero-content {
        padding: 3rem 1.5rem;
    }

    .cta-hero-subtitle br {
        display: none;
    }
}

/* Legacy CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.cta-mascot {
    margin-bottom: 2rem;
}

.cta-mascot img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: bounce 2s infinite;
}

.cta-section h2,
.cta-section p {
    color: var(--white);
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px) scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        padding: 1rem 1.5rem 1.5rem;
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1rem;
    }

    .nav-menu .btn {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-mascot {
        width: 200px;
        height: 200px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .features-grid,
    .languages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--white);
    color: var(--gray-900);
    padding: 4rem 0 0;
    border-top: 2px solid var(--gray-200);
    overflow: hidden; /* clip sides only — text fades before bottom */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.footer-tagline {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

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

.footer-column-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.footer-column-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column-links a:hover {
    color: var(--gray-900);
}

.footer-column-links a i {
    font-size: 1rem;
}

/* Large Platform Name — oversized brand word at footer base */
.footer-large-name {
    width: 100%;
    overflow: hidden;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
    /* allow text to bleed below footer edge */
    padding-bottom: 0;
    margin-bottom: -4px; /* kiss the very bottom */
}

.large-gradient-text {
    display: block;
    text-align: center;
    /* massive — intentionally bleeds off-screen */
    font-size: clamp(5rem, 18vw, 18rem);
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.03em;
    user-select: none;
    white-space: nowrap;
    /* vertical gradient: #9cedef at top → blue mid → transparent at bottom */
    background: linear-gradient(
        to bottom,
        #9cedef 0%,
        rgba(156, 237, 239, 0.5) 65%,
        rgba(156, 237, 239, 0) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* fade the entire element out toward the bottom edge */
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .large-gradient-text {
        font-size: clamp(4rem, 14vw, 12rem);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .large-gradient-text {
        font-size: clamp(3.5rem, 12vw, 8rem);
    }
}

@media (max-width: 480px) {
    .footer-logo-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .large-gradient-text {
        font-size: clamp(3rem, 10vw, 6rem);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}
