:root {
  --bg: #02101e;
  --bg-soft: rgba(6, 22, 42, 0.74);
  --panel: rgba(8, 31, 58, 0.72);
  --panel-strong: rgba(8, 40, 76, 0.92);
  --line: rgba(102, 232, 255, 0.18);
  --line-strong: rgba(102, 232, 255, 0.34);
  --text: #f1f9ff;
  --muted: #9cb8d6;
  --blue: #66e9ff;
  --blue-strong: #2ebdff;
  --blue-soft: rgba(96, 234, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --sidebar-width: 336px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #020916;
  background:
    radial-gradient(circle at top left, rgba(77, 241, 255, 0.14), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(53, 159, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #031121 0%, #020916 100%);
  background-attachment: scroll;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background-color: #020916;
  background:
    radial-gradient(circle at top left, rgba(77, 241, 255, 0.14), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(53, 159, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #031121 0%, #020916 100%);
  background-attachment: scroll;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(102, 232, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 232, 255, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(18px) saturate(132%) brightness(1.04);
  opacity: 0.82;
  transition:
    filter 260ms ease,
    opacity 260ms ease;
}

.ambient-orbs.is-flash {
  filter: blur(18px) saturate(158%) brightness(1.14);
  opacity: 0.94;
}

.ambient-orbs.is-flash .orb {
  opacity: min(1, calc(var(--orb-opacity, 0.68) + 0.18));
  filter: blur(var(--orb-blur, 18px)) saturate(148%) brightness(1.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -18px 32px rgba(14, 58, 112, 0.16),
    0 0 48px rgba(92, 255, 236, 0.18),
    0 0 140px rgba(39, 162, 255, 0.16);
}

.orb {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.9), rgba(224, 251, 255, 0.52) 14%, rgba(92, 255, 236, 0.3) 30%, rgba(38, 188, 255, 0.24) 46%, rgba(20, 86, 214, 0.14) 60%, rgba(7, 26, 48, 0.02) 74%, transparent 84%),
    radial-gradient(circle at 66% 68%, rgba(52, 246, 234, 0.18), transparent 44%),
    radial-gradient(circle at 74% 34%, rgba(66, 155, 255, 0.18), transparent 52%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -18px 32px rgba(14, 58, 112, 0.12),
    0 0 42px rgba(92, 255, 236, 0.12),
    0 0 120px rgba(39, 162, 255, 0.12);
  filter: blur(var(--orb-blur, 18px)) saturate(122%) brightness(1.12);
  opacity: var(--orb-opacity, 0.68);
  animation:
    orb-float 24s ease-in-out infinite,
    orb-pulse 10s ease-in-out infinite;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb::before {
  inset: 10%;
  border: 1px solid rgba(168, 255, 246, 0.06);
  filter: blur(8px);
}

.orb::after {
  width: 34%;
  height: 34%;
  top: 10%;
  left: 14%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.84), rgba(188, 255, 247, 0.12) 60%, transparent 74%);
  filter: blur(14px);
  opacity: 0.88;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -126px;
  left: -118px;
  --orb-blur: 28px;
  --orb-opacity: 0.62;
  animation-duration: 24s, 8s;
}

.orb-2 {
  width: 132px;
  height: 132px;
  top: 118px;
  left: 238px;
  --orb-blur: 18px;
  --orb-opacity: 0.62;
  animation-duration: 16s, 7s;
  animation-delay: -4s, -2s;
}

.orb-3 {
  width: 90px;
  height: 90px;
  top: 348px;
  left: 82px;
  --orb-blur: 14px;
  --orb-opacity: 0.56;
  animation-duration: 14s, 6s;
  animation-delay: -6s, -1.5s;
}

.orb-4 {
  width: 380px;
  height: 380px;
  top: -168px;
  right: -142px;
  --orb-blur: 34px;
  --orb-opacity: 0.6;
  animation-duration: 22s, 9s;
  animation-delay: -3s, -4s;
}

.orb-5 {
  width: 188px;
  height: 188px;
  top: 292px;
  right: 118px;
  --orb-blur: 20px;
  --orb-opacity: 0.62;
  animation-duration: 20s, 8s;
  animation-delay: -7s, -2.5s;
}

.orb-6 {
  width: 108px;
  height: 108px;
  top: 536px;
  right: 34px;
  --orb-blur: 16px;
  --orb-opacity: 0.54;
  animation-duration: 15s, 7s;
  animation-delay: -8s, -3s;
}

.orb-7 {
  width: 182px;
  height: 182px;
  top: 68%;
  left: 6%;
  --orb-blur: 22px;
  --orb-opacity: 0.58;
  animation-duration: 19s, 8s;
  animation-delay: -5s, -1s;
}

.orb-8 {
  width: 74px;
  height: 74px;
  top: 86%;
  left: 24%;
  --orb-blur: 12px;
  --orb-opacity: 0.5;
  animation-duration: 13s, 6s;
  animation-delay: -10s, -2s;
}

.orb-9 {
  width: 338px;
  height: 338px;
  top: 88%;
  right: -46px;
  --orb-blur: 30px;
  --orb-opacity: 0.56;
  animation-duration: 21s, 9s;
  animation-delay: -9s, -3.5s;
}

.orb-10 {
  width: 126px;
  height: 126px;
  top: 63%;
  right: 18%;
  --orb-blur: 18px;
  --orb-opacity: 0.5;
  animation-duration: 17s, 7s;
  animation-delay: -11s, -2.5s;
}

.orb-11 {
  width: 66px;
  height: 66px;
  top: 22%;
  right: 46%;
  --orb-blur: 10px;
  --orb-opacity: 0.44;
  animation-duration: 12s, 6s;
  animation-delay: -3s, -2s;
}

.orb-12 {
  width: 244px;
  height: 244px;
  top: 46%;
  left: 38%;
  --orb-blur: 24px;
  --orb-opacity: 0.34;
  animation-duration: 23s, 8s;
  animation-delay: -12s, -4s;
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 32px;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 18px 0 56px;
  z-index: 1;
}

.mobile-toolbar,
.mobile-overlay,
.sidebar-close {
  display: none;
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(8, 31, 58, 0.72), rgba(4, 18, 34, 0.62));
  box-shadow: var(--shadow);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.sidebar-lang {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0;
  padding: 2px;
}

.sidebar-lang .lang-button {
  min-width: 38px;
  height: 25px;
  padding: 0 9px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(136, 241, 255, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(104, 248, 255, 0.22), transparent 58%),
    linear-gradient(135deg, rgba(39, 170, 255, 0.96), rgba(72, 244, 230, 0.82));
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(31, 168, 255, 0.28);
  transform-origin: center;
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(116, 243, 255, 0.18);
  border-radius: 999px;
  transform: rotate(28deg);
}

.brand-mark::after {
  content: none;
}

.brand-mark.is-flash {
  transform: scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 22px rgba(92, 240, 255, 0.42),
    0 14px 30px rgba(31, 168, 255, 0.34);
  filter: saturate(1.18) brightness(1.16);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-copy small,
.sidebar-note span,
.section-kicker,
.card-label,
.route-badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: none;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin: 30px 0 0;
}

.side-nav a {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 52px;
  padding: 12px 14px;
  padding-right: 34px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: 180ms ease;
}

.side-nav a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(102, 232, 255, 0.26);
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(96, 234, 255, 0.08);
}

.side-nav a.active::after {
  border-color: rgba(102, 232, 255, 0.5);
  background: #78f4ff;
  box-shadow: 0 0 16px rgba(120, 244, 255, 0.92);
}

.hero-text,
.section-head p,
.step-card p,
.info-card p,
.setup-card p,
.tip-strip {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.content {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.hero,
.guide-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(8, 31, 58, 0.68), rgba(4, 18, 34, 0.58)),
    linear-gradient(135deg, rgba(96, 234, 255, 0.06), transparent 50%);
  box-shadow: var(--shadow);
}

.hero::after,
.guide-section::after {
  content: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 44px;
}

.hero-copy {
  min-width: 0;
  max-width: none;
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-eyebrow {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.74rem;
  color: var(--blue);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(102, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 31, 58, 0.58);
}

.lang-button {
  min-width: 56px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.lang-button.active {
  background: linear-gradient(135deg, rgba(39, 170, 255, 0.96), rgba(74, 244, 230, 0.78));
  color: #f8fbff;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(102, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 31, 58, 0.76);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-pill-muted {
  margin-bottom: 18px;
  background: rgba(5, 20, 38, 0.72);
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 650;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 0.97;
}

.hero-title {
  max-width: 8ch;
  font-size: clamp(2.4rem, 4vw, 3.9rem);
  line-height: 0.96;
}

.hero-title span {
  display: block;
}

.hero-title-single {
  max-width: min(100%, 13.5ch);
  white-space: normal;
  font-size: clamp(1.9rem, 3.3vw, 3.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-title-single .hero-title-accent-inline {
  display: inline;
}

@media (min-width: 901px) {
  html[lang="ru"] .hero-title-single {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.8rem, 3vw, 3.15rem);
    text-wrap: auto;
  }
}

.hero-title-accent-inline {
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 253, 255, 0.72), transparent 30%),
    linear-gradient(135deg, rgba(104, 247, 255, 1), rgba(46, 189, 255, 0.96));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(104, 247, 255, 0.18);
}

h2 {
  font-size: clamp(1.62rem, 2.35vw, 2.28rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 600;
}

.hero-text {
  max-width: 56ch;
  margin-top: 20px;
  font-size: 1.06rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  border: 1px solid rgba(132, 241, 255, 0.24);
  background: linear-gradient(135deg, rgba(39, 170, 255, 0.96), rgba(74, 244, 230, 0.82));
  color: #f8fbff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(96, 234, 255, 0.08);
  color: var(--text);
}

.hero-route {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 39, 72, 0.66), rgba(4, 18, 34, 0.56)),
    radial-gradient(circle at bottom right, rgba(92, 248, 239, 0.12), transparent 34%);
}

.route-showcase {
  margin-top: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ef5ff;
  box-shadow: 0 0 18px rgba(126, 245, 255, 0.92);
}

.card-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.route-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-inline li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 16px 20px;
  border: 1px solid rgba(102, 232, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 31, 58, 0.78), rgba(4, 18, 34, 0.68)),
    radial-gradient(circle at top left, rgba(96, 234, 255, 0.06), transparent 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: center;
  line-height: 1.4;
  font-weight: 550;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.route-inline li strong {
  font-weight: 600;
}

.route-inline-accent {
  justify-content: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(236, 252, 255, 0.18), transparent 18%),
    radial-gradient(circle at 78% 50%, rgba(92, 248, 239, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(35, 167, 255, 0.98), rgba(72, 244, 230, 0.84));
  border-color: rgba(136, 241, 255, 0.24);
  color: #eff8ff;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 34px rgba(34, 170, 255, 0.18);
}

.route-inline-accent::before {
  content: none;
}

.route-inline li::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 700;
}

.route-inline li:last-child::after {
  content: none;
}

.route-badge {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.72rem;
}

.guide-section {
  padding: 40px;
}

.compact {
  padding-top: 34px;
  padding-bottom: 34px;
}

.section-head {
  max-width: 760px;
}

.section-head h2,
.info-card h3,
.setup-card h3,
.credentials-panel h3 {
  max-width: 100%;
}

.section-head p {
  margin-top: 16px;
  max-width: 64ch;
  overflow-wrap: anywhere;
}

.choice-strip {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(102, 232, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10, 39, 72, 0.66), rgba(4, 18, 34, 0.56)),
    linear-gradient(135deg, rgba(96, 234, 255, 0.06), transparent 55%);
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

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

.choice-strip code {
  color: var(--text);
  font-family: "SFMono-Regular", "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.step-card {
  position: relative;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 22, 40, 0.54);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 232, 255, 0.22);
  background: rgba(7, 25, 46, 0.62);
}

.step-card.highlighted {
  border-color: rgba(104, 232, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(10, 45, 83, 0.66), rgba(5, 21, 39, 0.56)),
    linear-gradient(135deg, rgba(96, 234, 255, 0.06), transparent 55%);
}

.step-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.step-card h3 {
  margin-bottom: 10px;
}

.info-grid,
.stack-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.info-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.info-card,
.setup-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 22, 40, 0.62);
}

