:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --ink: #0f1117;
    --muted: #667085;
    --line: #e6e9f0;
    --brand: #ff4f91;
    --blue: #2f7df6;
    --green: #14b981;
    --dark: #11131a;
    --soft: #f0f3f8;
    --shadow: 0 28px 80px rgba(19, 24, 36, .12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 78% -12%, rgba(255, 79, 145, .16), transparent 34rem),
        linear-gradient(180deg, #fbfcfe 0, #f6f7fb 50%, #eef2f7 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 19, 26, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 19, 26, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 68%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 68%);
}

button,
input {
    font: inherit;
}

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

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

.page {
    min-height: 100svh;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.topbar {
    padding: 18px 0 10px;
}

.topbar-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-head img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 19, 26, .1);
}

.app-head strong,
.app-head span {
    display: block;
}

.app-head strong {
    font-size: 20px;
    font-weight: 900;
}

.app-head span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.primary-link,
.primary-btn,
.bot-upload-btn,
.download-link {
    min-height: 46px;
    border: 0;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.primary-link,
.primary-btn,
.bot-upload-btn,
.download-link {
    color: #fff;
    background: var(--dark);
    box-shadow: 0 16px 34px rgba(17, 19, 26, .16);
}

.primary-link:hover,
.primary-btn:hover,
.bot-upload-btn:hover,
.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(17, 19, 26, .2);
}

.intro {
    padding: 18px 0 34px;
}

.command-center {
    position: relative;
    min-height: 540px;
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    gap: 34px;
    align-items: center;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .96) 0 47%, rgba(242, 245, 250, .75) 47% 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(18px) scale(.985);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .8, .2, 1);
}

.command-center.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.command-center::before {
    content: "";
    position: absolute;
    inset: auto -12% -36% 42%;
    height: 360px;
    background: linear-gradient(90deg, rgba(255, 79, 145, .24), rgba(47, 125, 246, .2));
    filter: blur(55px);
    transform: rotate(-10deg);
    z-index: -1;
}

.launch-copy {
    max-width: 660px;
}

.eyebrow,
.section-head span,
.task-index {
    display: inline-block;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .15em;
}

h1 {
    max-width: 650px;
    margin-top: 18px;
    font-size: clamp(46px, 6.2vw, 78px);
    line-height: 1.02;
    font-weight: 950;
}

.launch-copy p {
    max-width: 590px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.72;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-link {
    min-width: 132px;
}

.signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.signal-row span {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    background: rgba(255, 255, 255, .74);
    font-size: 13px;
    font-weight: 800;
}

.signal-row b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(20, 185, 129, .12);
}

.preview-stage {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}

.preview-stage::before {
    content: "";
    position: absolute;
    width: min(94%, 420px);
    aspect-ratio: 1;
    border-radius: 42px;
    background:
        linear-gradient(145deg, #161922, #272b38);
    transform: rotate(8deg);
    box-shadow: 0 30px 80px rgba(17, 19, 26, .22);
}

.phone-frame {
    position: relative;
    z-index: 2;
    width: 238px;
    border: 9px solid #050506;
    border-radius: 42px;
    background: #050506;
    box-shadow: 0 28px 70px rgba(17, 19, 26, .34);
    overflow: hidden;
    animation: phone-float 5.5s ease-in-out infinite;
}

.phone-frame img {
    display: block;
    width: 100%;
}

.mini-pass {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 42px;
    width: 190px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 42px rgba(17, 19, 26, .14);
    animation: chip-float 6s ease-in-out infinite;
}

.mini-pass div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mini-pass small,
.mini-pass strong {
    display: block;
}

.mini-pass small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.mini-pass strong {
    font-size: 21px;
    line-height: 1.05;
}

.mini-pass ul {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    list-style: none;
}

.mini-pass li {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    background: #fff;
    color: #3b4350;
    font-size: 13px;
    font-weight: 850;
}

.mini-pass li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.section {
    padding: 28px 0;
}

.section-head {
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .62s ease, transform .62s ease;
}

.section-head.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-head h2 {
    margin-top: 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 950;
}

.mission-board {
    display: grid;
    grid-template-columns: 1.1fr .95fr .95fr;
    gap: 18px;
}

.task-card {
    position: relative;
    min-height: 360px;
    padding: 26px;
    border: 1px solid rgba(230, 233, 240, .9);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 22px 60px rgba(19, 24, 36, .1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .62s ease,
        transform .62s cubic-bezier(.2, .8, .2, 1),
        box-shadow .22s ease,
        border-color .22s ease;
}

.task-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 79, 145, .1), transparent 44%);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.task-card:nth-child(2) {
    transition-delay: .08s;
}

