:root {
  color-scheme: dark;
  --bg: #080c12;
  --surface: #10151d;
  --surface-2: #161d27;
  --line: rgba(227, 232, 239, 0.14);
  --text: #f6f8fb;
  --muted: #a9b4c2;
  --soft: #758397;
  --cyan: #48d7ff;
  --green: #6df2a0;
  --amber: #ffcb62;
  --red: #ff5f6d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.74), #080c12 58%),
    url("assets/hero-cloud-gaming.png") center top / cover no-repeat;
  content: "";
}


@supports (background-image: image-set(url("assets/hero-cloud-gaming.webp") type("image/webp"))) {
  body::before {
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.74), #080c12 58%),
      image-set(
        url("assets/hero-cloud-gaming.webp") type("image/webp"),
        url("assets/hero-cloud-gaming.png") type("image/png")
      ) center top / cover no-repeat;
  }
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 64%);
  content: "";
  pointer-events: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--text);
}

.header-action,
.primary-button,
.secondary-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
}

.header-action {
  min-width: 158px;
  padding: 0 18px;
  border: 1px solid rgba(72, 215, 255, 0.5);
  background: rgba(72, 215, 255, 0.1);
  color: #e6fbff;
}

.hero {
  display: flex;
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(84px, 10vw, 150px) clamp(18px, 4vw, 64px) clamp(44px, 8vw, 84px);
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.74) 42%, rgba(8, 12, 18, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.08), #080c12 96%);
}

.hero-copy {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 8.2vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #d5dde7;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.primary-button,
.secondary-button {
  min-width: 196px;
  padding: 0 22px;
}

.primary-button,
.play-button {
  border: 1px solid rgba(72, 215, 255, 0.36);
  background: linear-gradient(110deg, #35d6ff, #1d7bff 58%, #7a5cff);
  box-shadow: 0 18px 42px rgba(29, 123, 255, 0.28);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #eef4fa;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr));
  gap: 1px;
  width: min(650px, 100%);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics div {
  min-height: 92px;
  padding: 16px;
  background: rgba(10, 16, 25, 0.72);
}

.hero-metrics dt {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c1118;
}

.signal-strip div {
  min-height: 118px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-right: 1px solid var(--line);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  font-weight: 900;
}

.signal-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 7vw, 96px) clamp(18px, 4vw, 64px);
  background: rgba(8, 12, 18, 0.9);
}

.section-heading {
  max-width: 890px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 4.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px);
  gap: 14px;
  max-width: 980px;
  margin-bottom: 10px;
}

.search-field,
.select-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(16, 21, 29, 0.94);
  color: var(--text);
  font: inherit;
}


