/* ============================================================
   TREEAL ID — Developer Portal
   Base styles & design tokens
   ============================================================ */

:root {
  --bg-dark:       #213325;
  --green-primary: #0F6E14;
  --green-light:   #16a31d;
  --off-white:     #F5F5F5;
  --yellow:        #E7DA10;
  --yellow-hover:  #d4c80e;
  --surface:       #1a2a1d;
  --surface-2:     #162018;
  --border:        rgba(245,245,245,0.08);
  --border-light:  rgba(245,245,245,0.14);
  --text-muted:    rgba(245,245,245,0.55);
  --code-bg:       #111b13;
  --radius:        10px;
  --radius-lg:     16px;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --transition:    0.22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-dark);
  color: var(--off-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--green-primary); border-radius: 3px; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; }

a { color: var(--yellow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--yellow-hover); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 272px;
  height: 100vh;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-badge {
  background: var(--yellow);
  color: var(--bg-dark);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.sidebar-logo .product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: 0.01em;
}

.sidebar-logo .product-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-version {
  padding: 8px 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
}

.sidebar-version span {
  color: var(--green-light);
}

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-section-label {
  padding: 14px 20px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(245,245,245,0.75);
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--off-white);
  background: rgba(245,245,245,0.04);
  border-left-color: var(--green-primary);
}

.nav-link.active {
  color: var(--yellow);
  background: rgba(231,218,16,0.07);
  border-left-color: var(--yellow);
  font-weight: 600;
}

.nav-link i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.nav-sub-link {
  display: block;
  padding: 6px 20px 6px 46px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.nav-sub-link:hover {
  color: var(--off-white);
  border-left-color: var(--green-primary);
}

.nav-sub-link.active {
  color: var(--yellow);
  border-left-color: var(--yellow);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
  margin-left: 272px;
  flex: 1;
  min-height: 100vh;
}

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(33,51,37,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  gap: 16px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 7px 14px;
  flex: 1;
  max-width: 400px;
  transition: border-color var(--transition);
}

.topbar-search:focus-within {
  border-color: var(--green-primary);
}

.topbar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--off-white);
  font-size: 0.875rem;
  flex: 1;
}

.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-search i { color: var(--text-muted); font-size: 0.85rem; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--yellow);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--yellow-hover);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--green-primary);
  color: var(--green-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--off-white); }

/* ============================================================
   PAGE SECTIONS (shown/hidden via JS)
   ============================================================ */

.page-section { display: none; }
.page-section.active { display: block; }

/* ============================================================
   HERO / OVERVIEW
   ============================================================ */

