/* izqut 官网 — 微信官方绿 #07C160 · 高级简约 */

:root {
  --wx-green: #07c160;
  --wx-green-hover: #06ad56;
  --wx-green-dim: #059c4f;
  --wx-glow: rgba(7, 193, 96, 0.35);

  --bg-page: #f3f7f4;
  --bg-elevated: #ffffff;
  --bg-hero: #0a1210;
  --bg-dev: linear-gradient(145deg, #0c1814 0%, #12241c 48%, #0e1c17 100%);

  --text: #0e1612;
  --text-muted: #5c6b64;
  --text-on-dark: #e8f3ec;
  --text-on-dark-muted: #9cb0a4;

  --border: rgba(12, 40, 26, 0.12);
  --border-light: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 4px 24px rgba(10, 38, 22, 0.06);
  --shadow-lift: 0 20px 50px rgba(8, 28, 18, 0.12);

  --font: "Inter", "Noto Sans SC", "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-ug: "UkijTuz", "Noto Sans Arabic", "Noto Sans SC", "Inter", "Microsoft YaHei", system-ui, sans-serif;

  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang="ug"] body,
body.is-rtl {
  font-family: var(--font-ug);
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* --- 背景纹理 --- */
.page-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(7, 193, 96, 0.08), transparent),
    var(--bg-page);
}

.page-bg--subtle {
  background: var(--bg-page);
}

body > *:not(.page-bg) {
  position: relative;
  z-index: 1;
}

/* --- 图标：失败时用类切换，避免父级结构不一致 --- */
[data-app-icon].is-hidden {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

[data-icon-fallback] {
  display: none;
  place-items: center;
}

[data-icon-fallback].is-visible {
  display: grid;
}

/* --- Header --- */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
}

.shell-header--docs {
  background: rgba(243, 247, 244, 0.82);
}

.shell-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.logo-mark__ring {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wx-green), rgba(7, 193, 96, 0.35));
  opacity: 0.35;
  filter: blur(0);
}

.logo-mark__img {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.logo-mark__fallback {
  position: absolute;
  z-index: 2;
  inset: 2px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--wx-green), var(--wx-green-dim));
}

.logo-type--footer {
  font-size: 1rem;
}

.shell-nav {
  display: flex;
  gap: 28px;
  flex: auto;
  justify-content: flex-end;
  padding: 0 10px;
}

.shell-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d4336;
  transition: color 0.15s ease;
}

.shell-nav a:hover {
  color: var(--wx-green);
}

.shell-header__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.shell-header__actions--docs {
  margin-inline-start: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(12, 40, 26, 0.06);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0;
  font-weight: 700;
  padding: 8px 11px;
  min-width: 38px;
  min-height: 34px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch__icon {
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.is-active {
  background: var(--bg-elevated);
  color: var(--wx-green-dim);
  box-shadow: var(--shadow-soft);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--wx-green);
  color: #fff;
  box-shadow: 0 8px 24px var(--wx-glow);
}

.btn--primary:hover {
  background: var(--wx-green-hover);
}

.btn--ghost {
  color: #07c160;
  border-color: rgb(7 193 96);
}

.hero .btn--ghost {
  color: var(--text-on-dark);
}

.btn--outline {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.btn--outline:hover {
  border-color: rgba(7, 193, 96, 0.35);
  color: var(--wx-green-dim);
}

.btn--block {
  width: 100%;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 120px) 0 clamp(72px, 12vw, 128px);
  background: var(--bg-hero);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(7, 193, 96, 0.15), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(7, 193, 96, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(10, 18, 16, 0) 0%, rgba(10, 18, 16, 0.85) 100%);
  pointer-events: none;
}

.hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a8d4b8;
  margin-bottom: 20px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wx-green);
  box-shadow: 0 0 16px var(--wx-glow);
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  display: inline;
  background: linear-gradient(105deg, #fff 0%, #7ee4af 45%, var(--wx-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  color: var(--text-on-dark-muted);
  max-width: 34rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero .btn--outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(160, 216, 180, 0.35);
  box-shadow: none;
}

