:root {
    --bg: #07060a;
    --text: #f4f7fb;
    --muted: #9aa6bd;
    --cyan: #5ce1ff;
    --gold: #f3c969;
    --line: rgba(255, 255, 255, 0.1);
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/cormorant-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    color: var(--text);
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    overflow: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 68% 46% at 50% 38%, rgba(92, 64, 24, 0.42), transparent 64%),
        radial-gradient(ellipse 50% 28% at 50% 108%, rgba(120, 78, 28, 0.22), transparent 70%),
        #050408;
}

.orb, .sheen, .vignette, #field {
    position: absolute;
    pointer-events: none;
}

.orb {
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.orb-a {
    width: 58vw;
    height: 58vw;
    min-width: 320px;
    min-height: 320px;
    left: -18vw;
    top: -22vh;
    background: rgba(184, 132, 48, 0.34);
    animation: drift-a 26s ease-in-out infinite;
}

.orb-b {
    width: 52vw;
    height: 52vw;
    min-width: 280px;
    min-height: 280px;
    right: -20vw;
    bottom: -24vh;
    background: rgba(112, 68, 24, 0.42);
    animation: drift-b 32s ease-in-out infinite;
}

.orb-c {
    width: 36vw;
    height: 36vw;
    min-width: 220px;
    min-height: 220px;
    left: 32%;
    top: 28%;
    background: rgba(236, 204, 132, 0.16);
    filter: blur(90px);
    animation: drift-c 22s ease-in-out infinite;
}

.sheen {
    top: -30%;
    left: -40%;
    width: 42%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 226, 170, 0.09), transparent);
    filter: blur(10px);
    transform: rotate(18deg);
    animation: sheen 16s ease-in-out infinite;
}

.vignette {
    inset: 0;
    background: radial-gradient(ellipse at 50% 42%, transparent 36%, rgba(0, 0, 0, 0.72) 100%);
}

#field {
    inset: 0;
    width: 100%;
    height: 100%;
}

.stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 28px 20px;
}

.stage.is-hidden { display: none; }

.stage.is-in { animation: rise 0.5s ease both; }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.panel {
    width: min(460px, 100%);
    text-align: center;
}

.eyebrow {
    margin: 0 0 22px;
    letter-spacing: 0.22em;
    font-size: 13px;
    color: var(--gold);
}

.scan {
    width: 210px;
    height: 210px;
    margin: 0 auto 22px;
    position: relative;
}

.scan svg { width: 100%; height: 100%; }

.ring-bg, .ring-fg { fill: none; stroke-width: 4; }

.ring-bg { stroke: rgba(255, 255, 255, 0.08); }

.ring-fg {
    stroke: var(--cyan);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
}

.sweep {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 68%, rgba(92, 225, 255, 0.7) 86%, transparent 100%);
    -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
    mask: radial-gradient(circle, transparent 58%, #000 60%);
    animation: spin 1.5s linear infinite;
}

.percent {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.percent-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 42px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.04em;
}

.percent-unit {
    font-size: 16px;
    margin-left: 2px;
    color: var(--muted);
    font-weight: 500;
}

.live {
    display: flex;
    justify-content: center;
    gap: 22px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.live b { color: var(--text); font-weight: 600; }

.checks {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    text-align: left;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    min-height: 24px;
}

.checks li i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
}

.checks li.active i {
    border-top-color: var(--cyan);
    animation: spin 0.8s linear infinite;
}

.checks li.done { color: var(--text); }

.checks li.done i {
    animation: none;
    border: none;
    background: var(--cyan);
    position: relative;
}

.checks li.done i::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 7px;
    height: 4px;
    border-left: 2px solid #062028;
    border-bottom: 2px solid #062028;
    transform: rotate(-45deg);
}

