:root {
  color-scheme: dark;
  --bg: #050706;
  --panel: rgba(9, 14, 12, 0.76);
  --panel-strong: rgba(14, 23, 19, 0.92);
  --text: #f4f8f4;
  --muted: #aebfb6;
  --line: rgba(200, 230, 210, 0.16);
  --green: #53d16f;
  --amber: #f0b84d;
  --blue: #5ea6ff;
  --red: #ff6961;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg) url("./server-home.png") center / cover fixed no-repeat;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.94), rgba(5, 7, 6, 0.62)),
    radial-gradient(circle at 78% 18%, rgba(83, 209, 111, 0.12), transparent 30%);
  pointer-events: none;
}

.hub {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  align-content: center;
  gap: 18px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: end;
  padding-bottom: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 74px;
  line-height: 0.92;
  letter-spacing: 0;
}

.masthead h1 span {
  display: block;
}

.masthead span,
.access-card small,
.service small {
  color: var(--muted);
}

.masthead > div > span {
  display: block;
  max-width: 720px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
}

.access-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.access-card strong,
.access-card span,
.access-card small {
  display: block;
}

.access-card strong {
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}

.access-card span {
  margin-top: 9px;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.access-card small {
  margin-top: 5px;
}

.primary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service,
.utility {
  color: var(--text);
  text-decoration: none;
}

.service {
  min-width: 0;
  min-height: 214px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--panel);
  backdrop-filter: blur(14px);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.service > span {
  min-width: 0;
}

.service-wide {
  grid-column: span 3;
  min-height: 172px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(83, 209, 111, 0.2), rgba(9, 14, 12, 0.82)),
    var(--panel);
}

.service:hover,
.service:focus-visible,
.utility:hover,
.utility:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(83, 209, 111, 0.72);
  background: var(--panel-strong);
  outline: none;
}

.service-icon,
.utility span {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  font-family: "Segoe UI Symbol", "Segoe UI", system-ui, sans-serif;
  font-weight: 850;
}

.service-icon {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.service strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.service small {
  display: block;
  margin-top: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service em {
  width: fit-content;
  display: block;
  margin-top: 20px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.jellyfin .service-icon { color: var(--amber); }
.drive .service-icon { color: var(--green); }
.minecraft .service-icon { color: #8bd46d; }
.uploads .service-icon { color: #ffffff; }
.remote span { color: var(--blue); }
.adguard span { color: #64f08a; }
.status-app span { color: var(--red); }

.utility-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.utility {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.utility span {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.utility strong {
  display: block;
  font-size: 15px;
}

.utility small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.topbar,
.phone {
  position: relative;
  z-index: 1;
}

.phone {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 56px);
  margin: 28px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 12, 10, 0.84), rgba(5, 8, 7, 0.92));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.pill {
  border: 1px solid rgba(83, 209, 111, 0.38);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--green);
  background: rgba(83, 209, 111, 0.1);
}

.topbar a {
  color: var(--text);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 16px;
  align-items: stretch;
  padding: 36px 0 24px;
}

.hero p,
.hero span,
.hero small {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.hero p {
  color: var(--green);
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 4px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-list p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-list strong,
.service-list span {
  display: block;
}

.service-list span {
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .hub {
    width: min(100% - 28px, 680px);
    align-content: start;
    padding: 28px 0;
  }

  .masthead,
  .primary-grid,
  .utility-row,
  .hero {
    grid-template-columns: 1fr;
  }

  .service-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  h1 {
    font-size: 44px;
  }

  .service {
    min-height: 176px;
  }
}