.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(7, 193, 96, 0.45);
  color: #fff;
}

.hero__metrics {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric__val {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.metric__lab {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}

/* Hero device */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__device {
  position: relative;
  width: min(100%, 380px);
}

.hero__device-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--wx-glow) 0%, transparent 65%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}

.hero__device-frame {
  position: relative;
  aspect-ratio: 1;
  max-width: 280px;
  margin-inline: auto;
  border-radius: 36px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.hero__device-ring {
  position: absolute;
  inset: 12%;
  border-radius: 28px;
  border: 1px dashed rgba(7, 193, 96, 0.25);
  pointer-events: none;
}

.hero__device-icon {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero__device-fallback {
  position: absolute;
  z-index: 2;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(145deg, var(--wx-green), #046c3a);
  display: none;
  place-items: center;
}

.hero__device-fallback.is-visible {
  display: grid;
}

.hero__chips {
  position: absolute;
  inset: auto 0 -8px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 22, 18, 0.85);
  border: 1px solid rgba(7, 193, 96, 0.3);
  color: #bfe8cf;
  animation: chip-float 3s ease-in-out infinite;
}

.chip--delay {
  animation-delay: 0.6s;
}

.chip--delay2 {
  animation-delay: 1.2s;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(4rpx);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --- Sections --- */
.section {
  padding: clamp(72px, 10vw, 112px) 0;
}

.section--features {
  background: var(--bg-page);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wx-green-dim);
}

.eyebrow--on-dark {
  color: #7dd4a3;
}

.section-head {
  max-width: 560px;
  margin-bottom: 40px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  max-width: 520px;
}

.section-head__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Bento --- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  grid-column: span 4;
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wx-green), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bento-card:hover {
  border-color: rgba(7, 193, 96, 0.28);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card--wide {
  grid-column: span 8;
}

.bento-card--alt {
  background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 60%);
}

.bento-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wx-green-dim);
  background: rgba(7, 193, 96, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.bento-card__title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.bento-card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 1.125rem;
  color: var(--wx-green);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bento-card:hover .bento-card__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

html[lang="ug"] .bento-card__arrow,
body.is-rtl .bento-card__arrow {
  right: auto;
  left: 18px;
  transform: scaleX(-1);
}

html[lang="ug"] .bento-card:hover .bento-card__arrow,
body.is-rtl .bento-card:hover .bento-card__arrow {
  opacity: 1;
  transform: scaleX(-1) translate(-2px, -2px);
}

/* --- Developer --- */
.section--developer {
  padding-block: 0 0;
  background: var(--bg-page);
}

.dev-panel {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--bg-dev);
  box-shadow: 0 32px 80px rgba(8, 28, 18, 0.2);
}

.dev-panel__visual {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background: radial-gradient(circle at 40% 30%, rgba(7, 193, 96, 0.2), transparent 55%);
  border-right: 1px solid var(--border-light);
}

.dev-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
}

.dev-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(7, 193, 96, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dev-avatar-fallback {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--wx-green), #044a28);
  display: none;
  place-items: center;
}

.dev-avatar-fallback.is-visible {
  display: grid;
}

.dev-panel__body {
  padding: clamp(36px, 6vw, 56px);
  color: var(--text-on-dark);
}

.dev-panel__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
}

.dev-panel__name {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #9ed9b5;
}

.dev-panel__bio {
  margin: 0 0 24px;
  color: var(--text-on-dark-muted);
  max-width: 36rem;
}

.dev-panel__wx {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
}

.dev-panel__wx-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7dd4a3;
}

.dev-panel__wx-val {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Download --- */
.section--download {
  background: var(--bg-page);
}

.dl-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}

.dl-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dl-card--primary {
  border-color: rgba(7, 193, 96, 0.35);
  box-shadow: 0 16px 48px rgba(7, 193, 96, 0.12);
  background: linear-gradient(180deg, #f9fdfb 0%, #ffffff 100%);
}

.dl-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--wx-green);
  background: rgba(7, 193, 96, 0.12);
  margin-bottom: 18px;
}

.dl-card__icon--muted {
  color: #4d6b5c;
  background: rgba(12, 40, 26, 0.06);
}

