:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-soft: #11161d;
  --border: #30363d;
  --border-strong: #3d444d;
  --text: #e6edf3;
  --text-soft: #9da7b3;
  --text-muted: #7d8590;
  --accent: #f78166;
  --accent-strong: #ff9678;
  --blue: #2f81f7;
  --green: #3fb950;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 129, 247, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(247, 129, 102, 0.12), transparent 24%),
    linear-gradient(180deg, #0d1117 0%, #0a0f15 100%);
  color: var(--text);
}

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

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

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  min-height: 72px;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.95);
}

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

.brand__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: auto;
}

.brand__text {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tabs__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  padding: 0 16px;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.tabs__link:hover,
.tabs__link.is-active {
  color: var(--text);
}

.tabs__link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background-color 160ms ease;
}

.tabs__link.is-active::after,
.tabs__link:hover::after {
  background: var(--accent);
}

main {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 96px;
}

.hero,
.section {
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 36px;
}

.hero__copy,
.hero__panel,
.card {
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.92), rgba(17, 22, 29, 0.92));
  border: 1px solid rgba(61, 68, 77, 0.92);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 40px;
  border-radius: var(--radius-xl);
}

.eyebrow,
.section__eyebrow,
.hero__panel-label {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.96rem;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(180deg, #ff8f72 0%, #f78166 100%);
  color: #0d1117;
}

.button--secondary {
  background: rgba(47, 129, 247, 0.12);
  border-color: rgba(47, 129, 247, 0.38);
  color: var(--text);
}

.button--secondary:hover {
  background: rgba(47, 129, 247, 0.18);
}

.button--full {
  width: 100%;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.hero__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

.server-badge {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 17, 23, 0.65);
  border: 1px solid rgba(61, 68, 77, 0.9);
}

.server-badge__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.server-badge__value {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.section {
  padding-top: 34px;
}

.section + .section {
  margin-top: 18px;
}

.section__intro {
  margin-bottom: 22px;
}

.section__intro h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section__intro p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.card-grid--downloads {
  align-items: stretch;
}

.card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.card p {
  color: var(--text-soft);
  line-height: 1.7;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(247, 129, 102, 0.14);
  border: 1px solid rgba(247, 129, 102, 0.28);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill--muted {
  background: rgba(157, 167, 179, 0.08);
  border-color: rgba(157, 167, 179, 0.16);
  color: var(--text-soft);
}

.pill--accent {
  background: rgba(63, 185, 80, 0.12);
  border-color: rgba(63, 185, 80, 0.24);
  color: #7ee787;
}

.notice {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(47, 129, 247, 0.1);
  border: 1px solid rgba(47, 129, 247, 0.22);
  color: var(--text-soft);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.guide-card {
  min-height: 100%;
}

.steps {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.8;
}

.steps li + li {
  margin-top: 14px;
}

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

.issues {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.issue {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(61, 68, 77, 0.86);
  background: rgba(13, 17, 23, 0.55);
}

.issue h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.issue p {
  margin: 0;
}

.placeholder-card {
  position: relative;
  overflow: hidden;
  padding-top: 58px;
}

.placeholder-card__badge {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card--contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.text-link {
  color: #7ee787;
  font-weight: 600;
  word-break: break-word;
}

.text-link:hover {
  text-decoration: underline;
}

@media (max-width: 1040px) {
  .hero,
  .guide-layout,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px 0;
  }

  .tabs {
    width: calc(100% + 12px);
    margin-left: -6px;
  }

  .tabs__link {
    min-height: 58px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  main {
    width: min(100% - 24px, var(--content-width));
    padding-top: 20px;
  }

  .hero__copy,
  .hero__panel,
  .card {
    padding: 20px;
  }

  .hero {
    padding-top: 8px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section__intro h2 {
    font-size: 1.8rem;
  }
}
