:root {
  color-scheme: dark;

  /* Core Colors */
  --bg-body: #080808;
  --bg-surface: #0f0f0f;
  --bg-glass: rgba(16, 16, 16, 0.7);
  --bg-glass-hover: rgba(22, 22, 22, 0.8);

  /* Discord Blurple Accent */
  --primary: #5865F2;
  --primary-hover: #4752C4;
  --primary-glow: rgba(88, 101, 242, 0.4);
  --accent-gradient: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);

  /* Text */
  --text-main: #f0f0f0;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dark: #000000;

  /* Borders & Effects */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.14);
  --shadow-glow: 0 0 20px rgba(88, 101, 242, 0.15);

  /* Typography */
  --font-main: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Premium Utilities */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.premium-gradient-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.premium-gradient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* --- Trusted By Section --- */
.trusted-section {
  padding: 3rem 0 4rem;
  text-align: center;
}

.trusted-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.trusted-eyebrow::before,
.trusted-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
}

.trusted-eyebrow::after {
  background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.1));
}

.trusted-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.trusted-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 2.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  min-width: 160px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.trusted-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

.trusted-logo {
  height: 44px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.65);
  transition: all 0.4s ease;
  pointer-events: none;
  user-select: none;
}

.trusted-card:hover .trusted-logo {
  filter: grayscale(0%) brightness(1);
}

.trusted-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.trusted-card:hover .trusted-name {
  color: rgba(255, 255, 255, 0.75);
}

/* Legacy marquee (kept for reference) */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trusted-partner-logo {
  height: 40px;
  border-radius: 8px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trusted-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.text-muted {
  color: var(--text-muted) !important;
}

.hidden {
  display: none !important;
}

/* .bg-glow replaced by animated .bg-canvas blobs */
.bg-glow { display: none; }

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.public-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.public-navbar .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main) !important;
}

.public-navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-primary {
  background: #5865F2;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

/* Cards & Glassmorphism */
.glass-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 30, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Hero Section (Redesign) */
.hero-wrapper {
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  text-align: left;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: rgba(88, 101, 242, 0.1);
  /* Discord Blurple Tint */
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #5865F2;
  /* Discord Blurple */
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  /* gg sans ultra bold feel */
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 2.5rem;
}

/* Feature Rows (Z-Pattern) */
.section-spacer {
  padding: 6rem 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}

@media (min-width: 992px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-row.reversed {
  direction: rtl;
  /* Quick way to flip grid, need to reset text alignment */
}

.feature-row.reversed .feature-content {
  direction: ltr;
  text-align: left;
  /* Ensure text is left aligned */
}

.feature-row.reversed .feature-visual {
  direction: ltr;
}

.feature-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Feature Visuals & Collage */
.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.collage-feature {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  /* Fixed height container to manage overlap */
}

.collage-feature img {
  position: absolute;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Image Protection */
  pointer-events: none;
  /* Disables right-click/drag entirely */
  user-select: none;
  /* Disables selection */
  -webkit-user-drag: none;
  /* Disables dragging in Webkit */
}

.collage-image-back {
  top: 0;
  right: 0;
  width: 85%;
  z-index: 1;
  opacity: 0.8;
  transform: scale(0.95);
}

.collage-image-front {
  bottom: 20px;
  left: 0;
  width: 85%;
  z-index: 2;
}

/* Hover Effect for Collage */
.feature-row:hover .collage-image-front {
  transform: translateY(-10px) scale(1.02);
}

.feature-row:hover .collage-image-back {
  transform: translateX(10px) scale(0.95);
  opacity: 1;
}

/* Fallback for single images */
.feature-visual img.single-image {
  width: 100%;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
}

/* Card Deck Layout (For Minigames) */
.collage-deck {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.deck-card {
  position: absolute;
  width: 60%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Fan Effect */
.deck-card:nth-child(1) {
  transform: translateX(-30%) rotate(-10deg) scale(0.9);
  z-index: 1;
}

.deck-card:nth-child(2) {
  transform: translateY(-20px) scale(0.95);
  z-index: 2;
}

.deck-card:nth-child(3) {
  transform: translateX(30%) rotate(10deg) scale(0.9);
  z-index: 1;
}

/* Hover Fan Expansion */
.feature-row:hover .deck-card:nth-child(1) {
  transform: translateX(-50%) rotate(-15deg) scale(0.95);
}

.feature-row:hover .deck-card:nth-child(2) {
  transform: translateY(-40px) scale(1);
}

.feature-row:hover .deck-card:nth-child(3) {
  transform: translateX(50%) rotate(15deg) scale(0.95);
}

/* Anim */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Features Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 4rem 0 2rem;
  background: #020202;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Simulator Widget */
.simulator-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.simulator-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.3);
}

.sim-tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  outline: none;
}

.sim-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.sim-tab.active {
  color: #5865F2;
  border-bottom-color: #5865F2;
  background: rgba(88, 101, 242, 0.1);
}

.sim-content {
  position: relative;
  height: 350px;
}

.sim-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-pane.active {
  opacity: 1;
  pointer-events: all;
}

/* Sim: Dashboard Styles */
.sim-form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.sim-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.sim-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  font-family: inherit;
  transition: border-color 0.2s;
}

