/* Odyssey Landing Page Stylesheet
   Hero, Server Status Widget, Feature Matrix, and CTAs.
   Utilizes core CSS variables from codex.css.
*/

/* Hero Section */
.landing-hero {
  position: relative;
  padding: 5rem 1.5rem 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(200, 169, 81, 0.12) 0%, transparent 65%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 90vw;
  height: 350px;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px var(--accent-glow);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 30%, var(--text-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
  overflow-wrap: break-word;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #1f2328 30%, var(--text-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

/* Call to Action Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-cta svg {
  flex-shrink: 0;
}

/* 1. Invite Bot (Primary Gold Shine) */
.btn-invite {
  background: linear-gradient(135deg, #f1c40f, #d4ac0d);
  color: #0d1117;
  border-color: #f1c40f;
  box-shadow: 0 4px 18px rgba(241, 196, 15, 0.35);
}
.btn-invite:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(241, 196, 15, 0.5);
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: #000;
}

/* 2. Explore Codex (Sleek Dark / Gold Accent) */
.btn-codex {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-accent);
}
.btn-codex:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  color: var(--text-gold);
  border-color: var(--text-gold);
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* 3. Official Server (Discord Blurple) */
.btn-server {
  background: #5865F2;
  color: #ffffff;
  border-color: #4752c4;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.3);
}
.btn-server:hover {
  transform: translateY(-2px);
  background: #4752c4;
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.45);
}

/* 4. Top.gg (Top.gg Signature Coral) */
.btn-topgg {
  background: #FF3366;
  color: #ffffff;
  border-color: #e02654;
  box-shadow: 0 4px 18px rgba(255, 51, 102, 0.3);
}
.btn-topgg:hover {
  transform: translateY(-2px);
  background: #e02654;
  box-shadow: 0 6px 22px rgba(255, 51, 102, 0.45);
}

/* Discord Server Status Card Widget */
.server-widget-section {
  max-width: 780px;
  margin: 0 auto;
}

.server-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: border-color var(--transition-fast);
}

.server-card:hover {
  border-color: var(--border-accent);
}

.server-info-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.server-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-surface-elevated);
  flex-shrink: 0;
  object-fit: cover;
}

.server-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.server-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-verified-badge {
  color: #5865F2;
}

.server-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

.server-counts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.count-online, .count-total {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  display: inline-block;
  animation: pulse 2s infinite;
}

.gray-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.server-join-btn {
  background: #5865F2;
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.server-join-btn:hover {
  background: #4752c4;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

/* Stats Ribbon */
.stats-ribbon {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-gold);
}

.stat-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Features Grid */
.features-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--border-accent);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quick Commands Section */
.commands-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 5rem 1.5rem;
}

.commands-container {
  max-width: 1000px;
  margin: 0 auto;
}

.command-box-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.command-row {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.command-syntax {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-gold);
  font-weight: 700;
}

.command-purpose {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: right;
}

/* Footer */
.landing-footer {
  padding: 3rem 1.5rem 2rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Comprehensive Mobile Responsive Styles */
@media (max-width: 768px) {
  .landing-hero {
    padding: 3rem 1rem 2.5rem 1rem;
  }
  .hero-glow {
    max-width: 90vw;
  }
  .hero-badge-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    font-size: 0.92rem;
  }
  .server-widget-section {
    width: 100%;
    padding: 0 0.5rem;
  }
  .server-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .server-info-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
  }
  .server-meta {
    align-items: center;
    width: 100%;
    min-width: 0;
  }
  .server-name {
    font-size: 1.15rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .server-tagline {
    white-space: normal;
    max-width: 100%;
    font-size: 0.82rem;
    text-align: center;
  }
  .server-counts {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
  .server-join-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.25rem;
  }

  .stats-ribbon {
    padding: 2rem 1rem;
  }
  .features-section {
    padding: 3rem 1rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  .commands-section {
    padding: 3rem 1rem;
  }
  .command-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
  }
  .command-syntax {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    text-align: left;
  }
  .command-purpose {
    text-align: left;
    font-size: 0.82rem;
  }

  .landing-footer {
    padding: 2.5rem 1rem 1.5rem 1rem;
  }
  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }
  .stat-value {
    font-size: 1.85rem;
  }
  .stat-title {
    font-size: 0.75rem;
  }
}
