/* Homepage-only visual layer. Scoped to .landing-home so admin/member stay untouched. */

html:has(.landing-home),
.landing-home {
  --landing-gold: #f0b90b;
  --landing-gold-soft: rgba(240, 185, 11, 0.16);
  --landing-cyan: #3ee0c8;
  --landing-navy: #05070b;
  background: #05070b;
}

.landing-home {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(980px 640px at 18% -12%, rgba(240, 185, 11, 0.28), transparent 58%),
    radial-gradient(820px 560px at 88% 6%, rgba(62, 224, 200, 0.16), transparent 54%),
    radial-gradient(900px 520px at 72% 108%, rgba(240, 185, 11, 0.14), transparent 58%),
    linear-gradient(180deg, #0a1018 0%, #05070b 38%, #030508 100%);
}

.landing-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.landing-stage-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
}

.landing-stage-glow-gold {
  width: 48vw;
  height: 48vw;
  min-width: 380px;
  min-height: 380px;
  top: -16vw;
  right: -6vw;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.42) 0%, rgba(240, 185, 11, 0) 70%);
  animation: landing-pulse 9s ease-in-out infinite;
}

.landing-stage-glow-cyan {
  width: 40vw;
  height: 40vw;
  min-width: 320px;
  min-height: 320px;
  left: -10vw;
  bottom: 4vh;
  background: radial-gradient(circle, rgba(62, 224, 200, 0.26) 0%, rgba(62, 224, 200, 0) 70%);
  animation: landing-pulse 12s ease-in-out infinite reverse;
}

.landing-stage-ring {
  position: absolute;
  width: min(760px, 74vw);
  height: min(760px, 74vw);
  top: -20%;
  right: -10%;
  border-radius: 50%;
  border: 1px solid rgba(240, 185, 11, 0.22);
  box-shadow:
    0 0 120px rgba(240, 185, 11, 0.12),
    inset 0 0 90px rgba(240, 185, 11, 0.06);
}

.landing-stage-ring::before,
.landing-stage-ring::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px dashed rgba(240, 185, 11, 0.22);
  animation: landing-spin 64s linear infinite;
}

.landing-stage-ring::after {
  inset: 22%;
  border-style: solid;
  border-color: rgba(62, 224, 200, 0.16);
  animation-duration: 92s;
  animation-direction: reverse;
}

.landing-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 185, 11, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 185, 11, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
  opacity: 0.95;
}

.landing-stage-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(240, 185, 11, 0.22) 0.8px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.landing-stage-floor {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -8%;
  height: 58vh;
  background-image:
    linear-gradient(rgba(240, 185, 11, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 185, 11, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(760px) rotateX(58deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
  animation: landing-floor 28s linear infinite;
}

.landing-stage-chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  width: 100%;
  height: min(78vh, 860px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.landing-stage-hud span {
  position: absolute;
  width: 52px;
  height: 52px;
  border-color: rgba(240, 185, 11, 0.38);
  border-style: solid;
  border-width: 0;
  opacity: 0.85;
}

.landing-stage-hud .hud-tl {
  top: 14px;
  left: 14px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.landing-stage-hud .hud-tr {
  top: 14px;
  right: 14px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.landing-stage-hud .hud-bl {
  bottom: 14px;
  left: 14px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.landing-stage-hud .hud-br {
  bottom: 14px;
  right: 14px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.landing-stage-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(240, 185, 11, 0.045),
    transparent
  );
  animation: landing-scan 11s ease-in-out infinite;
}

.landing-stage-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.12) 0%, transparent 18%, rgba(5, 7, 11, 0.48) 100%);
}

.landing-stage-hud {
  position: absolute;
  inset: 0;
}

.landing-home .landing-app {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 28px 72px;
}

.landing-home .topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(240, 185, 11, 0.16);
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.86), rgba(8, 12, 18, 0.68));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.landing-home .brand-mark {
  box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.22), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.landing-home .brand-text strong {
  letter-spacing: 0.08em;
}

.landing-home .brand-text span {
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 0.78rem;
}

.landing-home .btn-ghost {
  border-color: rgba(240, 185, 11, 0.22);
  background: rgba(240, 185, 11, 0.04);
}

.landing-home .btn-ghost:hover {
  color: var(--landing-gold);
  border-color: rgba(240, 185, 11, 0.55);
  background: rgba(240, 185, 11, 0.1);
}

.landing-home .status-pill {
  background: rgba(8, 12, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

.landing-home .status-pill.ok {
  box-shadow: 0 0 16px rgba(14, 203, 129, 0.18);
}

.landing-home .status-pill.ok::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 8px var(--up);
  animation: landing-pulse 2.4s ease-in-out infinite;
}

.landing-home .landing-main {
  gap: 32px;
  padding: 22px 0 8px;
}

.landing-home .landing-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  padding: 8px 2px 4px;
}

.landing-home .landing-kicker {
  color: var(--landing-gold);
  text-shadow: 0 0 18px rgba(240, 185, 11, 0.28);
}

.landing-home .landing-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 1.18;
  background: linear-gradient(180deg, #fff8e4 0%, #f0b90b 58%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(240, 185, 11, 0.28));
}

.landing-home .landing-lead {
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #9aa4b2;
}

.landing-home .curve-grid {
  gap: 18px;
}

.landing-home .curve-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(240, 185, 11, 0.16);
  background:
    linear-gradient(180deg, rgba(22, 28, 36, 0.78), rgba(10, 14, 20, 0.82));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.landing-home .curve-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.7), transparent);
  pointer-events: none;
}

