/* Clareo Labs — Design tokens (Mono Navy + Slate, coral accent) */
:root {
  --navy-deep: #0F1F35;
  --navy: #1E3A5F;
  --navy-mid: #2E4B73;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --paper: #FAFBFC;
  --ink: #0B1220;
  --coral: #EE6C4D;
  --coral-soft: #FCE0D6;
  --emerald: #047857;
  --amber: #B45309;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  --status-plan-bg:#F1F5F9; --status-plan-fg:#475569;
  --status-pilot-bg:#FEF3C7; --status-pilot-fg:#92400E;
  --status-operate-bg:#DBEAFE; --status-operate-fg:#1E40AF;
  --status-scale-bg:#D1FAE5; --status-scale-fg:#065F46;

  --serif: "Source Serif 4", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1200px;
  --container-narrow: 820px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* ---------- Top nav (institutional) ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,251,252,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; color: var(--navy-deep);
}
.brand-mark .logo {
  width: 22px; height: 22px;
  background: var(--navy-deep);
  position: relative; border-radius: 2px;
}
.brand-mark .logo::after {
  content: ""; position: absolute;
  right: -3px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; background: var(--coral);
  border-radius: 50%;
}
.brand-mark .name { font-size: 15px; }
.brand-mark .tag {
  font-size: 10px; letter-spacing: 2px; font-weight: 600;
  color: var(--slate-500); text-transform: uppercase;
  margin-left: 4px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13.5px; color: var(--slate-700); font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy-deep); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius);
  background: var(--navy-deep); color: white;
  font-size: 13.5px; font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy); }
.nav-cta svg { width: 12px; height: 12px; }
.lang-toggle {
  display: inline-flex; gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 11px; font-weight: 600;
  overflow: hidden;
}
.lang-toggle button {
  padding: 5px 9px; color: var(--slate-500); background: transparent;
  letter-spacing: 0.5px;
}
.lang-toggle button.active { background: var(--navy-deep); color: white; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 3px; font-weight: 700;
  color: var(--coral); text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--coral);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin-bottom: 28px;
  max-width: 950px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic; color: var(--coral);
}
.hero-sub {
  font-size: 19px; line-height: 1.5;
  color: var(--slate-700);
  max-width: 680px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--navy-deep); color: white; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--navy-deep);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--slate-50); border-color: var(--navy-deep); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: #d85a3c; }
.btn svg { width: 14px; height: 14px; }

.hero-meta {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.hero-meta-item .num {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  color: var(--navy-deep); letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta-item .lbl {
  font-size: 12px; color: var(--slate-500); margin-top: 8px;
  letter-spacing: 0.3px;
}

/* ---------- Section base ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-eyebrow {
  font-size: 11px; letter-spacing: 3px; font-weight: 700;
  color: var(--slate-500); text-transform: uppercase;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.12; letter-spacing: -0.018em;
  color: var(--navy-deep); margin-bottom: 18px;
  max-width: 780px;
}
.section-lead {
  font-size: 18px; line-height: 1.55; color: var(--slate-700);
  max-width: 720px; margin-bottom: 56px;
}
.section--dark {
  background: var(--navy-deep); color: var(--slate-100);
  border-bottom-color: transparent;
}
.section--dark .section-eyebrow { color: var(--coral); }
.section--dark .section-title { color: white; }
.section--dark .section-lead { color: var(--slate-300); }

/* Pull-quote / manifesto callout */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--navy-deep);
  max-width: 920px;
  margin: 32px 0;
  text-wrap: pretty;
}
.pullquote em { color: var(--coral); font-style: italic; }
.section--dark .pullquote { color: white; }

/* ---------- Apresentada vs Operada ---------- */
.compare-grid {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  gap: 32px;
  align-items: stretch;
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: white;
}
.compare-col.apres { background: var(--slate-50); }
.compare-col.oper {
  background: var(--navy-deep); color: var(--slate-100);
  border-color: var(--navy-deep);
}
.compare-col h3 {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.compare-col .sub {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--slate-500); font-weight: 600; margin-bottom: 24px;
}
.compare-col.oper .sub { color: var(--coral); }
.compare-col ul { list-style: none; padding: 0; }
.compare-col li {
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.5;
}
.compare-col.oper li { border-top-color: rgba(255,255,255,0.1); }
.compare-col li:first-child { border-top: 0; padding-top: 0; }
.compare-col li strong {
  display: block; font-weight: 600; color: var(--navy-deep);
  margin-bottom: 3px; font-size: 13px;
  letter-spacing: 0.2px;
}
.compare-col.oper li strong { color: white; }
.compare-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--coral); font-size: 22px;
}