.task-card:nth-child(3) {
    transition-delay: .16s;
}

.task-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.task-card:hover {
    border-color: rgba(255, 79, 145, .26);
    box-shadow: 0 30px 76px rgba(19, 24, 36, .13);
}

.task-card:hover::before {
    opacity: 1;
}

.task-card h3 {
    margin-top: 10px;
    font-size: 26px;
    line-height: 1.18;
    font-weight: 950;
}

.task-card p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.poster-card {
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 22px;
    align-items: center;
}

.task-copy {
    position: relative;
    z-index: 2;
}

.poster-card .primary-btn {
    margin-top: 24px;
}

.poster-wrap {
    position: relative;
    z-index: 2;
    width: 190px;
    overflow: hidden;
    border-radius: 28px;
    background: #111;
    box-shadow: 0 22px 46px rgba(19, 24, 36, .18);
}

.poster-preview {
    position: relative;
    aspect-ratio: 9 / 16;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    isolation: isolate;
}

.poster-preview img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.16) brightness(.56);
    transform: scale(1.08);
}

.poster-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .66));
}

.poster-preview-content {
    padding: 18px;
}

.poster-preview small,
.poster-preview strong,
.poster-preview span {
    display: block;
}

.poster-preview small {
    opacity: .72;
    font-size: 12px;
}

.poster-preview strong {
    margin-top: 14px;
    font-size: 27px;
    line-height: 1.05;
}

.poster-preview span {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 760;
}

.poster-preview b {
    display: inline-block;
    margin-top: 16px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    font-size: 12px;
}

.keywords {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.keyword-chip {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #394150;
    background: #fff;
    font-weight: 820;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.keyword-chip:hover {
    border-color: rgba(255, 79, 145, .38);
    transform: translateY(-2px);
}

.keyword-chip.copied {
    color: #fff;
    background: var(--dark);
}

.submit-card {
    color: #fff;
    background:
        linear-gradient(145deg, #141720, #232736);
}

.submit-card p {
    color: rgba(255, 255, 255, .7);
}

.submit-card .primary-btn {
    width: 100%;
    margin-top: auto;
    color: var(--ink);
    background: #fff;
}

.assistant-section {
    padding: 30px 0 12px;
}

.claim-panel {
    padding: 32px;
    border: 1px solid rgba(230, 233, 240, .92);
    border-radius: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(246, 248, 252, .9));
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.claim-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.claim-copy h2 {
    max-width: 620px;
    margin-top: 10px;
    font-size: clamp(32px, 4.1vw, 50px);
    line-height: 1.12;
    font-weight: 950;
}

.claim-copy p {
    max-width: 620px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.72;
}

.assistant-cta {
    margin-top: 26px;
}

.claim-ticket {
    position: relative;
    min-height: 220px;
    padding: 22px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 79, 145, .2), transparent 38%),
        linear-gradient(145deg, #141720, #252a38);
    box-shadow: 0 22px 58px rgba(17, 19, 26, .2);
    animation: chip-float 6.5s ease-in-out infinite;
}

.claim-ticket::before,
.claim-ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 56px;
    background: #f7f8fb;
    transform: translateY(-50%);
}

.claim-ticket::before {
    left: -1px;
    border-radius: 0 999px 999px 0;
}

.claim-ticket::after {
    right: -1px;
    border-radius: 999px 0 0 999px;
}

.ticket-head,
.ticket-main {
    position: relative;
    z-index: 2;
}

.ticket-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ticket-head span {
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.ticket-head b {
    font-size: 13px;
    color: var(--green);
}

.ticket-main strong,
.ticket-main small {
    display: block;
}

.ticket-main strong {
    font-size: 34px;
    line-height: 1.05;
}

.ticket-main small {
    margin-top: 8px;
    color: rgba(255, 255, 255, .62);
    font-weight: 780;
}

.ticket-progress {
    position: relative;
    z-index: 2;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
}

.ticket-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--blue));
    animation: progress-pulse 2.4s ease-in-out infinite;
}

.footer {
    padding: 28px 16px 90px;
    color: #8a92a0;
    text-align: center;
}

.bot-bubble {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--dark);
    box-shadow: 0 18px 40px rgba(21, 22, 26, .28);
    cursor: pointer;
}

