:root {
  color-scheme: dark;
  --background: #0b0c0e;
  --background-soft: #0f1012;
  --surface: #151619;
  --surface-strong: #1a1b1f;
  --border: #2a2c31;
  --border-light: #34363c;
  --text: #f5f5f5;
  --muted: #a6a8ad;
  --muted-dark: #72757c;
  --orange: #ff7900;
  --orange-hover: #ff8a1f;
  --green: #4dcc6f;
  --red: #f05b5b;
  --radius: 12px;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font-synthesis: none;
}

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

svg {
  display: block;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: #0d0e10;
}

.header-inner {
  width: min(var(--page-width), calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: .045em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

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

.brand-m {
  color: var(--text);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  padding: 27px 0 25px;
  color: #d3d4d7;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--orange);
}

.desktop-nav a.active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  border-bottom: 1px solid var(--border);
  background: var(--background-soft);
}

.hero-grid {
  min-height: 610px;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 380px;
  gap: 46px;
  align-items: center;
}

.hero-logo-wrap {
  align-self: center;
}

.hero-logo {
  width: 220px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #111214;
}

.section-label {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(3.3rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy h1 span {
  color: var(--orange);
}

.hero-description {
  max-width: 620px;
  margin: 0 0 28px;
  color: #c4c5c8;
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.button {
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 850;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.button-orange {
  background: var(--orange);
  color: #111214;
}

.button-orange:hover {
  background: var(--orange-hover);
}

.button-outline {
  border-color: var(--orange);
  background: transparent;
}

.button-outline:hover {
  background: var(--orange);
  color: #111214;
}

.hero-note {
  margin: 14px 0 0;
  color: var(--muted-dark);
  font-size: .78rem;
}

.status-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-heading {
  padding: 23px 23px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.status-heading h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -.025em;
}

.status-badge {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-badge.online {
  border-color: rgba(77, 204, 111, .35);
  color: var(--green);
}

.status-badge.offline {
  border-color: rgba(240, 91, 91, .35);
  color: var(--red);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-list {
  padding: 0 23px;
}

.status-row {
  min-height: 68px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-icon {
  color: #e8e8e8;
}

.status-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.status-name {
  color: #d7d8da;
  font-size: .88rem;
  font-weight: 650;
}

.status-row strong {
  font-size: .98rem;
}

.refresh-button {
  width: calc(100% - 46px);
  min-height: 40px;
  margin: 5px 23px 23px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #111214;
  color: #d8d9dc;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.refresh-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: .65;
}

.how-section {
  padding: 76px 0;
  border-bottom: 1px solid var(--border);
}

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

.section-heading h2,
.community-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.045em;
}

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

.step-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  background: var(--surface);
}

.step-card:hover {
  border-color: var(--border-light);
  background: var(--surface-strong);
}

.step-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #111214;
}

.step-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.step-number {
  color: var(--orange);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.step-card h3 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.community-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.community-panel {
  padding: 34px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: var(--surface);
}

.community-panel p:not(.section-label) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 35px 0;
  background: #0d0e10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .7fr 1.2fr;
  gap: 38px;
  align-items: center;
}

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

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.footer-brand strong {
  color: var(--orange);
  font-size: 1.05rem;
  letter-spacing: .045em;
}

.footer-brand strong span {
  color: var(--text);
}

.footer-brand p {
  margin: 5px 0 0;
  color: var(--muted-dark);
  font-size: .78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 19px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-meta {
  display: grid;
  gap: 5px;
  color: var(--muted-dark);
  font-size: .74rem;
  text-align: right;
  line-height: 1.5;
}

.steam-help {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 20px;
  background: rgba(0, 0, 0, .82);
  display: grid;
  place-items: center;
}

.steam-help[hidden] {
  display: none;
}

.steam-help-card {
  position: relative;
  width: min(470px, 100%);
  padding: 30px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--surface);
}

.steam-help-card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  letter-spacing: -.035em;
}

.steam-help-card > p:not(.section-label) {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.steam-help-close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111214;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .hero-logo {
    width: 170px;
  }

  .status-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    place-content: center;
    gap: 4px;
    background: var(--surface);
    cursor: pointer;
  }

  .menu-button span {
    width: 19px;
    height: 2px;
    background: var(--text);
  }

  .mobile-nav {
    padding: 6px 20px 16px;
    border-top: 1px solid var(--border);
    display: none;
    background: #0d0e10;
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    padding: 12px 0;
    color: #d6d7d9;
    text-decoration: none;
    font-weight: 700;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 52px 0;
  }

  .hero-logo-wrap {
    display: none;
  }

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

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

  .community-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .page-width,
  .header-inner {
    width: min(100% - 24px, var(--page-width));
  }

  .header-inner {
    height: 68px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .status-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-panel {
    padding: 25px;
  }

  .step-card {
    padding: 20px;
  }
}
