:root {
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  --bg: #090e1b;
  --bg-soft: #10131b;
  --panel: rgba(19, 27, 47, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-soft: #a0b1c7;
  --text-muted: #7b88a2;
  --brand: #ff8a57;
  --brand-strong: #ff7b4b;
  --brand-soft: #ffb08a;
  --accent-blue: #54caff;
  --accent-mint: #2ed695;
  --brand-glow: rgba(255, 123, 75, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --header-height: 88px;
  --max-width: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(180deg, #090e1b 0%, #0b1120 100%);
}

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

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

.page-shell {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-shell::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 14, 27, 0.14), rgba(9, 14, 27, 0.38)),
    url("assets/hero-background.svg") center center / cover no-repeat;
}

.page-shell::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 34%, rgba(9, 14, 27, 0), rgba(9, 14, 27, 0.18) 45%, rgba(9, 14, 27, 0.74) 100%),
    linear-gradient(180deg, rgba(9, 14, 27, 0.02) 0%, rgba(9, 14, 27, 0.24) 100%);
}

.site-header,
.site-footer,
.hero-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  padding-top: 18px;
}

.header-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  animation: fade-lift 900ms var(--ease-out) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  filter:
    drop-shadow(0 10px 18px rgba(84, 202, 255, 0.12))
    drop-shadow(0 14px 26px rgba(255, 123, 75, 0.08));
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.brand-lockup strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.header-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-slogan {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 123, 75, 0.12);
  border: 1px solid rgba(255, 138, 87, 0.28);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.header-cta:hover {
  background: rgba(255, 123, 75, 0.18);
  border-color: rgba(255, 138, 87, 0.4);
  transform: translate3d(0, -1px, 0);
}

.hero {
  position: relative;
  flex: 1;
  overflow: clip;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 5px 5px, 5px 5px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.72;
  filter: blur(44px);
  pointer-events: none;
}

.hero-glow-left {
  left: -140px;
  bottom: 120px;
  width: 280px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 123, 75, 0.2), transparent 70%);
  animation: glow-shift 9s ease-in-out infinite;
}

.hero-glow-bottom {
  right: 16%;
  bottom: -20px;
  width: 220px;
  height: 180px;
  background: radial-gradient(circle, rgba(84, 202, 255, 0.14), transparent 74%);
  animation: glow-shift 11s ease-in-out infinite reverse;
}

.hero-shell {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 120px);
  padding-top: 92px;
  padding-bottom: 72px;
}

.hero-content {
  width: min(100%, 620px);
  margin-top: auto;
  padding-top: clamp(180px, 26vh, 340px);
  animation: fade-lift 1050ms var(--ease-out) both;
  animation-delay: 100ms;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(46, 214, 149, 0.12);
  border: 1px solid rgba(46, 214, 149, 0.24);
  color: var(--accent-mint);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(46, 214, 149, 0.04);
}

.icon-mask {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask-image: var(--icon-url);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: var(--icon-url);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.icon-xs {
  font-size: 12px;
}

.icon-sm {
  font-size: 16px;
}

.eyebrow {
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text);
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.2;
  letter-spacing: -0.08em;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.headline-line.accent {
  margin-top: 6px;
  color: var(--brand);
}

.hero-summary {
  margin: 28px 0 0;
  max-width: 30ch;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.82;
}

.download-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  width: min(100%, 468px);
  margin-top: 44px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: fade-lift 1150ms var(--ease-out) both;
  animation-delay: 180ms;
}

.qr-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 22px;
  background: rgba(84, 202, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.qr-grid {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    rgba(255, 255, 255, 0.02);
  background-size: 12px 12px, 12px 12px, auto;
}

.qr-grid span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
}

.qr-grid span:nth-child(1) {
  top: 12px;
  left: 12px;
}

.qr-grid span:nth-child(2) {
  top: 12px;
  right: 12px;
}

.qr-grid span:nth-child(3) {
  bottom: 12px;
  left: 12px;
}

.qr-grid span:nth-child(4) {
  top: 30px;
  left: 30px;
}

.qr-grid span:nth-child(5) {
  top: 30px;
  right: 24px;
}