.lock-card {
    width: min(440px, 100%);
    padding: 42px 28px 36px;
    border-radius: 28px;
    background: rgba(12, 16, 28, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    text-align: center;
}

.nav-card {
    width: min(90vw, 860px);
    padding: 8px 0 4px;
    text-align: center;
    background: transparent;
}

.lock-card h1, .nav-card h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 40px);
    letter-spacing: 0.18em;
    font-weight: 650;
}

.lock-card p, .nav-card p {
    color: var(--muted);
    margin: 10px 0 28px;
    line-height: 1.6;
}

.nav-card .tagline {
    max-width: 34rem;
    margin: 4px auto 28px;
    font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(26px, 5vw, 34px);
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #f3e6c8;
}

.slider {
    position: relative;
    height: 64px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(92, 225, 255, 0.22), rgba(243, 201, 105, 0.38));
}

.slider-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    padding: 0 16px 0 64px;
    letter-spacing: 0.04em;
    font-size: 13px;
    pointer-events: none;
}

.knob {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: linear-gradient(180deg, #f7e7b8, #e0b35a);
    color: #1a1408;
    display: grid;
    place-items: center;
    font-size: 22px;
    cursor: grab;
    touch-action: none;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.knob:active { cursor: grabbing; }

.slider.done .slider-text { color: #f7e7b8; }

.logo-wrap {
    width: 100%;
    margin: 0 auto 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(46vh, 340px);
    object-fit: contain;
    animation: logo-float 3.6s ease-in-out infinite;
}

.monogram {
    width: 148px;
    height: 148px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(92, 225, 255, 0.2), transparent 42%),
        #121826;
    border: 1px solid rgba(243, 201, 105, 0.45);
    color: var(--gold);
    font-size: 72px;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.enter {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 56px;
    padding: 0 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe7a8, #e4b14a);
    color: #1c1508;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.22em;
    box-shadow: 0 12px 30px rgba(228, 177, 74, 0.28);
    animation: enter-glow 2.2s ease-in-out infinite;
}

.enter::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    transform: skewX(-18deg);
    animation: enter-shine 2.8s ease-in-out infinite;
}

.enter:hover { transform: translateY(-1px); }

.enter.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.notice {
    margin-top: 14px;
    color: #e7b4ae;
    font-size: 14px;
}

#stage-nav.is-hidden { display: none; }

#stage-nav:not(.is-hidden) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

#stage-nav .nav-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-foot {
    width: 100%;
    background: transparent;
    color: #b7a48a;
}

.site-foot-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 16px 12px;
    box-sizing: border-box;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 22px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(232, 197, 120, 0.22);
}

.partners img {
    display: block;
    height: 36px;
    width: auto;
}

.licenses {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px 12px;
    padding: 16px 0 8px;
}

.licenses .item {
    width: min(220px, 46%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.licenses img {
    display: block;
    height: 52px;
    width: auto;
}

.licenses p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #b7a48a;
}

@media (min-width: 900px) {
    .partners img { height: 48px; }
    .licenses img { height: 60px; }
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 10px rgba(243, 201, 105, 0.18));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 26px rgba(243, 201, 105, 0.55));
    }
}

@keyframes enter-glow {
    0%, 100% { box-shadow: 0 10px 24px rgba(228, 177, 74, 0.28); }
    50% { box-shadow: 0 16px 38px rgba(228, 177, 74, 0.72), 0 0 24px rgba(255, 220, 140, 0.5); }
}

@keyframes enter-shine {
    0%, 42% { left: -70%; }
    68%, 100% { left: 150%; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes drift-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(18vw, 22vh, 0) scale(1.18); }
}

@keyframes drift-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-16vw, -18vh, 0) scale(1.15); }
}

@keyframes drift-c {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-12vw, 10vh, 0) scale(1.22); }
}

@keyframes sheen {
    0%, 100% { transform: translateX(0) rotate(18deg); }
    50% { transform: translateX(120vw) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sweep, .checks li i, .stage.is-in, .orb, .sheen, .logo-wrap img, .enter, .enter::after { animation: none; }
}
