:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #9ec7ff;
  --accent-2: #7df0c5;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(72, 126, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(125, 240, 197, 0.08), transparent 30%),
    linear-gradient(180deg, #06080c 0%, #0b1018 55%, #06080c 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  pointer-events: none;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -2;
}

.orb-1 {
  top: -120px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: rgba(88, 136, 255, 0.35);
}

.orb-2 {
  right: -80px;
  top: 260px;
  width: 320px;
  height: 320px;
  background: rgba(125, 240, 197, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 16, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: white;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 35px rgba(0,0,0,0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: #dce5f1;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 999px;
  transition: 0.25s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.showcase-image {
  background-image: url('rust-tlo.png');
  background-size: cover;
  background-position: center;
}

.showcase-image-2 {
  background-image: url('harmonogram-web.png');
  background-size: cover;
  background-position: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.08);
  animation: heroZoom 1.5s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.35) 0%, rgba(5, 7, 10, 0.72) 70%, rgba(5, 7, 10, 0.95) 100%),
    radial-gradient(circle at center, rgba(255,255,255,0.07), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}

.hero-badge,
.label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c8d5e6;
}

.hero-badge {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), #6ce7b2);
  box-shadow: 0 0 20px rgba(109, 239, 196, 0.85);
}

.hero h1 {
  max-width: 900px;
  margin: 24px 0 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero p {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #d3dbe7;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-width: 170px;
  padding: 15px 22px;
  border-radius: 18px;
  font-weight: 800;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #08111a;
  background: linear-gradient(135deg, #ffffff, #d8e7ff);
  box-shadow: 0 18px 45px rgba(200, 220, 255, 0.14);
}

.btn-secondary {
  color: white;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mini-card {
  padding: 20px;
  border-radius: 24px;
}

.mini-card span,
.server-stats span,
.service-card p,
.section-heading p,
.command-panel p,
.showcase-content p {
  color: var(--muted);
}

.mini-card strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 8px;
}

.section {
  padding: 42px 0 110px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.command-panel h2,
.showcase-content h3 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-heading p,
.command-panel p,
.showcase-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 14px;
}

.showcase {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border-radius: 30px;
  overflow: hidden;
}

.showcase-image {
  min-height: 420px;
}

.showcase-content {
  padding: 36px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card,
.service-card,
.command-panel {
  border-radius: 30px;
  padding: 28px;
}

.card-top,
.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-card h3,
.service-card h3 {
  margin: 8px 0 0;
  font-size: 1.7rem;
  line-height: 1;
}

.server-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.server-stats div {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 18px;
}

.server-stats strong {
  display: block;
  margin-top: 7px;
  font-size: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.online {
  color: #bffce6;
  background: rgba(90, 226, 171, 0.12);
  border-color: rgba(90, 226, 171, 0.22);
}

.badge.offline {
  color: #ffd3d3;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.22);
}

.badge.loading {
  color: #dce5f1;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.service-card p {
  margin: 18px 0 0;
  line-height: 1.7;
}

.command-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.command-list span {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: monospace;
  font-size: 0.98rem;
}

.commands-panel-full {
  grid-template-columns: 1fr;
  gap: 26px;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.command-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.08);
}

.command-item strong {
  display: block;
  font-family: monospace;
  font-size: 1rem;
  color: var(--text);
}

.command-item p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.mono {
  font-family: monospace;
}

.tilt {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.tilt:hover {
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 28px 70px rgba(0,0,0,0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 1024px) {
  .three-col,
  .two-col,
  .showcase,
  .command-panel,
  .hero-stats,
  .commands-grid {
    grid-template-columns: 1fr;
  }

  .showcase-image {
    min-height: 300px;
  }

  .showcase-image {
    min-height: 300px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 24px;
    background: rgba(9, 12, 18, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    border-radius: 16px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .server-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .site-header .container {
    gap: 12px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 0.88rem;
  }

  .hero-badge {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    padding: 10px 14px;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding-bottom: 86px;
  }

  .status-card,
  .service-card,
  .command-panel,
  .showcase-content,
  .mini-card {
    padding: 22px;
  }
}