:root {
  --bg: #0a0e1a;
  --cream: #f4efe6;
  --cream-soft: #e8dcc8;
  --cream-mute: #d4c4a8;
  --ink: #1a140c;
  --gold: #c9a66b;
  --gold-hi: #e8d5b0;
  --gold-lo: #b08948;
  --font-display: "Cormorant Garamond", "Songti SC", "PingFang SC", serif;
  --font-body: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: #05070d;
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

.shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #05070d;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* —— atmosphere —— */
.bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.62;
}
.orb-a {
  width: 300px; height: 300px; top: -14%; left: -28%;
  background: #2f5680;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-b {
  width: 280px; height: 280px; bottom: -10%; right: -24%;
  background: #7a4030;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.orb-c {
  width: 200px; height: 200px; top: 38%; left: 48%;
  background: #24504c;
  opacity: 0.45;
  animation: drift 12s ease-in-out infinite alternate;
}

.mesh {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 166, 107, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(70, 110, 160, 0.14), transparent 50%);
}

.ring {
  position: absolute;
  left: 50%;
  top: 34%;
  border-radius: 50%;
  border: 1px solid rgba(232, 220, 200, 0.1);
  transform: translate(-50%, -50%);
}
.ring-1 {
  width: 260px; height: 260px;
  animation: ring-pulse 8s ease-in-out infinite;
}
.ring-2 {
  width: 340px; height: 340px;
  border-color: rgba(201, 166, 107, 0.08);
  animation: ring-pulse 10s ease-in-out infinite reverse;
}

.sparkles i {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(232, 220, 200, 0.55);
  box-shadow: 0 0 8px rgba(201, 166, 107, 0.55);
  animation: twinkle 3.6s ease-in-out infinite;
}
.sparkles i:nth-child(1) { top: 18%; left: 16%; animation-delay: 0s; }
.sparkles i:nth-child(2) { top: 26%; right: 18%; animation-delay: .4s; width: 2px; height: 2px; }
.sparkles i:nth-child(3) { top: 48%; left: 10%; animation-delay: .9s; }
.sparkles i:nth-child(4) { top: 58%; right: 12%; animation-delay: 1.3s; width: 2px; height: 2px; }
.sparkles i:nth-child(5) { top: 72%; left: 22%; animation-delay: 1.8s; }
.sparkles i:nth-child(6) { top: 14%; left: 52%; animation-delay: 2.1s; width: 2px; height: 2px; }
.sparkles i:nth-child(7) { top: 40%; right: 28%; animation-delay: 2.5s; }
.sparkles i:nth-child(8) { bottom: 22%; left: 40%; animation-delay: 2.9s; width: 2px; height: 2px; }

.grain {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 7, 13, 0.55) 100%);
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(16px, -12px); }
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* —— chrome —— */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 0;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  text-transform: lowercase;
}
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(232, 220, 200, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream-soft);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 136px;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  background: rgba(12, 16, 28, 0.96);
  border: 1px solid rgba(232, 220, 200, 0.18);
  border-radius: 12px;
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.lang-menu.open { display: block; animation: fadeUp 0.22s ease; }
.lang-menu button {
  display: block; width: 100%; border: 0; background: transparent;
  color: rgba(244, 239, 230, 0.65); text-align: left;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.lang-menu button:hover,
.lang-menu button.active {
  color: var(--cream);
  background: rgba(201, 166, 107, 0.16);
}

/* —— hero —— */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 7vh 26px 0;
}

.emblem {
  position: relative;
  width: 78px; height: 78px;
  margin-bottom: 18px;
  display: grid; place-items: center;
  animation: fadeUp 0.7s ease both;
}
.emblem-glow {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 166, 107, 0.35), transparent 70%);
  animation: glow-breathe 4s ease-in-out infinite;
}
.emblem-core {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--cream);
  text-transform: lowercase;
  background:
    linear-gradient(160deg, rgba(232, 220, 200, 0.14), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(232, 220, 200, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.55);
  animation: fadeUp 0.7s 0.05s ease both;
}
.name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #f7f1e6;
  text-transform: lowercase;
  text-shadow: 0 10px 40px rgba(0,0,0,0.35);
  animation: fadeUp 0.8s 0.1s ease both;
}
.rule {
  width: 120px; height: 1px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(232, 213, 176, 0.85), transparent);
  animation: fadeUp 0.8s 0.16s ease both;
}
.headline {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream-mute);
  line-height: 1.5;
  max-width: 260px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.actions {
  margin-top: 30px;
  width: 100%;
  max-width: 300px;
  animation: fadeUp 0.8s 0.28s ease both;
}
.download {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.download:active { transform: scale(0.98); }
.download.pulse { filter: brightness(1.1); }
.dl-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.download-shine {
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 55% { left: -40%; }
  100% { left: 120%; }
}

.tip {
  margin: 14px 0 0;
  max-width: 280px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.4);
  animation: fadeUp 0.8s 0.34s ease both;
}

/* —— bottom device stage —— */
.stage {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  animation: fadeUp 0.9s 0.38s ease both;
}
.stage-glow {
  position: absolute;
  bottom: 0; left: 50%;
  width: 220px; height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(201, 166, 107, 0.28), transparent 70%);
  filter: blur(8px);
}
.device {
  width: 118px;
  height: 168px;
  padding: 7px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(232,220,200,0.22), rgba(232,220,200,0.05));
  border: 1px solid rgba(232, 220, 200, 0.22);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  animation: float-y 5.5s ease-in-out infinite;
  transform: translateY(28px);
}
.device-screen {
  height: 100%;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(201,166,107,0.2), transparent 42%),
    linear-gradient(200deg, #172029, #0d1419);
}
.device-brand {
  position: absolute;
  left: 0; right: 0;
  top: 36%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-transform: lowercase;
}
.device-lines {
  position: absolute;
  left: 14px; right: 14px; bottom: 22%;
  display: grid; gap: 5px;
}
.device-lines i {
  display: block; height: 4px; border-radius: 2px;
  background: rgba(232, 220, 200, 0.16);
}
.device-lines i:nth-child(2) {
  width: 70%;
  background: rgba(201, 166, 107, 0.45);
}
.device-lines i:nth-child(3) { width: 84%; }

@keyframes float-y {
  0%, 100% { transform: translateY(28px); }
  50% { transform: translateY(18px); }
}

.foot {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  padding: 10px 0 18px;
  text-align: center;
  font-size: 11px;
  color: rgba(244, 239, 230, 0.32);
  letter-spacing: 0.04em;
}

.detecting {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}
.detecting.hide { opacity: 0; pointer-events: none; }
.detecting p { margin: 0; color: rgba(232,220,200,0.7); font-size: 13px; }
.detect-spin {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(232,220,200,0.15);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 360px) {
  .name { font-size: 58px; }
  .device { width: 104px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .ring, .sparkles i, .emblem-glow, .download-shine, .device,
  .eyebrow, .name, .rule, .headline, .actions, .tip, .stage, .emblem {
    animation: none !important;
  }
}
