/* =========================================================
   指尖花间 · Fingertip Bloom
   Editorial dark garden / rose-gold light
   ========================================================= */

:root {
  --bg: #07050d;
  --bg-deep: #04030a;
  --ink: #f7edf4;
  --ink-soft: rgba(247, 237, 244, 0.62);
  --ink-faint: rgba(247, 237, 244, 0.36);
  --rose: #ff6fa9;
  --rose-hot: #ff3f8f;
  --gold: #ffd39a;
  --violet: #a98cff;
  --line: rgba(255, 238, 247, 0.14);
  --line-soft: rgba(255, 238, 247, 0.075);
  --glass: rgba(17, 11, 26, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ui: "Inter", "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --bloom: 0.86;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
}

body {
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

::selection {
  background: rgba(255, 111, 169, 0.35);
  color: #fff;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid rgba(255, 211, 154, 0.9);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 78% 34%, rgba(70, 23, 66, 0.16), transparent 58%),
    radial-gradient(100% 100% at 18% 85%, rgba(33, 31, 84, 0.18), transparent 62%),
    var(--bg-deep);
}

#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ------------------------------------------------------------------
   Atmosphere
   ------------------------------------------------------------------ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  width: 52vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  mix-blend-mode: screen;
}

.ambient-glow--rose {
  top: 8%;
  right: 3%;
  background: radial-gradient(circle, rgba(147, 39, 94, 0.26), transparent 68%);
  animation: drift-rose 22s ease-in-out infinite alternate;
}

.ambient-glow--violet {
  bottom: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(64, 55, 148, 0.28), transparent 68%);
  animation: drift-violet 28s ease-in-out infinite alternate;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 28%, rgba(3, 2, 8, 0.34) 78%, rgba(3, 2, 8, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 3, 10, 0.5) 0%, transparent 18%, transparent 76%, rgba(4, 3, 10, 0.62) 100%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.26;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  transform: rotate(4deg);
}

@keyframes drift-rose {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4vw, 3vh, 0) scale(1.08); }
}

@keyframes drift-violet {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(5vw, -3vh, 0) scale(1); }
}

/* ------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------ */

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 3.2vw, 42px) clamp(22px, 4.2vw, 64px);
  pointer-events: none;
}

.brand,
.top-actions {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--gold);
  opacity: 0.9;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 9px rgba(255, 111, 169, 0.25));
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-cn {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.26em;
  line-height: 1;
}

.brand-en {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  line-height: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  background: rgba(10, 7, 16, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ee4bc;
  box-shadow: 0 0 9px rgba(136, 235, 176, 0.8);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(10, 7, 16, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.icon-btn:hover {
  color: var(--gold);
  border-color: rgba(255, 211, 154, 0.35);
  transform: rotate(8deg);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* ------------------------------------------------------------------
   Hero / opening
   ------------------------------------------------------------------ */

main {
  position: relative;
  z-index: 10;
}

.hero-copy {
  position: fixed;
  left: clamp(28px, 7.2vw, 112px);
  top: 50%;
  width: min(470px, 39vw);
  transform: translateY(-47%);
  transition:
    opacity 0.9s var(--ease),
    transform 1.1s var(--ease),
    filter 0.9s var(--ease);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 211, 154, 0.72);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.27em;
  white-space: nowrap;
}

.eyebrow-line {
  width: 29px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 211, 154, 0.05), rgba(255, 211, 154, 0.7));
}

.hero-copy h1 {
  margin: 25px 0 21px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 5.7vw, 82px);
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-shadow: 0 0 60px rgba(255, 111, 169, 0.12);
}

