:root {
    --ink: #071b3f;
    --ink-soft: #294364;
    --muted: #4d6580;
    --canvas: #f4faff;
    --line: #d5e4f2;
    --blue: #145bff;
    --blue-dark: #0b45cc;
    --cyan: #36d4ff;
    --header-height: 76px;
    --header-scroll-offset: var(--header-height);
    color-scheme: light;
    background: var(--canvas);
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button, a {
    -webkit-tap-highlight-color: transparent;
}

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

::selection {
    color: var(--ink);
    background: #b6edff;
}

main:focus {
    outline: none;
}

.prelaunch {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font: 400 16px/1.65 Onest, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(ellipse at 85% 8%, #e0f6ff 0, transparent 42%), var(--canvas);
}

main {
    flex: 1 0 auto;
}

.page-shell {
    width: min(1440px, 100% - var(--public-space-gutter) - var(--public-space-gutter));
    margin-inline: auto;
}

.page-section, #main {
    scroll-margin-block-start: var(--header-scroll-offset);
}

.page-section {
    padding-block: 0;
}

.prelaunch:not(.prelaunch-error) #main {
    padding-bottom: var(--public-space-section);
}

.prelaunch #main > div.page-shell {
    display: grid;
    gap: var(--public-space-section);
    grid-gap: var(--public-space-section);
}

.skip-link {
    position: fixed;
    z-index: 50;
    inset: 8px auto auto 12px;
    transform: translateY(-160%);
    padding: 10px 18px;
    border-radius: 10px;
    background: white;
}

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

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, .93);
    border-bottom: 1px solid rgba(195, 219, 238, .78);
    backdrop-filter: blur(18px);
}

.site-header .header-inner {
    width: min(100% - 64px, 1480px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    width: auto;
    height: 60px;
}

.site-header .brand-logo {
    width: 224px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 650;
}

.main-nav a {
    position: relative;
    white-space: nowrap;
    padding-block: 12px;
}

.main-nav a::after {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--blue);
    content: '';
    transform: scaleX(0);
    transition: transform 150ms;
}

.main-nav a:hover::after, .main-nav a[aria-current='location']::after {
    transform: scaleX(1);
}

.launch-link {
    color: var(--blue-dark);
}

.hero {
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
    align-items: center;
    gap: var(--public-space-section);
    grid-gap: var(--public-space-section);
    padding-block: var(--public-space-section) 0;
}

.hero-copy {
    min-width: 0;
}

.launch-status {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 26px;
    border: 1px solid #f6d3ac;
    border-radius: 100px;
    padding: 7px 13px;
    background: #fff6e9;
    color: #805015;
    font-size: 12px;
    font-weight: 650;
}

.launch-status span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ef7b19;
}

h1, h2, h3, p {
    margin-top: 0;
}

h2, h3 {
    text-wrap: balance;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(42px, 4.5vw, 68px);
    font-weight: 780;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

h1 span {
    display: block;
    color: var(--blue);
}

.hero-intro {
    max-width: 570px;
    margin-bottom: var(--public-space-block);
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--public-space-text);
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: background 150ms, box-shadow 150ms;
}

.button-primary {
    color: white;
    background: var(--blue);
    box-shadow: 0 9px 22px rgb(20 91 255 / 18%);
}

.button-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 12px 28px rgb(20 91 255 / 24%);
}

.button-primary span {
    font-size: 22px;
    line-height: 1;
}

.button-secondary {
    border-color: var(--line);
    background: white;
}

.button-secondary:hover {
    background: #eaf4ff;
}

.hero.hero-without-photo {
    grid-template-columns: 1fr;
}

.moment-card {
    min-width: 0;
    margin: 0;
    padding: 7px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgb(10 47 96 / 12%);
}

.moment-photo-frame {
    position: relative;
}

.moment-photo-number {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgb(7 27 63 / 80%);
    color: white;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    pointer-events: none;
}

.moment-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
}

.moment-card figcaption {
    display: flex;
    align-items: flex-start;
    gap: var(--public-space-text);
    padding: var(--public-space-compact);
}

.moment-card h2 {
    margin-bottom: 8px;
    font-size: 21px;
    letter-spacing: -0.03em;
    line-height: 1.35;
}

.moment-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.moment-spark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #e5f9f4;
    color: #087451;
    border-radius: 13px;
    font-size: 32px;
    line-height: 1;
}

.section-heading {
    max-width: 810px;
    margin-bottom: var(--public-space-block);
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(29px, 2.7vw, 40px);
    font-weight: 730;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.section-heading h2 {
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--public-space-grid);
    grid-gap: var(--public-space-grid);
}

.feature-card {
    padding: var(--public-space-card);
    border: 1px solid #dceaf5;
    border-radius: 22px;
    background: white;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: var(--public-space-grid);
    border-radius: 16px;
    color: #145bff;
    background: #eaf2ff;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-1 .feature-icon {
    color: #a95000;
    background: #fff1df;
}

.feature-2 .feature-icon {
    color: #06758b;
    background: #e5f8ff;
}

.feature-3 .feature-icon {
    color: #087451;
    background: #e5f9f0;
}

.feature-card h3 {
    margin-bottom: var(--public-space-text);
    font-size: 19px;
    line-height: 1.4;
    font-weight: 720;
    letter-spacing: -0.025em;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
}

