:root {
  --bg: #080b15;
  --surface: #0e1324;
  --surface-strong: #131a31;
  --line: rgba(122, 139, 191, 0.18);
  --text: #f4f7ff;
  --muted: #97a2c1;
  --accent: #7a5cff;
  --accent-light: #b29bff;
  --cyan: #26ddde;
  --online: #3ff1a4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 9%, rgba(88, 57, 224, 0.2), transparent 34%),
    radial-gradient(circle at 91% 12%, rgba(22, 190, 203, 0.13), transparent 31%),
    var(--bg);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(75px);
}

.ambient-one {
  top: 38%;
  left: -100px;
  width: 250px;
  height: 250px;
  background: rgba(99, 70, 255, 0.19);
}

.ambient-two {
  right: 0;
  bottom: 8%;
  width: 280px;
  height: 260px;
  background: rgba(26, 200, 216, 0.1);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Oxanium", Arial, sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(152, 125, 255, 0.38);
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #2a91ff);
  box-shadow: 0 0 30px rgba(108, 74, 255, 0.32);
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.34em;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #c0c8df;
  font-size: 14px;
  font-weight: 500;
}

.navigation a:hover {
  color: #fff;
}

.navigation .nav-discord {
  padding: 12px 22px;
  border: 1px solid rgba(124, 140, 189, 0.22);
  border-radius: 12px;
  background: rgba(22, 28, 49, 0.55);
}

main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 62px;
  min-height: 614px;
  padding: 62px 0 86px;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--cyan);
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: clamp(45px, 5.3vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(98deg, #b7a7ff, #6f65ff 45%, #27dde3);
  background-clip: text;
}

.lead {
  max-width: 525px;
  margin: 26px 0 37px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions,
.card-actions {
  display: flex;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(104deg, #7554ff, #5639e8);
  box-shadow: 0 14px 35px rgba(85, 47, 233, 0.38);
}

.button-secondary,
.copy-button {
  border-color: rgba(126, 144, 196, 0.24);
  background: rgba(14, 19, 36, 0.65);
}

.hero-tags {
  display: flex;
  gap: 25px;
  margin-top: 47px;
  color: #687597;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-tags span + span {
  position: relative;
}

.hero-tags span + span::before {
  position: absolute;
  top: 6px;
  left: -14px;
  width: 4px;
  height: 4px;
  border-radius: 100%;
  content: "";
  background: #39425d;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 473px;
  overflow: hidden;
  border: 1px solid rgba(103, 115, 160, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 51%, rgba(84, 61, 210, 0.27), transparent 37%),
    linear-gradient(145deg, rgba(17, 23, 44, 0.9), rgba(8, 12, 24, 0.82));
  box-shadow: var(--shadow);
}

.panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 109, 160, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 109, 160, 0.14) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle, black 0%, transparent 70%);
}

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 162px;
  height: 162px;
  border: 1px solid rgba(136, 114, 255, 0.43);
  border-radius: 48px;
  background: linear-gradient(140deg, rgba(50, 37, 112, 0.66), rgba(12, 18, 35, 0.78));
  box-shadow:
    0 0 0 12px rgba(95, 67, 232, 0.05),
    0 0 74px rgba(91, 59, 246, 0.48);
  transform: rotate(45deg);
}

.emblem span {
  color: white;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 57px;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: rotate(-45deg);
}

.panel-name {
  position: relative;
  margin: 54px 0 23px;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.panel-name strong {
  color: var(--accent-light);
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(52, 226, 156, 0.18);
  border-radius: 99px;
  color: #9cb1b2;
  background: rgba(8, 19, 25, 0.42);
  font-size: 12px;
}

.panel-status i,
.connection-ready i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 12px var(--online);
}

.connection-ready.is-checking i {
  background: #f3bb4d;
  box-shadow: 0 0 12px #f3bb4d;
}

.connection-ready.is-offline i {
  background: #ef5672;
  box-shadow: 0 0 12px #ef5672;
}