.hero-em {
  position: relative;
  display: inline-block;
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(104deg, #fff4df 4%, #ffd39a 31%, #ff9bbf 66%, #c99cff 105%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 111, 169, 0.2));
}

.hero-em em {
  font-style: normal;
  color: var(--rose);
  -webkit-text-fill-color: var(--rose);
  text-shadow: 0 0 18px rgba(255, 111, 169, 0.8);
}

.hero-lede {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 2.05;
  letter-spacing: 0.1em;
}

.hero-steps {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 31px;
  padding-top: 21px;
  border-top: 1px solid var(--line-soft);
  max-width: 380px;
}

.hero-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.step-num {
  color: rgba(255, 211, 154, 0.45);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-copy b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.step-copy small {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.step-rule {
  width: 1px;
  height: 26px;
  background: var(--line-soft);
}

.start-dock {
  margin-top: 32px;
  max-width: 390px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 11px 18px 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 180, 0.26);
  border-radius: 17px;
  text-align: left;
  background:
    linear-gradient(110deg, rgba(255, 198, 160, 0.14), rgba(255, 91, 152, 0.075) 45%, rgba(118, 81, 210, 0.13)),
    rgba(18, 11, 25, 0.62);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 239, 218, 0.16) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 164, 0.19), transparent 68%);
  pointer-events: none;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 220, 190, 0.48);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 34px rgba(255, 111, 169, 0.11);
}

.cta:hover::before {
  transform: translateX(130%);
}

.cta:active {
  transform: translateY(0) scale(0.995);
}

.cta-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 226, 199, 0.16);
  border-radius: 12px;
  color: var(--gold);
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 228, 197, 0.15), transparent 55%),
    rgba(255, 255, 255, 0.035);
}

.cta-icon svg {
  width: 23px;
  height: 23px;
  filter: drop-shadow(0 0 8px rgba(255, 211, 154, 0.35));
}

.cta-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cta-text b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.17em;
}

.cta-text small {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.cta-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 237, 220, 0.66);
  transition: transform 0.4s var(--ease), color 0.3s;
}

.cta:hover .cta-arrow {
  transform: translateX(3px);
  color: var(--gold);
}

.cta-arrow svg {
  width: 15px;
  height: 15px;
}

.cta-progress {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: rgba(13, 8, 20, 0.9);
}

.cta.is-loading {
  pointer-events: none;
  border-color: rgba(255, 211, 154, 0.36);
}

.cta.is-loading .cta-progress {
  display: flex;
}

.cta.is-loading .cta-text,
.cta.is-loading .cta-icon,
.cta.is-loading .cta-arrow {
  opacity: 0;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 211, 154, 0.18);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 3px 0;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.09em;
  transition: color 0.3s;
}

.demo-link:hover {
  color: var(--ink-soft);
}

.demo-link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 211, 154, 0.55);
  box-shadow: 0 0 7px rgba(255, 211, 154, 0.5);
}

.privacy-note {
  margin-top: 11px;
  color: rgba(247, 237, 244, 0.24);
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

/* Reveal entrance */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 1.15s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------
   Side rail
   ------------------------------------------------------------------ */

.side-rail {
  position: fixed;
  z-index: 11;
  top: 50%;
  right: clamp(26px, 5.4vw, 78px);
  width: 224px;
  transform: translateY(-38%);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}

.rail-line {
  width: 1px;
  height: 52px;
  margin-bottom: 21px;
  background: linear-gradient(180deg, transparent, rgba(255, 211, 154, 0.4));
}

.side-rail ol {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.side-rail li {
  display: grid;
  grid-template-columns: 27px 1fr;
  column-gap: 8px;
}

.side-rail li > span {
  grid-row: span 2;
  color: rgba(255, 211, 154, 0.58);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.side-rail b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(247, 237, 244, 0.84);
  text-shadow: 0 1px 14px rgba(10, 4, 16, 0.9);
}

.side-rail small {
  margin-top: 3px;
  color: rgba(247, 237, 244, 0.48);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(10, 4, 16, 0.85);
}

/* ------------------------------------------------------------------
   Live quote
   ------------------------------------------------------------------ */

.live-quote {
  position: fixed;
  z-index: 12;
  left: clamp(28px, 4.6vw, 68px);
  bottom: 98px;
  display: none;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.live-quote-mark {
  color: rgba(255, 211, 154, 0.38);
  font-family: Georgia, var(--serif);
  font-size: 38px;
  line-height: 0.78;
}

.live-quote p {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.22em;
  color: rgba(247, 237, 244, 0.42);
}

/* ------------------------------------------------------------------
   HUD
   ------------------------------------------------------------------ */

.hud {
  position: fixed;
  z-index: 26;
  left: 50%;
  bottom: clamp(35px, 5vh, 52px);
  width: min(548px, calc(100vw - 44px));
  padding: 16px 20px 13px;
  border: 1px solid rgba(255, 236, 245, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255, 197, 162, 0.045), transparent 45%, rgba(145, 112, 255, 0.045)),
    rgba(14, 9, 21, 0.54);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 142px;
}

.gesture-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 211, 154, 0.22);
  border-radius: 50%;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.gesture-orb::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 211, 154, 0.07);
  border-radius: 50%;
  border-top-color: rgba(255, 211, 154, 0.5);
  animation: orbit-spin 5s linear infinite;
}

