:root {
  --cyan: #11b5d6;
  --cyan-bright: #22c7e8;
  --cyan-dark: #087e95;
  --black: #050708;
  --surface: #0a0d0f;
  --surface-2: #101416;
  --surface-3: #161b1e;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f6f6;
  --muted: #8e989d;
  --success: #52d273;
  --header-height: 58px;
  --container: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--cyan-dark) var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--black);
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #001116;
  background: var(--cyan-bright);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(49, 46, 35, 0.96);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(5, 7, 8, 0.95);
  backdrop-filter: blur(12px);
  animation: slide-header 220ms ease;
}

@keyframes slide-header {
  from { transform: translateY(-100%); }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.4px;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.logo-mark {
  width: 34px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cyan);
  color: var(--cyan-bright);
  font-size: 11px;
  font-style: italic;
  line-height: 1;
  transform: skewX(-8deg);
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 31px;
}

.main-nav a {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.83);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--cyan);
  transition: left 160ms ease, right 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
  left: 0;
}

.auth-nav-button {
  min-width: 78px;
  height: 32px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(34, 199, 232, 0.52);
  color: #fff;
  background: rgba(17, 181, 214, 0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease;
}

.auth-nav-button:hover,
.auth-nav-button:focus-visible {
  border-color: var(--cyan-bright);
  background: var(--cyan);
}

.auth-nav-icon {
  color: var(--cyan-bright);
  font-size: 15px;
  line-height: 1;
  transform: rotate(180deg);
}

.auth-nav-button:hover .auth-nav-icon {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  margin: 5px 0;
  background: #fff;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  position: relative;
  min-height: 515px;
  overflow: hidden;
  background: #16110b url("images/hero-car.png") center 55% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66) 0%, transparent 35%, rgba(0, 0, 0, 0.06) 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 515px;
  padding: 52px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 310px;
  align-items: start;
  gap: 80px;
}

.hero-copy {
  max-width: 625px;
  padding-top: 8px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--cyan-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.online-dot,
.status-light {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(82, 210, 115, 0.12), 0 0 12px rgba(82, 210, 115, 0.7);
}

.status-light.checking {
  background: #e8b44b;
  box-shadow: 0 0 0 4px rgba(232, 180, 75, 0.12), 0 0 12px rgba(232, 180, 75, 0.55);
}

.status-light.offline {
  background: #ef5963;
  box-shadow: 0 0 0 4px rgba(239, 89, 99, 0.12), 0 0 12px rgba(239, 89, 99, 0.55);
}

.status-light.stale {
  background: #e8b44b;
  box-shadow: 0 0 0 4px rgba(232, 180, 75, 0.12), 0 0 12px rgba(232, 180, 75, 0.55);
}

.ai-mark {
  min-width: 25px;
  height: 19px;
  margin-right: 8px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--cyan-bright);
  color: #001116;
  background: var(--cyan-bright);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(17, 181, 214, 0.3);
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -2.1px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 1px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.7px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 8px 24px rgba(17, 181, 214, 0.2);
}

.button-primary:hover {
  background: var(--cyan-bright);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

.button-ghost:hover {
  border-color: var(--cyan-bright);
  background: rgba(0, 0, 0, 0.38);
}

.server-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 10, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
}

.server-card-title {
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 29, 26, 0.82);
  font-size: 16px;
}

.ping {
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.status-body {
  padding: 13px 22px 7px;
}

.status-row {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #c6cccf;
  font-size: 11px;
}

.status-row strong {
  color: #fff;
  font-weight: 650;
  text-align: right;
}

.capacity {
  height: 3px;
  margin-top: -2px;
  background: rgba(255, 255, 255, 0.1);
}

.capacity span {
  height: 100%;
  display: block;
  background: var(--cyan);
  transition: width 400ms ease;
}

.server-card-actions {
  padding: 15px 22px 20px;
  display: grid;
  gap: 9px;
}

.full-info {
  width: 100%;
  height: 43px;
  border: 0;
  color: #fff;
  background: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease;
}

.full-info:hover {
  background: var(--cyan-bright);
}

.full-info-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 7, 8, 0.64);
}

.full-info-secondary:hover {
  border-color: var(--cyan);
  background: rgba(17, 181, 214, 0.12);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  left: 50%;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 9px;
  width: 2px;
  height: 6px;
  background: var(--cyan-bright);
  animation: scroll-dot 1.8s infinite;
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(11px); }
}

