/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #1a1a2e;
    --white: #fffef2;
    --yellow: #ffe156;
    --red: #ff6b6b;
    --blue: #4ecdc4;
    --pink: #ff8fab;
    --purple: #c77dff;
    --border: 3px solid #1a1a2e;
    --shadow: 6px 6px 0 #1a1a2e;
    --shadow-lg: 10px 10px 0 #1a1a2e;
    --radius: 12px;
    --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Nav === */
.nav {
    border-bottom: var(--border);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--black);
    font-weight: 800;
    font-size: 18px;
}

.nav-logo img {
    border-radius: 8px;
    border: 2px solid var(--black);
}

.nav-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--black);
    padding: 8px 16px;
    border: var(--border);
    border-radius: 8px;
    transition: all 0.15s;
}

.nav-link:hover {
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--black);
    transform: translate(-2px, -2px);
}

/* === Hero === */
.hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--yellow);
    border: var(--border);
    border-radius: 100px;
    padding: 6px 20px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 3px 3px 0 var(--black);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-accent {
    background: linear-gradient(135deg, var(--red), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: #555;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn-primary {
    background: var(--red);
    color: white;
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

/* === Showcase / Carousel === */
.showcase {
    max-width: 900px;
    margin: 20px auto 60px;
    padding: 0 24px;
}

.carousel {
    position: relative;
}

.carousel-track {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    justify-content: center;
    animation: carouselFade 0.4s ease;
}

.carousel-slide.active {
    display: flex;
}

@keyframes carouselFade {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.showcase-item {
    position: relative;
    border: var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    width: 100%;
}

.showcase-mobile {
    max-width: 360px;
}

.showcase-item img {
    display: block;
    width: 100%;
    height: auto;
}

.showcase-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 100px;
    z-index: 2;
}

.showcase-desktop .showcase-label { background: var(--red); }
.showcase-mobile .showcase-label { background: var(--purple); }
.showcase-export .showcase-label { background: var(--blue); color: var(--black); }

/* Carousel controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: var(--border);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--yellow);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--black);
}

.carousel-btn:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    padding: 6px 16px;
    border: var(--border);
    border-radius: 100px;
    background: var(--white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.carousel-dot.active {
    background: var(--black);
    color: var(--white);
    box-shadow: 3px 3px 0 var(--red);
}

.carousel-dot:hover:not(.active) {
    background: #f0f0f0;
}

/* === Features === */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.features h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

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

.card {
    border: var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.15s;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.card:nth-child(1) .card-icon { color: var(--red); }
.card:nth-child(2) .card-icon { color: var(--blue); }
.card:nth-child(3) .card-icon { color: var(--purple); }
.card:nth-child(4) .card-icon { color: var(--yellow); background: var(--black); }
.card:nth-child(5) .card-icon { color: var(--pink); }
.card:nth-child(6) .card-icon { color: var(--blue); }

.card-icon {
    width: 56px;
    height: 56px;
    border: var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* === Steps === */
.how {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
}

.how h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.step {
    border: var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow);
    flex: 1;
    max-width: 220px;
}

.step-num {
    width: 48px;
    height: 48px;
    border: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    margin: 0 auto 16px;
    background: var(--yellow);
}

.step h3 {
    font-weight: 800;
    margin-bottom: 6px;
}

.step p {
    font-size: 14px;
    color: #555;
}

.step-arrow {
    color: var(--black);
    flex-shrink: 0;
}

/* === Download === */
.download {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.download h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.download-sub {
    color: #555;
    font-size: 17px;
    margin-bottom: 40px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.download-card {
    border: var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.download-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-lg);
}

.download-card:nth-child(1):hover { background: #fff3e0; }
.download-card:nth-child(2):hover { background: #e3f2fd; }
.download-card:nth-child(3):hover { background: #e8eaf6; }

.download-browser {
    font-size: 20px;
    font-weight: 800;
}

.download-tag {
    font-size: 12px;
    font-family: var(--font-mono);
    color: #888;
    background: #f0f0f0;
    border: 2px solid #ddd;
    padding: 2px 10px;
    border-radius: 100px;
}

.download-action {
    margin-top: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--red);
    border-bottom: 2px solid var(--red);
    padding-bottom: 2px;
}

/* === Open Source === */
.open-source {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.os-card {
    border: var(--border);
    border-radius: var(--radius);
    padding: 48px;
    background: var(--yellow);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.os-card h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
}

.os-card p {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* === Footer === */
.footer {
    border-top: var(--border);
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

.footer a {
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* === Mobile === */
@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .download-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .carousel-dots {
        gap: 4px;
    }

    .carousel-dot {
        padding: 6px 12px;
        font-size: 12px;
    }

    .showcase-mobile {
        max-width: 280px;
    }

    .os-card {
        padding: 32px 24px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 48px 20px 24px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }
}
