/* ============================================================
   1. RESET & VARIÁVEIS CSS
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');

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

:root {
  --amber:       #D08A3C;
  --amber-lt:    #F1C790;
  --black:       #141418;
  --cream:       #F4F1EC;
  --cream-dim:   #E8E4DC;
  --surface:     #1C1C22;
  --surface2:    #242430;

  --text-primary:    var(--cream);
  --text-secondary:  #A8A4A0;
  --text-muted:      #6B6760;
  --border:          rgba(255,255,255,0.07);
  --border-hover:    rgba(255,255,255,0.14);

  --topbar-h:    60px;
  --sidebar-w:   268px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;

  --transition:  150ms ease;
}

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

body {
  font-family: 'Satoshi', sans-serif;
  background-color: var(--black);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   2. TIPOGRAFIA
   ============================================================ */

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }

/* ============================================================
   3. TOPBAR
   ============================================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: calc(var(--sidebar-w) - 48px);
  transition: opacity var(--transition);
}

.topbar__logo:hover { opacity: 0.8; }

.topbar__search {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
}

.topbar__search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

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

.topbar__search-input:focus {
  border-color: var(--border-hover);
  background: var(--surface2);
  color: var(--cream);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.topbar__nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.topbar__nav-link:hover {
  color: var(--cream);
  background: var(--surface);
}

.topbar__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(208,138,60,0.12);
  border: 1px solid rgba(208,138,60,0.25);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.topbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.topbar__hamburger:hover { background: var(--surface); }

.topbar__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   4. SIDEBAR
   ============================================================ */

.layout {
  display: flex;
  padding-top: var(--topbar-h);
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

.sidebar__section {
  margin-bottom: 28px;
}

.sidebar__section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 20px;
  margin-bottom: 6px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.sidebar__item:hover {
  color: var(--cream);
  background: rgba(255,255,255,0.04);
}

.sidebar__item.active {
  color: var(--cream);
  background: rgba(208,138,60,0.1);
}

.sidebar__item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  border-radius: 0 2px 2px 0;
}

.sidebar__item-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
}

.sidebar__item.active .sidebar__item-icon { opacity: 1; }

/* ============================================================
   5. HERO
   ============================================================ */

.main {
  flex: 1;
  min-width: 0;
  padding: 56px 64px 80px;
}

.hero {
  max-width: 720px;
  margin-bottom: 64px;
}

.hero .eyebrow {
  margin-bottom: 14px;
}

.hero__title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.pill:hover {
  color: var(--amber-lt);
  border-color: rgba(208,138,60,0.3);
  background: rgba(208,138,60,0.06);
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ============================================================
   6. CARDS E GRID
   ============================================================ */

.section {
  margin-bottom: 64px;
}

.section__header {
  margin-bottom: 24px;
}

.section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.section__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
  transform: translateY(-1px);
}

.card__icon {
  width: 38px;
  height: 38px;
  background: rgba(208,138,60,0.1);
  border: 1px solid rgba(208,138,60,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__icon svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card__arrow {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), gap var(--transition);
}

.card:hover .card__arrow {
  color: var(--amber);
  gap: 6px;
}

.card__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin: 10px 0 4px;
  letter-spacing: -0.3px;
}

.card__price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.card__list {
  list-style: none;
  margin: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card__list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(208,138,60,0.45);
  flex-shrink: 0;
}

.card--highlight {
  border-color: rgba(208,138,60,0.3);
  background: rgba(208,138,60,0.04);
}

/* ============================================================
   7. COMPONENTES — BOTÕES, QUICKSTART, LISTA
   ============================================================ */

/* — Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--amber);
  color: var(--black);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-lt);
  border-color: var(--amber-lt);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-hover);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.2);
}

/* — Bloco Quickstart */
.quickstart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.quickstart__left {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.quickstart__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.quickstart__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.25;
}

.quickstart__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quickstart__right {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qs-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.qs-step__number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(208,138,60,0.12);
  border: 1px solid rgba(208,138,60,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

.qs-step__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2px;
}

.qs-step__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* — Lista artigos */
.article-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}

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

.article-item:hover { background: rgba(255,255,255,0.03); }

.article-item__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.article-item__body { flex: 1; min-width: 0; }

.article-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-item__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.article-item__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.article-item:hover .article-item__arrow {
  color: var(--amber);
  transform: translateX(2px);
}

/* ============================================================
   7b. COMO FUNCIONA (hiw)
   ============================================================ */

.hiw-section {
  margin-bottom: 64px;
}

.hiw-steps {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hiw-step {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hiw-step__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.hiw-step__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.hiw-step__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hiw-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 0 4px;
  flex-shrink: 0;
}

/* ============================================================
   7c. O QUE DETECTAMOS (detect-grid)
   ============================================================ */

.detect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detect-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: var(--black);
  transition: background var(--transition);
}

.detect-item:hover { background: rgba(255,255,255,0.02); }

.detect-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 6px;
  opacity: 0.7;
}

.detect-item__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.detect-item__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.detect-item__desc code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--amber-lt);
}