.section {
  padding: 92px 0;
  scroll-margin-top: var(--header-height);
}

.about-section {
  background:
    radial-gradient(circle at 50% 20%, rgba(17, 181, 214, 0.06), transparent 30%),
    #050708;
}

.section-heading {
  margin-bottom: 49px;
}

.section-heading.centered {
  max-width: 770px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.statistics-copy h2,
.join-inner h2 {
  margin: 0;
  color: #f4f6f7;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.section-heading h2 span,
.statistics-copy h2 span,
.join-inner h2 span {
  color: var(--cyan);
}

.section-heading > p:not(.section-kicker) {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.feature-card {
  position: relative;
  min-height: 255px;
  padding: 31px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover {
  border-color: rgba(17, 181, 214, 0.45);
  background: linear-gradient(145deg, rgba(17, 181, 214, 0.08), rgba(255, 255, 255, 0.015));
  transform: translateY(-5px);
}

.feature-number {
  position: absolute;
  top: 17px;
  right: 20px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 34px;
  font-weight: 800;
}

.feature-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 181, 214, 0.35);
  color: var(--cyan-bright);
  background: rgba(17, 181, 214, 0.07);
  font-size: 17px;
}

.feature-card h3 {
  margin: 25px 0 10px;
  font-size: 18px;
  font-weight: 650;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.monitoring-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 65%, rgba(17, 181, 214, 0.025) 65% 100%),
    var(--surface);
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: end;
  gap: 70px;
}

.split-heading > p {
  margin: 0 0 3px !important;
  border-left: 2px solid var(--cyan);
  padding-left: 18px;
}

.monitoring-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.monitor-panel {
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.panel-top {
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #dfe3e5;
  font-size: 13px;
}

.panel-top > span {
  color: var(--muted);
  font-size: 10px;
}

.metric-list {
  padding: 25px 24px 29px;
}

.metric + .metric {
  margin-top: 22px;
}

.metric-label {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  color: #abb3b6;
  font-size: 11px;
}

.metric-label strong {
  color: #e9edee;
}

.metric-track {
  height: 4px;
  background: #242a2d;
}

.metric-track span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--cyan-dark), var(--cyan-bright));
  box-shadow: 0 0 10px rgba(17, 181, 214, 0.23);
  transition: width 400ms ease;
}

.server-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-tile {
  min-height: 126px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.detail-tile > span,
.detail-tile > small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-tile strong {
  margin: 3px 0;
  color: #fff;
  font-size: 31px;
  font-weight: 650;
  line-height: 1.2;
}

.detail-tile strong small {
  margin-left: 3px;
  color: var(--cyan);
  font-size: 12px;
}

.statistics-section {
  background:
    radial-gradient(circle at 78% 52%, rgba(17, 181, 214, 0.07), transparent 28%),
    #050708;
}

.statistics-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 72px;
}

.statistics-copy > p:not(.section-kicker) {
  margin: 17px 0 31px;
  color: var(--muted);
  font-size: 14px;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
}

.stat-list div {
  padding-left: 15px;
  border-left: 2px solid var(--cyan-dark);
}

.stat-list strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.stat-list span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.activity-chart {
  min-height: 370px;
  padding: 30px 31px 25px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 61px, rgba(255, 255, 255, 0.045) 62px),
    var(--surface);
}

.chart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.chart-header span {
  display: block;
  color: #dce1e3;
  font-size: 13px;
}

.chart-header strong {
  color: var(--success);
  font-size: 11px;
}

.chart-header small {
  color: var(--muted);
  font-size: 10px;
}

.bars {
  height: 255px;
  padding-top: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.bar-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}

.bar {
  width: min(32px, 80%);
  min-height: 15px;
  display: block;
  background: rgba(17, 181, 214, 0.3);
  transition: background 150ms ease, box-shadow 150ms ease;
}

.bar-wrap:hover .bar,
.bar.active {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(17, 181, 214, 0.24);
}

.bar-wrap small {
  margin-top: 9px;
  color: #687277;
  font-size: 8px;
}

.live-overview {
  min-height: 360px;
}

.live-overview-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.live-overview-list > div {
  min-height: 57px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}

