/* ── DOCS PAGE HERO ── */
.docs-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 160px 0 80px;
}
.docs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 0%, rgba(0,242,145,.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 100%, rgba(0,212,255,.08) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 60% 40%, rgba(0,242,145,.05) 0%, transparent 50%);
  pointer-events: none;
}
.docs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,242,145,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,242,145,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.docs-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,242,145,.3);
  background: rgba(0,242,145,.07);
  color: var(--g);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: .3px;
}
.docs-eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--g);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.docs-hero-h1 {
  font-family: var(--ff-disp);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}
.docs-hero-h1 .accent {
  background: linear-gradient(90deg, var(--g) 0%, var(--g2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.docs-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 40px;
}
.docs-hero-sub strong {
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.docs-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.docs-stat-item { text-align: center; }
.docs-stat-num {
  font-family: var(--ff-disp);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.docs-stat-num span { color: var(--g); }
.docs-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── PLATFORM TABS (reuse dl-page style) ── */
.docs-section-wrap {
  background: var(--ink);
  padding: 80px 0;
}
.docs-section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Platform tabs: identical to download page */
.platform-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}
.ptab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 13px;
  transition: .25s var(--ease);
  color: rgba(255,255,255,.4);
  border: none;
  background: transparent;
  font-family: var(--ff-body);
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}
.ptab i { font-size: 16px; }
.ptab:hover { color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); }
.ptab.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.ptab.active i { color: var(--g); }

/* Platform panel visibility */
.platform-panel { display: none; }
.platform-panel.active { display: block; }

/* ── TUTORIAL SECTION HEADER ── */
.tut-section-hd {
  margin-bottom: 36px;
}
.tut-section-hd h2 {
  font-family: var(--ff-disp);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.8px;
  margin-bottom: 10px;
}
.tut-section-hd p {
  font-size: 15px;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 640px;
}

/* ── CLIENT SELECTOR (inside tutorial) ── */
.tut-client-picker {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tcp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.45);
  font-family: var(--ff-body);
  transition: .2s;
}
.tcp-btn:hover { border-color: rgba(0,242,145,.3); color: rgba(255,255,255,.75); background: rgba(0,242,145,.05); }
.tcp-btn.active { background: var(--g); color: var(--ink); border-color: var(--g); }
.tcp-btn i { font-size: 14px; }

/* ── STEP CARDS ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 28px;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover {
  border-color: rgba(0,242,145,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.step-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,242,145,.05) 0%, transparent 70%);
  pointer-events: none;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,242,145,.15), rgba(0,212,255,.08));
  border: 1px solid rgba(0,242,145,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-disp);
  font-size: 20px;
  font-weight: 700;
  color: var(--g);
  flex-shrink: 0;
  margin-top: 4px;
}
.step-body { min-width: 0; }
.step-title {
  font-family: var(--ff-disp);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
  margin-bottom: 0;
}
.step-desc strong { color: rgba(255,255,255,.75); font-weight: 600; }
.step-desc a { color: var(--g); text-decoration: none; }
.step-desc a:hover { text-decoration: underline; }
.step-desc code {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  background: rgba(0,242,145,.08);
  color: var(--g);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(0,242,145,.18);
}

/* ── TIP / NOTE / WARNING BOXES ── */
.tip-box, .note-box, .warn-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
}
.tip-box {
  background: rgba(0,242,145,.07);
  border: 1px solid rgba(0,242,145,.2);
  color: rgba(0,242,145,.85);
}
.tip-box i { color: var(--g); flex-shrink: 0; margin-top: 1px; }
.note-box {
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.2);
  color: rgba(96,165,250,.85);
}
.note-box i { color: #60a5fa; flex-shrink: 0; margin-top: 1px; }
.warn-box {
  background: rgba(251,191,36,.06);
  border: 1px solid rgba(251,191,36,.22);
  color: rgba(251,191,36,.85);
}
.warn-box i { color: #fbbf24; flex-shrink: 0; margin-top: 1px; }

/* ── INLINE CODE SNIPPET ── */
.code-snippet {
  background: rgba(8,14,26,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}
.cs-comment { color: rgba(255,255,255,.2); }
.cs-key { color: #7dd3fc; }
.cs-val { color: var(--g); }
.cs-val2 { color: #fda4af; }
.cs-str { color: #fbbf24; }

/* ── MINI IMAGE / SCREENSHOT PLACEHOLDER ── */
.step-visual {
  margin-top: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}
.step-visual i { font-size: 22px; color: rgba(0,242,145,.35); }

/* ── CTA STRIP (docs variant) ── */
.docs-cta-strip {
  background: linear-gradient(90deg, rgba(0,242,145,.08) 0%, rgba(0,212,255,.06) 100%);
  border: 1px solid rgba(0,242,145,.18);
  border-radius: 20px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
}
.docs-cta-text h3 {
  font-family: var(--ff-disp);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.docs-cta-text p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.6; }
.docs-cta-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cta-ghost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
  background: rgba(255,255,255,.04);
}
.btn-cta-ghost:hover { border-color: rgba(0,242,145,.4); color: var(--g); background: rgba(0,242,145,.05); }
.btn-cta-green {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--g);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: .3s;
}
.btn-cta-green:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--g-glow); }

/* ── PROTOCOL OVERVIEW TABLE ── */
.proto-overview-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  margin-top: 20px;
}
.proto-overview-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13.5px;
  margin-top: 0;
}
.proto-overview-table thead th {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: rgba(255,255,255,.3);
}
.proto-overview-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .2s;
}
.proto-overview-table tbody tr:last-child { border-bottom: none; }
.proto-overview-table tbody tr:hover { background: rgba(0,242,145,.04); }
.proto-overview-table td { padding: 14px 20px; color: rgba(255,255,255,.6); vertical-align: middle; }
.proto-overview-table td:first-child {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--g);
}
.proto-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: var(--ff-mono);
  background: rgba(0,242,145,.08);
  color: var(--g);
  border: 1px solid rgba(0,242,145,.2);
  margin-left: 4px;
}

/* ── CONFIG OVERVIEW CARDS ── */
.config-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.config-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 24px 22px;
  transition: border-color .25s, transform .25s var(--ease);
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.config-card:hover {
  border-color: rgba(0,242,145,.25);
  transform: translateY(-3px);
}
.config-section-anchor {
  scroll-margin-top: 100px;
}
.config-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,242,145,.1), rgba(0,212,255,.06));
  border: 1px solid rgba(0,242,145,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--g);
  margin-bottom: 16px;
}
.config-card h4 {
  font-family: var(--ff-disp);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.2px;
}
.config-card p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}

/* ── FAQ ── */
.docs-faq { padding: 80px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .step-card {
    grid-template-columns: 1fr;
  }
  .step-num { margin-bottom: 12px; }
  .config-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .docs-hero-stats { gap: 24px; }
  .platform-tabs { padding: 4px; }
  .ptab { padding: 10px 14px; font-size: 13px; }
  .ptab span { display: none; }
  .docs-cta-strip { flex-direction: column; align-items: flex-start; }
  .step-card { padding: 24px 20px; }
  .config-cards { grid-template-columns: 1fr; }
  .tut-client-picker { flex-direction: column; }
  .tcp-btn { justify-content: center; }
  .proto-overview-table thead th,
  .proto-overview-table td { white-space: nowrap; padding: 12px 14px; }
  .proto-overview-table td:last-child { white-space: normal; min-width: 120px; }
}
@media (max-width: 480px) {
  .docs-hero-h1 { letter-spacing: -1.5px; }
  .docs-hero-stats { gap: 16px; }
  .docs-stat-num { font-size: 22px; }
}
