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

html {
  scrollbar-gutter: stable; /* reserva espaço pro scrollbar em ambas as páginas */
}

/* ── Tokens ── */
:root {
  --bg:            #F7F7F7;
  --text:          #202020;
  --muted:         #646464;
  --nav-link:      #808080;
  --border:        #DDDDDD;
  --quote-border:  #EBEBEB;
  --metric-bg:     #F2F2F2;
  --figure-bg:     #F2F2F2;
  --card-bg:       #FFFFFF;
  --table-head-bg: #F9F9F9;
  --green:         #34C759;
  --orange:        #F97316;

  --shadow: 0 0 0 1px rgba(0,0,0,.07),
            0 0 0 .5px rgba(0,0,0,.05),
            0 1px 1px 0 rgba(0,0,0,.04),
            0 2px 1px -1px rgba(0,0,0,.05),
            0 1px 3px 0 rgba(0,0,0,.05);

  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", monospace;
  --w: 628px;
}

/* ── Base ── */
body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg);
  padding-top: 40px;
  padding-bottom: 16px;
}

.nav-inner {
  max-width: var(--w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-link);
  transition: color .15s;
}

.nav-links a:hover { color: var(--text); }

/* ── Page content wrapper ── */
.content {
  max-width: var(--w);
  margin: 0 auto;
  padding-top: 141px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
}

/* Home: large gap between hero and cards */
.home .content  { gap: 101px; }

/* Case: uniform 64px between sections */
.case .content  { gap: 64px; }

/* ════════════════════════════
   HOME
════════════════════════════ */

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  color: var(--text);
}

.hero h1:hover { cursor: none; }

.hero h1 span { transition: color .35s ease; }

.hero h1:hover .hero-edo  { color: #202020; }
.hero h1:hover .hero-rest { color: #ededed; }

#emoji-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 22px;
  line-height: 1;
  transform: translate(-50%, -50%);
  user-select: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.hero p {
  font-size: 14px;
  font-weight: 450;
  line-height: 21px;
  color: var(--muted);
}

/* Cards list */
.cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.card-thumb {
  width: 240px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 180px;      /* ajuste conforme sua necessidade */
  object-fit: cover;  /* recorta sem distorcer */
  display: block;     /* remove o espaço extra abaixo da imagem */
}

.card-meta,
.card-desc {
  transition: color .15s;
}

.card:hover .card-meta,
.card:hover .card-desc {
  color: var(--text);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 12px;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: .008em;
  color: var(--text);
}

.card-meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  font-weight: 450;
  line-height: 18px;
  color: var(--muted);
}

.card-desc {
  font-size: 14px;
  font-weight: 450;
  line-height: 21px;
  color: var(--muted);
}

/* WIP card */
.card--wip {
  cursor: default;
}

.card--wip .card-thumb {
  position: relative;
}

.hover-card {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #323232d2;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
  padding: 20px;
  text-align: center;
}

.card--wip:hover .hover-card {
  opacity: 1;
}

.hover-card-icon {
  font-size: 20px;
  line-height: 1;
}

.hover-card-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #F7F7F7;
}

/* ════════════════════════════
   CASE STUDY
════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 450;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--text);
}

/* Case hero */
.case-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-hero h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  color: var(--text);
}

.case-meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  font-weight: 450;
  line-height: 18px;
  color: var(--muted);
}

/* Sections */
section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

section h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text);
}

section p {
  font-size: 14px;
  font-weight: 450;
  line-height: 21px;
  color: var(--muted);
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--quote-border);
  padding: 8px 0 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

blockquote p {
  font-size: 14px;
  font-weight: 450;
  line-height: 21px;
  color: var(--muted);
}

/* Figure */
.fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.fig-frame {
  width: 100%;
  border-radius: 8px;
  background: var(--figure-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fig-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder heights per figure */
.fig-frame--sm  { min-height: 242px; }
.fig-frame--md  { min-height: 256px; }
.fig-frame--lg  { min-height: 438px; }
.fig-frame--xl  { min-height: 471px; }

.fig-cap {
  font-size: 14px;
  font-weight: 450;
  color: #BEBEBE;
}

/* Personas */
.personas {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-block: 16px;
}

.persona {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.persona-avatar {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-avatar span {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  line-height: 18px;
}

.persona p {
  font-size: 14px;
  font-weight: 450;
  line-height: 21px;
  text-align: center;
  max-width: 240px;
  color: var(--muted);
}

/* Metrics */
.metrics {
  display: flex;
  gap: 16px;
}

.metric {
  flex: 1;
  background: var(--metric-bg);
  border-radius: 8px;
  padding: 16px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.metric-value {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  color: var(--muted);
}

.metric-label {
  font-size: 14px;
  font-weight: 450;
  line-height: 17.5px;
  text-align: center;
  color: var(--muted);
}

.metric-note {
  font-size: 10.5px;
  font-weight: 450;
  text-align: center;
  color: var(--muted);
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Agent table */
.table-wrap {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--card-bg);
}

.agent-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}

.agent-table thead tr {
  background: var(--table-head-bg);
}

.agent-table th {
  text-align: left;
  font-weight: 450;
  color: var(--nav-link);
  padding: 8px 16px;
  line-height: 18px;
}

.agent-table td {
  padding: 8px 16px;
  line-height: 18px;
  color: var(--muted);
  border-top: 1px solid var(--quote-border);
}

.ok   { color: var(--green);  }
.warn { color: var(--orange); }
