/* ============================================================
   CapitalVerse — Landing Page v2
   Premium design with animated SVG icons, orbit rings,
   frosted glass cards, and counting stat animations
   ============================================================ */

/* ── Full-screen Landing Overlay ── */
.landing-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary, #08080d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Animated star background */
.landing-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.landing-stars .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: starTwinkle 3s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Orbit rings */
.landing-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.landing-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(96, 181, 255, 0.04);
  transform: translate(-50%, -50%);
  animation: orbitSpin linear infinite;
}
.landing-orbit:nth-child(2) {
  border-color: rgba(167, 139, 250, 0.04);
}
.landing-orbit:nth-child(3) {
  border-color: rgba(244, 114, 182, 0.03);
}
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Nebula glow */
.landing-nebula {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}
.landing-nebula-1 {
  top: 15%;
  left: 20%;
  background: radial-gradient(circle, #4da6ff 0%, transparent 70%);
  animation: nebulaFloat1 20s ease-in-out infinite;
}
.landing-nebula-2 {
  bottom: 10%;
  right: 15%;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  animation: nebulaFloat2 25s ease-in-out infinite;
}
.landing-nebula-3 {
  top: 40%;
  left: 55%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f472b6 0%, transparent 70%);
  animation: nebulaFloat3 18s ease-in-out infinite;
  opacity: 0.06;
}
@keyframes nebulaFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes nebulaFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 15px) scale(1.08); }
}
@keyframes nebulaFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, 25px) scale(0.95); }
}

/* Content wrapper */
.landing-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 32px;
  animation: landingFadeUp 1s ease-out;
}
@keyframes landingFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badge above logo */
.landing-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(96, 181, 255, 0.6);
  background: rgba(96, 181, 255, 0.06);
  border: 1px solid rgba(96, 181, 255, 0.12);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}

/* Logo */
.landing-logo {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.landing-logo .logo-accent {
  background: linear-gradient(135deg, #60b5ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-logo .logo-rest {
  color: rgba(255,255,255,0.92);
}

/* Tagline */
.landing-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.42);
  margin-bottom: 48px;
  letter-spacing: 0.3px;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Feature Cards — Frosted Glass ── */
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.landing-feature {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px 16px 20px;
  text-align: center;
  transition: all 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.landing-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.landing-feature:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3),
              0 0 30px rgba(96, 181, 255, 0.03);
}
.landing-feature:hover::before {
  opacity: 1;
}

/* SVG icon wrapper */
.lf-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}
.lf-svg {
  width: 36px;
  height: 36px;
}

/* Fallback for emoji icons */
.lf-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
  line-height: 1.2;
}

.lf-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}

.lf-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.55;
}

/* ── CTA Button ── */
.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border-radius: 60px;
  border: none;
  background: linear-gradient(135deg, #4da6ff 0%, #7c6df0 50%, #a78bfa 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(96,181,255,0.25), 0 0 0 0 rgba(96,181,255,0.2);
  animation: ctaPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 50%);
  border-radius: 60px;
}
.landing-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 40px rgba(96,181,255,0.35);
  animation: none;
}
.landing-cta:active {
  transform: scale(0.98);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(96,181,255,0.25), 0 0 0 0 rgba(96,181,255,0.12); }
  50% { box-shadow: 0 4px 24px rgba(96,181,255,0.25), 0 0 0 10px rgba(96,181,255,0.0); }
}
.cta-text {
  position: relative;
}
.cta-arrow {
  font-size: 20px;
  transition: transform 0.3s;
  position: relative;
}
.landing-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* ── Stats Bar ── */
.landing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
  animation: landingFadeUp 1s ease-out 0.3s both;
}
.ls-item {
  text-align: center;
}
.ls-value {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}
.ls-label {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ── Footer ── */
.landing-footer {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  z-index: 2;
  white-space: nowrap;
}
.landing-footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.landing-footer a:hover {
  color: rgba(255,255,255,0.6);
}

/* ── Exit Animation ── */
.landing-exit {
  animation: landingFlyOut 0.8s ease-in-out forwards;
}
@keyframes landingFlyOut {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.15); filter: blur(10px); }
}

/* ============================================================
   Onboarding Tour Overlay
   ============================================================ */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tour-overlay.tour-active {
  opacity: 1;
  pointer-events: auto;
}

.tour-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.72);
  transition: all 0.5s ease;
  z-index: 10001;
  pointer-events: none;
}

.tour-card {
  position: absolute;
  z-index: 10002;
  width: 340px;
  background: rgba(15, 18, 35, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(96,181,255,0.2);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 30px rgba(96,181,255,0.08);
  animation: tourCardIn 0.4s ease-out;
}
@keyframes tourCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tour-step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.tour-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.tour-step-dot.active {
  background: linear-gradient(135deg, #60b5ff, #a78bfa);
  box-shadow: 0 0 8px rgba(96,181,255,0.4);
  width: 20px;
  border-radius: 4px;
}

.tour-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tour-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.tour-skip:hover {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
}

.tour-next {
  padding: 8px 24px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4da6ff, #7c6df0);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.tour-next:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .landing-logo { font-size: 36px; }
  .landing-tagline { font-size: 14px; margin-bottom: 32px; }
  .landing-badge { font-size: 8px; padding: 4px 12px; }
  .landing-features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 36px;
  }
  .landing-feature { padding: 18px 14px; }
  .lf-icon-wrap { width: 48px; height: 48px; }
  .landing-cta { padding: 12px 32px; font-size: 15px; }
  .landing-stats { gap: 20px; flex-wrap: wrap; }
  .ls-value { font-size: 18px; }
  .tour-card { width: 300px; padding: 20px; }
}

@media (max-width: 480px) {
  .landing-logo { font-size: 28px; }
  .landing-content { padding: 0 20px; }
  .landing-stats { gap: 16px; }
}
