:root {
    --brand: #276cf5;
    --brand-dark: #0f3d9c;
    --ink: #132238;
    --muted: #5f6f89;
    --soft: #f5f8ff;
    --line: #dce6f7;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(19, 34, 56, 0.14);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(39, 108, 245, 0.38);
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section-pad {
    padding: 92px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 230, 247, 0.72);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(var(--container), calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    border-radius: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.94rem;
    color: var(--muted);
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
}

.download-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--radius);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.download-button {
    color: var(--white);
    background: var(--brand);
    box-shadow: 0 12px 28px rgba(39, 108, 245, 0.28);
}

.download-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.secondary-button {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.secondary-button:hover {
    color: var(--brand);
    border-color: rgba(39, 108, 245, 0.45);
    transform: translateY(-2px);
}

.nav-download {
    min-height: 40px;
    padding: 0 16px;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 86% 18%, rgba(39, 108, 245, 0.16), transparent 34%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 56px;
    align-items: center;
}

.hero-logo {
    width: 84px;
    border-radius: 22px;
    margin-bottom: 22px;
    box-shadow: 0 18px 42px rgba(39, 108, 245, 0.2);
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 690px;
    margin-bottom: 22px;
    font-size: clamp(2.55rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.25;
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.14rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 24px;
}

.tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tech-strip li,
.language-list li {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 750;
}

.hero-visual {
    position: relative;
}

.phone-frame {
    position: relative;
    padding: 16px;
    border-radius: 34px;
    background: #101828;
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.phone-frame::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 92px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-50%);
}

.phone-frame img {
    border-radius: 22px;
    aspect-ratio: 1491 / 1055;
    object-fit: cover;
}

.overview,
.technologies,
.backend {
    background: var(--soft);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 42px;
    align-items: center;
}

.split-section p,
.section-head p,
.backend-panel p,
.download-panel p,
.site-footer p {
    color: var(--muted);
}

.overview-card,
.backend-panel,
.download-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 18px 54px rgba(19, 34, 56, 0.08);
}

.overview-card {
    padding: 30px;
}

.section-head {
    max-width: 720px;
    margin-bottom: 34px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.tech-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card {
    padding: 24px;
}

.feature-card:hover,
.tech-card:hover,
.shot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(39, 108, 245, 0.38);
    box-shadow: 0 18px 46px rgba(19, 34, 56, 0.1);
}

.feature-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
    color: var(--brand);
    background: rgba(39, 108, 245, 0.1);
    font-size: 0.76rem;
    font-weight: 900;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.screenshot-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shot-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    text-align: left;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shot-card img {
    width: 100%;
    aspect-ratio: 1491 / 1055;
    object-fit: cover;
}

.shot-card span {
    display: block;
    padding: 14px 16px 16px;
    font-weight: 850;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tech-card {
    padding: 22px;
}

.tech-card strong,
.tech-card span {
    display: block;
}

.tech-card strong {
    margin-bottom: 8px;
}

.tech-card span {
    color: var(--muted);
    font-size: 0.94rem;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.backend-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    gap: 32px;
    padding: 34px;
}

.backend-points {
    padding: 0;
    margin: 0;
    list-style: none;
}

.backend-points li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.backend-points li:last-child {
    border-bottom: 0;
}

.download {
    background: linear-gradient(135deg, #123a86 0%, #276cf5 100%);
}

.download-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 30px;
}

.download-panel img {
    border-radius: 24px;
}

.download-panel h2,
.download-panel p {
    margin-bottom: 8px;
}

.site-footer {
    padding: 48px 0;
    background: #101828;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 560px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 20px;
    color: rgba(255, 255, 255, 0.76);
}

.site-footer nav a:hover {
    color: var(--white);
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(7, 18, 38, 0.86);
}

.lightbox.is-open {
    display: flex;
}

.lightbox figure {
    width: min(1040px, 100%);
    margin: 0;
}

.lightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--white);
}

.lightbox figcaption {
    margin-top: 12px;
    color: var(--white);
    text-align: center;
    font-weight: 800;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius);
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

@media (max-width: 1020px) {
    .hero-grid,
    .split-section,
    .backend-panel {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container,
    .nav-wrap {
        width: min(100% - 28px, var(--container));
    }

    .section-pad {
        padding: 68px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 13px 14px;
        border-radius: var(--radius);
    }

    .nav-download {
        margin-top: 6px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-actions,
    .hero-actions a {
        width: 100%;
    }

    .feature-grid,
    .tech-grid,
    .screenshot-rail {
        grid-template-columns: 1fr;
    }

    .screenshot-rail {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .shot-card {
        min-width: 86%;
        scroll-snap-align: start;
    }

    .download-panel {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

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

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    h1 {
        font-size: 2.45rem;
    }

    .phone-frame {
        padding: 10px;
        border-radius: 24px;
    }

    .phone-frame img {
        border-radius: 16px;
    }

    .overview-card,
    .backend-panel,
    .download-panel {
        padding: 22px;
    }
}
