:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --text: #e6edf3;
  --accent: #7ee787;
  --blue: #58a6ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* SECTIONS */
section {
  padding: 100px 10%;
}

h1,
h2,
h3 {
  font-family: 'Montserrat', sans-serif;
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
}

/* ANIMATION */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
.hero {
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .6), var(--bg)),
    url("screenshots/bg.jpg") center / cover;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 4rem;
}

.hero span {
  color: var(--accent);
}

.hero p {
  margin: 20px 0 40px;
  font-size: 1.2rem;
}

/* BUTTONS */
.buttons a {
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 15px 30px;
  border-radius: 30px;
  margin-right: 15px;
  font-weight: 600;
  transition: .3s;
}

.buttons a.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.buttons a:hover {
  transform: translateY(-3px);
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-soft);
  padding: 30px;
  border-radius: 20px;
  transition: .3s;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--accent);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(126, 231, 135, 0.15);
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 15px;
  cursor: pointer;
  transition: .4s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* JOIN */
.join {
  text-align: center;
  background: radial-gradient(circle at top, #1f2937, var(--bg));
}

.join code {
  display: inline-block;
  margin-top: 20px;
  background: var(--bg-soft);
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  color: var(--accent);
}

/* FOOTER */
footer {
  padding: 40px;
  text-align: center;
  opacity: .6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  section {
    padding: 80px 6%;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

/* =========================
   RESPONSIVE — MOBILE FIRST
========================= */

/* TABLETS */
@media (max-width: 1024px) {
  section {
    padding: 80px 8%;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3.2rem;
  }
}

/* PHONES */
@media (max-width: 768px) {
  section {
    padding: 70px 6%;
  }

  .hero {
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .buttons a {
    margin-right: 0;
    width: 100%;
  }

  h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 25px;
  }

  .join code {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* SMALL PHONES */
@media (max-width: 480px) {
  section {
    padding: 60px 5%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.4rem;
}

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: .2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* MOBILE MENU */

.mobile-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: var(--bg-soft);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: .3s;
  z-index: 999;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}

.mobile-menu.active {
  left: 0;
}

/* MOBILE */

@media (max-width: 768px) {

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

}

/* LOGIN BUTTON */

.login-btn {
  margin-left: 25px;
  background: var(--accent);
  color: #0d1117 !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: all .25s ease;
}

/* hover эффект */
.login-btn:hover {
  transform: translateY(-2px);
  background: #6ee27a;
  box-shadow: 0 6px 20px rgba(126, 231, 135, 0.35);
}

/* убрать некрасивый фокус браузера */
.login-btn:focus {
  outline: none;
}

/* SVG иконка */
.login-icon {
  width: 18px;
  height: 18px;
}

/* MOBILE */

.login-mobile {
  background: var(--accent);
  color: #0d1117 !important;
  padding: 12px 18px;
  border-radius: 25px;
  margin-top: 10px;
  display: inline-block;
}

.server-status {
  margin-top: -20px;
  margin-bottom: 30px;
  font-size: 1rem;
  opacity: 0.9;
}

#server-online {
  color: var(--accent);
  font-weight: 600;
}

/* SERVER STATUS BOX */

.server-box {
  margin-top: 30px;
  background: rgba(22, 27, 34, 0.9);
  border-radius: 18px;
  padding: 18px 22px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #777;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.server-status-dot.online {
  background: #7ee787;
  box-shadow: 0 0 10px rgba(126, 231, 135, 0.8);
}

.server-name {
  font-weight: 600;
  font-size: 1rem;
}

.server-meta {
  font-size: 0.9rem;
  opacity: .8;
}