.gesture-orb i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 211, 154, 0.9);
  transition: transform 0.55s var(--ease), border-radius 0.55s, background 0.55s;
}

.gesture-orb[data-state="fist"] i {
  transform: scale(0.62);
  background: #ff9ec4;
  box-shadow: 0 0 9px rgba(255, 111, 169, 0.9);
}

.gesture-orb[data-state="open"] i {
  transform: scale(1.65);
  background: #ffe2b8;
  box-shadow: 0 0 14px rgba(255, 211, 154, 1), 0 0 26px rgba(255, 111, 169, 0.6);
}

.gesture-orb[data-state="none"] i {
  transform: scale(0.7);
  background: rgba(255, 238, 247, 0.28);
  box-shadow: none;
}

.gesture-orb[data-state="transition"] i {
  transform: scale(1.05);
  background: #ffcf9e;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hud-kicker {
  display: block;
  color: rgba(255, 211, 154, 0.4);
  font-size: 7px;
  letter-spacing: 0.28em;
  line-height: 1.2;
}

.hud-status b {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(247, 237, 244, 0.78);
  line-height: 1.5;
  white-space: nowrap;
}

.hud-fingers {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.finger-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 238, 247, 0.12);
  transition: background 0.3s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.finger-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 9px rgba(255, 211, 154, 0.8);
  transform: scale(1.18);
}

.hud-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
}

.hud-value span {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 211, 154, 0.24);
}

.hud-value small {
  color: rgba(255, 211, 154, 0.44);
  font-size: 8px;
}

.hud-value em {
  margin-left: 6px;
  color: rgba(255, 238, 247, 0.2);
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.2em;
}

.meter {
  margin-top: 12px;
}

.meter-track {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 238, 247, 0.1);
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 86%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(173, 123, 255, 0.5), #ff6fa9 55%, #ffd39a);
  box-shadow: 0 0 13px rgba(255, 111, 169, 0.38);
  transition: width 0.25s linear;
}

.meter-head {
  position: absolute;
  top: 50%;
  left: 86%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff4e2;
  box-shadow: 0 0 10px rgba(255, 225, 187, 0.9), 0 0 20px rgba(255, 111, 169, 0.6);
  transform: translate(-50%, -50%);
  transition: left 0.25s linear;
}

.meter-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(247, 237, 244, 0.26);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.hud-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 238, 247, 0.055);
  color: rgba(247, 237, 244, 0.34);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.tip-pulse {
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px rgba(255, 111, 169, 0.7);
  animation: tip-pulse 2.4s ease-in-out infinite;
}

@keyframes tip-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* Gesture states */
#app[data-gesture="fist"] .gesture-orb {
  border-color: rgba(255, 111, 169, 0.4);
  box-shadow: 0 0 20px rgba(255, 111, 169, 0.13);
}

#app[data-gesture="fist"] .gesture-orb i {
  transform: scale(0.55);
  background: var(--rose);
  box-shadow: 0 0 12px rgba(255, 111, 169, 0.9);
}

