:root {
    color-scheme: dark;
    --background-top: #121416;
    --background-bottom: #1a1f23;
    --surface: #1b1f22;
    --surface-muted: #2a3137;
    --surface-raised: #23282d;
    --surface-border: rgba(113, 121, 126, 0.26);
    --text-primary: #f4efe7;
    --text-secondary: #c4bfb5;
    --text-muted: #959a97;
    --accent: #c58b42;
    --accent-pressed: #d29954;
    --accent-deep: #9a6a2f;
    --success: #6f9d67;
    --max-width: 840px;
    --radius-large: 24px;
    --radius-medium: 18px;
    --radius-small: 14px;
    --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.62;
    background: var(--background-bottom);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--background-top), var(--background-bottom));
}

a {
    color: var(--accent-pressed);
    text-decoration-color: rgba(210, 153, 84, 0.45);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--text-primary);
}

.page {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.hero,
.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.hero {
    padding: 28px;
    margin-bottom: 18px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.app-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(244, 239, 231, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.22;
}

h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 2.25rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.subhead {
    margin: 12px 0 0;
    max-width: 46rem;
    color: var(--text-secondary);
}

.meta {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.nav a,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-small);
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-weight: 650;
    text-decoration: none;
}

.nav a:hover,
.button-link:hover {
    color: var(--text-primary);
    border-color: rgba(197, 139, 66, 0.44);
}

.nav a.active {
    background: var(--accent-deep);
    border-color: rgba(197, 139, 66, 0.62);
    color: var(--text-primary);
}

.card {
    padding: 26px;
}

.card + .card {
    margin-top: 14px;
}

h2 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.12rem;
    line-height: 1.25;
    letter-spacing: 0;
}

p,
ul {
    margin: 0 0 15px;
}

p:last-child,
ul:last-child {
    margin-bottom: 0;
}

p,
li {
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
}

ul {
    padding-left: 20px;
}

li + li {
    margin-top: 8px;
}

.note {
    color: var(--text-muted);
}

.footer {
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-primary);
    background: var(--surface-muted);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 2px 6px;
}

@media (max-width: 640px) {
    .page {
        width: min(calc(100% - 20px), var(--max-width));
        padding-top: 18px;
    }

    .hero,
    .card {
        padding: 20px;
    }

    .brand-lockup {
        align-items: flex-start;
        gap: 12px;
    }

    .app-icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .nav a,
    .button-link {
        min-height: 40px;
        padding: 0 14px;
    }
}

.landing-body {
    color: #f6f7f8;
    background: #05080a;
}

.landing-body a {
    text-decoration: none;
}

.landing-nav {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    width: min(calc(100% - 40px), 1500px);
    margin: 0 auto;
    padding: 24px 0;
}

.landing-brand,
.landing-links,
.landing-store-small {
    display: inline-flex;
    align-items: center;
}

.landing-brand {
    justify-self: start;
    gap: 12px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.landing-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.landing-links {
    justify-self: center;
    gap: 58px;
}

.landing-links a,
.landing-text-link,
.landing-footer a {
    color: rgba(246, 247, 248, 0.82);
    font-weight: 650;
}

.landing-links a:hover,
.landing-text-link:hover,
.landing-footer a:hover {
    color: #ffffff;
}

.landing-store-small {
    justify-self: end;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    color: #08090a;
    background: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.landing-hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    background: #05080a;
}

.landing-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.landing-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 8, 10, 0.98) 0%, rgba(5, 8, 10, 0.92) 18%, rgba(5, 8, 10, 0.52) 43%, rgba(5, 8, 10, 0.12) 72%),
        linear-gradient(180deg, rgba(5, 8, 10, 0.44), rgba(5, 8, 10, 0) 28%, rgba(5, 8, 10, 0.18));
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(calc(100% - 40px), 1500px);
    min-height: 88vh;
    margin: 0 auto;
    padding: 96px 0 72px;
}

.landing-kicker {
    margin: 0 0 16px;
    color: #d29a54;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(4.8rem, 9vw, 9.6rem);
    font-weight: 850;
    line-height: 0.9;
    letter-spacing: 0;
}

