:root {
  --bg: #0b0f12;
  --panel-accent: rgba(164, 93, 179, 0.88);
  --panel-dark: rgba(69, 65, 63, 0.85);
  --panel-soft: rgba(255, 248, 251, 0.08);
  --text: #fff8fb;
  --muted: rgba(255, 248, 251, 0.78);
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 50px rgba(36, 17, 35, 0.24);
  --radius: 28px;
}

html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: blur(6px) saturate(1.05);
  opacity: 0.98;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(36, 22, 33, 0.42), rgba(36, 22, 33, 0.54)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at bottom, rgba(153, 102, 204, 0.16), transparent 30%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px 20px 32px;
  isolation: isolate;
}

.nav-wrap {
  position: sticky;
  top: 18px;
  z-index: 5;
  width: min(1180px, 100%);
  margin: 0 auto 36px;
  padding: 12px 18px;
  border-radius: 28px;
  background: var(--panel-dark);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-accent);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  line-height: 1;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

.page {
  width: min(1040px, 100%);
  margin: 0 auto 64px;
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  padding: 6px 0 0;
}

.hero-copy {
  padding: 0;
}

.hero-title {
  margin: 22px 0 16px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
  color: #ffd7f6;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.75;
}

.update-info-resource {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.update-info-resource span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 248, 251, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card,
.card,
.commands-block {
  position: relative;
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero-card::before,
.card::before,
.commands-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 251, 0.07), transparent 56%, rgba(164, 93, 179, 0.08));
  z-index: 0;
}

.hero-card > *,
.card > *,
.commands-block > * {
  position: relative;
  z-index: 1;
}

.hero-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  width: 100%;
}

.hero-card-header,
.hero-card-footer {
  padding: 22px 24px;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  margin: 0 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 11, 18, 0.12), rgba(19, 11, 18, 0.7)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 45%);
}

.hero-visual-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  font-size: 1.34rem;
  font-weight: 800;
}

.hero-visual-label span {
  color: rgba(255, 248, 251, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
}

.section {
  display: grid;
  gap: 22px;
  margin-bottom: 0;
}

.section-header {
  display: grid;
  gap: 8px;
}

.section-title,
.commands-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.section-subtitle,
.commands-note,
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.card {
  padding: 24px 24px 22px;
}

.card-label {
  margin-bottom: 12px;
  font-size: 1.28rem;
  font-weight: 800;
}

.card-desc {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.ip-list,
.resource-links,
.steps-grid {
  display: grid;
  gap: 14px;
}

.card-link {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  word-break: break-word;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.copy-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.copy-target {
  text-align: left;
  cursor: pointer;
}

.copy-button {
  min-width: 136px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(164, 93, 179, 0.5);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.copy-button:hover {
  transform: translateY(-2px);
  background: rgba(164, 93, 179, 0.66);
  border-color: rgba(255, 255, 255, 0.22);
}

.copy-item.is-copied .copy-target,
.copy-item.is-copied .copy-button {
  background: rgba(122, 197, 143, 0.24);
  border-color: rgba(167, 255, 191, 0.34);
}

.commands-block {
  padding: 26px;
}

.commands-header {
  margin-bottom: 20px;
}

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

.step-card {
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 248, 251, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(164, 93, 179, 0.32);
  color: #fff8fb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

@media (max-width: 920px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    position: static;
    transform: none;
    text-align: center;
  }

  .hero,
  .card-grid-2x2,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 14px;
  }

  .nav-wrap,
  .hero-card,
  .card,
  .commands-block {
    border-radius: 22px;
  }

  .hero-card-header,
  .hero-card-footer {
    padding-inline: 18px;
  }

  .hero-visual {
    margin-inline: 18px;
    min-height: 280px;
  }

  .card,
  .commands-block {
    padding: 20px 18px;
  }

  .copy-item {
    grid-template-columns: 1fr;
  }

  .copy-button {
    min-width: 0;
  }
}
