:root {
    --color-cyan: #6cc6e0;
    --color-cyan-light: #8fd4e9;
    --color-dark: #333333;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-muted: #555555;
    --color-wip: #d49a2a;
}

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

html,
body {
    font-family: "Lexend", system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--color-cyan);
    padding: 0.6rem 0;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 28px;
    width: auto;
}

.site-nav {
    justify-self: end;
    font-size: 1.4rem;
    color: var(--color-white);
}

.site-nav a {
    color: var(--color-white);
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    opacity: 0.8;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background-image: url("img/cover.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 220px;
    display: grid;
    align-items: end;
}

.hero-overlay {
    width: 100%;
    padding: 1.5rem 1.25rem;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    color: var(--color-cyan);
    padding: 0.55rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    color: var(--color-white);
    text-align: center;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

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

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.feature-item {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-cyan);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 280px;
}

/* ---------- Examples ---------- */
.examples {
    background: var(--color-cyan);
    padding: 1.75rem 0 2.5rem;
    color: var(--color-white);
}

.examples-title {
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.wip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--color-white);
}

.wip-badge i {
    color: var(--color-wip);
}

.code-preview {
    background: #3a3a3a;
    border-radius: 4px;
    min-height: 220px;
    width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Responsive: Tablet & Desktop ---------- */
@media (min-width: 600px) {
    .hero {
        min-height: 280px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .examples-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }
}

@media (min-width: 900px) {
    .hero {
        min-height: 340px;
    }

    .features {
        padding: 3rem 0;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .code-preview {
        min-height: 260px;
    }
}