.landing-subtitle {
    max-width: 520px;
    margin: 28px 0 0;
    color: rgba(246, 247, 248, 0.72);
    font-size: clamp(1.7rem, 3vw, 3rem);
    font-weight: 720;
    line-height: 1.2;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.landing-store-button {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 68px;
    padding: 0 24px;
    border-radius: 13px;
    color: #08090a;
    background: #ffffff;
    font-size: 1.48rem;
    font-weight: 850;
    line-height: 1.02;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.landing-store-button small {
    display: block;
    margin-bottom: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.store-mark {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    overflow: hidden;
    color: transparent;
}

.store-mark::before {
    content: "";
    width: 28px;
    height: 30px;
    background: #08090a;
    border-radius: 50% 50% 44% 44% / 56% 56% 44% 44%;
    transform: rotate(-14deg);
}

.landing-text-link {
    color: #6eb3ff;
    font-size: 1.04rem;
}

.landing-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    padding: 34px max(24px, calc((100vw - 1360px) / 2));
    color: #111315;
    background: #ffffff;
}

.landing-feature-strip article {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    align-items: center;
    min-height: 118px;
    padding: 0 42px;
}

.landing-feature-strip article + article {
    border-left: 1px solid rgba(17, 19, 21, 0.14);
}

.landing-feature-strip img,
.landing-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #060708;
    box-shadow: 0 12px 28px rgba(17, 19, 21, 0.18);
}

.landing-feature-strip h2,
.landing-details h2 {
    margin: 0;
    color: #111315;
    font-size: 1.45rem;
    line-height: 1.1;
}

.landing-feature-strip p {
    margin: 8px 0 0;
    color: #5e6974;
    font-size: 1.02rem;
    line-height: 1.34;
}

.landing-feature-icon {
    position: relative;
}

.lock-icon::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 20px;
    width: 26px;
    height: 22px;
    border: 4px solid #d29a54;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
}

.lock-icon::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 34px;
    width: 32px;
    height: 25px;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffc46c, #bd792f);
}

.cloud-icon::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 30px;
    width: 38px;
    height: 21px;
    border: 4px solid #d29a54;
    border-radius: 20px;
}

.cloud-icon::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 18px;
    width: 44px;
    height: 38px;
    border-bottom: 4px solid #d29a54;
    transform: rotate(38deg);
}

.landing-details {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    width: min(calc(100% - 40px), 1160px);
    margin: 0 auto;
    padding: 78px 0;
}

.landing-details .landing-kicker {
    color: #a26d2e;
}

.landing-steps {
    display: grid;
    gap: 14px;
}

.landing-steps p {
    margin: 0;
    padding: 20px 0;
    color: #c9d1d9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.12rem;
}

.landing-steps strong {
    color: #d29a54;
}

.landing-footer {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 28px 20px 36px;
    color: rgba(246, 247, 248, 0.58);
    background: #05080a;
    font-size: 0.95rem;
}

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

    .landing-links {
        display: none;
    }

    .landing-hero,
    .landing-hero-content {
        min-height: 82vh;
    }

    .landing-feature-strip {
        grid-template-columns: 1fr;
        padding: 18px 24px 24px;
    }

    .landing-feature-strip article {
        padding: 22px 0;
    }

    .landing-feature-strip article + article {
        border-left: 0;
        border-top: 1px solid rgba(17, 19, 21, 0.14);
    }

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

@media (max-width: 640px) {
    .landing-nav {
        width: min(calc(100% - 28px), 1500px);
        padding: 16px 0;
    }

    .landing-brand {
        font-size: 1.08rem;
    }

    .landing-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .landing-store-small {
        min-height: 38px;
        padding: 0 13px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .landing-hero-image {
        object-position: 58% center;
    }

    .landing-scrim {
        background:
            linear-gradient(90deg, rgba(5, 8, 10, 0.98) 0%, rgba(5, 8, 10, 0.86) 48%, rgba(5, 8, 10, 0.28) 100%),
            linear-gradient(180deg, rgba(5, 8, 10, 0.62), rgba(5, 8, 10, 0.08) 42%, rgba(5, 8, 10, 0.2));
    }

    .landing-hero-content {
        width: min(calc(100% - 28px), 1500px);
        padding-top: 90px;
    }

    .landing-kicker {
        font-size: 0.7rem;
    }

    .landing-hero h1 {
        font-size: clamp(4.2rem, 22vw, 6.4rem);
    }

    .landing-subtitle {
        max-width: 310px;
        font-size: 1.58rem;
    }

    .landing-store-button {
        min-height: 60px;
        padding: 0 20px;
        font-size: 1.28rem;
    }

    .landing-feature-strip article {
        grid-template-columns: 60px 1fr;
        gap: 16px;
        min-height: 98px;
    }

    .landing-feature-strip img,
    .landing-feature-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .landing-feature-strip h2,
    .landing-details h2 {
        font-size: 1.25rem;
    }

    .landing-feature-strip p,
    .landing-steps p {
        font-size: 0.96rem;
    }

    .lock-icon::before {
        left: 19px;
        top: 16px;
        width: 22px;
        height: 20px;
    }

    .lock-icon::after {
        left: 16px;
        top: 30px;
        width: 28px;
        height: 22px;
    }

    .cloud-icon::before {
        left: 13px;
        top: 25px;
        width: 34px;
        height: 19px;
    }

    .cloud-icon::after {
        left: 12px;
        top: 15px;
        width: 38px;
        height: 33px;
    }
}
