/* JointWorld — design tokens, header, hero.
   Fonts are system-only on purpose: the CSP blocks third-party stylesheets. */

:root {
  --bg: #171b28;
  --bg-2: #1d2130;
  --card: #232838;
  --card-2: #2a2f41;
  --line: #333a50;
  --text: #ffffff;
  --muted: #8b90a3;
  --muted-2: #6b7186;
  --accent: #f0a020;
  --accent-2: #ffb937;
  --blue: #4c8dff;
  --green: #3ecf8e;
  --red: #ff5f6d;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 78px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- header ------ */

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  min-height: 86px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--card);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 30px);
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 4px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--card-2);
  color: var(--text);
}

.btn-ghost {
  padding: 13px 26px;
  border-radius: var(--radius);
  background: var(--card);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--card-2);
}

/* ------------------------------------------------------------ hero ------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
  padding: 34px 0 0;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  background: linear-gradient(135deg, #2b3350, #1d2130);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 74px);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(12, 14, 22, 0.82) 0%,
    rgba(12, 14, 22, 0.45) 45%,
    rgba(12, 14, 22, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.5;
}

.hero-ip {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.hero-ip button {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.15s ease;
}

.hero-ip button svg {
  width: 17px;
  height: 17px;
}

.hero-ip button:hover {
  color: var(--text);
}

.hero-ip.is-copied button {
  color: var(--green);
}

/* online card */

.online-card {
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 26px 28px;
}

.online-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.online-label {
  font-size: 16px;
  font-weight: 500;
}

.online-label b {
  font-weight: 700;
}

.online-refresh {
  display: inline-flex;
  color: var(--muted);
}

.online-refresh svg {
  width: 18px;
  height: 18px;
}

.online-bar {
  margin-top: 22px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.online-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--text);
  transition: width 0.6s ease;
}

.online-servers {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.online-servers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.online-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.online-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.online-servers li.is-online .online-dot::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18);
}

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

  .hero-banner {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .header-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .hero-ip {
    position: static;
    border-radius: var(--radius);
    margin-top: 22px;
    align-self: flex-start;
  }

  .hero-banner {
    padding-bottom: 28px;
  }
}
