﻿:root {
  --bg-0: #06080d;
  --bg-1: #111720;
  --bg-2: #1a242f;
  --card: rgba(16, 23, 32, 0.84);
  --card-strong: rgba(10, 16, 23, 0.94);
  --line: rgba(240, 132, 48, 0.3);
  --line-strong: rgba(240, 132, 48, 0.55);
  --text: #f1f4f8;
  --muted: #a9b4c3;
  --brand-orange: #f08430;
  --brand-cyan: #23d0d8;
  --ok: #2fd28f;
  --warn: #ff7a5f;
  --shadow: 0 24px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(240, 132, 48, 0.2), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(35, 208, 216, 0.16), transparent 38%),
    linear-gradient(140deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2));
}

.atmo-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(153, 166, 184, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(153, 166, 184, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
  background-size: 4px 4px;
}

.hero,
main {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 42px));
  margin: 0 auto;
}

.hero {
  padding: 30px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
}

.kicker {
  margin: 0;
  color: var(--brand-cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
}

h1 {
  margin-top: 2px;
  font-size: clamp(2.5rem, 8vw, 4.9rem);
  line-height: 0.9;
}

h1 span {
  color: var(--brand-orange);
}

.subtitle {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  cursor: pointer;
  transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn-solid {
  color: #111315;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(115deg, var(--brand-orange), #ffb268);
}

.btn-outline {
  background: rgba(8, 12, 16, 0.72);
}

.btn-muted {
  background: rgba(255, 255, 255, 0.06);
}

.btn-muted.live-on {
  color: #d8fff7;
  background: linear-gradient(110deg, rgba(35, 208, 216, 0.24), rgba(45, 255, 201, 0.22));
  border-color: rgba(35, 208, 216, 0.55);
}

.meta-strip {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 12, 16, 0.72);
  padding: 11px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.meta-strip strong {
  color: var(--text);
}

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

.server-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(155deg, var(--card), var(--card-strong));
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  animation: card-enter 360ms ease both;
}

.server-card:nth-child(2) {
  animation-delay: 70ms;
}

.server-card:nth-child(3) {
  animation-delay: 140ms;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.server-type {
  margin: 0;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
}

.status-pill {
  border: 1px solid rgba(240, 132, 48, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  color: #f8d3b5;
  font-size: 0.78rem;
  background: rgba(240, 132, 48, 0.1);
}

.status-pill.online {
  border-color: rgba(47, 210, 143, 0.5);
  color: #d3ffe9;
  background: rgba(47, 210, 143, 0.16);
}

.status-pill.offline {
  border-color: rgba(255, 122, 95, 0.5);
  color: #ffd9d2;
  background: rgba(255, 122, 95, 0.14);
}

.server-name {
  font-size: 2rem;
  line-height: 0.95;
}

.server-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.url-block {
  display: grid;
  gap: 4px;
}

.url-block label {
  color: #86a9c7;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.url-block a {
  color: var(--text);
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 1px dashed rgba(169, 213, 255, 0.35);
}

.url-block a:hover {
  color: #ffd6a6;
  border-bottom-color: rgba(255, 202, 139, 0.72);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions .btn {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.actions .btn[disabled] {
  opacity: 0.56;
  cursor: wait;
}

.runtime-note {
  margin: 0;
  font-size: 0.88rem;
  color: #acd7ff;
}

.server-note {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: #96afc8;
}

.notes {
  margin: 22px 0 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(8, 12, 16, 0.73);
}

.notes h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero,
  main {
    width: min(1240px, calc(100% - 24px));
  }

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

  .actions .btn {
    width: 100%;
  }
}