#app[data-gesture="open"] .gesture-orb {
  border-color: rgba(255, 211, 154, 0.46);
  box-shadow: 0 0 22px rgba(255, 211, 154, 0.16);
}

#app[data-gesture="open"] .gesture-orb i {
  transform: scale(1.22);
  background: #fff0d2;
}

#app[data-gesture="none"] .gesture-orb::before {
  animation-duration: 9s;
  opacity: 0.4;
}

/* ------------------------------------------------------------------
   Camera panel
   ------------------------------------------------------------------ */

.camera-panel {
  position: fixed;
  z-index: 28;
  top: clamp(92px, 11vh, 116px);
  right: clamp(22px, 4.2vw, 64px);
  width: 222px;
  padding: 9px;
  border: 1px solid rgba(255, 236, 245, 0.12);
  border-radius: 14px;
  background: rgba(13, 8, 20, 0.62);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: 100% 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.camera-head,
.camera-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.camera-head {
  padding: 1px 2px 8px;
}

.camera-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 238, 247, 0.42);
  font-size: 7px;
  letter-spacing: 0.21em;
}

.live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #85eab0;
  box-shadow: 0 0 8px rgba(133, 234, 176, 0.7);
  animation: live-blink 2.1s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.camera-collapse {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 238, 247, 0.32);
  border-radius: 50%;
  transition: color 0.3s, transform 0.45s var(--ease);
}

.camera-collapse:hover {
  color: var(--gold);
}

.camera-panel.is-collapsed .camera-collapse {
  transform: rotate(180deg);
}

.camera-body {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: #0a0711;
}

.camera-body video,
.camera-body canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-body video {
  transform: scaleX(-1);
  filter: saturate(0.65) brightness(0.72) contrast(1.07) sepia(0.08);
  opacity: 0.86;
}

.camera-body canvas {
  z-index: 2;
}

.camera-scan {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 40%, transparent 35%, rgba(5, 3, 10, 0.42) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.camera-empty {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 238, 247, 0.34);
  font-size: 8px;
  letter-spacing: 0.15em;
  background: rgba(6, 4, 11, 0.36);
  transition: opacity 0.5s;
}

.camera-empty.is-hidden {
  opacity: 0;
}

.camera-corners i {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-color: rgba(255, 211, 154, 0.46);
  border-style: solid;
  pointer-events: none;
}

.camera-corners i:nth-child(1) { top: 5px; left: 5px; border-width: 1px 0 0 1px; }
.camera-corners i:nth-child(2) { top: 5px; right: 5px; border-width: 1px 1px 0 0; }
.camera-corners i:nth-child(3) { bottom: 5px; left: 5px; border-width: 0 0 1px 1px; }
.camera-corners i:nth-child(4) { bottom: 5px; right: 5px; border-width: 0 1px 1px 0; }

.camera-foot {
  padding: 7px 2px 0;
  color: rgba(255, 238, 247, 0.28);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.camera-panel.is-collapsed {
  width: 176px;
  padding-bottom: 7px;
}

.camera-panel.is-collapsed .camera-body,
.camera-panel.is-collapsed .camera-foot {
  display: none;
}

/* ------------------------------------------------------------------
   Mode chip / footer / notice / help
   ------------------------------------------------------------------ */

.mode-chip {
  position: fixed;
  z-index: 29;
  top: clamp(92px, 11vh, 116px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px 8px 13px;
  border: 1px solid rgba(255, 211, 154, 0.16);
  border-radius: 999px;
  color: rgba(247, 237, 244, 0.5);
  background: rgba(14, 9, 21, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 8px;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.mode-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 211, 154, 0.7);
}

.mode-chip button {
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 211, 154, 0.82);
  background: rgba(255, 211, 154, 0.08);
  font-size: 8px;
  letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s;
}

.mode-chip button:hover {
  background: rgba(255, 211, 154, 0.16);
  color: #fff2dd;
}

.footer {
  position: fixed;
  z-index: 12;
  left: clamp(22px, 4.2vw, 64px);
  right: clamp(22px, 4.2vw, 64px);
  bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(247, 237, 244, 0.2);
  font-size: 7px;
  letter-spacing: 0.17em;
  pointer-events: none;
  transition: opacity 0.6s;
}

.footer i {
  font-style: normal;
  color: rgba(255, 111, 169, 0.5);
  padding: 0 4px;
}

.footer-center {
  color: rgba(247, 237, 244, 0.13);
}

.notice {
  position: fixed;
  z-index: 70;
  top: clamp(90px, 12vh, 122px);
  left: 50%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(460px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 124, 124, 0.22);
  border-radius: 13px;
  background: rgba(24, 10, 16, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: notice-in 0.55s var(--ease);
}

@keyframes notice-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 140, 140, 0.36);
  border-radius: 50%;
  color: #ffafaf;
  font-family: var(--serif);
  font-size: 11px;
}

