/* ============================================================
   LUNCVERSE — Social Luncverse Theme
   Drop-in replacement for css/style.css
   Colors match the Social Luncverse platform exactly.
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:            #0f0d14;   /* hsl(260 20% 8%)  */
  --bg-card:       #14101a;   /* hsl(260 20% 11%) */
  --bg-elevated:   #1d1828;   /* hsl(270 15% 18%) */
  --bg-muted:      #231e30;
  --fg:            #e8e5f0;   /* hsl(270 10% 92%) */
  --fg-muted:      #7d7991;   /* hsl(270 10% 55%) */
  --border:        #2a2235;   /* hsl(270 15% 20%) */
  --primary:       #a855f7;   /* hsl(270 75% 65%) */
  --primary-dark:  #9333ea;
  --primary-light: #c084fc;
  --primary-glow:  rgba(168, 85, 247, 0.22);
  --primary-fg:    #ffffff;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --header-h:      64px;
  --transition:    0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Exo 2', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Loader ──────────────────────────────────────────────── */
#quick-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}

.quick-loader-content { text-align: center; }

.quick-loader-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 24px;
  text-shadow: 0 0 30px var(--primary-glow);
}

.quick-loader-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--fg);
  background: var(--bg-elevated);
}

.nav-link.active { color: var(--primary-light); }

.nav-link i { font-size: 0.8rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.menu-toggle:hover { color: var(--fg); background: var(--bg-muted); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(168,85,247,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(147,51,234,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-title-line { display: block; }

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { margin-bottom: 40px; }

/* primary CTA — matches social platform's "default" button */
.play-guest-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 0 var(--primary-glow);
}

.play-guest-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat { text-align: left; }

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ── Hero Floating Card ──────────────────────────────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(168,85,247,.08);
  animation: float 4s ease-in-out infinite;
}

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

.card-header { margin-bottom: 24px; }

.card-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.card-header p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.card-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-light);
}

.card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: none;
  transition: opacity var(--transition), transform var(--transition);
}

.card-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Floating Background Shapes ─────────────────────────── */
.floating-shapes {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: drift 12s ease-in-out infinite;
}

.shape-1 { width: 300px; height: 300px; background: var(--primary); top: -80px; right: 10%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--primary-light); bottom: 10%; left: 5%; animation-delay: -3s; }
.shape-3 { width: 150px; height: 150px; background: var(--primary-dark); top: 40%; left: 50%; animation-delay: -6s; }
.shape-4 { width: 100px; height: 100px; background: var(--primary); bottom: 20%; right: 20%; animation-delay: -9s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -15px) scale(1.05); }
  66%       { transform: translate(-10px, 10px) scale(0.95); }
}

/* ── Section shared ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.feature-card:hover {
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 8px 30px rgba(168,85,247,.1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.term1-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.22);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ── Worlds ──────────────────────────────────────────────── */
.worlds {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.world-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.world-card:hover {
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 8px 30px rgba(168,85,247,.1);
  transform: translateY(-3px);
}

.world-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.world-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.world-card:hover .world-image img { transform: scale(1.05); }

.world-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  padding: 4px 10px;
}

.world-content { padding: 20px; }

.world-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}

.world-content p {
  font-size: 0.825rem;
  color: var(--fg-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.world-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.world-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.world-meta i { color: var(--primary-light); font-size: 0.7rem; }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(168,85,247,.07) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
}

.cta-content > p {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* reusable btn utilities */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-large { padding: 13px 28px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--fg-muted);
  border-color: var(--border);
}

.btn-outline:hover {
  color: var(--fg);
  border-color: rgba(168,85,247,.4);
  background: rgba(168,85,247,.06);
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 260px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.875rem;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.social-icons a:hover {
  color: var(--primary-light);
  background: rgba(168,85,247,.1);
  border-color: rgba(168,85,247,.3);
}

.footer-links {
  display: contents;
}

.link-group h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 16px;
}

.link-group a {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.link-group a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { display: flex; justify-content: center; }
  .hero-visual { display: none; }

  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: 60px 0 80px; }

  .features, .worlds, .cta-section { padding: 64px 0; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
}
