:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.landing-container {
    background: radial-gradient(circle at top right, #1e1b4b, transparent),
        radial-gradient(circle at bottom left, #0f172a, transparent);
    min-height: 100vh;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.home-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.home-nav a:hover {
    color: var(--text-primary);
}

.nav-btn {
    background: var(--accent-color);
    color: #000 !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 1.5rem 5% 1rem;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.primary-btn-home,
.secondary-btn-home {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn-home {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.primary-btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.4);
    background: var(--accent-hover);
}

.secondary-btn-home {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.secondary-btn-home:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

.c1 {
    top: -20px;
    right: -20px;
}

.c2 {
    bottom: -10px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.features {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

.levels-preview {
    padding: 2rem 5%;
    background: rgba(15, 23, 42, 0.4);
}

.levels-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.levels-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.level-list {
    text-align: left;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.level-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.level-item-link:hover .level-item {
    border-color: var(--accent-color);
    transform: translateX(10px);
}

.level-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.lvl {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(56, 189, 248, 0.1);
    min-width: 60px;
    /* Fixed width to flexible min-width */
    height: 60px;
    padding: 0 10px;
    /* Add padding for wider text */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.lvl-text h3 {
    margin-bottom: 0.3rem;
}

.level-curriculum {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.level-curriculum li {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.level-curriculum li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.level-curriculum li a:hover {
    color: var(--text-primary);
}

.level-curriculum li span {
    font-size: 0.75rem;
    /* Slightly larger for readability */
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.25rem 0;
    /* Vertical padding only, horizontal handled by width */
    width: 48px;
    /* Fixed width for alignment */
    text-align: center;
    display: inline-block;
    /* Required for width to work */
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    transition: background 0.2s;
    flex-shrink: 0;
    /* Prevent shrinking in flex container */
}

.level-curriculum li a:hover span {
    background: rgba(56, 189, 248, 0.2);
}

.home-footer {
    padding: 1.5rem 5%;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.9);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
}

.social-links {
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    font-weight: 600;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.social-link svg {
    color: var(--accent-color);
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 5rem;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
        text-align: justify;
        text-align-last: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .home-header {
        padding: 1rem 5%;
    }

    .home-nav {
        gap: 1rem;
    }

    .home-nav a:not(.nav-btn) {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .levels-preview {
        padding: 4rem 5%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 5% 4rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-content h1 span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        text-align: left;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn-home,
    .secondary-btn-home {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .floating-card {
        display: none;
    }
}