:root {
    --bg: #05070d;
    --card: #101522;
    --text: #f5f7fb;
    --muted: #a7b0c0;
    --blue: #2f80ff;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

header {
    padding: 24px;
}

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

nav div {
    display: flex;
    gap: 20px;
    color: var(--muted);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
}

.hero {
    text-align: center;
    padding: 80px 0;
}

.badge {
    color: var(--blue);
    font-weight: 600;
}

h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    margin: 16px auto;
    max-width: 900px;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.5;
}

.button {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
}

.features {
    padding: 48px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
}

footer div {
    display: flex;
    gap: 24px;
    align-items: center;
}

@media (max-width: 800px) {
    nav {
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
    }

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

    .hero {
        text-align: left;
        padding: 48px 0;
    }

    .hero p {
        margin-left: 0;
    }
}

.hero-logo {
    width: 118px;
    height: 118px;
    border-radius: 28px;
    margin-bottom: 24px;
}

.hero-description {
    max-width: 720px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.5;
}

.hero-screenshots {
    position: relative;
    max-width: 900px;
    height: 620px;
    margin: 72px auto 0;
}

.hero-screenshots img {
    position: absolute;
    border-radius: 34px;
    border: 1px solid var(--border);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.hero-phone {
    width: 280px;
    left: 12%;
    top: 0;
    z-index: 2;
}

.hero-tablet {
    width: 460px;
    right: 3%;
    top: -20px;
    z-index: 1;
}

.features h2 {
    max-width: 800px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    margin: 0 auto 80px;
    text-align: center;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 96px 0;
}

.feature-row.reverse .feature-images {
    order: 2;
}

.feature-row.reverse .feature-text {
    order: 1;
}

.feature-images {
    position: relative;
    min-height: 620px;
}

.feature-images img {
    position: absolute;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.feature-images img:first-child {
    width: 250px;
    left: 0;
    top: 0;
    z-index: 2;
}

.feature-images img:last-child {
    width: 420px;
    right: 0;
    top: 92px;
    z-index: 1;
}

.feature-text h3 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    margin: 0 0 20px;
}

.feature-text p {
    color: var(--muted);
    font-size: 21px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .hero {
        text-align: center;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-screenshots {
        height: auto;
        display: grid;
        gap: 24px;
        margin-top: 48px;
    }

    .hero-screenshots img {
        position: static;
        width: 100%;
    }

    .hero-phone {
        max-width: 330px;
        justify-self: center;
    }

    .hero-tablet {
        display: none;
    }

    .features h2 {
        margin-bottom: 40px;
    }

    .feature-row,
    .feature-row.reverse {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 64px 0;
    }

    .feature-row .feature-text,
    .feature-row.reverse .feature-text {
        order: 1 !important;
    }

    .feature-row .feature-images,
    .feature-row.reverse .feature-images {
        order: 2 !important;
        min-height: auto;
        display: grid;
        justify-items: center;
    }

    .feature-images img {
        position: static;
    }

    .feature-images img:first-child {
        width: min(100%, 330px) !important;
    }

    .feature-images img:last-child {
        display: none;
    }
}
