* {
    box-sizing: border-box;
}

:root {
    --brand-primary: #508eec;
    --brand-dark: #1b5fc8;
    --brand-light: #86b8ff;
    --brand-soft: #eef6ff;
    --brand-ink: #10213f;
}

body {
    margin: 0;
    color: var(--brand-ink);
    background: var(--brand-soft);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

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

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
}

.brand {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
}

.site-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.site-nav a {
    color: #508eec;
    font-weight: 700;
}

.home-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 36px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
    padding: 72px 7vw 64px;
    background:
        radial-gradient(circle at 15% 20%, rgba(78, 139, 255, 0.2), transparent 26%),
        radial-gradient(circle at 88% 10%, rgba(56, 189, 248, 0.28), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #eef5ff 47%, #ffffff 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(43, 109, 255, 0.12);
}

.hero-content,
.hero-preview {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 16px;
    padding: 8px 14px;
    border: 1px solid rgba(43, 109, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #508eec;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 0 0 18px;
    color: #0f172a;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-text {
    max-width: 650px;
    margin: 0;
    color: #526179;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: center;
    margin-top: 34px;
}

.download-btn,
.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

.download-btn {
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #508eec, #86b8ff);
    box-shadow: 0 16px 34px rgba(43, 109, 255, 0.28);
}

.outline-btn {
    border: 1px solid rgba(43, 109, 255, 0.22);
    color: #508eec;
    background: rgba(255, 255, 255, 0.72);
}

.download-btn img {
    width: 20px;
    height: 20px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-row span {
    padding: 9px 13px;
    border: 1px solid rgba(43, 109, 255, 0.16);
    border-radius: 999px;
    color: #526179;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.hero-note {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.hero-preview {
    min-height: 560px;
}

.app-logo {
    position: absolute;
    top: 8px;
    left: 0;
    z-index: 3;
    width: 116px;
    height: 116px;
    padding: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 45px rgba(20, 47, 100, 0.18);
    object-fit: contain;
}

.phone {
    position: absolute;
    width: min(250px, 47vw);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.phone-main {
    right: 34px;
    top: 0;
    z-index: 2;
    transform: rotate(3deg);
}

.phone-back {
    left: 54px;
    top: 96px;
    z-index: 1;
    opacity: 0.92;
    transform: rotate(-9deg) scale(0.92);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 34px 7vw 0;
}

.stats div {
    padding: 24px;
    border: 1px solid #e8eef8;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.stats strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.stats span {
    color: #64748b;
    font-weight: 700;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 34px 7vw;
}

.feature-card,
.detail-card {
    border: 1px solid #e8eef8;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.feature-card {
    padding: 24px;
}

.feature-card span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #edf4ff;
}

.feature-card span::after {
    content: "";
    width: 10px;
    height: 10px;
    margin: auto;
    border-radius: 50%;
    background: #508eec;
}

.feature-card h2,
.detail-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
}

.feature-card p,
.detail-card p,
.detail-card li,
.section-title p {
    color: #64748b;
    line-height: 1.7;
}

.feature-card p,
.detail-card p {
    margin: 0;
}

.screens {
    padding: 58px 7vw;
    background: #f8fafc;
}

.section-title {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.screen-list {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.screen-list img {
    height: 430px;
    flex: 0 0 auto;
    border: 8px solid #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.section-title.centered {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.use-cases {
    padding: 58px 7vw;
    background: #ffffff;
}

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

.case-grid article {
    padding: 30px;
    border-radius: 26px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(43, 109, 255, 0.92), rgba(19, 180, 255, 0.82)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.4), transparent 32%);
    box-shadow: 0 18px 40px rgba(43, 109, 255, 0.18);
}

.case-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #508eec;
    background: #ffffff;
    font-weight: 900;
}

.case-grid h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.case-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.security-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 64px 7vw;
    background: linear-gradient(135deg, #0f172a, #1b5fc8);
    color: #ffffff;
}

.security-section h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.security-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.security-list {
    display: grid;
    gap: 14px;
}

.security-list div {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.security-list strong {
    color: #8ed9ff;
}

.security-list span {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.details {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 22px;
    padding: 50px 7vw;
}

.detail-card {
    padding: 28px;
}

.detail-card ul {
    margin: 16px 0 0;
    padding-left: 20px;
}

.bottom-download {
    display: flex;
    justify-content: center;
    padding: 0 7vw 40px;
}

.download-banner {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin: 0 7vw 44px;
    padding: 36px;
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.3), transparent 22%),
        linear-gradient(135deg, #508eec, #86b8ff);
    box-shadow: 0 20px 46px rgba(43, 109, 255, 0.24);
}

.download-banner .eyebrow {
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.download-banner h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.download-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.download-banner .download-btn {
    flex: 0 0 auto;
    color: #508eec;
    background: #ffffff;
    box-shadow: none;
}

.site-footer {
    padding: 24px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

.site-footer p {
    margin: 6px 0;
}

.site-footer a {
    color: #508eec;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 52px;
    }

    .hero-preview {
        min-height: 500px;
    }

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

    .case-grid,
    .security-section,
    .details {
        grid-template-columns: 1fr;
    }

    .download-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding-inline: 18px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .home-page {
        width: 100%;
        border-radius: 0;
    }

    .hero,
    .screens,
    .details,
    .features,
    .stats,
    .use-cases,
    .security-section,
    .download-banner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-preview,
    .phone-stack {
        min-height: 430px;
    }

    .app-logo {
        width: 86px;
        height: 86px;
    }

    .phone {
        width: 190px;
        border-radius: 24px;
    }

    .phone-main {
        right: 4px;
    }

    .phone-back {
        left: 8px;
        top: 86px;
    }

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

    .download-banner {
        margin-left: 20px;
        margin-right: 20px;
    }

    .screen-list img {
        width: 78vw;
        height: auto;
    }

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