:root {
    --bg: #fbfbfd;
    --surface: #f5f5f7;
    --white: #ffffff;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --soft: #86868b;
    --line: #d2d2d7;
    --line-soft: rgba(0, 0, 0, 0.07);
    --blue: #0071e3;
    --blue-bright: #0a84ff;
    --violet: #5e5ce6;
    --green: #34c759;
    --shell: 1200px;
    --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Leelawadee UI",
        "Noto Sans Thai", "Noto Sans Arabic", "Segoe UI", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
p,
figure,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

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

button {
    font: inherit;
}

img,
svg {
    display: block;
}

::selection {
    color: #fff;
    background: rgba(0, 113, 227, 0.75);
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 48% 46% at 79% 18%, rgba(10, 132, 255, 0.075), transparent 70%),
        radial-gradient(ellipse 35% 30% at 96% 52%, rgba(94, 92, 230, 0.045), transparent 75%),
        linear-gradient(180deg, #ffffff 0%, #fbfbfd 74%, #fbfbfd 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 54px;
    width: min(100% - 48px, var(--shell));
    min-height: 100vh;
    min-height: 100svh;
    margin-inline: auto;
    padding: 56px 0 64px;
}

.hero__copy {
    width: 100%;
    max-width: 520px;
    animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.app-lockup__icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    box-shadow:
        0 12px 26px -14px rgba(10, 132, 255, 0.65),
        0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.app-lockup__copy {
    display: flex;
    flex-direction: column;
}

.app-lockup__name {
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.app-lockup__meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.005em;
}

.hero h1 {
    margin: 26px 0 0;
    font-size: clamp(2.9rem, 3.75vw, 3.4rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero__accent {
    color: var(--blue);
}

.hero__lead {
    max-width: 430px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.7;
    letter-spacing: -0.008em;
    text-wrap: pretty;
}

.hero__lead-line {
    display: block;
}

/* Download configurator */
.download-box {
    width: 100%;
    max-width: 440px;
    margin-top: 30px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(0, 0, 0, 0.065);
    border-radius: 24px;
    box-shadow:
        0 26px 60px -48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.platform-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 46px;
    padding: 4px;
    background: #f0f0f2;
    border: 1px solid rgba(0, 0, 0, 0.035);
    border-radius: 13px;
}

.platform-switch__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: 36px;
    background: #fff;
    border-radius: 10px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 0 0 0.5px rgba(0, 0, 0, 0.035);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-platform="android"] .platform-switch__thumb {
    transform: translateX(100%);
}

.platform-switch__option {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 10px;
    transition: color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.platform-switch__option svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.platform-switch__option[data-platform="android"] svg {
    color: #2fb457;
}

.platform-switch__option.is-selected {
    color: var(--ink);
    font-weight: 600;
}

.platform-switch__option:focus-visible {
    outline-offset: -3px;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 62px;
    margin-top: 12px;
    padding: 0 17px;
    color: #fff;
    background: var(--ink);
    border-radius: 15px;
    box-shadow: 0 16px 28px -22px rgba(0, 0, 0, 0.55);
    transition:
        background 0.25s ease,
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease;
}

.store-button:hover {
    background: #000;
    box-shadow: 0 22px 34px -24px rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

.store-button:active {
    transform: scale(0.994);
}

.store-button__logo {
    display: grid;
    flex: none;
    width: 27px;
    height: 30px;
    place-items: center;
}

.store-button__icon {
    width: 25px;
    height: 25px;
}

.store-button__icon--android {
    display: none;
    color: #3ddc84;
}

.store-button__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-button__copy-ios,
.store-button__copy-android {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-button__copy-android {
    display: none;
}

.store-button__copy small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-button__copy strong {
    margin-top: 1px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.store-button__arrow {
    width: 19px;
    height: 19px;
    margin-left: auto;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease, stroke 0.25s ease;
}

.store-button:hover .store-button__arrow {
    stroke: #fff;
    transform: translateX(3px);
}

body[data-platform="android"] .store-button__icon--ios,
body[data-platform="android"] .store-button__copy-ios {
    display: none;
}

body[data-platform="android"] .store-button__icon--android {
    display: block;
}

body[data-platform="android"] .store-button__copy-android {
    display: flex;
}

/* 兼容仍在运行的旧页面，隐藏已经下线的版本信息和特性文案。 */
.download-meta,
.trust-list {
    display: none !important;
}

/* ------------------------------------------------------------------
   Phone carousel
   ------------------------------------------------------------------ */
.hero__visual {
    min-width: 0;
    animation: rise-in 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.showcase {
    position: relative;
    padding: 0 0 14px;
    overflow: visible;
}

.showcase__stage {
    position: relative;
    z-index: 2;
    height: clamp(460px, 39vw, 560px);
    border-radius: 26px;
    outline: none;
    touch-action: pan-y;
}

.showcase__stage:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -4px;
}

.device {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: clamp(205px, 18vw, 252px);
    margin: 0;
    opacity: 0;
    filter: saturate(0.86);
    transform: translate(-50%, -50%) scale(0.76);
    transform-origin: 50% 50%;
    transition:
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.7s ease,
        filter 0.7s ease;
    will-change: transform, opacity;
}

.device.is-active {
    z-index: 3;
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) translateX(0) rotate(0deg) scale(1);
}

.device.is-prev {
    z-index: 2;
    opacity: 0.52;
    transform: translate(-50%, -50%) translateX(-61%) rotate(-7deg) scale(0.8);
}

.device.is-next {
    z-index: 2;
    opacity: 0.52;
    transform: translate(-50%, -50%) translateX(61%) rotate(7deg) scale(0.8);
}

.device::after {
    position: absolute;
    right: 12%;
    bottom: -22px;
    left: 12%;
    z-index: -1;
    height: 28px;
    content: "";
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.24), transparent 68%);
    filter: blur(9px);
    opacity: 0.55;
    transition: opacity 0.7s ease;
}

.device.is-active::after {
    opacity: 1;
}

.phone {
    position: relative;
    aspect-ratio: 430 / 932;
    padding: 7px;
    background: linear-gradient(
        145deg,
        #e3e3e8 0%,
        #9d9da3 14%,
        #3a3a3c 37%,
        #69696e 60%,
        #dedee3 82%,
        #77777c 100%
    );
    border-radius: 44px;
    box-shadow:
        0 34px 65px -30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.phone::before,
.phone::after {
    position: absolute;
    width: 3px;
    content: "";
    background: linear-gradient(180deg, #9b9ba1, #55555a);
    border-radius: 2px;
}

.phone::before {
    top: 18%;
    left: -2px;
    height: 8%;
}

.phone::after {
    top: 26%;
    right: -2px;
    height: 13%;
}

.phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 37px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.phone__island {
    position: absolute;
    top: 2.55%;
    left: 50%;
    z-index: 5;
    width: 30%;
    height: 4.05%;
    background: #000;
    border-radius: 999px;
    transform: translateX(-50%);
}

.phone__island::after {
    position: absolute;
    top: 50%;
    right: 11%;
    width: 13%;
    aspect-ratio: 1;
    content: "";
    background: radial-gradient(circle at 38% 38%, #1a2b48, #05070b 64%);
    border-radius: 50%;
    transform: translateY(-50%);
}

.phone__punch {
    position: absolute;
    top: 2.75%;
    left: 50%;
    z-index: 5;
    display: none;
    width: 4%;
    aspect-ratio: 1;
    background: #000;
    border-radius: 50%;
    transform: translateX(-50%);
}

body[data-platform="android"] .phone__island {
    display: none;
}

body[data-platform="android"] .phone__punch {
    display: block;
}

.showcase__bar {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 50px;
    padding: 12px 4px 0;
}

.showcase__caption {
    display: none !important;
}

.showcase__controls {
    display: flex;
    flex: none;
    align-items: center;
    gap: 5px;
}

.carousel-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ink);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    place-items: center;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.carousel-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carousel-button:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    transform: scale(1.04);
}

.carousel-button:active {
    transform: scale(0.96);
}

.showcase__dots {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 2px;
}

.showcase__dot {
    display: grid;
    width: 18px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
}

.showcase__dot::after {
    width: 6px;
    height: 6px;
    content: "";
    background: #c2c2c8;
    border-radius: 999px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.showcase__dot:hover::after {
    background: #8e8e93;
}

.showcase__dot.is-active::after {
    width: 20px;
    background: var(--ink);
}

/* ------------------------------------------------------------------
   Toast
   ------------------------------------------------------------------ */
.toast {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 100;
    width: max-content;
    max-width: min(88vw, 440px);
    padding: 11px 18px;
    color: #fff;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    pointer-events: none;
    visibility: hidden;
    background: rgba(29, 29, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.toast.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------
   RTL
   ------------------------------------------------------------------ */
[dir="rtl"] .hero__copy {
    text-align: right;
}

[dir="rtl"] .hero__lead {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .trust-list {
    justify-content: flex-start;
}

[dir="rtl"] .store-button__arrow {
    margin-right: auto;
    margin-left: 0;
    transform: scaleX(-1);
}

[dir="rtl"] .store-button:hover .store-button__arrow {
    transform: translateX(-3px) scaleX(-1);
}

[dir="rtl"] .showcase__controls {
    direction: ltr;
}

@media (max-width: 979px) {
    [dir="rtl"] .hero__copy {
        text-align: center;
    }

    [dir="rtl"] .hero__lead {
        margin-right: auto;
        margin-left: auto;
    }

    [dir="rtl"] .trust-list {
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------ */
@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordion-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1120px) {
    .hero__inner {
        gap: 36px;
    }

    .showcase {
        padding: 0 0 12px;
    }

    .device {
        width: clamp(196px, 19vw, 228px);
    }

    .showcase__stage {
        height: 500px;
    }

    .security__card {
        gap: 48px;
        padding: 52px;
    }
}

@media (max-width: 979px) {
    .site-nav__inner {
        grid-template-columns: 1fr auto;
        height: 50px;
    }

    .site-nav__links {
        display: none;
    }

    .site-nav__cta {
        grid-column: 2;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        min-height: 0;
        padding: 40px 0 52px;
    }

    .hero__copy {
        max-width: 600px;
        margin-inline: auto;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 6.6vw, 3.7rem);
    }

    .hero__lead {
        max-width: 500px;
        margin-right: auto;
        margin-left: auto;
        font-size: 15.5px;
    }

    .download-box {
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .trust-list {
        justify-content: center;
    }

    .hero__visual {
        width: 100%;
        max-width: 650px;
        margin-inline: auto;
    }

    .showcase {
        padding: 0 0 12px;
    }

    .showcase__stage {
        height: 500px;
    }

    .device {
        width: 225px;
    }

    .device.is-prev {
        transform: translate(-50%, -50%) translateX(-62%) rotate(-7deg) scale(0.78);
    }

    .device.is-next {
        transform: translate(-50%, -50%) translateX(62%) rotate(7deg) scale(0.78);
    }

    .features {
        padding: 84px 0 90px;
    }

    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        margin-inline: auto;
        gap: 14px;
    }

    .feature-card {
        min-height: 0;
        padding: 28px;
    }

    .security {
        padding: 30px 0 84px;
    }

    .security__card {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
        padding: 44px;
        border-radius: 34px;
    }

    .security__lead {
        max-width: 540px;
    }

    .faq {
        padding: 84px 0;
    }

    .faq__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .faq__intro {
        max-width: 520px;
    }

    .faq__intro p:not(.section-eyebrow) {
        max-width: 460px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 62px;
    }

    .site-nav__inner,
    .hero__inner,
    .section-shell,
    .faq__inner,
    .site-footer__inner {
        width: calc(100% - 36px);
    }

    .brand {
        font-size: 13.5px;
    }

    .brand__mark {
        width: 25px;
        height: 25px;
    }

    .site-nav__cta {
        min-width: 52px;
        height: 29px;
        font-size: 11.5px;
    }

    .hero__inner {
        gap: 38px;
        padding: 28px 0 42px;
    }

    .app-lockup {
        gap: 12px;
    }

    .app-lockup__icon {
        width: 56px;
        height: 56px;
        border-radius: 15px;
    }

    .app-lockup__name {
        font-size: 16.5px;
    }

    .app-lockup__meta {
        font-size: 11.5px;
    }

    .hero h1 {
        margin-top: 20px;
        font-size: clamp(1.98rem, 9.2vw, 2.35rem);
        line-height: 1.16;
    }

    .hero__lead {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.62;
    }

    .download-box {
        margin-top: 24px;
        padding: 13px;
        border-radius: 21px;
    }

    .platform-switch {
        height: 44px;
    }

    .platform-switch__thumb {
        height: 34px;
    }

    .store-button {
        height: 58px;
        padding: 0 15px;
        border-radius: 14px;
    }

    .store-button__copy strong {
        font-size: 18px;
    }

    .trust-list {
        gap: 8px 14px;
        margin-top: 20px;
        font-size: 10.5px;
    }

    .showcase {
        padding: 0 0 10px;
    }

    .showcase__stage {
        height: 455px;
    }

    .device {
        width: 202px;
    }

    .device.is-prev {
        transform: translate(-50%, -50%) translateX(-64%) rotate(-6deg) scale(0.75);
    }

    .device.is-next {
        transform: translate(-50%, -50%) translateX(64%) rotate(6deg) scale(0.75);
    }

    .phone {
        padding: 6px;
        border-radius: 36px;
    }

    .phone__screen {
        border-radius: 30px;
    }

    .showcase__bar {
        padding: 12px 2px 0;
    }

    .showcase__controls {
        width: 100%;
        justify-content: space-between;
    }

    .features {
        padding: 68px 0 74px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2,
    .faq__intro h2 {
        font-size: 2rem;
    }

    .section-lead {
        font-size: 13.5px;
    }

    .feature-card {
        padding: 24px;
        border-radius: 24px;
    }

    .feature-card__index {
        top: 24px;
        right: 24px;
    }

    .feature-card h3 {
        margin-top: 24px;
        font-size: 18px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .security {
        padding: 22px 0 68px;
    }

    .security__card {
        gap: 28px;
        padding: 32px 26px;
        border-radius: 28px;
    }

    .security__fact {
        gap: 14px;
        padding: 19px 0;
    }

    .faq {
        padding: 68px 0;
    }

    .accordion summary {
        min-height: 60px;
        padding: 18px 34px 18px 0;
        font-size: 13.5px;
    }

    .accordion__body p {
        font-size: 12.5px;
    }

    .site-footer {
        padding: 28px 0 34px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .site-footer__links {
        justify-content: center;
        gap: 18px;
    }
}

@media (max-width: 380px) {
    .device {
        width: 190px;
    }

    .showcase__stage {
        height: 430px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .store-button__copy strong {
        font-size: 17px;
    }

    .platform-switch__option {
        font-size: 12px;
    }
}

/* Tablet and small desktop: keep the download column readable */
@media (min-width: 980px) and (max-width: 1180px) {
    .hero__copy {
        max-width: 470px;
    }

    .hero h1 {
        font-size: clamp(3rem, 4.7vw, 3.75rem);
    }

    .showcase__stage {
        height: 500px;
    }

    .device {
        width: 218px;
    }
}
