/* ========================================
   SOVEREIGN — Web Landing & Redirect Styles
   ======================================== */

:root {
  --bg-primary: #050A14;
  --bg-card: #0D1321;
  --bg-card-hover: #131B2F;
  --border: rgba(255, 255, 255, 0.06);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #6366F1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --success: #10B981;
  --flame: #F97316;
  --gold: #FFD700;
  --gradient-start: #6366F1;
  --gradient-end: #8B5CF6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Animated Background === */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* === Page Container === */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* === Logo === */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out;
}

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}

.logo-fallback {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 20px;
  box-shadow: 0 0 40px var(--accent-glow);
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-primary);
}

.logo-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  margin-top: 8px;
  font-weight: 400;
}

/* === Content Card === */
.content-card {
  max-width: 460px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.content-card h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  font-size: 20px;
}

/* === Redirect Page === */
.redirect-content {
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.redirect-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

.redirect-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.redirect-status a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.redirect-status a:hover {
  text-decoration: underline;
}

/* === Content Preview Card (for posts/discussions) === */
.preview-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.preview-card .preview-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.preview-card .preview-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.preview-card .preview-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === Footer === */
.footer {
  margin-top: 40px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

/* === Stats Bar (Landing) === */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* === Feature Pills === */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 28px;
}

.feature-pill {
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === Responsive === */
@media (max-width: 480px) {
  .content-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .content-card h1 {
    font-size: 19px;
  }

  .logo-text {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .stats-bar {
    gap: 20px;
  }

  .stat-value {
    font-size: 16px;
  }
}