.bot-panel {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 50;
    width: 380px;
    max-width: calc(100vw - 28px);
    height: 540px;
    max-height: calc(100svh - 110px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(21, 22, 26, .22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}

.bot-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.bot-header {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: var(--dark);
}

.bot-avatar {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 900;
}

.bot-title {
    flex: 1;
    min-width: 0;
}

.bot-title strong,
.bot-title span {
    display: block;
}

.bot-title strong {
    font-size: 15px;
}

.bot-title span {
    margin-top: 2px;
    opacity: .7;
    font-size: 12px;
}

.bot-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
}

.bot-messages {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    background: #f7f8fb;
}

.bot-msg {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

.bot-msg.from-bot {
    align-self: flex-start;
    color: #202532;
    background: #fff;
    border: 1px solid #e7e9ef;
    border-bottom-left-radius: 5px;
}

.bot-msg.from-user {
    align-self: flex-end;
    color: #fff;
    background: var(--dark);
    border-bottom-right-radius: 5px;
}

.bot-msg img {
    display: block;
    max-width: 100%;
    max-height: 170px;
    border-radius: 12px;
}

.typing {
    display: inline-flex;
    gap: 4px;
}

.typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: blink 1.1s infinite;
}

.typing i:nth-child(2) {
    animation-delay: .14s;
}

.typing i:nth-child(3) {
    animation-delay: .28s;
}

.bot-footer {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.bot-upload-btn,
.download-link {
    width: 100%;
    min-height: 48px;
}

.bot-upload-btn.is-busy {
    opacity: .55;
}

.visually-hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.download-link {
    margin-top: 8px;
    padding: 0 16px;
}

.download-tip {
    margin: 8px 0 2px;
    padding: 8px;
    border-radius: 12px;
    color: #9f224f;
    background: rgba(255, 79, 145, .08);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

@keyframes blink {
    0%, 70%, 100% { transform: translateY(0); opacity: .45; }
    35% { transform: translateY(-4px); opacity: 1; }
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes progress-pulse {
    0%, 100% { width: 42%; opacity: .72; }
    50% { width: 68%; opacity: 1; }
}

@media (max-width: 1040px) {
    .command-center {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .mission-board {
        grid-template-columns: 1fr 1fr;
    }

    .poster-card {
        grid-column: 1 / -1;
    }

    .claim-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        padding: 12px 0 0;
    }

    .intro {
        padding-top: 12px;
    }

    .command-center {
        min-height: auto;
        padding: 24px;
        border-radius: 28px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    h1 {
        font-size: 40px;
    }

    .launch-copy p {
        font-size: 16px;
        line-height: 1.62;
    }

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

    .primary-link {
        width: 100%;
    }

    .preview-stage {
        min-height: 250px;
        margin-top: 4px;
    }

    .preview-stage::before {
        width: 260px;
        border-radius: 32px;
    }

    .phone-frame {
        width: 154px;
        border-width: 6px;
        border-radius: 30px;
    }

    .mini-pass {
        right: 0;
        bottom: 16px;
        width: 156px;
        min-width: 118px;
        padding: 12px;
        border-radius: 16px;
    }

    .mini-pass strong {
        font-size: 18px;
    }

    .mini-pass li {
        min-height: 30px;
        font-size: 12px;
    }

    .section {
        padding: 22px 0;
    }

    .section-head h2 {
        font-size: 30px;
    }

    .mission-board,
    .poster-card {
        grid-template-columns: 1fr;
    }

    .task-card {
        min-height: auto;
        border-radius: 24px;
        padding: 20px;
    }

    .poster-wrap {
        width: min(100%, 230px);
        justify-self: center;
    }

    .submit-card .primary-btn {
        margin-top: 22px;
    }

    .claim-panel {
        padding: 24px;
        border-radius: 28px;
    }

    .claim-copy h2 {
        font-size: 34px;
    }

    .assistant-cta {
        width: 100%;
    }

    .claim-ticket {
        min-height: 190px;
        border-radius: 22px;
    }

    .bot-bubble {
        right: 14px;
        bottom: 14px;
    }

    .bot-panel {
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
        height: min(540px, calc(100svh - 96px));
    }
}

@media (max-width: 420px) {
    .app-head img {
        width: 42px;
        height: 42px;
    }

    .app-head strong {
        font-size: 18px;
    }

    h1 {
        font-size: 34px;
    }

    .signal-row {
        gap: 8px;
    }

    .signal-row span {
        font-size: 12px;
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .phone-frame,
    .mini-pass,
    .claim-ticket,
    .ticket-progress span {
        animation: none !important;
    }
}
