:root {
    color-scheme: dark;
    --page: #10151e;
    --ink: #f0f4fc;
    --muted: #a8b4c8;
    --accent: #b4ccff;
    --button-ink: #112441;
    --line: #303a4c;
    --art: #1b2d48;
    --orbit: #46648c;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--page);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

body {
    margin: 0;
}

::selection {
    color: var(--button-ink);
    background: var(--accent);
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.legal-page {
    width: min(800px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 72px;
    line-height: 1.65;
}

.legal-page h1,
.legal-page h2 {
    line-height: 1.2;
}

.legal-page h1 {
    margin-top: 32px;
}

.legal-page h2 {
    margin-top: 32px;
}

.legal-brand {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

.skip-link {
    position: absolute;
    z-index: 2;
    left: 20px;
    top: 12px;
    padding: 12px 18px;
    color: var(--button-ink);
    background: var(--accent);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    width: min(1200px, calc(100% - 112px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 112px;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 42px;
    font-weight: 650;
    letter-spacing: -3px;
    text-decoration: none;
    line-height: 1;
}

.brand-name > span {
    color: var(--accent);
}

.brand-mark {
    flex-shrink: 0;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14px;
}

.features-link {
    padding: 12px 0;
    text-decoration: none;
    color: var(--muted);
}

.features-link:hover {
    color: var(--accent);
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
}

.language-link:hover {
    border-color: var(--accent);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding: 78px 0 84px;
}

.eyebrow {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 2px;
    font-weight: 600;
}

h1 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(44px, 4.6vw, 68px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -2.8px;
}

h1 em {
    font-style: normal;
    font-weight: inherit;
    color: var(--accent);
}

.hero-description {
    max-width: 390px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.download-area {
    margin-top: 36px;
    max-width: 390px;
}

.download-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 76px;
    padding: 20px 26px;
    border: 0;
    border-radius: 16px;
    color: var(--button-ink);
    background: var(--accent);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease;
}

a.download-button:hover {
    background: #d0dfff;
}

.android-test-button {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    margin-top: 10px;
    padding: 16px 26px;
    border: 1px solid #657ca2;
    border-radius: 16px;
    color: var(--ink);
    background: #172335;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.android-test-button:hover {
    border-color: var(--accent);
    background: #20304a;
}

.android-test-mark {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.download-button:disabled {
    cursor: not-allowed;
}

.download-mark {
    font-size: 25px;
    font-weight: 400;
}

.download-arrow {
    margin-left: auto;
    font-size: 22px;
    font-weight: 400;
}

.download-caption {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.download-unavailable {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.hero-art {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 0.89;
    max-height: 510px;
    background: radial-gradient(ellipse at 50% 25%, #355384, var(--art) 68%);
    border-radius: 16px;
    overflow: hidden;
}

.art-corner {
    position: absolute;
    top: 22px;
    left: 24px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}

.art-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: -20px;
}

.art-mark {
    width: 64%;
    max-width: 256px;
    height: auto;
}

.art-wordmark {
    position: relative;
    font-family: inherit;
    font-size: clamp(64px, 8vw, 104px);
    font-weight: 600;
    letter-spacing: -5px;
    line-height: 1;
}

.art-caption {
    position: absolute;
    bottom: 35px;
    left: 24px;
    right: 24px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
}

.art-orbit {
    position: absolute;
    z-index: -1;
    width: 235%;
    height: 180%;
    left: -68%;
    border: 1px solid var(--orbit);
    border-radius: 50%;
    transform: rotate(-28deg);
}

.orbit-one {
    top: 32%;
}

.orbit-two {
    top: 47%;
}

.orbit-three {
    top: 62%;
}

.features {
    border-top: 1px solid var(--line);
    padding: 60px 0 0;
    scroll-margin-top: 30px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 44px;
}

.section-heading .eyebrow {
    margin-bottom: 16px;
}

h2 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(34px, 3.3vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.section-description {
    max-width: 280px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

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

.feature {
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
}

.feature-primary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding: 32px 0 38px;
}

.feature-number {
    display: block;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1.8;
}

.feature h3 {
    margin: 20px 0 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.feature-primary h3 {
    margin-top: 0;
    font-family: inherit;
    font-size: 29px;
    font-weight: 600;
}

.feature p {
    max-width: 510px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.first-release {
    margin: 28px 0 56px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 23px 0;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
}

summary::-webkit-details-marker {
    display: none;
}

summary span {
    color: var(--accent);
    font-size: 24px;
    font-weight: 300;
}

details[open] summary span {
    transform: rotate(45deg);
}

.release-details {
    max-width: 760px;
    padding-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.release-details p {
    margin: 0 0 14px;
}

.release-details p:last-child {
    margin-bottom: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 0 36px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.site-footer a {
    text-underline-offset: 3px;
}

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

.privacy-page {
    max-width: 800px;
    padding: 72px 0 96px;
}

.privacy-page h1 {
    margin-top: 16px;
    font-size: clamp(38px, 4.6vw, 60px);
}

.privacy-updated {
    margin: 24px 0 48px;
    color: var(--muted);
    font-size: 14px;
}

.privacy-section {
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.privacy-section h2 {
    margin-bottom: 20px;
    font-size: clamp(23px, 2.5vw, 30px);
    letter-spacing: -0.8px;
}

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

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-contact a {
    color: var(--accent);
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

.privacy-section .privacy-deletion-link {
    margin-top: 20px;
}

.deletion-steps {
    margin: 0 0 28px;
    padding-left: 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.deletion-steps li {
    padding-left: 8px;
    margin-bottom: 16px;
}

.deletion-email {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 8px;
    color: var(--button-ink);
    background: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.deletion-email:hover {
    background: var(--ink);
}

.privacy-section .deletion-safety {
    margin-top: 20px;
}

.deletion-policy-link a {
    color: var(--accent);
    text-underline-offset: 3px;
}

@media (min-width: 1450px) {
    .hero {
        padding-top: 94px;
        padding-bottom: 100px;
    }
}

@media (max-width: 1000px) {
    .site-shell {
        width: calc(100% - 64px);
    }

    .hero {
        gap: 32px;
        padding: 62px 0;
    }

    h1 {
        font-size: clamp(38px, 5.2vw, 52px);
        letter-spacing: -1.8px;
    }

    .feature-grid {
        column-gap: 24px;
    }
}

@media (max-width: 700px) {
    .site-shell {
        width: calc(100% - 40px);
    }

    .site-header {
        min-height: 90px;
    }

    .wordmark {
        font-size: 36px;
        gap: 8px;
    }

    .brand-mark {
        width: 40px;
        height: 30px;
    }

    .header-navigation {
        gap: 20px;
        font-size: 13px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 42px 0;
        gap: 36px;
    }

    h1 {
        font-size: clamp(38px, 7.3vw, 54px);
    }

    .hero-description {
        margin-top: 22px;
    }

    .download-area {
        margin-top: 28px;
    }

    .hero-art {
        aspect-ratio: 1.7;
        max-height: 300px;
    }

    .art-brand {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        margin-top: -12px;
    }

    .art-mark {
        width: 104px;
    }

    .art-wordmark {
        font-size: 64px;
        letter-spacing: -3px;
    }

    .art-caption {
        bottom: 24px;
    }

    .features {
        padding-top: 38px;
    }

    .section-heading {
        display: block;
        margin-bottom: 32px;
    }

    .section-description {
        max-width: 390px;
        margin-top: 18px;
    }

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

    .feature-primary {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }

    .feature h3 {
        font-size: 17px;
    }

    .feature-primary h3 {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .hero .eyebrow {
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    h1 {
        font-size: 37px;
        letter-spacing: -2px;
    }

    .download-button {
        gap: 10px;
        padding: 18px 16px;
        font-size: 14px;
    }

    .android-test-button {
        gap: 10px;
        padding: 16px;
        font-size: 14px;
    }

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

    .feature-primary {
        display: block;
    }

    .feature-primary h3 {
        margin-top: 20px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download-button {
        transition: none;
    }
}