.landing-home .curve-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 185, 11, 0.42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(240, 185, 11, 0.08),
    0 12px 36px rgba(240, 185, 11, 0.08);
}

.landing-home .curve-card-chn {
  background:
    linear-gradient(180deg, rgba(32, 28, 16, 0.5), transparent 38%),
    linear-gradient(180deg, rgba(22, 28, 36, 0.78), rgba(10, 14, 20, 0.82));
}

.landing-home .curve-card-usa {
  background:
    linear-gradient(180deg, rgba(16, 32, 48, 0.5), transparent 38%),
    linear-gradient(180deg, rgba(22, 28, 36, 0.78), rgba(10, 14, 20, 0.82));
}

.landing-home .curve-card-hkg {
  background:
    linear-gradient(180deg, rgba(16, 36, 28, 0.46), transparent 38%),
    linear-gradient(180deg, rgba(22, 28, 36, 0.78), rgba(10, 14, 20, 0.82));
}

.landing-home .market-code {
  border-color: rgba(240, 185, 11, 0.35);
  background: rgba(240, 185, 11, 0.08);
}

.landing-home .curve-stat {
  background: rgba(5, 7, 11, 0.42);
  border-color: rgba(255, 255, 255, 0.06);
}

.landing-home .curve-chart {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(5, 7, 11, 0.38);
}

.landing-home .curve-actions a {
  background: rgba(8, 12, 18, 0.45);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.landing-home .curve-actions a.curve-enter {
  background: rgba(240, 185, 11, 0.1);
}

.landing-home .curve-actions a:hover {
  background: rgba(240, 185, 11, 0.14);
}

.landing-home .curve-empty {
  border-color: rgba(240, 185, 11, 0.22);
  background: rgba(12, 16, 22, 0.55);
  backdrop-filter: blur(12px);
}

.landing-home .landing-markets h2 {
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.landing-home .landing-market-links {
  gap: 14px;
}

.landing-home .landing-market-link {
  position: relative;
  overflow: hidden;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border-color: rgba(240, 185, 11, 0.14);
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.82), rgba(8, 12, 18, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-home .landing-market-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--landing-gold);
  opacity: 0.7;
}

.landing-home .landing-market-link:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 185, 11, 0.5);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(240, 185, 11, 0.08);
}

.landing-home .landing-market-usa::after {
  background: #3b82f6;
}

.landing-home .landing-market-hkg::after {
  background: #0ecb81;
}

.landing-home .landing-market-link .market-code {
  width: fit-content;
  margin-bottom: 2px;
}

@keyframes landing-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@keyframes landing-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes landing-floor {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 54px;
  }
}

@keyframes landing-scan {
  0% {
    top: -18%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 0.55;
  }
  100% {
    top: 92%;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .landing-home .landing-app {
    padding: 12px 16px 48px;
  }

  .landing-home .topbar {
    top: 8px;
  }

  .landing-stage-floor {
    height: 38vh;
  }
}

@media (max-width: 480px) {
  .landing-home .landing-app {
    padding: 8px 10px 36px;
  }

  .landing-home .topbar {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .landing-home .landing-hero h1 {
    letter-spacing: 0.04em;
  }

  .landing-stage-ring,
  .landing-stage-chart {
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-home .landing-stage-glow,
  .landing-home .landing-stage-ring::before,
  .landing-home .landing-stage-ring::after,
  .landing-home .landing-stage-floor,
  .landing-home .landing-stage-scan,
  .landing-home .status-pill.ok::before {
    animation: none;
  }

  .landing-home .curve-card,
  .landing-home .landing-market-link {
    transition: none;
  }
}
