:root {
  color-scheme: dark;
  --bg: #080c18;
  --surface: #111a2b;
  --surface-2: #182239;
  --text: #f9fbff;
  --muted: #a9b3c6;
  --cyan: #26e4ee;
  --violet: #bd66f0;
  --line: rgba(150, 184, 233, .22);
  --gradient: linear-gradient(105deg, #24e3ed 0%, #72bcf6 44%, #c364ef 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(ellipse at 55% -5%, rgba(25, 87, 131, .3), transparent 37%), #080c18; }
.container { width: min(1450px, calc(100% - 9vw)); margin-inline: auto; }
.site-header { position: relative; z-index: 3; height: 72px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.brand img { border-radius: 11px; box-shadow: 0 0 16px rgba(45, 219, 246, .32); }
.hero { position: relative; isolation: isolate; border-bottom: 1px solid rgba(103, 148, 212, .18); }
.hero::before { content: ""; position: absolute; inset: -72px 0 0; z-index: -2; background: radial-gradient(ellipse at 85% 0%, rgba(12, 76, 115, .35), transparent 44%), radial-gradient(ellipse at 25% 95%, rgba(73, 34, 130, .32), transparent 50%); }
.hero-glow { position: absolute; z-index: -1; filter: blur(55px); pointer-events: none; border-radius: 50%; }
.hero-glow-left { width: 340px; height: 190px; background: rgba(95, 55, 173, .16); left: -70px; bottom: 18px; }
.hero-glow-right { width: 500px; height: 210px; background: rgba(22, 156, 197, .12); right: 90px; top: -100px; }
.hero-grid { display: grid; grid-template-columns: minmax(370px, .75fr) minmax(690px, 1.25fr); align-items: center; gap: clamp(45px, 5vw, 90px); min-height: 300px; padding-bottom: 14px; }
.hero-copy { padding-block: 10px 25px; }
.hero-copy h1 { margin: 0 0 14px; font-size: clamp(47px, 4.8vw, 72px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; white-space: nowrap; }
.hero-copy h1 span, .steps-section h2 span { background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-copy p { margin: 0 0 25px; font-size: clamp(18px, 1.45vw, 22px); color: #e3e9f4; }
.gradient-button { border: 0; color: #0b1230; font-weight: 750; background: var(--gradient); box-shadow: 0 8px 28px rgba(46, 200, 241, .15), 0 0 24px rgba(140, 86, 226, .13); transition: transform .2s ease, box-shadow .2s ease; }
.gradient-button:hover { transform: translateY(-2px); box-shadow: 0 11px 32px rgba(46, 200, 241, .26); }
.gradient-button:focus-visible, .dialog-close:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hero-button { min-width: 218px; min-height: 54px; border-radius: 999px; font-size: 19px; }
.hero-button span { margin-left: 10px; font-size: 25px; font-weight: 400; vertical-align: -2px; }
.creation-showcase { min-width: 0; height: 280px; padding: 15px; display: grid; grid-template-columns: minmax(275px, 40%) minmax(320px, 60%); gap: 16px; position: relative; border: 1px solid rgba(151, 209, 255, .42); border-radius: 22px; background: linear-gradient(145deg, rgba(23, 43, 70, .83), rgba(12, 16, 39, .92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 28px rgba(60, 172, 237, .16), 0 30px 65px rgba(0,0,0,.28); transform: perspective(1200px) rotateY(-2deg); }
.creation-controls { display: flex; flex-direction: column; min-width: 0; gap: 9px; }
.mode-tabs { display: flex; gap: 5px; height: 40px; padding: 3px; border-radius: 24px; background: rgba(8, 15, 34, .73); }
.mode-tab { flex: 1; display: grid; place-items: center; white-space: nowrap; color: #aab4c6; font-size: 14px; }
.mode-tab.is-active { color: #fff; border: 1px solid rgba(88, 220, 238, .85); border-radius: 22px; background: rgba(28, 48, 72, .5); }
.prompt-demo { flex: 1; padding: 18px 14px; border: 1px solid rgba(167, 185, 214, .2); border-radius: 12px; color: #aab1c2; background: rgba(20, 27, 44, .9); font-size: 13px; }
.demo-selects { display: flex; gap: 7px; }
.demo-selects span { flex: 1; padding: 8px 12px; border: 1px solid rgba(167, 185, 214, .13); border-radius: 8px; background: #192236; color: #b7c4d7; font-size: 12px; }
.demo-generate { min-height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; white-space: nowrap; font-size: 17px; }
.demo-generate > span[aria-hidden] { font-size: 23px; line-height: 1; }
.preview-frame { overflow: hidden; border: 1px solid rgba(184, 205, 244, .32); border-radius: 14px; min-width: 0; background: #131c35; }
.preview-frame img { width: 100%; height: 100%; object-fit: cover; }
.preview-stack { position: absolute; top: 15px; left: calc(100% + 9px); width: 95px; display: flex; flex-direction: column; gap: 7px; }
.preview-stack img { height: 77px; width: 95px; object-fit: cover; border: 1px solid rgba(201, 216, 253, .35); border-radius: 11px; }
.steps-section { padding-top: 22px; padding-bottom: 20px; }
.steps-section h2 { margin: 0 0 20px; text-align: center; font-size: clamp(24px, 2vw, 32px); line-height: 1.25; }
.step-grid { --step-gap: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--step-gap); }
.step-card { position: relative; display: flex; align-items: center; gap: 16px; min-height: 83px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, rgba(31, 47, 72, .72), rgba(15, 23, 41, .9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.step-card:not(:last-child)::after { content: ""; position: absolute; right: calc(-0.5 * var(--step-gap) - 9px); top: 50%; width: 18px; height: 26px; transform: translateY(-50%); background: url("./assets/step-arrow.png") center / contain no-repeat; pointer-events: none; }
.step-number { align-self: flex-start; width: 34px; height: 30px; flex: 0 0 34px; object-fit: contain; }
.step-icon { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; }
.step-card h3 { margin: 0 0 4px; font-size: 16px; }
.step-card p { margin: 0; color: #b3bfd0; font-size: 12px; white-space: nowrap; }
.community-section { padding-bottom: 20px; }
.community-section h2 { margin: 0 0 15px; font-size: 29px; }
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-card { overflow: hidden; border-radius: 12px; background: #202b42; border: 1px solid rgba(139, 172, 222, .15); }
.work-card > img { width: 100%; height: 112px; object-fit: cover; }
.work-meta { min-height: 64px; padding: 8px 12px 9px; background: linear-gradient(90deg, rgba(22, 39, 58, .89), rgba(40, 45, 66, .83)); }
.work-meta h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.work-meta span { color: #d5dceb; font-size: 12px; }
.work-meta i { float: right; font-style: normal; }
.work-author-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.work-author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.author-avatar { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; object-fit: cover; }
.work-likes { white-space: nowrap; }
.download-section { min-height: 85px; margin-bottom: 36px; display: grid; grid-template-columns: 45% 1fr auto; align-items: center; gap: 20px; border: 1px solid rgba(119, 151, 221, .43); border-radius: 15px; overflow: hidden; background: linear-gradient(100deg, #12234c, #101a39 72%, #0d1730); }
.download-art { height: 100%; background: url("./assets/download-banner-art.png") center / cover no-repeat; mask-image: linear-gradient(to right, #000 80%, transparent 100%); }
.download-section h2 { margin: 0; font-size: clamp(18px, 1.5vw, 24px); white-space: nowrap; }
.download-name { background: linear-gradient(100deg, #a3f1f6 0%, #67e6ee 40%, #36ccdf 100%); }
.download-invitation { background: linear-gradient(90deg, #fff 0%, #f7f5ff 40%, #e6ccfc 70%, #ed8ce4 100%); }
.download-section h2 > span { background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.download-button { min-width: 174px; height: 49px; margin-right: 36px; border-radius: 999px; font-size: 16px; }
.site-footer { padding: 17px 0; border-top: 1px solid rgba(119, 151, 221, .14); color: #aeb8ca; font-size: 12px; }
.site-footer span { margin: 0 17px; opacity: .5; }
.download-dialog { width: min(690px, calc(100vw - 36px)); max-width: none; padding: 48px 58px 42px; border: 1px solid rgba(90, 216, 244, .8); border-right-color: rgba(198, 97, 239, .8); border-bottom-color: rgba(198, 97, 239, .8); border-radius: 28px; color: #fff; background: linear-gradient(115deg, #062846, #111a37 55%, #2a1648); box-shadow: 0 0 28px rgba(55, 183, 231, .23), 0 0 34px rgba(160, 72, 222, .17), 0 28px 80px rgba(0,0,0,.45); }
.download-dialog::backdrop { background: rgba(2, 4, 11, .72); backdrop-filter: blur(3px); }
.download-dialog h2 { margin: 0 0 25px; font-size: 24px; text-align: center; }
.dialog-close { position: absolute; top: 15px; right: 21px; border: 0; color: #bbc4d6; background: transparent; font-size: 34px; line-height: 1; }
.qr-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 32px; align-items: center; }
.qr-item { min-width: 0; text-align: center; }
.qr-item img { width: 100%; max-width: 230px; aspect-ratio: 1; margin: 0 auto 19px; border-radius: 20px; }
.qr-item p { margin: 0; font-size: 20px; }
.qr-divider { height: 85%; border-left: 1px dashed rgba(188, 204, 236, .33); }
/* Desktop proportions and brighter edge lighting calibrated against the 4K design. */
@media (min-width: 1201px) {
  .container { width: min(1450px, calc(100% - 10vw)); }
  .hero-grid { min-height: 326px; grid-template-columns: minmax(390px, .78fr) minmax(700px, 1.22fr); }
  .hero-copy h1 { font-size: clamp(60px, 4.35vw, 72px); }
  .creation-showcase { height: 290px; }
  .steps-section { padding-top: 25px; padding-bottom: 25px; }
  .step-grid { gap: 38px; }
  .community-section { padding-bottom: 25px; }
  .work-card > img { height: 126px; }
  .download-section { min-height: 92px; }
}
.hero::before {
  background:
    radial-gradient(ellipse at 2% 70%, rgba(130, 57, 225, .25), transparent 29%),
    radial-gradient(ellipse at 92% 22%, rgba(24, 129, 226, .22), transparent 35%),
    radial-gradient(ellipse at 48% 100%, rgba(32, 118, 190, .13), transparent 50%);
}
.creation-showcase {
  border-color: rgba(117, 209, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 35px rgba(60, 172, 237, .2), 0 30px 65px rgba(0,0,0,.3);
}
.work-card { position: relative; }
.work-card::before { content: none !important; display: none !important; }
.download-dialog h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.download-dialog {
  width: min(900px, calc(100vw - 36px));
  padding: 54px 72px 48px;
  border: 3px solid transparent;
  border-radius: 44px;
  background:
    radial-gradient(ellipse at 0% 70%, rgba(0, 180, 249, .19), transparent 48%) padding-box,
    radial-gradient(ellipse at 100% 75%, rgba(180, 48, 232, .2), transparent 46%) padding-box,
    linear-gradient(115deg, #062846, #111a37 55%, #2a1648) padding-box,
    linear-gradient(90deg, #04ddf5 0%, #168cfb 35%, #6550ff 67%, #ec31ff 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(172, 221, 255, .45),
    inset 12px 0 26px -15px rgba(0, 221, 255, .85),
    inset -12px 0 26px -15px rgba(226, 49, 255, .8),
    -5px 0 16px -8px rgba(0, 221, 255, .9),
    5px 0 16px -8px rgba(226, 49, 255, .85),
    0 0 30px rgba(64, 106, 255, .25),
    0 28px 80px rgba(0, 0, 0, .48);
}
.qr-item img { max-width: 260px; border-radius: 16px; }
@media (max-width: 600px) {
  .download-dialog { padding: 42px 20px 26px; border-radius: 28px; }
  .qr-item img { border-radius: 12px; }
}
/* Keep the hero showcase and its side thumbnails inside the viewport. */
@media (min-width: 1451px) {
  .creation-showcase {
    width: calc(100% - 105px);
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  }
  .preview-stack { left: calc(100% + 9px); right: auto; }
}
@media (min-width: 901px) and (max-width: 1450px) {
  .hero-grid {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(22px, 3vw, 42px);
  }
  .hero-copy h1 { font-size: clamp(46px, 4.1vw, 58px); }
  .creation-showcase {
    height: 270px;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    width: calc(100% - 105px);
  }
  .preview-stack { display: flex; left: calc(100% + 9px); right: auto; }
}

@media (min-width: 901px) {
  .preview-stack img {
    transform: perspective(380px) rotateY(-14deg) skewY(-8deg);
    transform-origin: center;
  }
}
@media (min-width: 601px) and (max-width: 1300px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 32px;
  }
  .hero-copy h1 { font-size: clamp(48px, 5.2vw, 64px); }
  .creation-showcase {
    width: calc(100% - 105px);
    height: 280px;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  }
  .preview-stack { display: flex; left: calc(100% + 9px); right: auto; }
}
@media (max-width: 600px) {
  .preview-stack {
    display: flex;
    position: static;
    grid-column: 1;
    width: 100%;
    flex-direction: row;
  }
  .preview-stack img { width: calc((100% - 14px) / 3); height: 72px; }
}
@media (max-width: 1200px) { .preview-stack { display: none; } .hero-grid { grid-template-columns: minmax(330px,.75fr) minmax(570px,1.25fr); gap: 34px; } .hero-copy h1 { font-size: 53px; } .step-grid { gap: 22px; } .step-card:not(:last-child)::after { display: none; } .step-card { gap: 11px; padding: 14px; } .step-card p { white-space: normal; } .download-section { grid-template-columns: 35% 1fr auto; } }
@media (max-width: 900px) { .container { width: min(700px, calc(100% - 40px)); } .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; } .hero-copy { padding: 10px 0 0; } .creation-showcase { transform: none; } .step-grid { grid-template-columns: 1fr; gap: 12px; } .step-card { min-height: 77px; } .community-grid { grid-template-columns: repeat(2,1fr); } .download-section { grid-template-columns: 1fr auto; min-height: 122px; padding: 20px; } .download-art { position: absolute; inset: 0; opacity: .34; mask-image: linear-gradient(to right,#000,transparent 75%); } .download-section { position: relative; } .download-section h2,.download-section button { z-index: 1; } .download-button { margin: 0; } }
@media (max-width: 600px) { .site-header { height: 64px; } .brand { font-size: 17px; }.brand img { width: 36px; height: 36px; } .hero-copy h1 { font-size: clamp(38px, 10.5vw, 54px); } .hero-copy p { font-size: 16px; } .hero-button { width: 100%; } .creation-showcase { height: auto; grid-template-columns: 1fr; padding: 10px; } .creation-controls { min-height: 210px; } .preview-frame { height: 190px; } .steps-section h2 { text-align: left; } .community-grid { gap: 9px; } .work-card > img { height: 95px; } .work-meta { min-height: 64px; } .work-meta h3 { font-size: 12px; } .work-meta span { font-size: 10px; } .download-section { display: flex; flex-direction: column; align-items: stretch; gap: 16px; } .download-section h2 { white-space: normal; font-size: 19px; } .download-button { width: 100%; } .site-footer { line-height: 1.8; } .site-footer span { margin: 0 5px; } .download-dialog { padding: 42px 20px 26px; } .download-dialog h2 { font-size: 20px; } .qr-grid { gap: 10px; } .qr-item img { border-radius: 12px; margin-bottom: 10px; } .qr-item p { font-size: 13px; } }

/* One shared perspective carries the controls, player and thumbnail rail. */
.work-card > img {
  height: auto;
  aspect-ratio: 332 / 112;
  object-fit: contain;
}
@media (min-width: 1201px) {
  .step-grid { --step-gap: 38px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .step-grid { --step-gap: 22px; }
  .step-card:not(:last-child)::after { display: block; }
}
@media (min-width: 901px) {
  .creation-showcase {
    width: calc(100% - 125px);
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    transform-origin: 50% 50%;
    transform: perspective(1400px) rotateY(-9deg) rotateZ(-1.2deg) skewX(-2deg) scale(.96);
  }
  .preview-stack {
    display: flex;
    left: calc(100% - 4px);
    right: auto;
    top: 15px;
    bottom: 7px;
  }
  .preview-stack img {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
  }
}