/* ============================================================
   7d. CREDIT CALLOUT
   ============================================================ */

.credit-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: rgba(208,138,60,0.07);
  border: 1px solid rgba(208,138,60,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.credit-callout svg { color: var(--amber); flex-shrink: 0; }
.credit-callout strong { color: var(--amber-lt); font-weight: 600; }

/* ============================================================
   7h. PÁGINA DE TOKEN (tabs, code blocks, mini-steps, validation)
   ============================================================ */

/* --- Tabs --- */
.method-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.method-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
  background: none;
  font-family: 'Satoshi', sans-serif;
}

.method-tab:hover { color: var(--text-secondary); }

.method-tab.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* --- Panels --- */
.method-panel { display: none; }

.method-panel.active {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start;
}

/* --- Use tag --- */
.method-use-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  margin-bottom: 20px;
}

.method-use-tag strong {
  color: var(--cream);
  font-weight: 500;
}

/* --- Code block --- */
.code-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.code-block__body {
  display: block;
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--amber-lt);
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
}

.code-block__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'Satoshi', sans-serif;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: none;
  border-top: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.code-block__copy:hover {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
}

/* --- Mini steps (inside method panels) --- */
.mini-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mini-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mini-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 1px;
}

.mini-step__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 3px;
}

.mini-step__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.mini-step__desc code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--amber-lt);
}

/* --- Prompt block --- */
.prompt-block { margin-top: 4px; }

.prompt-block__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.prompt-block__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.prompt-block__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: 'Satoshi', sans-serif;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.prompt-block__copy:hover {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
}

/* --- Validation side panel --- */
.validation-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
}

.validation-side__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.validation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.validation-row:last-child { border-bottom: none; }

.validation-row__key {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.validation-row__val {
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
  text-align: right;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ============================================================
   7e. GUIA PASSO A PASSO
   ============================================================ */

.guide-steps {
  max-width: 720px;
  margin-bottom: 64px;
}

.guide-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 20px;
}

.guide-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(208,138,60,0.1);
  border: 1px solid rgba(208,138,60,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.guide-step__line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin: 8px 0;
  min-height: 20px;
}

.guide-step:last-child .guide-step__line {
  display: none;
}

.guide-step__content {
  padding-bottom: 36px;
}

.guide-step:last-child .guide-step__content {
  padding-bottom: 0;
}

.guide-step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  margin-top: 4px;
  line-height: 1.3;
}

.guide-step__text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.guide-step__text:last-child { margin-bottom: 0; }

.guide-step__text strong {
  color: var(--cream);
  font-weight: 600;
}

.guide-step__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 0;
}

.guide-step__list li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.guide-step__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.55;
}

.guide-step__list li strong {
  color: var(--cream);
  font-weight: 600;
}

/* ============================================================
   7f. CALLOUT
   ============================================================ */

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.callout--note {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-hover);
}

.callout--tip {
  background: rgba(208,138,60,0.07);
  border: 1px solid rgba(208,138,60,0.22);
}

.callout__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout--note .callout__icon { color: var(--text-secondary); }
.callout--tip .callout__icon { color: var(--amber); }

.callout__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.callout__text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.callout__link {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.callout__link:hover { color: var(--amber-lt); }

/* ============================================================
   7g. NAVEGAÇÃO ENTRE PÁGINAS
   ============================================================ */

.doc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin-bottom: 64px;
}

.doc-nav__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  color: var(--text-secondary);
}

.doc-nav__btn:hover {
  border-color: rgba(208,138,60,0.3);
  background: rgba(208,138,60,0.06);
  color: var(--amber);
}

.doc-nav__btn svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.doc-nav__btn:hover svg { transform: translateX(2px); }

.doc-nav__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.doc-nav__title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
}

/* ============================================================
   8. FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--text-secondary); }

.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__social-link:hover { color: var(--text-secondary); }

/* ============================================================
   8c. PÁGINA DE DASHBOARD
   ============================================================ */

.dash-hero-img {
  max-width: 900px;
  margin-bottom: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.dash-hero-img img {
  display: block;
  width: 100%;
}

.dash-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  background: rgba(208,138,60,0.1);
  border: 1px solid rgba(208,138,60,0.2);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* ============================================================
   8f — PÁGINA DE SCAN
   ============================================================ */

.scan-section {
  max-width: 720px;
  margin-bottom: 56px;
}

.scan-section__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 14px;
}

.scan-section__text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.scan-section__text:last-child { margin-bottom: 0; }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* ============================================================
   8e — CHECKERS
   ============================================================ */

.checkers-group {
  max-width: 900px;
  margin-bottom: 52px;
}

.checkers-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.checkers-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.checkers-group-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 9px;
}

.checkers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s;
}

.checker-card:hover {
  border-color: rgba(208,138,60,0.3);
}

.checker-card__num {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.7;
  margin: 0;
}

.checker-card__name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.45;
  margin: 0;
}

.checker-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin: 4px 0 0;
}

.checker-card__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

/* ============================================================
   PAGE TOC — sumário lateral direito
   ============================================================ */

.page-toc {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 40px 20px 32px 24px;
  border-left: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}

