:root {
    /* Color Palette - Duolingo-ish but Professional */
    --primary-purple: #7C3AED;
    --primary-purple-dark: #5B21B6;
    /* For button shadow */
    --deep-purple: #13082A;
    /* Darker, richer background */
    --black: #080808;
    --white: #FFFFFF;
    --soft-purple: #F3E8FF;
    --gray-bg: #F7F7F7;
    --gray-border: #E5E5E5;
    --text-main: #374151;
    --text-light: #9CA3AF;

    /* Typography */
    --font-main: 'Nunito', 'Inter', sans-serif;
    /* Rounded, friendly */
    --font-heading: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Extra bold for that Duolingo feel */
    letter-spacing: -0.02em;
}

/* Utils */
.container {
    max-width: 1000px;
    /* Tighter container for focused view */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Duolingo-style Buttons */
.btn-primary {
    background-color: var(--primary-purple);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    /* Super rounded */
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.1s ease;
    border: none;
    border-bottom: 5px solid var(--primary-purple-dark);
    /* The 3D effect */
    cursor: pointer;
}

.btn-primary:active {
    transform: translateY(4px);
    border-bottom-width: 0px;
    margin-bottom: 5px;
    /* Keep position relative to layout */
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:active {
    transform: translateY(4px);
    border-bottom-width: 0px;
    margin-bottom: 5px;
}

.section-padding {
    padding: 80px 0;
}

/* Cards - The "Gamified" Look */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    color: var(--text-main);
    border: 2px solid var(--gray-border);
    border-bottom: 6px solid var(--gray-border);
    /* Chunky bottom border */
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-dark {
    background: #1A1A1A;
    color: white;
    border: 2px solid #333;
    border-bottom: 6px solid #333;
}

/* Animations */
@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reveal.active {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* Bouncy animation */
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem !important;
    }
}