/* ---------- 8 Pilares ---------- */
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: white; padding: 26px 24px;
  cursor: pointer; transition: all 0.18s ease;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 180px;
}
.pillar:hover {
  background: var(--slate-50);
}
.pillar.active {
  background: var(--navy-deep); color: white;
}
.pillar.active .num { color: var(--coral); }
.pillar.active .ttl { color: white; }
.pillar.active .desc { color: var(--slate-300); }
.pillar.active .tag { color: var(--coral); border-color: var(--coral); }
.pillar .num {
  font-family: var(--serif); font-size: 13px; color: var(--slate-400);
  letter-spacing: 1px; font-weight: 500;
}
.pillar .ttl {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  color: var(--navy-deep); line-height: 1.2; letter-spacing: -0.01em;
}
.pillar .desc {
  font-size: 12.5px; color: var(--slate-600); line-height: 1.45;
}
.pillar .tag {
  font-size: 9px; letter-spacing: 1.5px; font-weight: 700;
  color: var(--slate-500); text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 3px 7px; border-radius: 2px;
  align-self: flex-start;
  margin-top: auto;
}
.pillar-transversal {
  margin-top: 1px;
  background: var(--slate-50);
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-top: 0;
  display: flex; gap: 28px; align-items: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.pillar-transversal .icon-box {
  width: 64px; height: 64px;
  background: var(--coral); color: white;
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  flex-shrink: 0;
}
.pillar-transversal .body h4 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--navy-deep); margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.pillar-transversal .body p {
  font-size: 14px; color: var(--slate-600); line-height: 1.5;
  max-width: 720px;
}
.pillar-transversal .body span {
  font-size: 11px; letter-spacing: 2px; font-weight: 700;
  color: var(--coral); text-transform: uppercase;
}

/* ---------- Why now ---------- */
.whynow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.whynow-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.whynow-card .factor {
  font-size: 11px; letter-spacing: 2px; color: var(--coral);
  font-weight: 700; text-transform: uppercase; margin-bottom: 18px;
}
.whynow-card h4 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--navy-deep); margin-bottom: 14px;
  line-height: 1.2; letter-spacing: -0.01em;
}
.whynow-card p {
  font-size: 14px; color: var(--slate-600); line-height: 1.6;
}
.whynow-card .ref {
  font-size: 11px; color: var(--slate-500); margin-top: 16px;
  padding-top: 14px; border-top: 1px dashed var(--line-strong);
  font-family: var(--mono); letter-spacing: 0.3px;
}

/* ---------- Diferencial ---------- */
.diff-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.diff-table th, .diff-table td {
  text-align: left; padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.diff-table th {
  background: var(--slate-50);
  font-weight: 600; color: var(--slate-700);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}
.diff-table tr.clareo {
  background: var(--navy-deep); color: white;
}
.diff-table tr.clareo td { border-color: rgba(255,255,255,0.08); }
.diff-table tr.clareo strong { color: var(--coral); }
.diff-table tr:last-child td { border-bottom: 0; }
.diff-table .row-name { font-weight: 600; color: var(--navy-deep); }
.diff-table tr.clareo .row-name { color: white; }

/* ---------- Casos / portfolio ---------- */
.cases-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.case-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.case-card .badge {
  align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.case-card.axia .badge { background: var(--coral-soft); color: var(--coral); }
.case-card.tecno .badge { background: #DCFCE7; color: var(--emerald); }
.case-card h3 {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  color: var(--navy-deep); letter-spacing: -0.015em;
  line-height: 1.1;
}
.case-card .role { font-size: 13px; color: var(--slate-500); margin-top: -4px; }
.case-card .stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line);
}
.case-card .stats .stat .v {
  font-family: var(--serif); font-size: 26px; color: var(--navy-deep);
  letter-spacing: -0.02em; line-height: 1;
}
.case-card .stats .stat .l {
  font-size: 11px; color: var(--slate-500); margin-top: 6px;
  letter-spacing: 0.3px;
}
.case-card .desc { font-size: 14px; color: var(--slate-600); line-height: 1.55; }

/* ---------- Frameworks bar ---------- */
.frameworks {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: var(--slate-50);
}
.frameworks .lbl {
  font-size: 11px; letter-spacing: 3px; color: var(--slate-500);
  font-weight: 700; text-transform: uppercase;
  text-align: center; margin-bottom: 24px;
}
.frameworks .row {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 40px; align-items: center;
}
.fw-chip {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--slate-700);
  letter-spacing: 0.5px;
}
.fw-chip strong { color: var(--navy-deep); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep); color: var(--slate-300);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h5 {
  color: white; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px; font-weight: 700;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a {
  font-size: 13.5px; color: var(--slate-400);
  transition: color 0.15s;
}
.footer a:hover { color: white; }
.footer-meta {
  display: flex; justify-content: space-between;
  margin-top: 24px; align-items: center;
  font-size: 12px; color: var(--slate-500);
}
.footer .brand-mark { color: white; }
.footer .brand-mark .logo { background: white; }
.footer-tag {
  margin-top: 16px; font-size: 13.5px;
  color: var(--slate-400); max-width: 320px; line-height: 1.55;
}

/* ---------- Manifesto / longform ---------- */
.longform {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.6;
  color: var(--ink);
  max-width: 720px;
}
.longform p { margin-bottom: 1.4em; text-wrap: pretty; }
.longform h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; letter-spacing: -0.015em;
  margin: 2em 0 0.8em; color: var(--navy-deep);
}
.longform .lead {
  font-size: 24px; line-height: 1.45; color: var(--slate-700);
  font-style: italic; margin-bottom: 2em;
}
.longform em { color: var(--coral); font-style: italic; }

/* ---------- Utilities ---------- */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.muted { color: var(--slate-500); }
.tiny { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.divider-line {
  height: 1px; background: var(--line); margin: 80px 0;
}

@media (max-width: 960px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .whynow-grid, .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
