/* =========================================
   XDify - Home Page Styles
   ========================================= */

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,102,255,0.18) 0%, rgba(0,212,255,0.1) 30%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0,212,255,0.08) 0%, transparent 60%);
  z-index: 0;
}

[data-theme="light"] .hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,150,12,0.12) 0%, rgba(240,180,41,0.06) 30%, transparent 70%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 80%);
}

[data-theme="light"] .hero-grid-overlay {
  background-image:
    linear-gradient(rgba(200,150,12,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,150,12,0.06) 1px, transparent 1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  animation: badge-appear 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0,255,136,0.8);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes badge-appear {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  animation: title-appear 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes title-appear {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-title-main {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero-tagline {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.7;
  animation: fade-up 0.9s ease 0.8s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  animation: fade-up 0.9s ease 1s both;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.hero-meta-item .icon {
  color: var(--accent-primary);
  font-size: 1rem;
}

.hero-meta-divider {
  width: 1px;
  height: 20px;
  background: var(--border-glass);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fade-up 0.9s ease 1.1s both;
}

.hero-ip {
  margin-top: 2rem;
  animation: fade-up 0.9s ease 1.3s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fade-up 1s ease 1.8s both;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

/* =========================================
   Server Status
   ========================================= */
.status-section {
  padding: 0 2rem 5rem;
  position: relative;
  z-index: 1;
}

.status-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-item-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-item-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
  margin: 0 auto;
}

.status-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #00ff88;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================
   Stats / Counter Section
   ========================================= */
.stats-section {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* =========================================
   Features Section
   ========================================= */
.features-section {
  padding: 6rem 2rem;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.feature-card {
  padding: 2rem;
  position: relative;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =========================================
   Game Modes Preview
   ========================================= */
.gamemodes-preview {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.modes-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.modes-scroll-container::-webkit-scrollbar {
  display: none;
}

.mode-card-mini {
  flex-shrink: 0;
  width: 200px;
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
}

.mode-icon-large {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: block;
}

.mode-card-mini h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mode-card-mini p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================
   CTA Banner
   ========================================= */
.cta-section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .status-card { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 0 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .status-card { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .status-divider { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; }
  .hero-meta-divider { width: 40px; height: 1px; }
}