.sim-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Sim: Discord Styles */
.discord-bg {
  background: #36393f;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.discord-message {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  flex-shrink: 0;
}

.discord-content {
  flex: 1;
}

.discord-username {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.discord-username.bot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bot-tag {
  background: #5865F2;
  color: white;
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.discord-text {
  color: #dcddde;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Server List Specifics */
.server-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.server-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.3);
  background: var(--bg-glass-hover);
}

.server-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.server-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.server-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.server-meta .badge {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.server-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Server List Page Components */
.serverlist-hero {
  text-align: center;
  padding: 8rem 0 2rem;
}

.serverlist-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.serverlist-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1rem;
  margin: 2rem auto;
  max-width: 700px;
}

.search-panel form {
  display: flex;
  gap: 1rem;
}

.search-panel input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
}

.search-panel input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-panel button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.category-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- VIBE OVERHAUL: SPOTLIGHT & GRID --- */

/* 1. Global Background System */
body {
  background-color: #0d0d0d;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Animated background canvas */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.bg-blob--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(88,101,242,0.28) 0%, transparent 70%);
  top: -200px;
  left: calc(50% - 350px);
  animation: blobDrift1 22s ease-in-out infinite alternate;
}

.bg-blob--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(88,101,242,0.14) 0%, transparent 70%);
  bottom: 0;
  right: -80px;
  animation: blobDrift2 30s ease-in-out infinite alternate;
}

.bg-blob--3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(120,132,248,0.12) 0%, transparent 70%);
  top: 40%;
  left: -60px;
  animation: blobDrift3 26s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  0%   { transform: translate(0, 0)    scale(1);    }
  33%  { transform: translate(80px, 60px)  scale(1.12); }
  66%  { transform: translate(-50px, 30px) scale(0.95); }
  100% { transform: translate(40px, -40px) scale(1.06); }
}

@keyframes blobDrift2 {
  0%   { transform: translate(0, 0)      scale(1);    }
  40%  { transform: translate(-100px, -60px) scale(1.18); }
  70%  { transform: translate(40px, -90px)   scale(0.92); }
  100% { transform: translate(-60px, 30px)   scale(1.1);  }
}

@keyframes blobDrift3 {
  0%   { transform: translate(0, 0)    scale(1);    }
  50%  { transform: translate(60px, -100px) scale(1.2); }
  100% { transform: translate(20px, 40px)   scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none !important; }
}

/* 2. Clean Hero (No constrained wrapper BG) */
.hero-wrapper {
  position: relative;
  overflow: visible;
  /* Let content show */
  padding: 10rem 0 6rem;
}

.aurora-bg {
  display: none;
  /* Remove old aurora */
}