.live-overview-list span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.live-overview-list strong {
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.server-card.status-offline {
  border-color: rgba(239, 89, 99, 0.28);
}

.server-card.status-stale {
  border-color: rgba(232, 180, 75, 0.3);
}

.news-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c1012;
  transition: transform 180ms ease, border-color 180ms ease;
}

.news-card:hover {
  border-color: rgba(17, 181, 214, 0.35);
  transform: translateY(-4px);
}

.news-visual {
  position: relative;
  height: 150px;
  overflow: hidden;
  background-color: #191d1f;
}

.news-visual::before,
.news-visual::after {
  position: absolute;
  content: "";
}

.news-visual::before {
  inset: 0;
  background:
    linear-gradient(140deg, transparent 42%, rgba(17, 181, 214, 0.12) 42% 48%, transparent 48%),
    linear-gradient(25deg, #252b2e 0 18%, #0c0e0f 18% 50%, #2e251b 50% 100%);
  transform: scale(1.1);
}

.news-visual.race::before {
  background:
    radial-gradient(ellipse at 68% 65%, #bd2224 0 8%, transparent 9%),
    linear-gradient(155deg, #252729 0 36%, #090b0c 36% 58%, #3e3022 58%);
}

.news-visual.police::before {
  background:
    radial-gradient(circle at 40% 40%, rgba(17, 181, 214, 0.7), transparent 8%),
    radial-gradient(circle at 62% 40%, rgba(216, 27, 44, 0.7), transparent 8%),
    linear-gradient(155deg, #1a1f23, #07090a 62%, #252015);
}

.news-visual::after {
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 8, 0.85), transparent 70%);
}

.news-visual span {
  position: absolute;
  z-index: 2;
  bottom: 13px;
  left: 15px;
  padding: 4px 8px;
  color: #fff;
  background: var(--cyan-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-content {
  padding: 20px 20px 23px;
}

.news-content time,
.news-meta {
  display: inline-block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-content h3 {
  margin: 8px 0 9px;
  font-size: 17px;
  line-height: 1.4;
}

.news-content p {
  min-height: 61px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.news-content a {
  color: var(--cyan-bright);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content a span {
  margin-left: 6px;
  transition: margin 150ms ease;
}

.news-content a:hover span {
  margin-left: 11px;
}

.join-section {
  position: relative;
  overflow: hidden;
  padding: 105px 0;
  border-top: 1px solid rgba(17, 181, 214, 0.14);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(5, 7, 8, 0.72)),
    url("images/hero-car.png") center 58% / cover;
}

.join-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: rgba(17, 181, 214, 0.08);
  filter: blur(100px);
  transform: translate(-50%, -50%);
}

.join-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
}

.join-inner > p:not(.section-kicker) {
  max-width: 580px;
  margin: 15px auto 27px;
  color: #a9b0b3;
  font-size: 14px;
}

.connect-box {
  max-width: 490px;
  min-height: 66px;
  margin: 0 auto 18px;
  padding: 9px 10px 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 5, 6, 0.75);
}

.connect-box div {
  text-align: left;
}

.connect-box small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.5px;
}

.connect-box strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.connect-box button {
  min-width: 96px;
  height: 44px;
  border: 0;
  color: #fff;
  background: var(--cyan);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.community-links {
  display: flex;
  justify-content: center;
  gap: 11px;
}

.site-footer {
  padding: 35px 0;
  border-top: 1px solid var(--line);
  background: #030405;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 35px;
}

.footer-logo {
  font-size: 17px;
}

.footer-logo .logo-mark {
  width: 30px;
  height: 25px;
  font-size: 9px;
}

.footer-grid > div:first-child p,
.copyright {
  margin: 7px 0 0;
  color: #60696d;
  font-size: 9px;
}

.footer-grid > div:first-child p a,
.server-dialog dd a {
  color: var(--cyan);
  text-decoration: none;
}

.footer-grid > div:first-child p a:hover,
.server-dialog dd a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 22px;
}

.footer-nav a {
  color: #8d969a;
  font-size: 10px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.copyright {
  text-align: right;
}

.server-dialog {
  width: min(460px, calc(100% - 30px));
  padding: 33px;
  border: 1px solid rgba(17, 181, 214, 0.4);
  color: var(--text);
  background: #0b0e10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.auth-dialog {
  width: min(620px, calc(100% - 30px));
  max-height: min(860px, calc(100vh - 30px));
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(17, 181, 214, 0.4);
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(17, 181, 214, 0.11), transparent 32%),
    #090c0e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.auth-dialog .dialog-close {
  z-index: 2;
}

.auth-brand {
  min-height: 71px;
  padding: 0 31px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.auth-brand > div {
  display: flex;
  flex-direction: column;
}

.auth-brand strong {
  font-size: 15px;
}

.auth-brand small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-heading {
  padding: 27px 31px 19px;
}

.auth-heading h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.auth-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-tabs {
  margin: 0 31px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  height: 43px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #788287;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-tabs button.active {
  border-bottom-color: var(--cyan);
  color: #fff;
}

.auth-panel {
  padding: 24px 31px 4px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form > label,
.form-row > label {
  display: grid;
  gap: 6px;
}

.auth-form label > span:first-child,
.form-row label > span:first-child {
  color: #b5bdc0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.45px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: 0;
  color: #fff;
  background: #0f1416;
  font: inherit;
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(17, 181, 214, 0.08);
}

.auth-form input::placeholder {
  color: #596267;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 58px !important;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.check-option {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.check-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--cyan);
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.terms-option {
  margin-top: 1px;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-feedback {
  min-height: 18px;
  margin: 12px 31px 0;
  color: var(--cyan-bright);
  font-size: 11px;
  text-align: center;
}

.auth-feedback.error {
  color: #ff8188;
}

.auth-note {
  margin: 3px 31px 26px;
  color: #596267;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.server-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.server-dialog h2 {
  margin: 0 0 23px;
  font-size: 25px;
}

.server-dialog dl {
  margin: 0 0 25px;
}

.server-dialog dl div {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.server-dialog dt {
  color: var(--muted);
}

.server-dialog dd {
  margin: 0;
  color: #fff;
  font-weight: 650;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  padding: 12px 18px;
  border-left: 3px solid var(--cyan);
  color: #fff;
  background: #151a1d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .main-nav {
    gap: 19px;
  }

  .hero-layout {
    gap: 30px;
    grid-template-columns: 1fr 290px;
  }

  .statistics-layout {
    gap: 38px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  .container {
    width: min(100% - 30px, var(--container));
  }

  .site-header,
  .site-header.scrolled {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  body {
    padding-top: var(--header-height);
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(310px, 88vw);
    height: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 7, 8, 0.98);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    height: 50px;
    display: flex;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .auth-nav-button {
    width: 100%;
    min-height: 44px;
    margin-top: 21px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero,
  .hero-layout {
    min-height: 680px;
  }

  .hero {
    background-position: 39% center;
  }

  .hero-layout {
    padding-top: 57px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .server-card {
    width: min(100%, 390px);
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .feature-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 220px;
  }

  .split-heading,
  .monitoring-grid,
  .statistics-layout {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .split-heading > p {
    max-width: 600px;
  }

  .monitoring-grid {
    gap: 15px;
  }

  .statistics-layout {
    gap: 45px;
  }

  .activity-chart {
    min-height: 335px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .bars {
    gap: 7px;
  }

  .live-overview {
    min-height: auto;
  }

  .news-content p {
    min-height: 0;
  }

  .join-section {
    padding: 79px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }

  .auth-dialog {
    width: min(560px, calc(100% - 20px));
    max-height: calc(100vh - 20px);
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 19px;
  }

  .hero,
  .hero-layout {
    min-height: 705px;
  }

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

  .hero-actions .button,
  .community-links .button {
    width: 100%;
  }

  .server-details {
    grid-template-columns: 1fr;
  }

  .detail-tile {
    min-height: 108px;
  }

  .stat-list {
    grid-template-columns: 1fr;
  }

  .connect-box {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }

  .connect-box div {
    text-align: center;
  }

  .auth-brand,
  .auth-heading,
  .auth-panel {
    padding-right: 21px;
    padding-left: 21px;
  }

  .auth-tabs {
    margin-right: 21px;
    margin-left: 21px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .live-overview-list > div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
  }

  .live-overview-list strong {
    text-align: left;
  }

  .auth-feedback,
  .auth-note {
    margin-right: 21px;
    margin-left: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
