/* =========================
   21 DAYS OF PYTHON
   LPcomix
   ========================= */


/* ---------- General ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0f0f13;
    color: #ffffff;
    line-height: 1.6;
}

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

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}


/* ---------- Navigation ---------- */

nav {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(19, 19, 26, 0.9);
    border-bottom: 1px solid #24242c;
    backdrop-filter: blur(10px);
}

.nav-container {
    width: min(1100px, 90%);
    margin: 0 auto;

    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #aaa;
    padding: 10px 16px;
    border: 1px solid #2a2a33;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: #4b4b57;
    transform: translateY(-1px);
}


/* ---------- Hero ---------- */

.hero {
    width: min(1200px, 90%);
    min-height: 650px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.eyebrow,
.section-label {
    color: #8f8f9c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.tagline {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 20px;
}

.hero-description {
    color: #999;
    max-width: 550px;
    margin-bottom: 30px;
}


/* ---------- Buttons ---------- */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.2s;
}

.button.primary {
    background: #ffffff;
    color: #0b0b0f;
}

.button.secondary {
    border: 1px solid #444;
    color: #fff;
}

.button:hover {
    transform: translateY(-2px);
}


/* ---------- Hero Image ---------- */

.hero-image {
    width: 100%;
    max-width: 9999px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.demo-card {
    width: 100%;
    background: #111117;
    border: 1px solid #2f2f38;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px 8px 10px;

    color: #777;
    font-size: 0.75rem;
}

.hero-gif,
.demo-gif {
    width: 100%;
    max-width: 9999px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid #2f2f38;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.image-placeholder {
    aspect-ratio: 16 / 10;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px dashed #444;
    border-radius: 16px;

    color: #666;
}


/* ---------- Sections ---------- */

section {
    padding: 110px 0;
    border-top: 1px solid #1e1e25;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

section p {
    color: #aaa;
    max-width: 750px;
}


/* ---------- Features ---------- */

.feature-grid {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px;

    background: #111117;
    border: 1px solid #24242c;
    border-radius: 14px;

    transition: 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #444;
}

.feature-number {
    color: #666;
    font-size: 0.8rem;
    font-weight: 700;
}

.feature-card h3 {
    margin: 15px 0 8px;
    font-size: 1.2rem;
}


/* ---------- Development ---------- */

.stats {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    padding: 30px;

    background: #111117;
    border: 1px solid #24242c;
    border-radius: 14px;
}

.stat strong {
    display: block;
    font-size: 3rem;
}

.stat span {
    color: #888;
}


/* ---------- Download ---------- */

.download-box {
    text-align: center;
}

.download-box p {
    margin-left: auto;
    margin-right: auto;
}

.download-box .button {
    margin-top: 25px;
}

.small-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666 !important;
}


/* ---------- Footer ---------- */

footer {
    width: min(1100px, 90%);
    margin: 0 auto;

    padding: 35px 0;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: #666;
}

footer a:hover {
    color: #fff;
}


/* ---------- Mobile ---------- */

@media (max-width: 800px) {

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 80px 0;
    }

    h1 {
        letter-spacing: -2px;
    }

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

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

    footer {
        flex-direction: column;
    }
}