.hero-split {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-description {
  font-size: 1.35rem;
  color: #a1a1aa;
  /* Zinc-400 - slightly cooler gray */
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* 3. Refined Glass Cards for Grid Vibe */
.glass-card {
  background: rgba(10, 10, 10, 0.6);
  /* Darker */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Sharper border */
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* 4. Infinite Marquee (Sharper Mask) */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  padding: 1rem 0;
}

.marquee-content {
  display: inline-flex;
  gap: 5rem;
  animation: marquee 50s linear infinite;
  /* Slower, smoother */
  padding: 1rem 0;
  opacity: 0.5;
  /* Subtler */
}



/* Bento Utilities */
.bento-grid {
  display: grid;
  gap: 2rem;
  /* Add more grid definitions as needed */
}

/* Footer Gradeint */
.site-footer {
  background: linear-gradient(to top, #000000, #0a0a0a);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.category-chip span {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
  list-style: none;
  padding: 0;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  transition: all 0.2s;
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .search-panel form {
    flex-direction: column;
  }

  .search-panel button {
    padding: 0.75rem;
  }
}

/* Custom Dropdown Styles (Dark Theme) */
.dropdown-menu {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-glass) !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
  color: var(--text-muted) !important;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-main) !important;
}

.dropdown-divider {
  border-top: 1px solid var(--border-glass) !important;
}

/* =============================================
   SERVERLIST PAGE REDESIGN
   ============================================= */

/* Hero */
.sl-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.sl-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.sl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  background: #5865F2;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.sl-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.sl-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Search */
.sl-search-wrap {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.sl-search-inner {
  display: flex;
  align-items: center;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  transition: border-color 0.2s;
}

.sl-search-inner:focus-within {
  border-color: #5865F2;
}

.sl-search-icon {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.sl-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0;
}

.sl-search-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.sl-search-btn {
  background: #5865F2;
  color: white;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.sl-search-btn:hover {
  background: #4752c4;
  transform: scale(0.99);
}

/* Category Chips */
.sl-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 3rem;
}

.sl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sl-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.sl-chip.active {
  background: rgba(88, 101, 242, 0.15);
  border-color: #5865F2;
  color: #c3c8ff;
}

.sl-chip-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
}

.sl-chip.active .sl-chip-count {
  color: rgba(195, 200, 255, 0.6);
}

.sl-chip.reset-btn {
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.25);
}

.sl-chip.reset-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

/* Server Grid */
.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Server Card */
.sl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
  background: #141a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.sl-card:hover {
  background: #1c2440;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  color: inherit;
}

.sl-card--partner {
  border-color: rgba(88, 101, 242, 0.3);
}

.sl-card--partner:hover {
  border-color: #5865F2;
}

.sl-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #5865F2;
}

/* Card Header */
.sl-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sl-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sl-card-meta {
  min-width: 0;
  flex: 1;
}

.sl-card-name {
  font-size: 0.975rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.sl-partner-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c3c8ff;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

/* Description */
.sl-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
}

/* Tags */
.sl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.sl-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
}

.sl-tag--more {
  color: rgba(88, 101, 242, 0.8);
  border-color: rgba(88, 101, 242, 0.2);
  background: rgba(88, 101, 242, 0.05);
}

/* Footer Stats */
.sl-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: auto;
}

.sl-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
}

.sl-card-stat i { font-size: 0.72rem; }

.sl-card-stat--votes {
  color: rgba(251, 191, 36, 0.75);
}

.sl-card:hover .sl-card-stat--votes {
  color: #fbbf24;
}

/* Empty State */
.sl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
}

.sl-empty-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.sl-empty h3 {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.4rem;
}

.sl-empty p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.18);
  margin: 0;
}

/* Pagination */
.sl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sl-page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  border-radius: 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.sl-page-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sl-page-btn.active {
  background: #5865F2;
  border-color: #5865F2;
  color: white;
}