.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 310px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(72, 215, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(9, 14, 22, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.search-suggestions.is-visible {
  display: grid;
  gap: 4px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.suggestion-item small {
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.suggestion-item:hover,
.suggestion-item.is-active {
  background: rgba(72, 215, 255, 0.14);
  color: #e6fbff;
}

.suggestion-item:hover small,
.suggestion-item.is-active small {
  color: #c9f6ff;
}

.search-field input:focus,
.select-field select:focus {
  border-color: rgba(72, 215, 255, 0.74);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1180px;
  margin-bottom: 14px;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.78);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.quick-filter small {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.quick-filter:hover,
.quick-filter.is-active {
  border-color: rgba(72, 215, 255, 0.5);
  background: rgba(72, 215, 255, 0.13);
  color: #e6fbff;
}

.quick-filter.is-active small {
  color: var(--green);
}

.catalog-status {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(220px, 0.28fr) minmax(280px, 0.38fr);
  gap: 14px;
  max-width: 1180px;
  margin-bottom: 24px;
}

.sync-status,
.filter-status,
.favorite-callout {
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.78);
}

.sync-status {
  color: var(--soft);
}

.filter-status {
  border-color: rgba(72, 215, 255, 0.26);
  color: #e6fbff;
  font-weight: 900;
}

.favorite-callout {
  border-color: rgba(109, 242, 160, 0.26);
  color: #e4ffee;
  font-weight: 850;
}

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

.server-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(22, 29, 39, 0.98), rgba(13, 18, 26, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.server-card-featured {
  border-color: rgba(72, 215, 255, 0.48);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(72, 215, 255, 0.18);
}

.server-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.server-chip,
.server-gpu {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.server-chip {
  padding: 0 12px;
  border: 1px solid rgba(72, 215, 255, 0.28);
  color: #c9f6ff;
}

.server-gpu {
  padding: 0 10px;
  background: rgba(109, 242, 160, 0.12);
  color: var(--green);
}

.server-card h3 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.server-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 18px;
}

.server-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.server-badge-accent {
  border-color: rgba(72, 215, 255, 0.38);
  color: #dff8ff;
}

.server-badge-library {
  border-color: rgba(109, 242, 160, 0.28);
  color: #e4ffee;
}

.server-badge-price {
  border-color: rgba(255, 203, 98, 0.3);
  color: #ffe6a8;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: grid;
  gap: 3px;
}

.spec-list span {
  color: var(--soft);
  font-size: 0.88rem;
}

.spec-list strong {
  color: #f2f7fb;
  font-size: 1rem;
}

.games-details {
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.games-details summary {
  cursor: pointer;
  padding: 13px 0;
  color: #e6fbff;
  font-weight: 900;
}

.games-details ul {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.games-details li {
  color: var(--muted);
}

.games-details .matched-game {
  color: #e6fbff;
  font-weight: 900;
}

.games-details .matched-game::marker {
  color: var(--green);
}

.card-footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
}

.price {
  display: block;
  color: #fff;
  font-size: clamp(1.95rem, 2.8vw, 2.7rem);
  font-weight: 850;
  line-height: 1;
}

.favorite-note {
  margin: 8px 0 0;
  color: #d9efe6;
  font-size: 0.9rem;
  font-weight: 800;
}

.play-button {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  color: white;
  text-transform: uppercase;
}

.games-section,
.faq-section {
  background: #0a0f16;
}

.steps-section {
  background: #0f151e;
}

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

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(72, 215, 255, 0.45);
  background: var(--surface-2);
  outline: none;
  transform: translateY(-2px);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card-body {
  display: grid;
  gap: 5px;
  padding: 14px 16px 16px;
}

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

.game-card span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.game-card small {
  color: var(--muted);
}

.game-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.game-filter-button,
.game-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.game-filter-button {
  flex: 1 1 auto;
  padding: 0 10px;
  border: 1px solid rgba(72, 215, 255, 0.34);
  background: rgba(72, 215, 255, 0.1);
  color: #e6fbff;
  cursor: pointer;
}

.game-link {
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

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

.steps article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.92);
}

.steps article {
  min-height: 218px;
  padding: 24px;
}

.steps span {
  display: block;
  margin-bottom: 22px;
  color: var(--amber);
  font-size: 1rem;
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #080c12;
  color: var(--muted);
}

.site-footer div {
  margin-right: auto;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ddf7ff;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .server-grid,
  .games-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: auto;
    padding: 10px 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand small {
    display: none;
  }

  .header-action {
    min-width: auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 0;
    font-size: 0.86rem;
    scrollbar-width: none;
    white-space: nowrap;
  }

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

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  #servers.section {
    padding-top: 38px;
  }

  #servers .section-heading {
    margin-bottom: 18px;
  }

  #servers .section-heading p:not(.eyebrow) {
    display: none;
  }

  .toolbar,
  .catalog-status,
  .server-grid,
  .games-strip,
  .steps,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .toolbar {
    gap: 10px;
    margin-bottom: 10px;
  }

  .search-field,
  .select-field {
    gap: 6px;
  }

  .search-field input,
  .select-field select {
    min-height: 48px;
  }

  .signal-strip div {
    min-height: 96px;
  }

  .quick-filters {
    flex-wrap: nowrap;
    max-width: 100%;
    margin: 0 -18px 10px 0;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .quick-filter {
    flex: 0 0 auto;
    min-height: 36px;
  }

  .catalog-status {
    gap: 8px;
    margin-bottom: 14px;
  }

  .sync-status,
  .filter-status,
  .favorite-callout {
    min-height: auto;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .favorite-callout {
    display: none;
  }

  .server-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3.4rem;
  }

  .hero-actions,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .server-card {
    padding: 20px;
  }

  .server-badges {
    margin-bottom: 16px;
  }

  .games-strip {
    gap: 10px;
  }

  .game-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 128px;
  }

  .game-card img {
    height: 100%;
    min-height: 128px;
    aspect-ratio: auto;
  }

  .game-card-body {
    align-content: center;
    padding: 12px;
  }

  .game-card span {
    font-size: 0.95rem;
  }

  .game-card-actions {
    margin-top: 6px;
  }

  .game-filter-button,
  .game-link {
    min-height: 32px;
    font-size: 0.76rem;
  }

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

  .site-footer div {
    margin-right: 0;
  }
}
