/* ============================================================
   Manual de Skills — Axioma Intelligence
   Derivado do Axioma Design System v1.0 (mai/2026)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --deep: #051e26;
  --teal-dark: #073846;
  --teal: #0F4C5C;
  --teal-light: #1A6478;
  --mint: #7cc89a;

  --paper: #fafbfb;
  --paper-warm: #f3f5f6;
  --line: #d8dee0;
  --line-soft: #e8ecee;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-faint: #888;

  --white-soft: rgba(255,255,255,0.85);
  --white-faint: rgba(255,255,255,0.60);
  --white-dim: rgba(255,255,255,0.35);

  --mint-soft: rgba(124,200,154,0.12);
  --mint-line: rgba(124,200,154,0.25);
  --danger: #c44;
  --focus-ring: rgba(15,76,92,0.10);

  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --sidebar-w: 300px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --bg-hero:
    radial-gradient(ellipse at 80% 10%, rgba(124,200,154,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(15,76,92,0.55) 0%, transparent 55%),
    linear-gradient(160deg, #0a0a0a 0%, #051e26 45%, #073846 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink-soft); margin: 0; text-wrap: balance; }
p { margin: 0 0 22px; max-width: 68ch; text-wrap: pretty; }
a { color: var(--teal); }
::selection { background: var(--mint); color: var(--ink); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0a0a0a 0%, #051e26 70%, #073846 100%);
  color: var(--white-soft);
  display: flex;
  flex-direction: column;
  z-index: 50;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-head { padding: 28px 24px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-head img { width: 150px; display: block; margin-bottom: 12px; }
.sidebar-code { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--white-dim); }

.sidebar-search { padding: 16px 24px 4px; }
.sidebar-search input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: var(--white-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 10px 12px;
  outline: none;
}
.sidebar-search input::placeholder { color: var(--white-dim); }
.sidebar-search input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(124,200,154,0.12); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.nav-group { padding: 16px 24px 0; }
.nav-group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.nav-group-label::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.nav-group a {
  display: block;
  padding: 7px 10px 7px 28px;
  margin: 0 -10px;
  color: var(--white-faint);
  text-decoration: none;
  font-size: 13.5px;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-group a:hover { color: var(--white-soft); background: rgba(255,255,255,0.04); }
.nav-group a.active { color: var(--mint); border-left-color: var(--mint); background: rgba(124,200,154,0.06); }
.nav-group a.hidden-by-search { display: none; }
.sidebar-foot { padding: 14px 24px; border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--white-dim); text-transform: uppercase; }

/* Botão hamburguer (mobile) */
.menu-btn {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 60;
  background: var(--ink);
  color: var(--white-soft);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Conteúdo ---------- */
.content { margin-left: var(--sidebar-w); }

.hero {
  background: var(--bg-hero);
  color: var(--white-soft);
  padding: 90px 56px 70px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,200,154,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,200,154,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--mint); }
.hero h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: #fff;
  max-width: 20ch;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--mint); font-weight: 500; }
.hero .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--white-soft);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

.section { padding: 72px 56px; }
.section.warm { background: var(--paper-warm); }
.section h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 26ch;
}
.section h2 em { font-style: italic; color: var(--teal); }
.section .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 34px;
}

/* ---------- Cartão de skill ---------- */
.skill {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 44px 48px;
  margin: 0 56px 40px;
  position: relative;
  scroll-margin-top: 24px;
}
.skill::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
}
.skill-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.skill-head h3 { font-size: 27px; letter-spacing: -0.4px; line-height: 1.18; }
.skill-slug {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--teal);
  background: var(--mint-soft);
  border: 1px solid var(--mint-line);
  border-radius: 3px;
  padding: 3px 9px;
  white-space: nowrap;
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 3px 9px;
  white-space: nowrap;
}
.badge.cowork { color: var(--teal); border: 1px solid var(--line); background: var(--paper-warm); }
.badge.desktop { color: #7a5a1e; border: 1px solid #e8d9b8; background: #faf5e8; }
.skill-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 10px 0 30px;
}

.skill h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 30px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill h4::before { content: ''; width: 18px; height: 1px; background: currentColor; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.skill ul { margin: 0 0 8px; padding-left: 20px; }
.skill ul li { margin-bottom: 8px; max-width: 60ch; }
.skill ul li::marker { color: var(--mint); }

/* Frases prontas — clique para copiar */
.phrases { display: grid; gap: 10px; margin-bottom: 8px; }
.phrase {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  font-size: 14.5px;
  line-height: 1.5;
}
.phrase:hover {
  border-color: var(--mint-line);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15,76,92,0.07);
}
.phrase::before {
  content: '»';
  font-family: var(--mono);
  color: var(--mint);
  font-size: 15px;
  line-height: 1.4;
  flex-shrink: 0;
}
.phrase .copy-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
  align-self: center;
  transition: color .2s;
}
.phrase:hover .copy-hint { color: var(--teal); }
.phrase.copied { border-color: var(--mint); background: var(--mint-soft); }
.phrase.copied .copy-hint { color: var(--teal); }

/* Caixas de aviso */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: #fff;
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  font-size: 14.5px;
  margin: 18px 0 8px;
  max-width: 72ch;
}
.note.alert { border-left-color: var(--danger); }
.note.mint { border-left-color: var(--mint); background: var(--mint-soft); }
.note strong { color: var(--ink-soft); }
.note p:last-child { margin-bottom: 0; }

/* Passo a passo numerado (estilo scope list) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  max-width: 76ch;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--mint);
  padding-top: 2px;
}
.steps li strong { font-family: var(--serif); font-weight: 600; font-size: 16.5px; display: block; margin-bottom: 4px; }

/* Tabela de cobertura */
.coverage { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
.coverage th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.coverage td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.coverage td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--teal); white-space: nowrap; }
.pill { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; }
.pill.ok { background: var(--mint-soft); color: #2e6d4a; border: 1px solid var(--mint-line); }
.pill.warn { background: #faf5e8; color: #7a5a1e; border: 1px solid #e8d9b8; }
.pill.off { background: var(--paper-warm); color: var(--text-faint); border: 1px solid var(--line-soft); }

/* Toast de cópia */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--white-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--mint-line);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 100;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Rodapé */
.footer {
  background: var(--ink);
  color: var(--white-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 34px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s var(--ease-out); width: 290px; }
  .sidebar.open { transform: none; box-shadow: 24px 0 60px rgba(0,0,0,0.4); }
  .menu-btn { display: block; }
  .content { margin-left: 0; }
  .hero { padding: 96px 22px 54px; }
  .section { padding: 54px 22px; }
  .skill { margin: 0 16px 28px; padding: 30px 22px; }
  .skill::before { left: 22px; right: 22px; }
  .two-col { grid-template-columns: 1fr; }
  .coverage-wrap { overflow-x: auto; }
}