@media (max-width: 640px) {
  .sl-hero { padding: 6rem 0 2rem; }
  .sl-grid { grid-template-columns: 1fr; }
}

/* Hero */
.sl-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.sl-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.sl-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.sl-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sl-desc {
  color: #a1a1aa;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Search */
.sl-search-wrap {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.sl-search-inner {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(8px);
}

.sl-search-inner:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.sl-search-icon {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.sl-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.sl-search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.sl-search-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}

.sl-search-btn:hover {
  opacity: 0.88;
  transform: scale(0.98);
}

/* Category Chips */
.sl-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.sl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sl-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.sl-chip.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}

.sl-chip-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.05rem 0.4rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}

.sl-chip.active .sl-chip-count {
  background: rgba(99, 102, 241, 0.2);
}

.sl-chip.reset-btn {
  color: rgba(236, 72, 153, 0.6);
  border-color: rgba(236, 72, 153, 0.15);
}

.sl-chip.reset-btn:hover {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
  color: #f472b6;
}

/* Server Grid */
.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Server Card */
.sl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sl-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.08);
  color: inherit;
}

.sl-card--partner {
  border-color: rgba(99, 102, 241, 0.18);
}

.sl-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

/* Card Header */
.sl-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sl-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.sl-card-meta {
  min-width: 0;
  flex: 1;
}

.sl-card-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.sl-partner-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

/* Description */
.sl-card-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
}

/* Tags */
.sl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sl-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
}

.sl-tag--more {
  color: rgba(99, 102, 241, 0.7);
  border-color: rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.06);
}

/* Footer Stats */
.sl-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.sl-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.sl-card-stat i { font-size: 0.75rem; }

.sl-card-stat--votes { color: rgba(99, 102, 241, 0.55); }
.sl-card:hover .sl-card-stat--votes { color: #a5b4fc; }

/* Empty State */
.sl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
}

.sl-empty-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.sl-empty h3 {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

.sl-empty p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.2);
  margin: 0;
}

/* Pagination */
.sl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sl-page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.sl-page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.sl-page-btn.active {
  background: #5865F2;
  border-color: #5865F2;
  color: white;
}

@media (max-width: 640px) {
  .sl-hero { padding: 6rem 0 2rem; }
  .sl-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   SCROLL REVEAL & FOCUS
   ============================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

*:focus-visible {
  outline: 2px solid #5865F2;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==============================================
   INDEX PAGE  (idx-*)
   ============================================== */

.idx-hero { padding: 9rem 0 5rem; text-align: center; }
.idx-hero-content { max-width: 720px; margin: 0 auto; }

.idx-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(88,101,242,0.1); border: 1px solid rgba(88,101,242,0.28);
  color: #8891f5; padding: 0.4rem 1rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 1.5rem;
}

.idx-headline {
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; color: #fff; margin-bottom: 1.25rem;
}
.idx-headline-accent { color: #8891f5; }

.idx-lead {
  font-size: 1.1rem; color: rgba(255,255,255,0.5);
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.65;
}

.idx-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.idx-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #5865F2; color: #fff; border: none;
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600;
  font-size: 0.975rem; font-family: inherit; text-decoration: none;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(88,101,242,0.28);
}
.idx-btn-primary:hover { background: #4752C4; color: #fff; transform: translateY(-1px); }
.idx-btn-primary.w-100 { width: 100%; justify-content: center; }

.idx-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600;
  font-size: 0.975rem; text-decoration: none; transition: all 0.2s;
}
.idx-btn-ghost:hover { border-color: rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.05); }

/* Stats */
.idx-stats { padding: 1.5rem 0 3rem; }
.idx-stats-inner {
  display: flex; justify-content: center; align-items: center;
  gap: 3rem; flex-wrap: wrap; padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px;
}
.idx-stat { text-align: center; }
.idx-stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.idx-stat-lbl { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.idx-stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.07); }

@media (max-width: 580px) { .idx-stats-inner { gap: 1.5rem; } .idx-stat-sep { display: none; } }

