:root {
    color-scheme: light;
    --action: #0066CC;
    --action-dark: #0057B8;
    --canvas: #FFFFFF;
    --surface: #F5F5F7;
    --surface-strong: #EAF2FB;
    --text: #1D1D1F;
    --muted: #6E6E73;
    --tertiary: #86868B;
    --dark: #050505;
    --dark-surface: #111113;
    --dark-text: #F5F5F7;
    --dark-muted: #A1A1A6;
    --border: rgba(0, 0, 0, 0.08);
    --dark-border: rgba(255, 255, 255, 0.14);
    --radius-card: 18px;
    --radius-large: 28px;
    --radius-pill: 999px;
    --content: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--canvas);
    font-family: var(--font);
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 70px;
    padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.nav-inner {
    width: min(100%, var(--content));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--action);
}

.app-store-link,
.primary-button,
.secondary-button,
.policy-button,
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
}

.app-store-link,
.primary-button,
.back-button {
    color: #FFFFFF;
    background: var(--action);
}

.app-store-link:hover,
.primary-button:hover,
.back-button:hover {
    background: var(--action-dark);
}

.secondary-button,
.policy-button {
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
}

.hero {
    min-height: 92vh;
    padding: 132px 24px 72px;
    background: var(--dark);
    color: var(--dark-text);
}

.hero-inner {
    width: min(100%, var(--content));
    min-height: calc(92vh - 204px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--dark-muted);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 500;
}

h1,
.page-title {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: 0;
}

.hero-copy,
.section-subtitle,
.intro,
.legal-page p,
.legal-page li {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.68;
}

.hero-copy {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--dark-muted);
    font-size: 19px;
    line-height: 1.55;
}

.cta-row {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.device-stage {
    padding: 26px;
    border: 1px solid var(--dark-border);
    border-radius: 38px;
    background: #111113;
    box-shadow: 3px 5px 30px rgba(0, 0, 0, 0.22);
}

.phone {
    width: min(100%, 320px);
    min-height: 620px;
    margin: 0 auto;
    padding: 22px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 44px;
    background: #050506;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 18px 44px rgba(0, 0, 0, 0.34);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.phone::before {
    content: "";
    width: 86px;
    height: 4px;
    position: absolute;
    top: 13px;
    left: 50%;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-50%);
}

.phone-top,
.phone-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--dark-muted);
    font-size: 13px;
}

.phone-top {
    padding-top: 16px;
    font-weight: 500;
}

.phone-bottom {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.phone-bottom span:last-child {
    color: var(--dark-text);
    font-weight: 600;
}

.phone-status {
    text-align: center;
    padding: 28px 0 34px;
}

.connect-ring {
    width: 172px;
    height: 172px;
    margin: 0 auto 28px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.018);
}

.connect-ring::before,
.connect-ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.connect-ring::before {
    inset: 18px;
    border: 1px solid rgba(0, 102, 204, 0.36);
}

.connect-ring::after {
    inset: -10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.connect-core {
    width: 92px;
    height: 92px;
    position: relative;
    border-radius: 50%;
    background: var(--action);
    box-shadow:
        0 0 0 10px rgba(0, 102, 204, 0.16),
        0 18px 34px rgba(0, 102, 204, 0.28);
}

.connect-core::before,
.connect-core::after {
    content: "";
    position: absolute;
    left: 50%;
    background: #FFFFFF;
    transform: translateX(-50%);
}

.connect-core::before {
    width: 4px;
    height: 24px;
    top: 24px;
    border-radius: var(--radius-pill);
}

.connect-core::after {
    width: 38px;
    height: 38px;
    top: 30px;
    border: 4px solid #FFFFFF;
    border-top-color: transparent;
    border-radius: 50%;
    background: transparent;
}

.phone-status h2 {
    max-width: 240px;
    margin: 0 auto;
    color: var(--dark-text);
    font-size: 28px;
    line-height: 1.12;
    font-weight: 600;
}

.phone-status p {
    max-width: 230px;
    margin: 12px auto 0;
    color: var(--dark-muted);
    font-size: 15px;
    line-height: 1.45;
}

.phone-button {
    min-height: 52px;
    border-radius: var(--radius-pill);
    background: var(--action);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.section {
    padding: 84px 24px;
}

.section-muted {
    background: var(--surface);
}

.section-dark {
    color: var(--dark-text);
    background: var(--dark);
}

.section-inner,
.legal-container {
    width: min(100%, var(--content));
    margin: 0 auto;
}

.section-title {
    margin: 0;
    color: inherit;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 600;
}

.section-subtitle {
    max-width: 760px;
    margin: 16px 0 0;
}

.feature-grid,
.support-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

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

.feature-card,
.support-card,
.notice-box,
.info-box {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--canvas);
}

.feature-card h3,
.support-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
}

.feature-card p,
.support-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.58;
}

.policy-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.policy-links {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-hero {
    padding: 124px 24px 48px;
    background: var(--surface);
}

.legal-container {
    max-width: 920px;
}

.legal-page {
    padding: 44px 24px 72px;
}

.last-updated {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.legal-page h2 {
    margin: 36px 0 12px;
    color: var(--text);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
}

.legal-page h3 {
    margin: 24px 0 8px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
}

.legal-page p,
.legal-page ul {
    margin-top: 0;
    margin-bottom: 16px;
}

.legal-page ul {
    padding-left: 22px;
}

.legal-page a {
    color: var(--action);
}

.info-box,
.notice-box {
    margin: 24px 0;
}

.info-box {
    background: var(--surface-strong);
    border-color: rgba(0, 102, 204, 0.22);
}

.notice-box {
    background: var(--surface);
}

.site-footer {
    padding: 48px 24px;
    color: var(--dark-muted);
    background: var(--dark);
}

.footer-inner {
    width: min(100%, var(--content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--dark-text);
    font-size: 18px;
}

.site-footer p {
    margin: 0 0 8px;
    color: var(--dark-muted);
}

.site-footer a {
    color: var(--dark-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: #FFFFFF;
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .site-nav {
        min-height: 64px;
    }

    .hero {
        min-height: auto;
        padding: 88px 20px 36px;
    }

    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    h1,
    .page-title {
        font-size: clamp(34px, 10vw, 42px);
    }

    .hero-copy {
        margin-top: 16px;
        font-size: 17px;
        line-height: 1.48;
    }

    .cta-row {
        margin-top: 22px;
    }

    .device-stage {
        max-width: 230px;
        padding: 12px;
        margin: 0 auto;
        border-radius: 28px;
    }

    .phone {
        min-height: 230px;
        padding: 14px;
        border-radius: 30px;
    }

    .connect-ring {
        width: 68px;
        height: 68px;
        margin-bottom: 12px;
    }

    .connect-core {
        width: 42px;
        height: 42px;
    }

    .connect-core::before {
        width: 2px;
        height: 12px;
        top: 10px;
    }

    .connect-core::after {
        width: 18px;
        height: 18px;
        top: 15px;
        border-width: 2px;
    }

    .phone-status h2 {
        font-size: 18px;
    }

    .phone-status p {
        display: none;
    }

    .phone-bottom {
        display: none;
    }

    .phone-button {
        min-height: 38px;
        font-size: 14px;
    }

    .feature-grid,
    .support-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section,
    .legal-page {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
