:root {
    --bg: #f7f8fb;
    --bg-soft: #eef3f8;
    --ink: #07111f;
    --muted: #5f6d7e;
    --line: rgba(7, 17, 31, 0.12);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --blue: #0565ff;
    --blue-deep: #003fb7;
    --green: #13b86b;
    --yellow: #f3b814;
    --pink: #e84876;
    --shadow: 0 24px 70px rgba(16, 28, 48, 0.14);
    --shadow-strong: 0 34px 90px rgba(5, 36, 84, 0.22);
    --radius: 28px;
    --max: 1180px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(7, 17, 31, 0.045) 1px, transparent 1px),
        var(--bg);
    background-size: 76px 76px;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(5, 101, 255, 0.16), transparent 28%),
        linear-gradient(300deg, rgba(19, 184, 107, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.36));
    z-index: -1;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    width: min(calc(100% - 32px), var(--max));
    min-height: 76px;
    margin: 16px auto 0;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 44px rgba(22, 38, 64, 0.09);
    backdrop-filter: blur(24px);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 56px rgba(22, 38, 64, 0.14);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
}

.brand img,
.footer-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(5, 101, 255, 0.22);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(244, 247, 251, 0.78);
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 13px;
    color: #384558;
    font-size: 14px;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    background: #ffffff;
}

.header-download {
    justify-self: end;
    width: 132px;
    transition: transform 180ms ease;
}

.header-download:hover,
.app-store-button:hover {
    transform: translateY(-2px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
    align-items: center;
    gap: 42px;
    width: min(calc(100% - 40px), var(--max));
    min-height: 0;
    margin: 0 auto;
    padding: 42px 0 18px;
}

.hero-copy {
    max-width: 630px;
}

.product-line,
.section-heading p {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    max-width: 650px;
    margin-bottom: 26px;
    font-size: clamp(42px, 5.5vw, 64px);
    line-height: 0.98;
    font-weight: 900;
}

.hero-text {
    max-width: 590px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.app-store-button {
    width: 174px;
    transition: transform 180ms ease, filter 180ms ease;
    filter: drop-shadow(0 18px 32px rgba(7, 17, 31, 0.18));
}

.text-link {
    position: relative;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 180ms ease;
}

.text-link:hover::after {
    transform: scaleX(1);
}

.hero-stage {
    position: relative;
    min-height: 500px;
}

.phone-stack {
    position: relative;
    height: 500px;
}

.phone {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 10px solid #07111f;
    border-radius: 42px;
    background: #07111f;
    box-shadow: var(--shadow-strong);
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-front {
    right: 7%;
    top: 0;
    width: min(46vw, 270px);
    aspect-ratio: 1242 / 2688;
    z-index: 2;
}

.phone-back {
    left: 1%;
    top: 86px;
    width: min(38vw, 224px);
    aspect-ratio: 1242 / 2688;
    opacity: 0.96;
    transform: rotate(-7deg);
}

.storage-card {
    position: absolute;
    left: 5%;
    bottom: 44px;
    z-index: 3;
    width: min(330px, 76%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(7, 17, 31, 0.9), rgba(5, 101, 255, 0.9));
    box-shadow: 0 24px 60px rgba(5, 36, 84, 0.34);
    backdrop-filter: blur(18px);
}

.storage-card span,
.storage-card small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 750;
}

.storage-card strong {
    display: block;
    margin: 8px 0 10px;
    font-size: 44px;
    line-height: 1;
}

.proof-strip,
.feature-section,
.screens-section,
.privacy-section,
.site-footer {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow);
}

.proof-strip div {
    min-height: 128px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.86);
}

.proof-strip strong,
.proof-strip span {
    display: block;
}

.proof-strip strong {
    margin-bottom: 8px;
    font-size: 22px;
}

.proof-strip span {
    color: var(--muted);
    line-height: 1.55;
}

.feature-section {
    padding: 118px 0 88px;
}

.section-heading {
    display: grid;
    grid-template-columns: 0.62fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 42px;
}

.section-heading.compact {
    display: block;
    max-width: 640px;
    margin-bottom: 34px;
}

.section-heading h2,
.privacy-section h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    font-weight: 900;
}

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

.feature-card {
    min-height: 320px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(22, 38, 64, 0.08);
}