.dl-card__ifi {
  display: inline-block;
  font-size: 26px;
  line-height: 1;
}

.dl-card__icon--win .dl-card__os-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.dl-card__btn--soon {
  opacity: 0.72;
  cursor: not-allowed;
}

.dl-card__btn--soon:disabled {
  pointer-events: none;
}

/* Windows 下载教程弹层：关闭时仅占位样式；打开 [open] 后再 fixed 居中视口 */
.dl-tutorial-dialog {
  border: none;
  border-radius: var(--radius, 16px);
  padding: 0;
  max-width: min(94vw, 760px);
  width: min(94vw, 760px);
  box-sizing: border-box;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(12, 40, 26, 0.28);
}

.dl-tutorial-dialog[open] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-height: min(92vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  right: initial;
}

.dl-tutorial-dialog::backdrop {
  background: rgba(15, 23, 20, 0.55);
  backdrop-filter: blur(4px);
}

.dl-tutorial-inner {
  padding: 24px 24px 20px;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  box-sizing: border-box;
}

.dl-tutorial-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(12, 40, 26, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.dl-tutorial-close:hover {
  background: rgba(12, 40, 26, 0.11);
}

.dl-tutorial-title {
  margin: 0 44px 16px 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dl-tutorial-figure {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: auto;
  max-height: min(62vh, 540px);
  border: 1px solid var(--border);
  background: var(--bg-page);
}

.dl-tutorial-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.dl-tutorial-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dl-card--soon {
  border-style: dashed;
}

.dl-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.dl-card__meta {
  margin: 0 0 22px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  background: #eef4f0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__tagline {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer__legal {
  text-align: right;
}

.site-footer__legal p {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Docs page --- */
.docs-hero {
  padding: 40px 0 8px;
  background: var(--bg-page);
}

.docs-hero__inner {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.docs-hero__pill {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wx-green-dim);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(7, 193, 96, 0.22);
  background: rgba(7, 193, 96, 0.08);
}

.docs-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-hero__desc {
  margin: 0;
  color: var(--text-muted);
}

.section--docs {
  padding-top: 32px;
  padding-bottom: 80px;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.docs-sidebar__title {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.45;
}

.docs-link:hover {
  color: var(--text);
  background: rgba(7, 193, 96, 0.06);
}

.docs-link.active {
  color: var(--wx-green-dim);
  font-weight: 600;
  background: rgba(7, 193, 96, 0.1);
  border-color: rgba(7, 193, 96, 0.22);
}

.docs-main {
  padding: 32px 36px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  min-height: 420px;
}

.docs-article-head {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.docs-article-title {
  margin: 0 0 8px;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-article-lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wx-green-dim);
}

.docs-article-body {
  margin: 0 0 28px;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.docs-steps-heading {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.docs-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: docstep;
}

.docs-steps li {
  counter-increment: docstep;
  position: relative;
  padding: 16px 16px 16px 52px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: #f6faf7;
  border: 1px solid rgba(12, 40, 26, 0.08);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.docs-steps li::before {
  content: counter(docstep);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wx-green-dim);
  background: rgba(7, 193, 96, 0.15);
  border: 1px solid rgba(7, 193, 96, 0.25);
}

.docs-steps li.docs-step--has-media {
  padding-bottom: 18px;
}

.docs-steps li.docs-step--has-media::before {
  top: 18px;
  transform: none;
}

.docs-step-text {
  display: block;
}

.docs-step-figure {
  margin: 14px 0 0;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(12, 40, 26, 0.1);
  background: #fff;
}

.docs-step-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bento-card,
  .bento-card--wide {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .shell-nav {
    display: none;
  }

  .bento-card,
  .bento-card--wide {
    grid-column: span 12;
  }

  .dev-panel {
    grid-template-columns: 1fr;
  }

  .dev-panel__visual {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 36px 24px;
  }

  .dl-row {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .site-footer__legal {
    text-align: left;
  }

}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero__metrics {
    flex-direction: column;
    gap: 16px;
  }

  .shell-header__actions .btn--ghost {
    display: none;
  }
}