/* Sections */
.idx-features, .idx-showcase, .idx-simulator-section { padding: 5rem 0; }
.idx-features-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }

.idx-section-label {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; color: #fff;
  background: #5865F2; padding: 0.22rem 0.6rem; border-radius: 4px; margin-bottom: 0.85rem;
}

.idx-section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; color: #fff;
  margin-bottom: 0.75rem; letter-spacing: -0.03em;
}
.idx-section-desc { color: rgba(255,255,255,0.48); font-size: 1rem; line-height: 1.65; margin: 0; }
.idx-section-desc small { font-size: 0.875em; opacity: 0.8; }

/* Feature Cards */
.idx-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }

.idx-feature-card {
  padding: 1.6rem; background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.07); border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.idx-feature-card:hover { border-color: rgba(88,101,242,0.28); transform: translateY(-2px); }

.idx-feature-icon {
  width: 42px; height: 42px; border-radius: 9px;
  background: rgba(88,101,242,0.1); border: 1px solid rgba(88,101,242,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #8891f5; font-size: 1rem; margin-bottom: 1.1rem; flex-shrink: 0;
}

.idx-feature-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.idx-feature-card p { font-size: 0.875rem; color: rgba(255,255,255,0.42); line-height: 1.6; margin: 0; }

/* Showcase Rows */
.idx-showcase-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; margin-bottom: 6rem;
}
.idx-showcase-row--flip { direction: rtl; }
.idx-showcase-row--flip .idx-showcase-text,
.idx-showcase-row--flip .idx-showcase-visual { direction: ltr; }
.idx-showcase-text .idx-feature-icon { margin-bottom: 1rem; }
.idx-showcase-text h3 { font-size: 1.65rem; font-weight: 800; color: #fff; margin-bottom: 0.65rem; margin-top: 0; letter-spacing: -0.02em; }
.idx-showcase-text p { color: rgba(255,255,255,0.48); font-size: 0.975rem; line-height: 1.65; margin: 0; }
.idx-showcase-visual { position: relative; display: flex; justify-content: center; }
.idx-showcase-divider { height: 1px; background: rgba(255,255,255,0.05); margin-bottom: 6rem; }

@media (max-width: 900px) {
  .idx-showcase-row, .idx-showcase-row--flip { grid-template-columns: 1fr; direction: ltr; gap: 2rem; margin-bottom: 3.5rem; }
  .idx-showcase-divider { margin-bottom: 3.5rem; }
}

.idx-img-stack { position: relative; width: 100%; max-width: 540px; height: 370px; }
.idx-img-back {
  position: absolute; top: 0; right: 0; width: 83%; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.07);
  z-index: 1; opacity: 0.75; transform: scale(0.96);
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.idx-img-front {
  position: absolute; bottom: 20px; left: 0; width: 83%; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.07);
  z-index: 2; transition: transform 0.4s ease;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.idx-showcase-row:hover .idx-img-front { transform: translateY(-8px) scale(1.02); }
.idx-showcase-row:hover .idx-img-back  { transform: translateX(8px) scale(0.96); opacity: 1; }

.idx-deck { position: relative; width: 100%; max-width: 540px; height: 370px; display: flex; justify-content: center; align-items: center; }

/* Deck card hover via idx-showcase-row */
.idx-showcase-row:hover .deck-card:nth-child(1) { transform: translateX(-50%) rotate(-15deg) scale(0.95); }
.idx-showcase-row:hover .deck-card:nth-child(2) { transform: translateY(-40px) scale(1); }
.idx-showcase-row:hover .deck-card:nth-child(3) { transform: translateX(50%) rotate(15deg) scale(0.95); }

/* Simulator */
.idx-sim-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
@media (max-width: 900px) { .idx-sim-grid { grid-template-columns: 1fr; gap: 2rem; } }

.idx-sim-text h3 {
  font-size: 1.65rem; font-weight: 800; color: #fff;
  margin: 0.75rem 0 0.65rem; display: flex; align-items: center;
  gap: 0.6rem; flex-wrap: wrap; letter-spacing: -0.02em;
}

.idx-premium-badge {
  font-size: 0.55em; background: #5865F2; color: #fff;
  padding: 0.18em 0.5em; border-radius: 4px; vertical-align: middle;
  font-weight: 700; letter-spacing: 0.05em;
}

.idx-check-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
.idx-check-list li { display: flex; align-items: center; gap: 0.55rem; color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.idx-check-list li i { color: #5865F2; font-size: 0.75rem; flex-shrink: 0; }

/* Premium Banner */
.idx-premium-banner { padding: 4rem 0; }
.idx-premium-inner {
  text-align: center; padding: 3rem 2rem;
  background: rgba(88,101,242,0.05); border: 1px solid rgba(88,101,242,0.18); border-radius: 18px;
}
.idx-premium-icon { font-size: 1.75rem; color: #5865F2; margin-bottom: 1rem; }
.idx-premium-inner h2 { font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: 0.65rem; letter-spacing: -0.02em; }
.idx-premium-inner p { color: rgba(255,255,255,0.45); margin-bottom: 1.75rem; font-size: 0.975rem; }

/* CTA */
.idx-cta { padding: 4rem 0 7rem; }
.idx-cta-card {
  text-align: center; padding: 4rem 2rem;
  background: #0f0f0f; border: 1px solid rgba(255,255,255,0.07); border-radius: 18px;
}
.idx-cta-card h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.idx-cta-card p { color: rgba(255,255,255,0.45); margin-bottom: 2rem; font-size: 1rem; }

/* ==============================================
   GUILD DETAILS PAGE  (gd-*)
   ============================================== */

.gd-container { max-width: 1100px; margin: 6rem auto 5rem; padding: 0 1.25rem; }

.gd-header {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem;
  background: rgba(88,101,242,0.05); border: 1px solid rgba(88,101,242,0.15);
  border-radius: 16px; margin-bottom: 1.25rem;
}
@media (max-width: 580px) { .gd-header { flex-direction: column; text-align: center; } }

.gd-logo {
  width: 80px; height: 80px; border-radius: 18px;
  overflow: hidden; border: 2px solid rgba(255,255,255,0.09); flex-shrink: 0;
}
.gd-logo img { width: 100%; height: 100%; object-fit: cover; }
.gd-logo-placeholder {
  width: 100%; height: 100%; background: #5865F2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 800;
}

.gd-header-text { flex: 1; min-width: 0; }
.gd-title { font-size: 1.65rem; font-weight: 800; color: #fff; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.gd-subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.42); line-height: 1.5; margin: 0; }

.gd-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.gd-btn-join {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #5865F2; color: #fff; border: none;
  padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600;
  font-size: 0.875rem; font-family: inherit; text-decoration: none;
  cursor: pointer; transition: background 0.15s;
}
.gd-btn-join:hover { background: #4752C4; color: #fff; }

.gd-btn-vote {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; color: #8891f5; border: 1px solid rgba(88,101,242,0.35);
  padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600;
  font-size: 0.875rem; font-family: inherit; text-decoration: none;
  cursor: pointer; transition: all 0.15s;
}
.gd-btn-vote:hover { background: rgba(88,101,242,0.1); }
.gd-btn-vote:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.gd-btn-report {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.09);
  padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600;
  font-size: 0.875rem; font-family: inherit; cursor: pointer; transition: all 0.15s;
}
.gd-btn-report:hover { border-color: rgba(251,191,36,0.4); color: #fbbf24; }

.gd-content { display: grid; grid-template-columns: 1fr 300px; gap: 1.25rem; align-items: start; }
@media (max-width: 768px) { .gd-content { grid-template-columns: 1fr; } }

.gd-description, .gd-info-card {
  padding: 1.6rem; background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.07); border-radius: 12px;
}
.gd-section-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.3); display: block;
  margin-bottom: 1.1rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gd-description-body { color: rgba(255,255,255,0.7); line-height: 1.75; font-size: 0.925rem; }
.gd-description-body h1,.gd-description-body h2,.gd-description-body h3 { color: #fff; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.gd-description-body a { color: #5865F2; }
.gd-description-body code { background: rgba(255,255,255,0.07); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }
.gd-description-body p { margin-bottom: 0.75rem; }

.gd-sidebar { display: flex; flex-direction: column; gap: 1.1rem; }
.gd-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.gd-info-row { display: flex; flex-direction: column; gap: 0.15rem; }
.gd-info-key { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.28); }
.gd-info-val { font-size: 0.875rem; color: rgba(255,255,255,0.7); word-break: break-word; }
.gd-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.gd-tag { font-size: 0.7rem; padding: 0.18rem 0.5rem; border-radius: 4px; background: rgba(88,101,242,0.1); border: 1px solid rgba(88,101,242,0.2); color: #a5abff; }

/* Report Modal */
.gd-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  z-index: 9999; align-items: center; justify-content: center; padding: 1rem;
}
.gd-modal-box { background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; width: 100%; max-width: 420px; overflow: hidden; }
.gd-modal-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; }
.gd-modal-header h3 { font-weight: 700; font-size: 0.975rem; color: #fff; margin: 0; }
.gd-modal-close { background: none; border: none; color: rgba(255,255,255,0.3); font-size: 1rem; cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: color 0.15s; line-height: 1; }
.gd-modal-close:hover { color: #fff; }
.gd-modal-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.gd-modal-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.38); margin-bottom: 0.4rem; }
.gd-modal-select, .gd-modal-textarea { width: 100%; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.09); border-radius: 7px; padding: 0.6rem 0.85rem; color: #fff; font-family: inherit; font-size: 0.875rem; outline: none; transition: border-color 0.15s; }
.gd-modal-select:focus, .gd-modal-textarea:focus { border-color: #5865F2; }
.gd-modal-textarea { resize: none; }
.gd-modal-submit { width: 100%; background: #5865F2; color: #fff; border: none; padding: 0.7rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem; font-family: inherit; cursor: pointer; transition: background 0.15s; }
.gd-modal-submit:hover { background: #4752C4; }

/* ==============================================
   LEGAL PAGES  (legal-*)
   ============================================== */

.legal-wrap { max-width: 800px; margin: 7rem auto 5rem; padding: 0 1.25rem; }
.legal-breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: rgba(255,255,255,0.28); margin-bottom: 1.5rem; list-style: none; padding: 0; }
.legal-breadcrumb a { color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.15s; }
.legal-breadcrumb a:hover { color: rgba(255,255,255,0.65); }
.legal-breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; }
.legal-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.legal-h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.legal-date { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.legal-note {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: rgba(234,179,8,0.05); border: 1px solid rgba(234,179,8,0.18);
  border-left: 3px solid #eab308; border-radius: 8px;
  padding: 1rem 1.2rem; margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.6;
}
.legal-note i { color: #eab308; font-size: 0.9rem; flex-shrink: 0; margin-top: 0.18rem; }
.legal-note strong { color: rgba(255,255,255,0.8); display: block; margin-bottom: 0.18rem; }
.legal-section { margin-bottom: 2.25rem; }
.legal-h2 { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.8); margin: 2.25rem 0 0.65rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); letter-spacing: -0.01em; }
.legal-h3 { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.6); margin: 1.4rem 0 0.45rem; }
.legal-p { font-size: 0.9rem; color: rgba(255,255,255,0.52); line-height: 1.8; margin-bottom: 0.8rem; }
.legal-ul { list-style: none; padding: 0; margin: 0 0 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-ul li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.65; }
.legal-ul li::before { content: '—'; color: rgba(255,255,255,0.18); flex-shrink: 0; margin-top: 0.05rem; }
.legal-a { color: #5865F2; text-decoration: none; }
.legal-a:hover { text-decoration: underline; opacity: 0.85; }

