/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables */

:root {
    --blue: #0085ff;
    --blue-bright: #33a0ff;
    --blue-deep: #0b0f12;
    --navy: #12171c;
    --ink: #1a2129;
    --muted: #6b7685;
    --surface: #f5f6f8;
    --line: rgba(26, 33, 41, 0.14);
    --accent: #0085ff;
    --kicker: #5b6774;
    --cta-from: #0b0f12;
    --cta-to: #23292f;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base */

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

::selection {
    background: rgba(0, 133, 255, 0.18);
    color: var(--navy);
}

.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background */

body {
    background-image:
        radial-gradient(
            circle at 50% 18%,
            rgba(0, 133, 255, 0.07),
            transparent 38%
        ),
        radial-gradient(
            circle at 18% 72%,
            rgba(35, 41, 47, 0.05),
            transparent 35%
        ),
        radial-gradient(
            circle at 84% 86%,
            rgba(200, 205, 212, 0.35),
            transparent 32%
        ),
        var(--surface);
    background-attachment: scroll;
}

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand span {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--navy);
    line-height: 1;
}

.menu {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 10px;
}

.menu span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

.menu:focus-visible,
.brand:focus-visible,
.cta-button:focus-visible,
.discover:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* Hero */

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

.kicker {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--kicker);
}

.hero .kicker {
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(42px, 5vw + 22px, 88px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.98;
    margin: 0 auto 22px;
}

.headline-navy,
.headline-blue {
    display: block;
    white-space: nowrap;
}

.headline-navy {
    color: var(--navy);
}

.headline-blue {
    color: var(--accent);
}

.lede {
    font-size: clamp(23px, 2vw + 16px, 30px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--muted);
    letter-spacing: -0.03em;
}

/* Card Showcase */

.card-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 0 56px;
    isolation: isolate;
}

.card-showcase::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 70%;
    left: 10%;
    top: 15%;
    background:
        radial-gradient(
            ellipse,
            rgba(35, 41, 47, 0.22),
            rgba(0, 133, 255, 0.06) 45%,
            transparent 70%
        );
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.card-showcase::after {
    content: "";
    position: absolute;
    width: 58%;
    height: 16%;
    left: 21%;
    bottom: 10%;
    background: radial-gradient(ellipse, rgba(11, 15, 18, 0.2), transparent 70%);
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}

.card-art {
    width: 90%;
    max-width: 520px;
    transform: rotate(-7deg);
    filter:
        drop-shadow(0 28px 46px rgba(11, 15, 18, 0.22))
        drop-shadow(0 10px 28px rgba(0, 133, 255, 0.12));
    animation: cardFloat 6s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
}

/* Features */

.features {
    text-align: center;
    padding: 4px 0 36px;
}

.features .kicker {
    margin-bottom: 28px;
}

.feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 138px;
    padding: 24px 12px;
    text-align: center;
    border-color: var(--line);
}

.feature:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.feature:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
}

.feature-stat {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.9;
    color: var(--navy);
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--navy);
    line-height: 1.15;
}

.feature-caption {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-icon {
    display: block;
    width: 46px;
    height: 34px;
    color: var(--navy);
    margin-bottom: 2px;
}

.card-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pay-logo--apple {
    width: 86px;
    height: 34px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 2px;
}

.pay-logo--google {
    position: relative;
    display: block;
    width: 108px;
    height: 36px;
    overflow: hidden;
    margin-bottom: 2px;
}

.pay-logo--google img {
    position: absolute;
    width: 136px;
    height: 136px;
    max-width: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* CTA */

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 36px;
}

.cta-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    width: 100%;
    min-height: 62px;
    padding: 12px 18px;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(11, 15, 18, 0.22);
    border: 1px solid rgba(232, 236, 241, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cta-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 650;
}

.cta-google img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.cta-button:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(11, 15, 18, 0.28);
}

.cta-button:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 6px 16px rgba(11, 15, 18, 0.2);
    filter: brightness(0.97);
}

.discover {
    margin-top: 32px;
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.discover:hover {
    color: var(--navy);
}

/* Footer */

.site-footer {
    margin-top: auto;
    padding: 52px 0 36px;
    text-align: center;
}

.site-footer p {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Animations */

@keyframes cardFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-7deg);
    }

    50% {
        transform: translateY(-6px) rotate(-7deg);
    }
}

/* Responsive */

@media (min-width: 600px) {
    .page {
        padding: 0 32px;
    }

    .hero {
        padding: 72px 0 32px;
    }

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

    .lede {
        font-size: 26px;
    }

    .card-art {
        width: 82%;
        max-width: 580px;
    }
}

@media (min-width: 768px) {
    .page {
        padding: 0 40px;
    }

    .site-header {
        padding: 32px 0 12px;
    }

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

    .hero {
        padding: 88px 0 36px;
    }

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

    .lede {
        font-size: 28px;
    }

    .card-showcase {
        padding: 40px 0 72px;
    }

    .card-art {
        width: 70%;
        max-width: 640px;
    }

    .feature {
        min-height: 148px;
        padding: 28px 16px;
    }

    .feature-stat {
        font-size: 48px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-caption {
        font-size: 16px;
    }

    .cta-button {
        width: 420px;
        min-height: 64px;
    }
}

@media (min-width: 1024px) {
    .site-header {
        padding: 40px 0 8px;
    }

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

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

    .hero {
        padding: 96px 0 44px;
    }

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

    .lede {
        font-size: 30px;
    }

    .card-showcase {
        padding: 28px 0 80px;
    }

    .card-art {
        width: 62%;
        max-width: 720px;
    }

    .features {
        padding: 8px 0 48px;
    }

    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 980px;
        margin: 0 auto;
    }

    .feature {
        min-height: 156px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .feature:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .feature:nth-child(-n + 2) {
        border-bottom: 0;
    }

    .feature:last-child {
        border-right: 0;
    }

    .cta {
        padding: 20px 0 12px;
    }

    .cta-button {
        width: 480px;
        min-height: 66px;
    }

    .discover {
        margin-top: 36px;
    }

    .site-footer {
        padding: 72px 0 48px;
    }
}

@media (min-width: 1280px) {
    .hero h1 {
        font-size: 88px;
    }

    .card-art {
        max-width: 760px;
    }
}

/* Success */

.success-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.success-hero {
    padding-bottom: 8px;
}

.success-hero h1 {
    max-width: 16ch;
}

.success-hero .headline-navy,
.success-hero .headline-blue {
    white-space: normal;
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .card-art {
        animation: none;
        transform: rotate(-7deg);
    }
}