.page-toc::-webkit-scrollbar { width: 4px; }
.page-toc::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

.page-toc__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.page-toc__list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.page-toc__link {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  line-height: 1.45;
  transition: color var(--transition), border-color var(--transition);
}

.page-toc__link:hover { color: var(--cream); }

.page-toc__link.active {
  color: var(--amber);
  border-left-color: var(--amber);
}

.page-toc__link--sub {
  font-size: 12px;
  padding-left: 22px;
  color: var(--text-muted);
}

.page-toc__link--sub:hover { color: var(--text-secondary); }

/* ============================================================
   SEARCH MODAL
   ============================================================ */

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 0;
}

.search-overlay.open { display: flex; }

.search-modal {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  overflow: hidden;
}

.search-modal__input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  color: var(--cream);
  outline: none;
}

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

.search-modal__results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}

.search-result:hover,
.search-result.selected { background: rgba(208,138,60,0.08); }

.search-result__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
}

.search-result__title mark {
  background: transparent;
  color: var(--amber);
  font-weight: 600;
}

.search-result__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.search-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.search-modal__footer {
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.search-modal__footer kbd {
  display: inline-flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border-hover);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 10px;
  margin-right: 3px;
}

/* ============================================================
   TEMA CLARO
   ============================================================ */

[data-theme="light"] {
  --black:          #F7F5F1;
  --cream:          #141418;
  --cream-dim:      #2C2A28;
  --surface:        #EDEAE5;
  --surface2:       #E4E0D8;
  --text-primary:   #141418;
  --text-secondary: #5A5755;
  --text-muted:     #9C9895;
  --border:         rgba(0,0,0,0.09);
  --border-hover:   rgba(0,0,0,0.16);
}

[data-theme="light"] .sidebar__item:hover {
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .article-item:hover {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .detect-item:hover {
  background: rgba(0,0,0,0.02);
}

[data-theme="light"] .detect-item__desc code,
[data-theme="light"] .mini-step__desc code {
  background: rgba(0,0,0,0.07);
  color: #A06828;
}

[data-theme="light"] .callout--note {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .code-block__body {
  color: var(--amber);
}

[data-theme="light"] .code-block__copy {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .code-block__copy:hover {
  background: rgba(0,0,0,0.06);
}

[data-theme="light"] .prompt-block__copy {
  background: rgba(0,0,0,0.02);
}

[data-theme="light"] .prompt-block__copy:hover {
  background: rgba(0,0,0,0.05);
}

/* — Botão Login */

.topbar__login {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--amber);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: background var(--transition);
  white-space: nowrap;
}

.topbar__login:hover {
  background: var(--amber-lt);
}

/* — Logo e botão de tema */

.topbar__logo-img {
  height: 22px;
  width: auto;
  max-width: 100%;
  display: block;
}

.topbar__logo-img--light { display: none; }

[data-theme="light"] .topbar__logo-img--dark { display: none; }
[data-theme="light"] .topbar__logo-img--light { display: block; }

.topbar__theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.topbar__theme-btn:hover {
  background: var(--surface);
  color: var(--cream);
}

.theme-btn__sun { display: none; }
.theme-btn__moon { display: block; }

[data-theme="light"] .theme-btn__sun { display: block; }
[data-theme="light"] .theme-btn__moon { display: none; }

/* ============================================================
   9. RESPONSIVO — BREAKPOINT 1100px (só page-toc)
   ============================================================ */

@media (max-width: 1100px) {
  .page-toc { display: none; }
}

/* ============================================================
   9. RESPONSIVO — BREAKPOINT 900px
   ============================================================ */

@media (max-width: 900px) {
  .topbar__inner {
    padding: 0 16px;
  }

  .topbar__hamburger {
    display: flex;
    order: -1;
  }

  .topbar__search {
    max-width: none;
    flex: 1;
  }

  .topbar__nav {
    display: none;
  }

  .sidebar {
    position: fixed;
    left: 0;
    bottom: 0;
    height: auto;
    transform: translateX(-100%);
    transition: transform 250ms ease;
    z-index: 90;
    background: var(--black);
  }

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

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

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

  .main {
    padding: 36px 24px 64px;
  }

  .hero__title { font-size: 28px; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .quickstart {
    grid-template-columns: 1fr;
  }

  .quickstart__left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
  }

  .quickstart__right { padding: 28px 24px; }

  .footer {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hiw-steps {
    flex-direction: column;
    gap: 0;
  }

  .hiw-step {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }

  .hiw-step:last-child { border-bottom: none; }

  .hiw-arrow {
    display: none;
  }

  .detect-grid {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
  }

  .guide-step__num {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .guide-step__title { font-size: 16px; }

  .guide-step__text,
  .guide-step__list li { font-size: 14px; }

  .doc-nav { max-width: 100%; }

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

  .validation-side { position: static; }

  .method-tab {
    padding: 6px 10px;
    font-size: 12px;
  }

  .dash-hero-img {
    max-width: 100%;
  }

  .checkers-grid {
    grid-template-columns: 1fr;
  }
}
