.docs-home{padding-top:76px;padding-bottom:80px}
.docs-home-head{max-width:920px;border-bottom:1px solid var(--line);padding-bottom:48px}
.docs-home-head h1{font-size:clamp(40px,5.5vw,64px);line-height:1.06;letter-spacing:-.055em;margin:0 0 20px}
.docs-home-head .doc-lead{font-size:20px;line-height:1.65;color:#4a626c;margin-bottom:30px}
.docs-home-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.docs-home-badges .badge-item{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--ink)}

/* 4 Pillars Grid */
.pillar-section{padding:55px 0;border-bottom:1px solid var(--line)}
.pillar-section h2{font-size:32px;letter-spacing:-.04em;margin:0 0 8px}
.pillar-section-lead{color:var(--muted);font-size:16px;margin-bottom:32px}
.pillar-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.pillar-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:0 6px 24px rgba(16,43,52,.04);transition:transform .2s,box-shadow .2s,border-color .2s;text-decoration:none;color:inherit;position:relative;overflow:hidden}
.pillar-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(16,43,52,.09);border-color:#9dd0c8}
.pillar-card.featured{border-color:#b4ded7;background:linear-gradient(180deg,#f3faf8 0%,#ffffff 100%)}
.pillar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.pillar-icon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#e9f5f2;color:var(--teal);font-size:22px}
.pillar-card:nth-child(2) .pillar-icon{background:#eaf0fb;color:var(--blue)}
.pillar-card:nth-child(3) .pillar-icon{background:#fdf3e7;color:var(--amber)}
.pillar-card:nth-child(4) .pillar-icon{background:#f3eafd;color:#7c3aed}
.pillar-tag{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:4px 8px;border-radius:6px;background:#edf5f3;color:var(--teal)}
.pillar-card h3{font-size:22px;margin:0 0 10px;letter-spacing:-.03em;color:var(--ink)}
.pillar-card p{color:var(--muted);font-size:14px;line-height:1.65;margin-bottom:20px;flex-grow:1}
.pillar-features{list-style:none;padding:0;margin:0 0 22px;border-top:1px dashed var(--line);padding-top:14px}
.pillar-features li{font-size:13px;color:#49616a;padding:4px 0;display:flex;align-items:center;gap:8px}
.pillar-features li::before{content:"✓";color:var(--teal);font-weight:900}
.pillar-action{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:750;color:var(--teal);margin-top:auto}
.pillar-card:hover .pillar-action{text-decoration:underline}

/* Questions Grid */
.docs-home-grid{display:grid;grid-template-columns:1fr 310px;gap:60px;padding:55px 0;border-bottom:1px solid var(--line)}
.docs-home-grid h2,.docs-home-section h2{font-size:30px;letter-spacing:-.04em;margin:0 0 20px}
.reference-list{border-top:1px solid var(--line)}
.reference-list a{display:grid;grid-template-columns:1fr 1.35fr 24px;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.reference-list b{font-size:15px}
.reference-list span{font-size:13px;color:var(--muted)}
.reference-list i{font-size:20px;color:var(--teal);font-style:normal;transition:transform .2s}
.reference-list a:hover b{color:var(--teal)}
.reference-list a:hover i{transform:translateX(4px)}

.aside-block{border-top:2px solid var(--teal);padding:18px 0 26px}
.aside-block h3{font-size:16px;margin:14px 0 3px}
.aside-block p{font-size:13px;color:var(--muted);margin:3px 0}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2b936c;margin-right:6px}
.status-dot.blue{background:var(--blue)}
.status-dot.amber{background:var(--amber)}
.status-dot.purple{background:#8b5cf6}

.docs-home-section{padding:55px 0;border-bottom:1px solid var(--line)}
.sequence{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}
.sequence>div{min-height:135px;padding:18px;border-right:1px solid var(--line)}
.sequence>div:last-child{border:0}
.sequence b{display:block;color:var(--teal);font:800 11px ui-monospace,monospace;margin-bottom:16px}
.sequence code{display:block;font-size:13px;overflow-wrap:anywhere}
.sequence span{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:8px}
.note-section{max-width:860px}
.note-section p{font-size:17px;color:#536a73;line-height:1.7}
.note-section strong{color:var(--ink)}

/* Release & Downloads Section */
.release-banner {
  background: linear-gradient(135deg, #0f172a 0%, #132d36 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  margin-top: 36px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.release-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 750;
}

.release-head h3 {
  font-size: 22px;
  margin: 0;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 12px;
}

.release-date {
  color: #94a3b8;
  font-size: 13px;
}

/* Download Matrix Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.download-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 750;
  color: #f1f5f9;
  font-size: 15px;
}

.download-card-header .os-icon {
  font-size: 20px;
}

.download-card p {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: all 0.15s ease;
}

.download-btn:hover {
  background: #06b6d4;
  color: #0f172a;
  border-color: #06b6d4;
}

.download-btn small {
  font-size: 10px;
  opacity: 0.85;
}

/* NuGet Packages Tabs & Box */
.nuget-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin-top: 28px;
  box-shadow: 0 6px 24px rgba(16, 43, 52, 0.04);
}

.nuget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.nuget-header h3 {
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.package-pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.package-pill.active,
.package-pill:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

/* CLI Quick Showcase Grid */
.cli-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.cli-quick-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(16, 43, 52, 0.04);
  display: flex;
  flex-direction: column;
}

.cli-quick-box h3 {
  font-size: 18px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cli-quick-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

@media(max-width:900px){
  .pillar-grid, .cli-quick-grid{grid-template-columns:1fr}
  .docs-home{padding-top:45px}
  .docs-home-grid{grid-template-columns:1fr;gap:35px}
  .reference-list a{grid-template-columns:1fr 22px;gap:5px}
  .reference-list span{grid-column:1}
  .reference-list i{grid-column:2;grid-row:1 / 3}
  .download-grid{grid-template-columns:1fr}
}

/* Keep the landing page airy on large screens and compact on small ones. */
.docs-home-head,
.docs-home-grid,
.docs-home-section {
  scroll-margin-top: 96px;
}

.docs-home-head .button {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.docs-home-head .button:hover {
  transform: translateY(-2px);
}

.reference-list a {
  min-width: 0;
  transition: background .18s ease, padding .18s ease, border-color .18s ease;
}

.reference-list a:hover {
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(255,255,255,.72);
}

.reference-list b,
.reference-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card,
.pillar-card,
.nuget-section {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media(max-width:900px){
  .docs-home-head {
    padding-bottom: 36px;
  }

  .docs-home-head .doc-lead {
    font-size: 18px;
    line-height: 1.65;
  }

  .docs-home-head > div:not(.docs-home-badges) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-home-head > div:not(.docs-home-badges) .button {
    margin: 8px 0 0;
  }

  .docs-home-badges {
    gap: 8px;
  }

  .docs-home-grid,
  .docs-home-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .reference-list a:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .release-banner {
    padding: 24px 20px;
  }
}

/* SDK-first landing page */
.docs-home-head {
  max-width: 1020px;
}

.docs-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-home-actions .button {
  margin: 12px 0 10px;
}

.docs-home-start-grid {
  align-items: start;
}

.quick-step-list {
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

.quick-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.quick-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e8f4f1;
  color: var(--teal);
  font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.quick-step b {
  display: block;
  margin: 1px 0 4px;
  font-size: 15px;
}

.quick-step span,
.quick-step code {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quick-step code {
  display: block;
  color: var(--teal);
  overflow-wrap: anywhere;
}

.api-quick-card {
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  box-shadow: 0 7px 24px rgba(16,43,52,.05);
}

.api-quick-card h3 {
  margin: 0 0 13px;
  font-size: 20px;
}

.api-quick-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 2px 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.api-quick-link code {
  grid-column: 1;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.api-quick-link span {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.api-quick-link i {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--teal);
  font-size: 18px;
  font-style: normal;
  transition: transform .18s ease;
}

.api-quick-link:hover i {
  transform: translateX(4px);
}

.api-quick-card > .text-link {
  display: inline-block;
  margin-top: 14px;
}

.quick-start-section {
  padding-top: 62px;
  padding-bottom: 62px;
}

.quick-start-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.quick-start-heading h2 {
  margin-bottom: 8px;
}

.quick-start-heading p {
  max-width: 720px;
  margin-bottom: 0;
}

.quick-start-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #b9dcd6;
  border-radius: 999px;
  background: #eff9f6;
  color: var(--teal);
  font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.quick-start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: stretch;
}

.quick-start-code {
  min-width: 0;
  margin: 0;
}

.code-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #2b4a52;
  color: #9bc9c1;
  font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.quick-start-code pre {
  padding: 22px 24px;
}

.quick-start-notes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 7px 24px rgba(16,43,52,.04);
}

.quick-start-checklist > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  padding: 0 0 17px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.quick-start-checklist > div:last-child {
  margin-bottom: 0;
}

.quick-start-checklist > div > span {
  color: var(--teal);
  font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.quick-start-checklist b {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.quick-start-checklist p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.quick-start-actions,
.next-step-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.quick-start-actions {
  margin-top: 24px;
}

.quick-start-actions .button,
.next-step-actions .button {
  margin: 0;
}

.next-step-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 30px;
  background: #e8f3f0;
  border: 1px solid #cbe3de;
  border-radius: 14px;
}

.next-step-banner h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.next-step-banner p:not(.eyebrow) {
  max-width: 700px;
  color: #536a73;
  margin: 0;
}

.next-step-actions {
  flex: 0 0 auto;
  min-width: 190px;
}

@media(max-width:900px){
  .quick-start-heading {
    display: block;
  }

  .quick-start-badge {
    display: inline-flex;
    margin-top: 15px;
  }

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

  .quick-start-code pre {
    padding: 20px;
    font-size: 12px;
  }

  .next-step-banner {
    display: block;
    padding: 24px 20px;
  }

  .next-step-actions {
    margin-top: 22px;
  }
}

@media(max-width:560px){
  .docs-home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-home-actions .button {
    width: 100%;
    text-align: center;
  }

  .quick-start-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .api-quick-card,
  .quick-start-notes {
    padding: 20px 18px;
  }
}

/* Keep the release package matrix contained on narrow screens. */
.table-wrapper {
  max-width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper .member-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.table-wrapper .member-table th,
.table-wrapper .member-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-wrapper .member-table th {
  background: #edf5f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.table-wrapper .member-table td {
  color: var(--muted);
  line-height: 1.55;
}

.table-wrapper .member-table tr:last-child td {
  border-bottom: 0;
}

@media(max-width:900px){
  .table-wrapper .member-table {
    min-width: 660px;
  }
}
