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

:root {
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --dark: #0F172A;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --green: #10B981;
  --red: #EF4444;
  --amber: #F59E0B;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.blue { color: var(--blue); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.nav-inner {
  max-width: 100%; margin: 0; padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 20px; font-weight: 800; text-decoration: none; color: var(--dark); letter-spacing: -0.5px;
}
.nav-sub { font-size: 14px; font-weight: 500; color: var(--text-tertiary); margin-left: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.btn { display: inline-flex; align-items: center; font-family: 'Inter', sans-serif; font-weight: 600; border-radius: 50px; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.btn-sm { font-size: 13px; padding: 7px 18px; }
.btn-primary { background: var(--blue); color: #fff !important; }
.btn-primary:hover { background: #1D4ED8; }

/* LAYOUT */
.layout {
  display: flex;
  padding-top: 56px;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  background: white;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 0;
}
.sb-section { margin-bottom: 8px; }
.sb-title {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 12px 20px 6px;
}
.sb-link {
  display: block; padding: 7px 20px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  border-left: 3px solid transparent; transition: all 0.15s;
}
.sb-link:hover { color: var(--blue); background: var(--blue-light); }
.sb-link.active {
  color: var(--blue); background: var(--blue-light);
  border-left-color: var(--blue); font-weight: 600;
}

/* CONTENT */
.content {
  margin-left: 260px;
  flex: 1;
  padding: 40px 56px 80px;
  max-width: 860px;
}

section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }

h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; margin-top: 8px; }
h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.intro-text { font-size: 17px; }

ul { padding-left: 0; list-style: none; margin-bottom: 16px; }
li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  padding: 4px 0 4px 20px; position: relative;
}
li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); position: absolute; left: 0; top: 11px;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px; background: var(--bg); padding: 2px 8px;
  border-radius: 4px; color: var(--blue);
}

/* TABLE */
table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 13px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
thead { background: var(--bg); }
th {
  text-align: left; padding: 10px 16px; font-weight: 600;
  font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.3px;
}
td { padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-secondary); }
tr:hover td { background: var(--blue-light); }

/* INFO BOX */
.info-box {
  padding: 16px 20px; border-radius: 12px; margin: 16px 0;
  font-size: 14px; line-height: 1.5;
}
.info-box strong { display: block; margin-bottom: 4px; }
.info-box.blue { background: rgba(37,99,235,0.06); border-left: 4px solid var(--blue); color: var(--text-secondary); }
.info-box.blue strong { color: var(--blue); }
.info-box.amber { background: rgba(245,158,11,0.06); border-left: 4px solid var(--amber); color: var(--text-secondary); }
.info-box.amber strong { color: var(--amber); }
.info-box.green { background: rgba(16,185,129,0.06); border-left: 4px solid var(--green); color: var(--text-secondary); }
.info-box.green strong { color: var(--green); }

/* TERM */
.term {
  margin: 16px 0; padding: 16px 20px;
  background: white; border: 1px solid var(--border); border-radius: 12px;
}
.term h3 { margin: 0 0 6px; font-size: 15px; }
.term p { margin: 0; font-size: 14px; }

/* TIPO BADGE */
.tipo-badge {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
}
.tipo-badge.blue { background: rgba(37,99,235,0.1); color: var(--blue); }
.tipo-badge.red { background: rgba(239,68,68,0.1); color: var(--red); }
.tipo-badge.green { background: rgba(16,185,129,0.1); color: var(--green); }
.tipo-badge.amber { background: rgba(245,158,11,0.1); color: var(--amber); }
.tipo-badge.gray { background: var(--bg); color: var(--text-tertiary); }
.coming { font-size: 11px; color: var(--amber); margin-left: 6px; }

/* CODE BLOCK */
.code-block {
  background: var(--dark); color: #E2E8F0;
  padding: 20px 24px; border-radius: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px; line-height: 1.7;
  margin: 16px 0; white-space: pre; overflow-x: auto;
}

/* COMPARISON */
.comparison { display: flex; gap: 16px; margin: 16px 0; }
.comp-col {
  flex: 1; padding: 20px; background: white;
  border: 1px solid var(--border); border-radius: 12px;
}
.comp-col h4 { font-size: 14px; margin-bottom: 8px; }
.comp-col p { font-size: 13px; }
.comp-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 50px; margin-top: 8px;
}
.comp-tag.green { background: rgba(16,185,129,0.1); color: var(--green); }
.comp-tag.amber { background: rgba(245,158,11,0.1); color: var(--amber); }

/* STEP GUIDE */
.step-guide { margin: 16px 0; }
.step-g {
  display: flex; gap: 16px; margin-bottom: 16px;
  padding: 20px; background: white;
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.2s;
}
.step-g:hover { border-color: var(--blue); }
.step-g-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: white;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-g-content h3 { margin: 0 0 4px; font-size: 15px; }
.step-g-content p { margin: 0; font-size: 13px; }

/* GUIDE FOOTER */
.guide-footer {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.guide-footer p { font-size: 12px; color: var(--text-tertiary); margin: 2px 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 24px 20px; }
  .comparison { flex-direction: column; }
}

/* SCROLLBAR */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