.arena-note {
    display: flex;
    align-items: center;
    gap: var(--public-space-block);
    padding: var(--public-space-card);
    background: linear-gradient(110deg, #e0f4ff, #edf5ff 70%, #e5f8f2);
    border: 1px solid #cfe7f6;
    border-radius: 28px;
}

.arena-mark {
    flex: 0 0 150px;
    width: 150px;
    transform: rotate(-5deg);
}

.arena-mark img {
    width: 100%;
    height: auto;
}

.arena-copy {
    max-width: 920px;
}

.arena-copy h2 {
    margin-bottom: 17px;
    font-size: clamp(27px, 2.4vw, 34px);
}

.arena-copy > p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
    line-height: 1.85;
}

.launch-note {
    max-width: 860px;
    text-align: center;
    margin-inline: auto;
}

.launch-emblem {
    display: inline-block;
    color: var(--blue);
    font-size: 46px;
    line-height: 1;
    margin-bottom: 22px;
}

.launch-note h2 {
    margin-bottom: var(--public-space-grid);
}

.launch-description {
    max-width: 670px;
    margin-inline: auto;
    margin-bottom: 14px;
    color: var(--ink-soft);
}

.territory-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.territory-note a {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html:lang(zh-hans) h1 {
    letter-spacing: -0.025em;
}

html:lang(zh-hans) .hero-intro {
    line-height: 2;
}

html:lang(zh-hans) h2 {
    line-height: 1.4;
}

html:lang(zh-hans) .eyebrow {
    letter-spacing: 0.06em;
}

.prelaunch-error main {
    display: flex;
    align-items: center;
}

.error-stage {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: var(--public-space-section);
    grid-gap: var(--public-space-section);
    padding-block: var(--public-space-section);
}

.error-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
    isolation: isolate;
}

.error-code {
    color: var(--blue);
    font-size: clamp(140px, 15vw, 220px);
    font-weight: 850;
    letter-spacing: -0.08em;
    line-height: 1;
    padding-right: 0.08em;
    text-shadow: 0 14px 35px rgb(20 91 255 / 10%);
}

.error-orbit {
    position: absolute;
    z-index: -1;
    width: 94%;
    height: 62%;
    border: 2px solid #b1e7f9;
    border-radius: 50%;
    background: linear-gradient(145deg, #e2f7ff, #f8fcff);
    transform: rotate(-16deg);
}

.error-orbit-inner {
    width: 82%;
    height: 50%;
    border-color: white;
    background: transparent;
}

.error-spark {
    position: absolute;
    top: 4%;
    right: 11%;
    color: #11a68b;
    font-size: 58px;
    line-height: 1;
}

.error-copy {
    max-width: 620px;
}

.error-copy h1 {
    font-size: clamp(36px, 3.5vw, 52px);
    text-wrap: balance;
}

.error-description {
    max-width: 540px;
    margin-bottom: var(--public-space-grid);
    color: var(--ink-soft);
    font-size: 17px;
}

.error-note {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 800px) {
    .error-stage {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .error-visual {
        width: min(360px, 100%);
        min-height: 210px;
        margin-inline: auto;
    }

    .error-code {
        font-size: 150px;
    }

    .error-spark {
        font-size: 42px;
        top: 0;
    }

    .error-copy, .error-description {
        margin-inline: auto;
    }

    .error-copy h1 {
        font-size: 34px;
    }

    .error-description {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 51px;
    }

    .hero-intro {
        font-size: 16px;
    }

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

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 740px;
    }

    h1 {
        font-size: clamp(43px, 7.6vw, 64px);
    }

    .hero-intro {
        max-width: 650px;
    }

    .moment-card h2 {
        font-size: 24px;
    }

    .arena-mark {
        flex-basis: 100px;
        width: 100px;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 66px;
    }

    .site-header .header-inner {
        width: min(100% - 36px, 1480px);
    }

    .site-header .brand-logo {
        width: 182px;
        height: 46px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 104px;
    }

    .site-header {
        height: auto;
    }

    .site-header .header-inner {
        align-content: center;
        display: grid;
        gap: 4px 8px;
        grid-template-areas:
            "brand language"
            "navigation navigation";
        grid-template-columns: minmax(0, 1fr) auto;
        height: auto;
        padding-block: 8px;
        width: min(100% - 28px, 1480px);
    }

    .site-header .brand {
        grid-area: brand;
    }

    .site-header .brand-logo {
        height: 44px;
        width: 200px;
    }

    .site-header .language-switcher {
        grid-area: language;
        justify-self: end;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 7px;
        grid-area: navigation;
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .main-nav {
        gap: 7px;
        font-size: 12px;
    }

    .main-nav a {
        padding-block: 9px;
    }

    .launch-status {
        margin-bottom: 22px;
        font-size: 11px;
    }

    h1 {
        font-size: clamp(36px, 8.8vw, 52px);
        margin-bottom: 21px;
    }

    .hero-intro {
        font-size: 15px;
        line-height: 1.85;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        font-size: 13px;
    }

    .button-secondary {
        min-height: 48px;
    }

    .moment-card {
        border-radius: 23px;
        padding: 5px;
    }

    .moment-photo {
        border-radius: 18px;
    }

    .moment-spark {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 25px;
    }

    .moment-card h2 {
        font-size: 18px;
    }

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

    h2 {
        font-size: 29px;
    }

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

    .feature-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

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

    .arena-note {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 23px;
    }

    .arena-mark {
        flex: none;
        width: 82px;
    }

    .arena-copy h2 {
        font-size: 26px;
    }

    .arena-copy > p:last-child {
        font-size: 14px;
    }

    .launch-note h2 {
        font-size: 28px;
    }

    .launch-description {
        font-size: 14px;
    }

    .territory-note {
        font-size: 11px;
    }
}

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

    *, *::before, *::after {
        transition: none !important;
    }
}