.feature-index {
    display: inline-block;
    margin-bottom: 84px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.feature-card:nth-child(2) .feature-index {
    color: var(--green);
}

.feature-card:nth-child(3) .feature-index {
    color: var(--pink);
}

.feature-card h3 {
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.05;
}

.feature-card p,
.privacy-section p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.screens-section {
    overflow: hidden;
    padding: 34px 0 118px;
}

.screen-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 282px);
    gap: 22px;
    overflow-x: auto;
    padding: 8px 4px 28px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.screen-card {
    scroll-snap-align: start;
    margin: 0;
    padding: 12px 12px 16px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 52px rgba(22, 38, 64, 0.1);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.screen-card:hover,
.screen-card.is-active {
    transform: translateY(-8px);
    border-color: rgba(5, 101, 255, 0.38);
    box-shadow: 0 26px 66px rgba(5, 36, 84, 0.19);
}

.screen-card img {
    aspect-ratio: 1242 / 2688;
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
    background: #07111f;
}

.screen-card figcaption {
    padding: 14px 8px 0;
    font-size: 15px;
    font-weight: 850;
}

.privacy-section {
    display: grid;
    grid-template-columns: 0.9fr 1fr auto;
    gap: 38px;
    align-items: center;
    margin-bottom: 96px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.78));
    box-shadow: var(--shadow);
}

.privacy-section p {
    margin: 0;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 17px;
    color: #ffffff;
    background: var(--ink);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    transition: transform 180ms ease, background 180ms ease;
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: var(--blue);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 32px 0 46px;
    border-top: 1px solid var(--line);
}

.footer-links {
    display: flex;
    gap: 20px;
    color: #415065;
    font-size: 14px;
    font-weight: 750;
}

.footer-links a:hover {
    color: var(--blue);
}

.site-footer p {
    justify-self: end;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 58px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-stage {
        min-height: 460px;
    }

    .phone-stack {
        height: 460px;
    }

    .phone-front {
        right: 13%;
        width: 252px;
    }

    .phone-back {
        left: 9%;
        width: 206px;
    }

    .proof-strip,
    .feature-grid,
    .section-heading,
    .privacy-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer p {
        justify-self: start;
    }
}

@media (max-width: 680px) {
    body {
        background-size: 54px 54px;
    }

    .site-header {
        width: min(calc(100% - 24px), var(--max));
        min-height: 66px;
        margin-top: 12px;
        border-radius: 21px;
    }

    .brand span {
        font-size: 16px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .header-download {
        width: 112px;
    }

    .hero,
    .proof-strip,
    .feature-section,
    .screens-section,
    .privacy-section,
    .site-footer {
        width: min(calc(100% - 24px), var(--max));
    }

    .hero {
        gap: 28px;
        padding: 34px 0 24px;
    }

    h1 {
        font-size: 36px;
    }

    .hero-text {
        font-size: 17px;
        line-height: 1.58;
    }

    .hero-actions {
        gap: 18px;
    }

    .app-store-button {
        width: 156px;
    }

    .hero-stage {
        min-height: 280px;
    }

    .phone-stack {
        height: 280px;
    }

    .phone {
        border-width: 7px;
        border-radius: 31px;
    }

    .phone-front {
        right: 2%;
        width: min(43vw, 160px);
    }

    .phone-back {
        left: 0;
        top: 54px;
        width: min(36vw, 136px);
    }

    .storage-card {
        left: 0;
        bottom: 12px;
        padding: 14px;
    }

    .storage-card strong {
        font-size: 28px;
    }

    .proof-strip div {
        min-height: auto;
        padding: 22px;
    }

    .feature-section {
        padding: 82px 0 52px;
    }

    .section-heading {
        gap: 18px;
    }

    .section-heading h2,
    .privacy-section h2 {
        font-size: 36px;
    }

    .feature-card {
        min-height: 250px;
    }

    .feature-index {
        margin-bottom: 48px;
    }

    .screens-section {
        padding-bottom: 78px;
    }

    .screen-rail {
        grid-auto-columns: minmax(212px, 78vw);
    }

    .privacy-section {
        gap: 22px;
        margin-bottom: 64px;
        padding: 24px;
        border-radius: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 14px 18px;
    }
}