.info-card h3,
.setup-card h3 {
  margin: 0 0 10px;
}

.info-card.wide {
  background:
    linear-gradient(180deg, rgba(10, 39, 72, 0.66), rgba(5, 21, 39, 0.56)),
    linear-gradient(135deg, rgba(96, 234, 255, 0.06), transparent 55%);
}

.flow-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 29, 52, 0.62), rgba(8, 19, 34, 0.56));
}

.flow-node {
  padding: 16px 18px;
  border: 1px solid rgba(102, 232, 255, 0.16);
  border-radius: 18px;
  background: rgba(7, 18, 32, 0.54);
  text-align: center;
  line-height: 1.5;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.flow-node.accent,
.highlighted-panel {
  border-color: rgba(104, 232, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 45, 83, 0.66), rgba(5, 21, 39, 0.56)),
    linear-gradient(135deg, rgba(96, 234, 255, 0.06), transparent 55%);
}

.flow-arrow {
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

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

.stack-grid-bottom {
  margin-top: 16px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.credentials-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.credential-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.credential-item {
  padding: 16px 18px;
  border: 1px solid rgba(102, 232, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 18, 32, 0.5);
}

.credential-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.credential-value {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.command-card {
  margin-top: 28px;
  background:
    linear-gradient(180deg, rgba(10, 39, 72, 0.66), rgba(5, 21, 39, 0.58)),
    linear-gradient(135deg, rgba(96, 234, 255, 0.06), transparent 55%);
}

.code-block-wrap {
  position: relative;
  margin-top: 16px;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-width: 78px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(136, 241, 255, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 26%, rgba(241, 253, 255, 0.28), transparent 24%),
    radial-gradient(circle at 72% 76%, rgba(92, 248, 239, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(39, 170, 255, 0.96), rgba(72, 244, 230, 0.82));
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(31, 168, 255, 0.22);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 220ms ease,
    filter 220ms ease,
    opacity 180ms ease;
}

.info-card p,
.setup-card p,
.tip-strip,
.choice-strip,
.credential-value,
.page-signoff,
.page-signoff-text,
.page-signoff-handle {
  overflow-wrap: anywhere;
}

.section-head strong,
.choice-strip strong,
.info-card strong,
.setup-card strong,
.tip-strip strong,
.flow-node strong,
.credential-value strong,
.page-signoff strong {
  font-weight: 600;
}

.copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 248, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(92, 240, 255, 0.24),
    0 12px 28px rgba(31, 168, 255, 0.26);
}

.copy-button:active,
.copy-button.is-flash {
  transform: translateY(0) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 22px rgba(92, 240, 255, 0.42),
    0 14px 30px rgba(31, 168, 255, 0.34);
  filter: saturate(1.18) brightness(1.14);
}

.copy-button:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(102, 232, 255, 0.16),
    0 10px 24px rgba(31, 168, 255, 0.22);
}

.code-block {
  overflow-x: hidden;
  margin: 0;
  padding: 56px 18px 16px;
  border: 1px solid rgba(102, 232, 255, 0.12);
  border-radius: 18px;
  background: #04101d;
  color: #d9eeff;
  font-family: "SFMono-Regular", "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

.code-block code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tip-strip {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 30, 54, 0.48);
}

.page-signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 0;
  color: rgba(212, 227, 245, 0.56);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.page-signoff-handle {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 180ms ease;
}

.page-signoff-handle:hover {
  opacity: 0.86;
}

@keyframes orb-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  25% {
    transform: translate3d(34px, -42px, 0) scale(1.08);
  }

  50% {
    transform: translate3d(-46px, 28px, 0) scale(0.95);
  }

  75% {
    transform: translate3d(28px, 44px, 0) scale(1.07);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes orb-pulse {
  0%,
  100% {
    opacity: 0.74;
  }

  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  html,
  body {
    background-color: #020916;
    overscroll-behavior-y: none;
  }

  body {
    background-attachment: scroll;
  }

  .ambient-orbs {
    will-change: auto;
  }

  .orb {
    animation: none;
    will-change: auto;
  }

  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    gap: 14px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  }

  .mobile-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    z-index: 20;
    padding: 12px 14px;
    border: 1px solid rgba(102, 232, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8, 31, 58, 0.78), rgba(4, 18, 34, 0.7));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .mobile-menu-button,
  .sidebar-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(102, 232, 255, 0.1);
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(8, 24, 46, 0.92), rgba(5, 16, 31, 0.9)),
      radial-gradient(circle at 50% 38%, rgba(102, 232, 255, 0.05), transparent 48%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 8px 18px rgba(0, 0, 0, 0.16);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-menu-icon {
    width: 15px;
    height: 15px;
    color: rgba(248, 251, 255, 0.98);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    filter: drop-shadow(0 0 8px rgba(102, 232, 255, 0.14));
  }

  .sidebar-close {
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 1.24rem;
    line-height: 1;
    transform: none;
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
  }

  .mobile-brand .brand-mark,
  .sidebar .brand-mark {
    width: 30px;
    height: 30px;
  }

  .mobile-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .mobile-brand-copy strong,
  .sidebar .brand-copy strong {
    font-size: 0.9rem;
    font-weight: 650;
  }

  .mobile-brand-copy small,
  .sidebar .brand-copy small {
    color: var(--muted);
    font-size: 0.82rem;
  }

  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 24;
    background: rgba(2, 8, 18, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    z-index: 26;
    width: min(84vw, 320px);
    max-width: calc(100vw - 20px);
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8, 31, 58, 0.8), rgba(4, 18, 34, 0.72));
    transform: translateX(calc(-100% - 18px));
    transition: transform 220ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  body.menu-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .side-nav {
    gap: 4px;
    margin: 18px 0 0;
  }

  .sidebar-header {
    position: relative;
    display: block;
    padding-right: 48px;
  }

  .sidebar-brand-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sidebar .brand {
    width: 100%;
    align-items: flex-start;
  }

  .sidebar .brand-copy {
    max-width: 112px;
  }

  .sidebar .brand-copy strong {
    line-height: 1.02;
  }

  .sidebar-lang {
    align-self: flex-start;
    margin-left: 0;
  }

  .sidebar-lang .lang-button {
    min-width: 36px;
    height: 24px;
    padding: 0 8px;
    font-size: 0.6rem;
  }

  .sidebar-close {
    position: absolute;
    top: 0;
    right: 0;
  }

  .side-nav a {
    padding: 11px 13px;
    padding-right: 32px;
    border-radius: 12px;
    font-size: 0.94rem;
    line-height: 1.35;
    min-height: 50px;
  }

  .side-nav a::after {
    right: 12px;
    width: 9px;
    height: 9px;
  }

  .content {
    gap: 14px;
  }

  .hero,
  .guide-section {
    padding: 20px;
    border-radius: 22px;
    scroll-margin-top: 76px;
  }

  .hero {
    gap: 18px;
  }

  .hero-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .section-kicker,
  .step-number,
  .credential-label {
    font-size: 0.72rem;
  }

  .hero-title-single {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(1.42rem, 5.6vw, 1.82rem);
    line-height: 1;
    text-wrap: nowrap;
  }

  h2 {
    font-size: clamp(1.5rem, 6.4vw, 1.92rem);
  }

  h3 {
    font-size: 0.95rem;
  }

  .hero-text,
  .section-head p,
  .step-card p,
  .info-card p,
  .setup-card p,
  .tip-strip,
  .choice-strip,
  .credential-value,
  .page-signoff {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .lang-switch {
    padding: 3px;
  }

  .lang-button {
    min-width: 50px;
    height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .choice-strip,
  .tip-strip,
  .info-card,
  .setup-card,
  .credentials-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .step-grid,
  .info-grid,
  .credentials-grid,
  .stack-grid,
  .flow-card {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .credentials-grid,
  .stack-grid,
  .step-grid {
    gap: 12px;
    margin-top: 20px;
  }

  .flow-card {
    gap: 10px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 20px;
  }

  .flow-node {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.94rem;
  }

  .flow-arrow {
    font-size: 1.15rem;
    transform: rotate(90deg);
  }

  .route-showcase {
    margin-top: 20px;
  }

  .route-inline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .route-inline li {
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
  }

  .route-inline-accent {
    font-size: 0.88rem;
    letter-spacing: 0.07em;
  }

  .route-inline li::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -12px;
    transform: translateX(50%);
  }

  .command-card,
  .code-block-wrap {
    margin-top: 14px;
  }

  .copy-button {
    top: 10px;
    right: 10px;
    min-width: 66px;
    height: 30px;
    font-size: 0.71rem;
    border-radius: 11px;
  }

  .code-block {
    padding: 48px 14px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    line-height: 1.58;
  }

  .page-signoff {
    padding: 2px 6px 0;
    font-size: 0.82rem;
  }

  .orb-1,
  .orb-4,
  .orb-9 {
    transform: scale(0.8);
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--content-width));
  }

  .mobile-toolbar {
    padding: 10px 12px;
  }

  .mobile-menu-button,
  .sidebar-close {
    width: 34px;
    height: 34px;
  }

  .mobile-brand .brand-mark,
  .sidebar .brand-mark {
    width: 28px;
    height: 28px;
  }

  .hero,
  .guide-section {
    padding: 18px;
    border-radius: 20px;
    scroll-margin-top: 72px;
  }

  .hero-title-single {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(1.26rem, 5.1vw, 1.52rem);
    line-height: 1;
  }

  .section-head p,
  .info-card p,
  .setup-card p,
  .choice-strip,
  .tip-strip {
    line-height: 1.56;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.66rem, 9.2vw, 2.3rem);
  }

  .choice-strip,
  .tip-strip,
  .info-card,
  .setup-card,
  .credentials-panel,
  .flow-card {
    padding: 16px;
  }

  .route-inline li {
    min-height: 68px;
  }

  .page-signoff-sep {
    display: inline;
  }
}
