@font-face {
  font-family: Xuong;
  src: url("uploads/Xuong.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  background: #100c14;
  color: #fff9fc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

.hero {
  height: 100svh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 78% 32%, #59334d 0%, #241625 34%, #100c14 72%);
}
.backdrop, .veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop { z-index: -2; object-fit: cover; object-position: 50% 42%; opacity: .64; }
.character { position: absolute; z-index: 0; right: clamp(12px, 4vw, 68px); bottom: clamp(40px, 6vh, 48px); width: min(23vw, 300px); aspect-ratio: 692 / 826; max-height: calc(100svh - 100px); pointer-events: none; }
.character img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.veil {
  z-index: -1;
  background: linear-gradient(90deg, rgba(14,9,17,.94) 0%, rgba(18,11,20,.83) 35%, rgba(19,10,21,.22) 100%), linear-gradient(0deg, rgba(11,8,14,.84) 0%, transparent 34%, rgba(11,8,14,.18) 100%);
}
.topbar {
  position: relative;
  z-index: 1;
  width: min(100% - 80px, 1420px);
  margin: 0 auto;
  padding-top: clamp(14px, 3.5vh, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 850; letter-spacing: -.07em; }
.brand img { display: block; width: 39px; height: 28px; object-fit: contain; }
.brand-light { color: #e4b6d9; font-weight: 520; }
.top-link { padding: 10px 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #f2e9f1; font-size: 12px; transition: background .2s, border-color .2s; }
.top-link:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.top-link span { padding-left: 6px; color: #f4a9cf; }
.content { position: relative; z-index: 1; width: min(100% - 80px, 1420px); margin: auto; padding: clamp(28px, 9vh, 90px) 0 clamp(36px, 14vh, 112px); }
.eyebrow { color: #e7c5df; font-size: 10px; letter-spacing: .19em; font-weight: 750; }
.sparkle { color: #fa9cc9; padding-right: 7px; font-size: 14px; vertical-align: -1px; }
h1 { margin: 28px 0 14px; max-width: 700px; font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif; font-size: clamp(72px, 10.4vw, 142px); line-height: .82; letter-spacing: -.085em; font-weight: 700; }
h1 em { font-family: Xuong, Georgia, serif; font-style: normal; font-weight: 400; letter-spacing: -.02em; color: #f5b2d1; }
.intro { margin: 28px 0 30px; max-width: 390px; color: rgba(255,249,252,.74); font-size: 15px; line-height: 1.65; }
.download { width: min(100%, 340px); min-height: 70px; display: flex; align-items: center; gap: 14px; border-radius: 13px; background: #f1b1d2; color: #24121f; padding: 12px 17px; box-shadow: 0 12px 50px rgba(241,115,176,.2); transition: transform .2s, background .2s, box-shadow .2s; }
.download:hover { transform: translateY(-2px); background: #ffd0e3; box-shadow: 0 16px 54px rgba(241,115,176,.32); }
.download-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(74,32,59,.1); font-size: 22px; }
.download strong, .download small { display: block; }
.download strong { font-size: 14px; letter-spacing: -.01em; }
.download small { margin-top: 3px; font-size: 10px; opacity: .67; }
.arrow { margin-left: auto; font-size: 15px; opacity: .72; }
.requirements { margin-top: 19px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; color: rgba(255,249,252,.58); font-size: 10px; }
.requirements i { width: 3px; height: 3px; border-radius: 50%; background: #fa9cc9; }
.bottomline { position: relative; z-index: 1; width: min(100% - 80px, 1420px); margin: 0 auto; padding-bottom: 27px; display: flex; justify-content: space-between; color: rgba(255,249,252,.44); font-size: 9px; letter-spacing: .19em; }
.version { color: rgba(255,249,252,.74); font-weight: 750; letter-spacing: .08em; }
.version b { color: #f4a9cf; padding: 0 3px; }

@media (max-width: 650px) {
  .topbar, .content, .bottomline { width: calc(100% - 40px); }
  .topbar { padding-top: clamp(12px, 2.4vh, 19px); }
  .content { padding: clamp(24px, 7vh, 72px) 0 clamp(24px, 8vh, 80px); }
  .character { right: 4px; bottom: clamp(40px, 6vh, 48px); width: min(40vw, 190px); max-height: calc(100svh - 150px); }
  .backdrop { object-position: 58% center; opacity: .46; }
  .veil { background: linear-gradient(90deg, rgba(14,9,17,.84), rgba(16,9,18,.5)), linear-gradient(0deg, rgba(11,8,14,.9), transparent 55%); }
  h1 { font-size: clamp(58px, 17vw, 96px); }
  .intro { max-width: 310px; font-size: 14px; }
  .requirements { max-width: 320px; gap: 8px; }
  .bottomline { padding-bottom: 20px; font-size: 8px; }
}

@media (max-height: 700px) {
  .topbar { padding-top: 12px; }
  .content { padding-top: 20px; padding-bottom: 24px; }
  h1 { margin-top: 18px; font-size: clamp(52px, 9vh, 82px); }
  .intro { margin-top: 18px; margin-bottom: 18px; }
  .bottomline { padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop { display: none; }
  .hero { background: radial-gradient(ellipse at 80% 25%, #533249, #100c14 65%); }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
