/* ── Hero ── */
.hero {
  position: relative; min-height: calc(100vh - 68px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(14,165,233,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(2,132,199,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(56,189,248,0.08) 0%, transparent 50%),
    var(--bg-primary);
}

/* City-grid background */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
}

/* Horizontal scan-line sweep */
.hero-grid::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.4), transparent);
  animation: scanLine 8s linear infinite;
}
@keyframes scanLine {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-glow {
  position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, rgba(56,189,248,0.04) 50%, transparent 70%);
  animation: heroGlowPulse 7s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.75; }
  50%       { transform: translateX(-50%) scale(1.18); opacity: 1; }
}

/* Ring accent around logo */
.hero-logo-wrap {
  margin-bottom: 1.5rem;
  animation: heroLogoFloat 4.5s ease-in-out infinite;
  display: inline-block; position: relative;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute; inset: -12px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 60%, rgba(14,165,233,0.5) 75%, rgba(56,189,248,0.8) 85%, transparent 100%);
  animation: ringRotate 6s linear infinite;
  filter: blur(3px);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hero-logo {
  height: 180px; width: auto; object-fit: contain; position: relative;
  filter: drop-shadow(0 0 28px rgba(14,165,233,0.65)) drop-shadow(0 0 70px rgba(14,165,233,0.22));
}

.hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 840px; margin: 0 auto; padding: 3rem 1.5rem 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 20px;
  background: rgba(14,165,233,0.1); border: 1px solid rgba(14,165,233,0.35);
  font-size: 0.82rem; font-weight: 600; color: var(--accent-3);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(14,165,233,0.08);
}
.hero h1 { margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(14,165,233,0.12);
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 2.2rem; font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, #7dd3fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 10px rgba(14,165,233,0.3));
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; letter-spacing: 0.03em; }

/* ── Server Status Banner ── */
.server-banner {
  background: rgba(8,8,24,0.95); border-bottom: 1px solid rgba(14,165,233,0.1);
  padding: 0.6rem 0; backdrop-filter: blur(12px);
}
.server-banner-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.server-info-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.server-info-item strong { color: var(--text-primary); }

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all 0.35s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8); opacity: 0; transition: opacity 0.3s;
}
.feature-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; top: 0;
  background: radial-gradient(ellipse at top left, rgba(14,165,233,0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { border-color: rgba(14,165,233,0.3); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(14,165,233,0.06); }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,0.2), rgba(2,132,199,0.1));
  border: 1px solid rgba(14,165,233,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(14,165,233,0.15);
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p  { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }

/* ── Server Info Section ── */
.server-section {
  background: rgba(8,8,20,0.6);
  border-top: 1px solid rgba(14,165,233,0.08);
  border-bottom: 1px solid rgba(14,165,233,0.08);
  position: relative;
}
.server-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.server-details-list { list-style: none; }
.server-details-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem;
}
.server-details-list li:last-child { border-bottom: none; }
.server-details-list .key { color: var(--text-muted); }
.server-details-list .val { font-weight: 600; color: var(--text-primary); }

.copy-ip {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(14,165,233,0.06); border: 1px solid rgba(14,165,233,0.25);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1.5rem; cursor: pointer;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.copy-ip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.5), transparent);
}
.copy-ip:hover { background: rgba(14,165,233,0.12); border-color: rgba(14,165,233,0.45); box-shadow: 0 0 20px rgba(14,165,233,0.1); }
.copy-ip code  { font-family: monospace; font-size: 1rem; color: var(--accent-3); flex: 1; }
.copy-ip button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0.25rem; }

/* ── Player Widget ── */
.player-widget {
  background: rgba(14,165,233,0.04); border: 1px solid rgba(14,165,233,0.14);
  border-radius: var(--radius-lg); padding: 1.5rem;
  position: relative; overflow: hidden;
}
.player-widget::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.45), transparent);
}
.player-widget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.player-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; max-height: 300px; overflow-y: auto; }
.player-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem; border-radius: 8px; background: rgba(14,165,233,0.04); border: 1px solid transparent; transition: all 0.15s; }
.player-item:hover { background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.15); }
.player-num  { width: 24px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, #0ea5e9, #0284c7); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: white; flex-shrink: 0; }
.player-name { font-size: 0.875rem; flex: 1; }
.player-ping { font-size: 0.75rem; color: var(--text-muted); }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1.25rem; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.25rem;
  text-align: center; transition: all 0.35s; position: relative; overflow: hidden;
}
.team-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.5), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.team-card:hover { border-color: rgba(14,165,233,0.28); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 20px rgba(14,165,233,0.06); }
.team-card:hover::before { opacity: 1; }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: white;
  border: 2px solid rgba(14,165,233,0.3);
  box-shadow: 0 0 16px rgba(14,165,233,0.2); overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4      { margin-bottom: 0.35rem; font-size: 1rem; }
.team-name         { font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.team-role         { font-size: 0.78rem; font-weight: 600; }
.team-card .role   { font-size: 0.78rem; color: var(--text-muted); }
.team-card .role.owner { color: var(--accent-3); }
.team-card .role.admin { color: var(--accent-1); }
.team-card .role.mod   { color: var(--success); }

/* ── CTA Section ── */
.cta-section {
  text-align: center; padding: 6rem 0; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(14,165,233,0.09) 0%, transparent 65%);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14,165,233,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.cta-section h2 { margin-bottom: 1rem; position: relative; }
.cta-section p  { color: var(--text-muted); max-width: 480px; margin: 0 auto 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .server-info-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .server-banner { margin-top: 68px; }
  .hero-logo { height: 140px; }
}
@media (max-width: 600px) {
  .hero-logo { height: 110px; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
