/* ===== Estudos de caso (/projetos/*) — mesmos tokens da home ===== */
:root {
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-dim: #9a9aa8;
  --accent: #7c5cff;
  --accent-2: #2dd4bf;
  --grad: linear-gradient(120deg, #7c5cff 0%, #2dd4bf 100%);
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  padding: clamp(1.25rem, 5vw, 3rem) max(16px, env(safe-area-inset-right, 0px)) 3rem max(16px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
}

.glow {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  top: -160px;
  left: -120px;
  border-radius: 50%;
  background: #7c5cff;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.case {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.back {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
}
.back:hover { color: var(--text); }

/* Cabeçalho */
.case__head { display: flex; flex-direction: column; gap: 0.9rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.lede { font-size: 1.08rem; color: var(--text-dim); max-width: 60ch; }

.result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.07);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.result__metric {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result__label { flex: 1 1 18rem; min-width: 0; font-size: 0.95rem; }

.result--pending { background: var(--surface); border-color: var(--border); }

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--accent-2);
  border: 1px solid rgba(45, 212, 191, 0.35);
  white-space: nowrap;
}

.links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.link:hover { border-color: rgba(255, 255, 255, 0.25); }
.link--primary { color: #0a0a0f; background: var(--grad); border-color: transparent; }
.link--primary:hover { filter: brightness(1.08); }

a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

/* Corpo */
section { display: flex; flex-direction: column; gap: 0.9rem; }

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

p, li { color: #d4d4dc; font-size: 0.98rem; }
p { max-width: 68ch; }

.decisions { list-style: none; display: flex; flex-direction: column; gap: 1rem; counter-reset: d; }
.decisions li {
  counter-increment: d;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.25rem 0.5rem;
}
.decisions li::before {
  content: counter(d);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent-2);
}
.decisions li > * { grid-column: 2; min-width: 0; }
.decisions strong { color: var(--text); font-weight: 600; }

.plain { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.6rem;
}
.fact {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.fact b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.fact span { font-size: 0.8rem; color: var(--text-dim); }

.stack { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Rodapé com os outros projetos */
.more { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.more h2 { border: 0; padding: 0; font-size: 1rem; color: var(--text-dim); }
.more__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.signature { text-align: center; font-size: 0.8rem; color: var(--text-dim); }
.signature a { color: inherit; }
