/* 1. Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* 2. CSS Variables */
:root {
    /* Colors */
    --primary: var(--hex-blurple);
    --accent: var(--hex-highlight); 
    --text: var(--hex-black);  
    --text-light: var(--hex-grey);
    --background: var(--hex-white);
    --card-bg: #FFFFFF;
    --hex-black: #0B1215;       /* rgb(11, 18, 21) */
    --hex-black-dark: #000000;  /* rgb(0, 0, 0) */
    --hex-blue: #2563EB;        /* rgb(37, 99, 235) */
    --hex-blurple: #5522FA;     /* rgb(85, 34, 250) */
    --hex-cherokee: #CC3D33;    /* rgb(204, 61, 51) */
    --hex-green: #0B8A0F;       /* rgb(11, 138, 15) */
    --hex-green-dark: #007500;  /* rgb(0, 117, 0) */
    --hex-grey: #E7E8E9;        /* rgb(231, 232, 233) */
    --hex-highlight: #FDE047;   /* rgb(253, 224, 71) */
    --hex-orange: #F87917;      /* rgb(248, 121, 23) */
    --hex-paper: #FCFBF9;       /* rgb(250, 248, 244) */
    --hex-purple: #9932CC;      /* rgb(153, 50, 204) */
    --hex-red: #FF0101;         /* rgb(255, 1, 1) */
    --hex-red-dark: #EB0101;    /* rgb(235, 1, 1) */
    --hex-yellow: #FFD60A;      /* rgb(255, 214, 10) */
    --hex-white: #FFFFFF;       /* rgb(255, 255, 255) */
    --hex-target: #FFFF9C;      /* rgb(255, 255, 156) */

    /* Layout */
    --max-width: 1200px;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 3. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

/* 4. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary);
}

h1 { 
    font-size: 3rem; 
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: 2.25rem; 
    margin-bottom: 1rem;
}

h3 { 
    font-size: 1.5rem; 
    margin-bottom: 0.75rem;
}

/* 5. Layout & Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 3rem 1.5rem;
}

.section-intro {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.feature p {
    font-size: 1rem;
    color: var(--text);
    margin-top: 0.5rem;
}

.section-intro strong {
    font-weight: 600;
    color: var(--primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--background);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

/* Buttons */
.button-base {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
    text-align: center;
}

.primary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
    text-align: center;
    background: var(--accent);
    color: var(--text);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219,39,119,0.2);
}

.secondary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
    text-align: center;
    background: var(--primary);
    color: var(--text-light);
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

/* 7. Sections */
/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 { 
    font-size: 3.5rem;  
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-description {
    font-size: 1.5rem; 
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
}

.hero .cta-group {
    margin-top: 2rem;
}

.hero .primary-button,
.hero .secondary-button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    margin-right: 1rem;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.feature {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Level Cards */
.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.level-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

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

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.action-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

/* 8. Footer */
footer {
    background: var(--background);
    color: var(--text);
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.1); 
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section a {
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--text-light);
}

/* 9. Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.level-card:nth-child(1) { animation-delay: 0.2s; }
.level-card:nth-child(2) { animation-delay: 0.4s; }
.level-card:nth-child(3) { animation-delay: 0.6s; }

/* 10. Media Queries */
/* Mobile Responsive */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Hero */
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .hero-description { font-size: 1.25rem; }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--background);
        padding: 2rem;
        transition: var(--transition);
        flex-direction: column;
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        margin: 1rem 0;
        display: block;
    }

    /* Layout */
    section { padding: 3rem 1rem; }

    /* Grids */
    .level-cards, 
    .features, 
    .action-cards {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print */
@media print {
    .nav-links, 
    .cta-group {
        display: none;
    }
}