* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  height: 100%;
  color: #fff;
  background-color: #03050a;
}

::-webkit-scrollbar {
  width: 10px;             
}

::-webkit-scrollbar-track {
  background: rgba(3,6,8,0.5);   
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #292929, #222222); 
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #222222, #292929); 
}

* {
  scrollbar-width: thin;
  scrollbar-color: #3a546d25 rgba(8, 3, 3, 0.5);
}

header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;        
  background: rgba(2,4,6,0.55);
  z-index: 20;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.03);
}

header .logo {
  height: 36px;               
}

.logo-text {
  display: flex;
  align-items: center; 
  gap: 10px;           
}

.header-text {
  display: inline-block; 
  vertical-align: middle; 
  margin-left: 10px; 
  text-align: left;
}

.header-text h1 {
  margin: 0;
  font-size: 24px;
  color: #fff;
}

.header-text h2 {
  margin: 0;
  font-size: 16px;
  color: #9e9e9e;
  letter-spacing: 4.5px;
}

.logo {
  height: 46px;
}

nav a {
  color: #bdc0c9;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 200;
  transition: color 0.2s, transform 0.15s;
}

nav a:hover, nav a.active {
  color: #dde0e9;
  transform: translateY(-2px);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 1s ease;
  z-index: 0;
  opacity: 0;
  will-change: opacity;
}

.hero-bg.bg-a { opacity: 1; }

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,6,8,0.6), rgba(3,6,8,0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  width: 100%;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  color: #e9f2f8;
}

.hero-content .left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
}

.server-card {
  background: rgba(0,0,0,0.5);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  width: 200px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;
  text-align: center;
}

.server-status-title {
  font-size: 12px;
  color: #a5b3bd;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.server-status-online {
  font-size: 11px;
  color: #a5b3bd;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.server-status-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.server-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
  animation: blink 5s infinite;
}

.server-players {
  font-weight: 700;
  font-size: 46px;
  color: #fff;
}

.server-players .max {
  font-weight: 400;
  font-size: 14px;
  color: #a5b3bd;
}

.center-fronttext {
  text-align: left;
  max-width: 720px;
}

.center-fronttext h1 {
  font-size: 48px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.center-fronttext p {
  color: #9e9e9e;
  margin-bottom: 18px;
  font-size: 16px;
}

.center-text {
  text-align: center;
  max-width: 720px;
}

.center-text h1 {
  font-size: 48px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.center-text p {
  color: #cfd7dd;
  margin-bottom: 18px;
  font-size: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  margin-right: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(180deg, #3a546d, #2e4b5f);
  color: #fff;
}

.btn.ghost {
  background: rgba(0, 0, 0, 0.199);
  color: #cfd2da;
  border: 1px solid rgba(255,255,255,0.06);
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px 80px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 24px;
}

.feature {
  background: rgba(255,255,255,0.03);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.application-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}

.application-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
}

.application-card .btn {
  margin-top: 12px;
}

footer {
  width: 100%;
  padding: 12px 0;
  text-align: center;
  background: rgba(2,4,6,0.75);
  color: #cfd2da;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.03);
  position: relative;
  margin-top: 40px;
  border-radius: 8px 8px 0 0;
}

.rules-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.rule-category {
  font-size: 22px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #51769c;
  text-align: center;
}

.rule-box {
  background: rgba(15,15,15,0.43);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(12px);
}

.rule-box.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 1s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-content { flex-direction: column; gap: 20px; padding: 100px 18px; }
  .hero-logo { width: 80px; height: 80px; }
  .center-text h1 { font-size: 34px; }
  .center-fronttext h1 { font-size: 34px; }
  nav { display: none; }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

@keyframes countUp {
  from { counter-reset: num 0; }
  to { counter-reset: num var(--target); }
}