.qr-grid span:nth-child(6) {
  bottom: 24px;
  right: 12px;
}

.qr-grid span:nth-child(7) {
  bottom: 12px;
  left: 36px;
}

.qr-grid span:nth-child(8) {
  top: 48px;
  left: 24px;
}

.qr-grid span:nth-child(9) {
  top: 48px;
  right: 36px;
}

.download-copy h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.download-copy p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(255, 123, 75, 0.2);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 33, 54, 0.9);
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.ambient-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(19, 27, 47, 0.72);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.profile-card {
  top: 37%;
  right: 42px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-width: 290px;
  animation:
    fade-lift 1100ms var(--ease-out) both,
    float-drift 8s ease-in-out 1.2s infinite;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ff7a59, #431a11 72%),
    #141820;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.profile-copy strong {
  display: block;
  font-size: 16px;
}

.profile-copy p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.status-dot {
  position: absolute;
  left: 50px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 0 3px rgba(9, 14, 27, 0.92);
}

.nearby-card {
  right: 34px;
  bottom: 92px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-width: 240px;
  animation:
    fade-lift 1250ms var(--ease-out) both,
    float-drift 9s ease-in-out 1.4s infinite reverse;
}

.nearby-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(84, 202, 255, 0.1);
  color: var(--accent-blue);
}

.nearby-copy span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}

.nearby-copy strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-mint);
  font-size: 18px;
  line-height: 1.3;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  background: transparent;
  padding-bottom: 26px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
  font-size: 13px;
  animation: fade-lift 1400ms var(--ease-out) both;
  animation-delay: 220ms;
  background: transparent;
}

.footer-shell p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
}

@keyframes fade-lift {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes glow-shift {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
  }

  50% {
    transform: scale(1.08) translate3d(8px, -10px, 0);
    opacity: 0.82;
  }
}

@media (max-width: 1100px) {
  .header-side {
    gap: 14px;
  }

  .header-slogan {
    font-size: 13px;
  }

  .profile-card,
  .nearby-card {
    right: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 92px;
  }

  .site-header,
  .site-footer,
  .hero-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-shell {
    gap: 18px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .header-side {
    gap: 12px;
  }

  .header-slogan {
    max-width: 180px;
    font-size: 12px;
  }

  .hero-shell {
    min-height: calc(100svh - var(--header-height) - 76px);
    padding-top: 48px;
    padding-bottom: 34px;
  }

  .page-shell::before {
    background-position: 54% 50%;
  }

  .hero-content {
    width: min(100%, 520px);
    padding-top: 180px;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 14vw, 76px);
  }

  .hero-summary {
    max-width: 25ch;
    font-size: 16px;
  }

  .download-card {
    width: min(100%, 420px);
  }

  .profile-card {
    top: 28%;
    right: 0;
    min-width: 260px;
  }

  .nearby-card {
    bottom: 42px;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 132px;
  }

  .page-shell::before {
    background-position: 58% 50%;
  }

  .header-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
    padding-bottom: 12px;
  }

  .header-side {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .header-slogan {
    max-width: 170px;
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.5;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .hero-shell {
    min-height: calc(100svh - var(--header-height) - 36px);
    padding-top: 22px;
  }

  .hero-content {
    width: 100%;
    padding-top: 120px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-summary {
    max-width: 20ch;
    font-size: 15px;
    line-height: 1.76;
  }

  .download-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    margin-top: 28px;
  }

  .qr-grid {
    width: 60px;
    height: 60px;
    background-size: 10px 10px, 10px 10px, auto;
  }

  .qr-grid span {
    width: 8px;
    height: 8px;
  }

  .download-copy h2 {
    font-size: 16px;
  }

  .download-copy p {
    font-size: 13px;
  }

  .download-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .store-button {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .ambient-cards {
    position: static;
    margin-top: 20px;
    display: grid;
    gap: 12px;
  }

  .float-card {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    min-width: 0;
    width: min(100%, 320px);
  }

  .profile-card,
  .nearby-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .profile-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .status-dot {
    left: 44px;
    bottom: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

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

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