/* ==========================================================================
   NYXIAN LANDING PAGE - HERO, SANDBOX & FEATURES
   ========================================================================== */

/* Navbar */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 40px;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--theme-transition);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none !important;
}

.brand-logo .brand-avatar, .brand-logo img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover .brand-avatar, .brand-logo:hover img {
  transform: scale(1.08) rotate(4deg);
  border-color: var(--text-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* Hero Section Banner with Full Width Edge-to-Edge & Bottom Fade */
.hero-banner-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 60px;
  overflow: hidden;
}

.hero-banner-container img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.hero-banner-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-main) 100%);
  pointer-events: none;
}

/* Hero Section Content */
.hero-section {
  padding: 20px 20px 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 900px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 36px;
}

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

/* Interactive Sandbox Feature Grid */
.sandbox-section {
  max-width: 1100px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.sandbox-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sandbox-tabs {
  background: var(--bg-subtle);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border-color);
}

.sandbox-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sandbox-tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sandbox-tab-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-main);
  box-shadow: var(--shadow-sm);
}

.sandbox-preview-window {
  padding: 24px;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
}

/* Simulated Discord Chat Message */
.discord-msg-mock {
  background: #313338;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  gap: 14px;
  font-family: var(--font-body);
  color: #dbdee1;
  max-width: 650px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.discord-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
}

.discord-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.discord-msg-author {
  font-weight: 700;
  color: #f2f3f5;
  font-size: 0.95rem;
}

.discord-bot-tag {
  background: #5865f2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.discord-embed-mock {
  margin-top: 8px;
  border-left: 4px solid var(--accent-primary);
  background: #2b2d31;
  border-radius: 4px;
  padding: 12px 16px;
}

/* Stat Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.stat-card {
  padding: 24px;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: var(--font-heading);
  margin-bottom: 4px;
  color: var(--text-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Footer */
.landing-footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 20px;
  text-align: center;
  background: var(--bg-card);
  transition: var(--theme-transition);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
}

.mobile-nav-toggle.active {
  transform: rotate(90deg);
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

@media (max-width: 900px) {
  .hero-title { font-size: 2.1rem; }
  .sandbox-container { grid-template-columns: 1fr; }
  .sandbox-tabs { border-right: none; border-bottom: 1px solid var(--border-color); }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .landing-nav {
    flex-direction: row !important;
    padding: 0 16px !important;
    height: 60px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    backdrop-filter: blur(16px);
    
    /* ANIMACIÓN SUAVE DE DESPLIEGUE Y DESLIZAMIENTO */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px) scaleY(0.95);
    transform-origin: top center;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s ease;
    pointer-events: none;
  }

  .nav-links.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scaleY(1) !important;
    pointer-events: auto !important;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.show li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.show li:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.show li:nth-child(2) { transition-delay: 0.07s; }
  .nav-links.show li:nth-child(3) { transition-delay: 0.10s; }
  .nav-links.show li:nth-child(4) { transition-delay: 0.13s; }
  .nav-links.show li:nth-child(5) { transition-delay: 0.16s; }
  .nav-links.show li:nth-child(6) { transition-delay: 0.19s; }
  .nav-links.show li:nth-child(7) { transition-delay: 0.22s; }
  .nav-links.show li:nth-child(8) { transition-delay: 0.25s; }
  .nav-links.show li:nth-child(9) { transition-delay: 0.28s; }
}

@media (max-width: 480px) {
  .landing-nav {
    padding: 0 10px !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
  }
  .brand-title {
    display: none !important;
  }
  .theme-toggle-switch {
    transform: scale(0.85);
  }
}