.notice-copy {
  flex: 1;
}

.notice-copy b {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #ffd9d9;
}

.notice-copy p {
  margin-top: 3px;
  color: rgba(255, 225, 225, 0.52);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.notice-close {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: rgba(255, 225, 225, 0.4);
  font-size: 16px;
  line-height: 1;
  transition: color 0.3s;
}

.notice-close:hover {
  color: #fff;
}

.help-panel {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 2, 9, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.help-card {
  position: relative;
  width: min(460px, 100%);
  padding: 36px 34px 30px;
  border: 1px solid rgba(255, 236, 245, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(130deg, rgba(255, 197, 162, 0.055), transparent 45%, rgba(145, 112, 255, 0.05)),
    rgba(14, 9, 21, 0.94);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.help-kicker {
  color: rgba(255, 211, 154, 0.45);
  font-size: 8px;
  letter-spacing: 0.3em;
}

.help-card h2 {
  margin: 11px 0 24px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.help-row {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

.help-row > span {
  color: rgba(255, 211, 154, 0.38);
  font-family: var(--serif);
  font-size: 10px;
  padding-top: 1px;
}

.help-row p {
  color: rgba(247, 237, 244, 0.43);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.help-row b {
  color: rgba(247, 237, 244, 0.82);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.13em;
}

.help-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: rgba(247, 237, 244, 0.24);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.help-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 26px;
  height: 26px;
  color: rgba(247, 237, 244, 0.35);
  font-size: 20px;
  line-height: 1;
  transition: color 0.3s;
}

.help-close:hover {
  color: #fff;
}

.webgl-error {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #06040c;
  text-align: center;
}

.webgl-error span {
  color: rgba(255, 211, 154, 0.4);
  font-size: 8px;
  letter-spacing: 0.3em;
}

.webgl-error h2 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.webgl-error p {
  color: var(--ink-faint);
  font-size: 11px;
}

/* ------------------------------------------------------------------
   Mode transitions
   ------------------------------------------------------------------ */

#app[data-mode="loading"] .hero-copy,
#app[data-mode="live"] .hero-copy,
#app[data-mode="demo"] .hero-copy {
  opacity: 0;
  transform: translateY(-50%) translateX(-20px);
  filter: blur(4px);
  pointer-events: none;
}

#app[data-mode="live"] .side-rail,
#app[data-mode="demo"] .side-rail,
#app[data-mode="loading"] .side-rail {
  opacity: 0;
  transform: translateY(-38%) translateX(14px);
  pointer-events: none;
}

#app[data-mode="live"] .hud,
#app[data-mode="demo"] .hud {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

#app[data-mode="live"] .camera-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#app[data-mode="demo"] .mode-chip {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

#app[data-mode="live"] .live-quote {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

#app[data-mode="live"] .footer,
#app[data-mode="demo"] .footer {
  opacity: 0.72;
}

#app[data-mode="live"] .privacy-chip .status-dot {
  background: #85eab0;
}

#app[data-mode="demo"] .privacy-chip {
  opacity: 0.5;
}

#app[data-mode="live"] .hero-steps,
#app[data-mode="demo"] .hero-steps {
  opacity: 0;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .hero-copy {
    width: min(440px, 42vw);
    left: clamp(26px, 5.4vw, 76px);
  }

  .side-rail {
    right: 30px;
    width: 186px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 5.2vw, 66px);
  }
}