.hero {
  background: linear-gradient(135deg, var(--surface-2) 0%, #0d1f10 50%, #091510 100%);
  padding: 72px 48px 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(15,110,20,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(231,218,16,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(231,218,16,0.12);
  border: 1px solid rgba(231,218,16,0.3);
  color: var(--yellow);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero h1 { color: var(--off-white); margin-bottom: 16px; }
.hero h1 span { color: var(--yellow); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 36px;
}

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

.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}

.hero-card:hover {
  border-color: var(--green-primary);
  background: rgba(15,110,20,0.1);
  transform: translateY(-2px);
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(15,110,20,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.hero-card h4 { color: var(--off-white); margin-bottom: 6px; font-size: 0.95rem; }
.hero-card p  { color: var(--text-muted); font-size: 0.82rem; }

/* ============================================================
   CONTENT AREA
   ============================================================ */

.content-area { padding: 48px; }

/* Section title */
.section-title {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title h2 { color: var(--off-white); margin-bottom: 8px; }
.section-title p  { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   PRODUCT CARDS (Overview)
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.product-card.palm::before  { background: var(--yellow); }
.product-card.face::before  { background: var(--green-light); }
.product-card.liveness::before { background: #4ade80; }
.product-card.payment::before  { background: #60a5fa; }

.product-card:hover {
  border-color: rgba(245,245,245,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.product-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.product-card.palm .product-card-icon     { background: rgba(231,218,16,0.12); color: var(--yellow); }
.product-card.face .product-card-icon     { background: rgba(15,110,20,0.2); color: var(--green-light); }
.product-card.liveness .product-card-icon { background: rgba(74,222,128,0.12); color: #4ade80; }
.product-card.payment .product-card-icon  { background: rgba(96,165,250,0.12); color: #60a5fa; }

.product-card h3 { color: var(--off-white); margin-bottom: 10px; }
.product-card p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.product-card-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag-yellow   { background: rgba(231,218,16,0.12); color: var(--yellow); }
.tag-green    { background: rgba(15,110,20,0.2); color: var(--green-light); }
.tag-blue     { background: rgba(96,165,250,0.12); color: #60a5fa; }
.tag-mint     { background: rgba(74,222,128,0.12); color: #4ade80; }
.tag-purple   { background: rgba(167,139,250,0.12); color: #a78bfa; }

/* ============================================================
   ARCHITECTURE DIAGRAM SECTION
   ============================================================ */

.arch-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
}

.arch-node {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  min-width: 140px;
  position: relative;
}

.arch-node.highlight {
  border-color: var(--yellow);
  background: rgba(231,218,16,0.07);
}

.arch-node.partner {
  border-color: var(--green-primary);
  background: rgba(15,110,20,0.1);
}

.arch-node-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.arch-node-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--off-white);
  display: block;
}

.arch-node-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

.arch-arrow {
  color: var(--text-muted);
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.arch-arrow span {
  font-size: 0.65rem;
  color: var(--green-light);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ============================================================
   API REFERENCE
   ============================================================ */

.api-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.api-nav-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}

.api-nav-btn.active,
.api-nav-btn:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--off-white);
}

.endpoint-group { margin-bottom: 40px; }

.endpoint-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.endpoint-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.endpoint-card:hover { border-color: var(--border-light); }

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.method-badge {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  min-width: 52px;
  text-align: center;
}

.method-get    { background: rgba(74,222,128,0.15); color: #4ade80; }
.method-post   { background: rgba(96,165,250,0.15); color: #60a5fa; }
.method-put    { background: rgba(251,191,36,0.15); color: #fbbf24; }
.method-delete { background: rgba(248,113,113,0.15); color: #f87171; }
.method-patch  { background: rgba(167,139,250,0.15); color: #a78bfa; }

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--off-white);
  flex: 1;
}

.endpoint-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.endpoint-expand-icon {
  color: var(--text-muted);
  transition: transform var(--transition);
  font-size: 0.8rem;
}

.endpoint-card.open .endpoint-expand-icon {
  transform: rotate(180deg);
}

.endpoint-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 24px;
}

.endpoint-card.open .endpoint-body {
  display: block;
}

/* Code blocks */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
}

.copy-btn:hover { color: var(--off-white); background: rgba(255,255,255,0.06); }
.copy-btn.copied { color: #4ade80; }

.code-block pre {
  padding: 16px;
  overflow-x: auto;
  line-height: 1.7;
}

.code-block code {
  color: var(--off-white);
}

/* Syntax highlight tokens */
.t-key    { color: #7dd3fc; }
.t-str    { color: #86efac; }
.t-num    { color: #fbbf24; }
.t-bool   { color: #f87171; }
.t-null   { color: #a78bfa; }
.t-comment{ color: #4b6353; }
.t-kw     { color: #c084fc; }
.t-fn     { color: #60a5fa; }
.t-method { color: var(--yellow); }
.t-url    { color: #67e8f9; }

/* Params table */
.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 8px 0;
}

.params-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.params-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(245,245,245,0.04);
  vertical-align: top;
}

.params-table tr:last-child td { border-bottom: none; }

.param-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #7dd3fc;
}

.param-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fbbf24;
}

.param-required {
  font-size: 0.7rem;
  color: #f87171;
  font-weight: 700;
}

.param-optional {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.param-desc { color: var(--text-muted); font-size: 0.83rem; }

/* Response section */
.response-tabs {
  display: flex;
  gap: 2px;
  margin: 16px 0 0;
}

.res-tab {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}

.res-tab.active {
  background: var(--code-bg);
  border-color: var(--border);
  border-bottom-color: var(--code-bg);
  color: var(--off-white);
}

.res-tab-body { display: none; }
.res-tab-body.active { display: block; }

/* ============================================================
   GUIDES / QUICKSTART
   ============================================================ */

.steps-list { counter-reset: steps; list-style: none; }

.step-item {
  counter-increment: steps;
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.step-item::before {
  content: counter(steps);
  min-width: 36px;
  height: 36px;
  background: var(--green-primary);
  color: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.step-item::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  width: 1px;
  height: calc(100% - 4px);
  background: var(--border);
}

.step-item:last-child::after { display: none; }

.step-content h4 { color: var(--off-white); margin-bottom: 8px; }
.step-content p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

/* ============================================================
   INFO BOXES
   ============================================================ */

.info-box {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
}

.info-box i { margin-top: 2px; flex-shrink: 0; }

.info-box.note    { background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.2); color: #93c5fd; }
.info-box.warning { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); color: #fde68a; }
.info-box.success { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2); color: #86efac; }
.info-box.danger  { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: #fca5a5; }

/* ============================================================
   SUPPORT / CONTACT
   ============================================================ */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.support-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-2px);
}

.support-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.support-card h4 { color: var(--off-white); margin-bottom: 8px; }
.support-card p  { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }

.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sla-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.sla-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--off-white);
}

.sla-table tr:last-child td { border-bottom: none; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot-green  { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.dot-yellow { background: var(--yellow); }
.dot-red    { background: #f87171; }

/* ============================================================
   CHANGELOG / SDK
   ============================================================ */

.changelog-list { list-style: none; }

.changelog-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child { border-bottom: none; }

.changelog-version {
  min-width: 80px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  padding-top: 2px;
}

.changelog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.changelog-content h4 { color: var(--off-white); margin-bottom: 8px; }
.changelog-content ul { padding-left: 18px; }
.changelog-content li { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 4px; }

/* SDK cards */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.sdk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.sdk-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-2px);
}

.sdk-card-icon { font-size: 2rem; margin-bottom: 10px; }
.sdk-card h4 { color: var(--off-white); font-size: 0.92rem; margin-bottom: 5px; }
.sdk-card p  { color: var(--text-muted); font-size: 0.78rem; }

/* ============================================================
   MOBILE TOGGLE
   ============================================================ */

.mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 300;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  color: var(--bg-dark);
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
}

/* ============================================================
   BADGES / MISC
   ============================================================ */

.inline-code {
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #7dd3fc;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-stable { background: rgba(74,222,128,0.12); color: #4ade80; }
.badge-beta   { background: rgba(251,191,36,0.12); color: #fbbf24; }
.badge-new    { background: rgba(231,218,16,0.12); color: var(--yellow); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: flex; }
  .hero { padding: 48px 24px 40px; }
  .content-area { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .topbar-search { display: none; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   OVERLAY
   ============================================================ */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}

.sidebar-overlay.active { display: block; }