.connection-ready.is-unavailable i {
  background: #62708f;
  box-shadow: none;
}

.servers {
  padding: 29px 0 92px;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 13px;
}

.section-heading h2,
.community h2 {
  margin: 0 0 12px;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: clamp(29px, 3vw, 37px);
}

.section-heading > p:last-child,
.community > div > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.server-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
  max-width: 955px;
  margin: 0 auto;
}

.server-card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(18, 24, 45, 0.86), rgba(11, 15, 29, 0.96));
}

.server-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.server-cs2::before {
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.game-label {
  padding: 7px 11px;
  border: 1px solid rgba(119, 91, 255, 0.24);
  border-radius: 8px;
  color: #b9aaff;
  background: rgba(95, 67, 234, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-cs2 .game-label {
  border-color: rgba(34, 217, 220, 0.24);
  color: #79f1f0;
  background: rgba(25, 192, 198, 0.1);
}

.connection-ready {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8da697;
  font-size: 12px;
}

.server-card h3 {
  margin: 0 0 10px;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 23px;
}

.server-card p {
  min-height: 51px;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.live-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: -10px 0 20px;
}

.live-details[hidden] {
  display: none;
}

.live-details div {
  padding: 12px 14px;
  border: 1px solid rgba(115, 131, 181, 0.16);
  border-radius: 10px;
  background: rgba(7, 10, 21, 0.42);
}

.live-details span {
  display: block;
  margin-bottom: 7px;
  color: #667491;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.live-details strong {
  color: #e9efff;
  font-size: 14px;
}

.address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
  padding: 15px 16px;
  border: 1px solid rgba(115, 131, 181, 0.16);
  border-radius: 11px;
  background: rgba(7, 10, 21, 0.62);
}

.address span {
  color: #667491;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.address code {
  color: #dce4fc;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.card-actions .button {
  flex: 1;
  min-height: 47px;
  padding: 0 15px;
}

.server-cs2 .button-primary {
  background: linear-gradient(104deg, #087f9b, #05abb5);
  box-shadow: 0 14px 35px rgba(0, 161, 170, 0.22);
}

.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
  padding: 46px 54px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(94deg, rgba(17, 23, 43, 0.9), rgba(29, 20, 63, 0.57));
}

.community > div {
  max-width: 700px;
}

.community .eyebrow {
  margin-bottom: 12px;
}

.button-discord {
  white-space: nowrap;
  background: #5865f2;
  box-shadow: 0 12px 32px rgba(56, 69, 208, 0.31);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 35px;
  color: #62708f;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(64, 240, 165, 0.27);
  border-radius: 10px;
  color: #c9ffee;
  background: #101b1c;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-panel {
    min-height: 400px;
  }

  .server-list {
    grid-template-columns: 1fr;
    max-width: 510px;
  }
}

@media (max-width: 650px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 34px, 1200px);
  }

  .navigation a:not(.nav-discord) {
    display: none;
  }

  .navigation {
    gap: 0;
  }

  .hero {
    min-height: auto;
    padding: 43px 0 62px;
  }

  .hero-actions,
  .card-actions {
    flex-direction: column;
  }

  .hero-tags {
    flex-wrap: wrap;
    gap: 16px 25px;
    margin-top: 38px;
  }

  .hero-panel {
    min-height: 350px;
  }

  .emblem {
    width: 124px;
    height: 124px;
    border-radius: 37px;
  }

  .emblem span {
    font-size: 46px;
  }

  .panel-name {
    margin-top: 45px;
    font-size: 16px;
  }

  .servers {
    padding-bottom: 58px;
  }

  .server-card {
    padding: 22px;
  }

  .address {
    flex-direction: column;
    align-items: flex-start;
  }

  .community {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 45px;
    padding: 32px 25px;
  }

  .site-footer {
    flex-direction: column;
    gap: 15px;
  }
}