@media (max-width: 900px) {
  .side-rail {
    display: none;
  }

  .hero-copy {
    top: 47%;
    width: min(410px, 48vw);
  }

  .camera-panel {
    width: 184px;
  }

  .hud {
    width: min(500px, calc(100vw - 36px));
  }

  .footer-center {
    display: none;
  }

  .live-quote {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 18px 18px;
  }

  .brand-cn {
    font-size: 15px;
    letter-spacing: 0.2em;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .privacy-chip {
    display: none;
  }

  .hero-copy {
    top: 12%;
    left: 22px;
    right: 22px;
    width: auto;
    transform: none;
    isolation: isolate;
  }

  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -28px -24px -34px -16px;
    background:
      radial-gradient(82% 76% at 14% 28%, rgba(9, 6, 15, 0.96) 0%, rgba(9, 6, 15, 0.8) 46%, rgba(9, 6, 15, 0) 78%),
      linear-gradient(180deg, rgba(9, 6, 15, 0.68), transparent 72%);
    filter: blur(12px);
    pointer-events: none;
  }

  .hero-copy h1 {
    margin: 19px 0 14px;
    font-size: clamp(43px, 12vw, 57px);
    line-height: 1.12;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .hero-lede {
    display: none;
  }

  .hero-steps {
    display: none;
  }

  .start-dock {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: max(22px, env(safe-area-inset-bottom));
    max-width: none;
    margin: 0;
    z-index: 20;
  }

  .cta {
    min-height: 67px;
    background:
      linear-gradient(110deg, rgba(255, 198, 160, 0.16), rgba(255, 91, 152, 0.08) 45%, rgba(118, 81, 210, 0.14)),
      rgba(18, 11, 25, 0.78);
  }

  .privacy-note {
    text-align: center;
    font-size: 7px;
  }

  .demo-link {
    margin-left: 2px;
  }

  #app[data-mode="loading"] .hero-copy,
  #app[data-mode="live"] .hero-copy,
  #app[data-mode="demo"] .hero-copy {
    transform: translateY(-12px);
  }

  .hud {
    bottom: max(16px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    padding: 13px 15px 11px;
    border-radius: 15px;
  }

  .hud-status {
    min-width: 0;
  }

  .hud-fingers {
    gap: 5px;
    padding: 5px 9px;
  }

  .hud-value span {
    font-size: 21px;
  }

  .hud-tip {
    display: none;
  }

  .camera-panel {
    top: 76px;
    right: 14px;
    width: 128px;
    border-radius: 11px;
    padding: 7px;
  }

  .camera-head {
    padding-bottom: 6px;
  }

  .camera-title {
    font-size: 6px;
    letter-spacing: 0.14em;
  }

  .camera-foot {
    display: none;
  }

  .camera-panel.is-collapsed {
    width: 118px;
  }

  .mode-chip {
    top: 78px;
    font-size: 7px;
    padding: 7px 8px 7px 11px;
  }

  .footer {
    display: none;
  }

  .footer span:last-child {
    display: none;
  }

  .notice {
    top: 72px;
  }
}

@media (max-width: 440px) {
  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-lede {
    max-width: 300px;
    line-height: 1.9;
  }

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

  .cta-text b {
    font-size: 15px;
  }

  .camera-panel {
    width: 116px;
  }

  .hud-fingers {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero-copy {
    transform: translateY(-50%) scale(0.9);
    transform-origin: left center;
  }

  .start-dock {
    margin-top: 20px;
  }

  .hero-lede {
    line-height: 1.75;
  }

  .hud {
    bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
