/* ================================================================
   ADIFY — main.css
   Camadas: tokens → base → componentes → seções → utilitários
   ================================================================ */

/* ================================================================
   01. TOKENS
   ================================================================ */
:root {
  /* Fundos */
  --ink:        #071420;
  --surface:    #0D2233;
  --surface-2:  #112840;

  /* Destaque — usar com extrema parcimônia */
  --signal:        #2BD9C7;
  --signal-dim:    rgba(43, 217, 199, 0.10);
  --signal-border: rgba(43, 217, 199, 0.28);
  --warm:          #F0B429;   /* âmbar: máx. 2 usos por página */

  /* Texto sobre fundo escuro */
  --text-primary: #E9F1EF;
  --text-muted:   #8FA6A3;
  --text-faint:   #3A5A5A;

  /* Seções claras */
  --paper:       #F5F8F7;
  --paper-text:  #0D2233;
  --paper-muted: #5A7A7A;

  /* Bordas */
  --border:       rgba(255, 255, 255, 0.06);
  --border-light: rgba(13, 34, 51, 0.10);

  /* Fontes */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Escala tipográfica fluida */
  --text-xs:   clamp(0.625rem, 1.5vw,  0.75rem);
  --text-sm:   clamp(0.75rem,  2vw,    0.875rem);
  --text-base: clamp(0.875rem, 2.5vw,  1rem);
  --text-lg:   clamp(1rem,     2.5vw,  1.125rem);
  --text-xl:   clamp(1.125rem, 3vw,    1.375rem);
  --text-2xl:  clamp(1.375rem, 3.5vw,  1.75rem);
  --text-3xl:  clamp(1.75rem,  4.5vw,  2.5rem);
  --text-4xl:  clamp(2.25rem,  5.5vw,  3.25rem);
  --text-5xl:  clamp(3rem,     7vw,    4.75rem);
  --text-6xl:  clamp(3.75rem,  9vw,    6.25rem);

  /* Espaçamento (base 8px) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Easing global */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Transições */
  --t:      240ms var(--ease-out);
  --t-fast: 160ms var(--ease-out);

  /* Radii */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Header */
  --header-h: 72px;
}

/* ================================================================
   02. BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
  padding-left: 0;
}

cite {
  font-style: normal;
}

blockquote {
  margin: 0;
}

/* ================================================================
   03. TIPOGRAFIA
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  line-height: 1.7;
}

strong {
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-4);
  display: block;
}

.eyebrow-dark {
  color: var(--paper-text);
  opacity: 0.45;
}

/* ================================================================
   04. LAYOUT
   ================================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--sp-10); }
}

@media (min-width: 1280px) {
  .container { padding: 0 var(--sp-12); }
}

/* ================================================================
   05. COMPONENTES
   ================================================================ */

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r);
  border: 1.5px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn-signal {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}

.btn-signal:hover {
  background: #4AEDE2;
  border-color: #4AEDE2;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(43, 217, 199, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: var(--signal-dim);
}

.btn-outline-dark {
  background: transparent;
  color: var(--paper-text);
  border-color: rgba(13, 34, 51, 0.22);
}

.btn-outline-dark:hover {
  border-color: var(--paper-text);
  background: rgba(13, 34, 51, 0.06);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-lg);
}

.btn-xl {
  font-size: var(--text-lg);
  padding: var(--sp-5) var(--sp-10);
  border-radius: var(--r-lg);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), height var(--t);
}

.site-header .container {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-header.scrolled {
  background: rgba(7, 20, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  height: 60px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 22px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Nav principal */
.main-nav {
  margin-left: auto;
  margin-right: var(--sp-6);
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.main-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
  display: block;
}

.main-nav a:hover,
.main-nav .active > a {
  color: var(--text-primary);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  opacity: 0.6;
  vertical-align: middle;
}

.dropdown {
  position: absolute;
  top: calc(100% + var(--sp-3));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  font-size: var(--text-sm);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  display: block;
  color: var(--text-muted);
}

.dropdown a:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

/* CTA no header */
.header-cta {
  flex-shrink: 0;
}

/* Toggle mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--t);
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .menu-toggle { display: flex; }
  .header-cta  { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ink);
    padding: var(--sp-6);
    overflow-y: auto;
    margin: 0;
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    font-size: var(--text-xl);
    padding: var(--sp-4) 0;
    color: var(--text-primary);
  }

  .has-dropdown > a::after {
    float: right;
    margin-top: 10px;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 var(--sp-4) var(--sp-4);
    display: none;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .dropdown a {
    font-size: var(--text-base);
    padding: var(--sp-2) 0;
    color: var(--text-muted);
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-20) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-16);
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-8);
  }
}

.footer-brand .logo {
  margin-bottom: var(--sp-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  color: var(--text-faint);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-chapeco {
  color: var(--text-muted);
}

/* ================================================================
   06. SEÇÕES — HOME
   ================================================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--sp-16));
  padding-bottom: var(--sp-32);
  overflow: hidden;
  background: var(--ink);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

/* Mostrado apenas quando prefers-reduced-motion ativa */
@media (prefers-reduced-motion: reduce) {
  .hero__fallback { display: block; }
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7, 20, 32, 0.92) 0%,
    rgba(7, 20, 32, 0.7)  50%,
    rgba(7, 20, 32, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--signal);
  flex-shrink: 0;
}

.hero__headline {
  font-size: var(--text-5xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  max-width: 820px;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* ---- Faixa do paradoxo ---- */
.paradox-strip {
  background: var(--surface);
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-12);
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  padding: var(--sp-8);
}

@media (min-width: 640px) {
  .stat-card {
    border-right: 1px solid var(--border);
  }
  .stat-card:last-child {
    border-right: none;
  }
}

@media (max-width: 639px) {
  .stat-card {
    padding: var(--sp-6) 0;
    border-bottom: 1px solid var(--border);
  }
  .stat-card:last-child {
    border-bottom: none;
  }
}

.stat-number {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.stat-prefix {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-muted);
}

.stat-unit {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--signal);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
}

.stat-source {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  display: block;
}

.paradox-close {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding-top: var(--sp-10);
  border-top: 1px solid var(--border);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* ---- Seção Dor ---- */
.pain-section {
  background: var(--paper);
  padding: var(--sp-24) 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

@media (min-width: 1024px) {
  .pain-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    gap: var(--sp-20);
  }
}

.pain-header h2 {
  color: var(--paper-text);
  margin-bottom: var(--sp-5);
}

.pain-intro {
  color: var(--paper-muted);
  font-size: var(--text-lg);
}

.pain-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.pain-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--t), transform var(--t);
}

.pain-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.pain-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--paper-text);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.pain-fact {
  font-size: var(--text-sm);
  color: var(--paper-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
}

.pain-stat {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--paper-text);
}

.pain-close {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--paper-text);
  text-align: center;
  margin-top: var(--sp-14);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--border-light);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ---- Seção Método ---- */
.method-section {
  background: var(--ink);
  padding: var(--sp-24) 0;
}

.method-section > .container > h2 {
  color: var(--text-primary);
  max-width: 620px;
  margin-bottom: var(--sp-4);
}

.method-sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-16);
  max-width: 520px;
}

.method-pipeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 1024px) {
  .method-pipeline {
    flex-direction: row;
    gap: 0;
    align-items: stretch;
  }
}

.method-step {
  position: relative;
  flex: 1;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t), background var(--t);
}

@media (min-width: 1024px) {
  .method-step {
    border-radius: 0;
    border-right: none;
  }
  .method-step:first-child {
    border-radius: var(--r-lg) 0 0 var(--r-lg);
  }
  .method-step:last-child {
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    border-right: 1px solid var(--border);
  }
  .method-step:hover:last-child {
    border-right-color: var(--signal-border);
  }
}

.method-step:hover {
  border-color: var(--signal-border);
  background: var(--surface-2);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--signal);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
  display: block;
}

.method-step h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.method-step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Conectores entre etapas (desktop) */
.step-arrow {
  display: none;
}

@media (min-width: 1024px) {
  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .step-arrow::after {
    content: '';
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--signal-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12'%3E%3Cpath d='M2 6h8M7 3l3 3-3 3' stroke='%232BD9C7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
  }
}

.method-foot {
  margin-top: var(--sp-12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8);
}

.method-stat {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.method-stat strong {
  color: var(--signal);
}

.method-stat cite {
  color: var(--text-faint);
  font-size: 0.85em;
  font-family: var(--font-mono);
}

/* ---- Seção Cases ---- */
.cases-section {
  background: var(--paper);
  padding: var(--sp-24) 0;
}

.cases-section h2 {
  color: var(--paper-text);
  margin-bottom: var(--sp-12);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
}

.case-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: box-shadow var(--t), transform var(--t);
}

.case-card:hover {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

.case-sector {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-light);
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--paper-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--paper-muted);
  line-height: 1.45;
}

.case-desc {
  font-size: var(--text-sm);
  color: var(--paper-muted);
  line-height: 1.7;
}

.cases-cta {
  margin-top: var(--sp-12);
  text-align: center;
}

/* ---- Seção Stack ---- */
.stack-section {
  background: var(--ink);
  padding: var(--sp-24) 0;
}

.stack-section h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.stack-sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-12);
  max-width: 520px;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
}

.stack-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--t), background var(--t);
}

.stack-item:hover {
  border-color: var(--signal-border);
  background: var(--surface-2);
}

.stack-icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--sp-4);
  color: var(--signal);
}

.stack-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.015em;
}

.stack-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Seção Longevidade ---- */
.longevity-section {
  background: var(--surface);
  padding: var(--sp-24) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.longevity-inner {
  max-width: 820px;
}

.longevity-quote {
  margin-bottom: var(--sp-8);
}

.longevity-quote > p {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-6);
}

.longevity-quote .accent {
  color: var(--signal);
}

.longevity-quote footer {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.longevity-body {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ---- CTA Diagnóstico ---- */
.diag-cta {
  background: var(--ink);
  padding: var(--sp-24) 0;
  text-align: center;
}

.diag-cta h2 {
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto var(--sp-3);
}

.diag-sub {
  font-size: var(--text-xl);
  color: var(--text-muted);
  margin-bottom: var(--sp-12);
}

.maturity-stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.stage {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.stage-1 { opacity: 0.45; }
.stage-2 { opacity: 0.6;  }
.stage-3 { opacity: 0.78; }
.stage-4 {
  opacity: 1;
  color: var(--signal);
  border-color: var(--signal-border);
  background: var(--signal-dim);
}

.stage-arrow {
  color: var(--text-faint);
  font-size: var(--text-base);
  font-family: var(--font-mono);
}

.diag-credit {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-10);
}

/* ================================================================
   07. ANIMAÇÕES
   ================================================================ */

/* Reveal no scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 540ms var(--ease-out), transform 540ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* O stagger é aplicado via JS (transitionDelay inline) */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .pain-card,
  .case-card,
  .stack-item,
  .method-step {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ================================================================
   08. UTILITÁRIOS
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-signal { color: var(--signal); }
.text-warm   { color: var(--warm); }
.text-center { text-align: center; }
.mt-sp-14    { margin-top: 3.5rem; }

/* ================================================================
   09. PÁGINAS INTERNAS — elementos comuns
   ================================================================ */

/* Hero de página interna (menor que o da home) */
.page-hero {
  background: var(--ink);
  padding-top: calc(var(--header-h) + var(--sp-20));
  padding-bottom: var(--sp-20);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: var(--sp-5);
  color: var(--text-primary);
}

.page-hero .lead {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.breadcrumb a {
  color: var(--text-faint);
  transition: color var(--t-fast);
}

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

.breadcrumb-sep {
  opacity: 0.4;
}

/* CTA de seção genérica */
.section-cta {
  background: var(--ink);
  padding: var(--sp-20) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.section-cta h2 {
  color: var(--text-primary);
  max-width: 620px;
  margin: 0 auto var(--sp-4);
}

.section-cta p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
}

/* ================================================================
   10. PÁGINA /metodo/
   ================================================================ */
.method-intro {
  background: var(--surface);
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}

.method-intro p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
}

.method-intro .highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.highlight-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--signal-border);
  border-radius: var(--r);
  color: var(--signal);
  background: var(--signal-dim);
}

/* Steps detalhados */
.method-steps-section {
  background: var(--ink);
  padding: var(--sp-8) 0;
}

.method-detail-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .method-detail-step {
    grid-template-columns: 260px 1fr;
    gap: var(--sp-16);
    align-items: start;
  }
}

.method-detail-step:last-child {
  border-bottom: none;
  padding-bottom: var(--sp-8);
}

.step-sidebar {
  position: relative;
}

@media (min-width: 1024px) {
  .step-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-8));
  }
}

.step-big-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  color: var(--signal);
  line-height: 1;
  opacity: 0.12;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
  user-select: none;
}

.step-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: var(--sp-3);
}

.step-sidebar h2 {
  font-size: var(--text-3xl);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.step-sidebar .step-icon {
  color: var(--signal);
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-5);
  opacity: 0.8;
}

.step-body > p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.step-body > h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.015em;
}

/* Callout de dado */
.data-callout {
  background: var(--signal-dim);
  border: 1px solid var(--signal-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
}

.callout-stat {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--signal);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.data-callout > p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
}

.data-callout > p:last-child {
  margin-bottom: 0;
}

.data-callout cite {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.06em;
  display: block;
  margin-top: var(--sp-2);
}

/* Entregáveis */
.deliverables-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
  display: block;
}

.deliverables {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.deliverable {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.deliverable::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  margin-top: 0.45em;
}

/* FAQ */
.faq-section {
  background: var(--surface);
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-10);
  max-width: 500px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 800px;
}

.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item.is-open {
  border-color: var(--signal-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  cursor: pointer;
  transition: background var(--t-fast);
  border: none;
  background: none;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.025);
}

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t), border-color var(--t);
  color: var(--signal);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--signal-border);
}

.faq-answer {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ================================================================
   11. PÁGINA /cases/
   ================================================================ */
.cases-page-intro {
  background: var(--surface);
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--border);
}

.cases-page-intro p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.case-featured-wrap {
  background: var(--ink);
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}

.case-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t);
}

.case-featured-card:hover {
  border-color: var(--signal-border);
}

@media (min-width: 1024px) {
  .case-featured-card {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-14);
    padding: var(--sp-12);
    align-items: start;
  }
}

.case-featured-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-5);
  display: block;
}

.case-featured-sector {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.case-featured-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.case-featured-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.case-featured-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.feat-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.feat-metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

.case-right-col h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.015em;
}

.case-right-col p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.case-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-faint);
}

.cases-all-section {
  background: var(--paper);
  padding: var(--sp-20) 0;
}

.cases-all-section h2 {
  color: var(--paper-text);
  margin-bottom: var(--sp-12);
}

/* ================================================================
   12. PÁGINA /diagnostico/
   ================================================================ */
.diag-page {
  background: var(--ink);
  min-height: 100vh;
}

.diag-static-intro {
  background: var(--surface);
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}

.diag-static-intro p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: var(--sp-6);
}

.stages-static {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

@media (min-width: 768px) {
  .stages-static { grid-template-columns: repeat(4, 1fr); }
}

.stage-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.stage-card-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--signal);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-2);
  display: block;
}

.stage-card h3 {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.stage-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Wrapper do quiz (JS injection) */
.quiz-wrap {
  padding: var(--sp-16) 0 var(--sp-24);
}

.quiz-inner {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--sp-12);
}

.quiz-progress-fill {
  height: 100%;
  background: var(--signal);
  border-radius: 2px;
  transition: width 400ms var(--ease-out);
  width: 0%;
}

.quiz-step-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-5);
}

.q-text {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--sp-8);
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.q-option {
  width: 100%;
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  line-height: 1.5;
}

.q-option:hover {
  border-color: var(--signal-border);
  background: var(--surface-2);
  color: var(--text-primary);
}

.q-option.selected {
  border-color: var(--signal);
  background: var(--signal-dim);
  color: var(--text-primary);
}

.option-letter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-width: 20px;
}

.q-option.selected .option-letter {
  color: var(--signal);
}

/* Resultado */
.quiz-result {
  display: none;
}

.quiz-result.is-visible {
  display: block;
}

.result-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-3);
  display: block;
}

.result-stage-name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}

.result-desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

/* Barras por dimensão */
.dim-bars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.dim-bar-row {
  display: grid;
  align-items: center;
  gap: var(--sp-4);
  grid-template-columns: 130px 1fr 36px;
}

.dim-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dim-track {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  background: var(--signal);
  border-radius: 3px;
  width: 0%;
  transition: width 900ms var(--ease-out);
}

.dim-score-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-align: right;
}

/* Gate — formulário de captura */
.result-gate {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-10);
  margin-top: var(--sp-4);
}

.gate-intro h3 {
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.gate-intro p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--sp-6);
  line-height: 1.7;
}

.gate-form {
  display: none;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.gate-form.is-visible {
  display: flex;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-field input,
.form-field select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--t-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input::placeholder {
  color: var(--text-faint);
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--signal-border);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238FA6A3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-field select option {
  background: var(--surface);
  color: var(--text-primary);
}

.form-privacy {
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.65;
  margin-top: var(--sp-1);
}

.form-success {
  display: none;
  padding: var(--sp-8);
  background: var(--signal-dim);
  border: 1px solid var(--signal-border);
  border-radius: var(--r-lg);
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-success p {
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* ================================================================
   13. PÁGINA /servicos/ — HUB
   ================================================================ */
.servicos-hub {
  background: var(--ink);
  padding: var(--sp-20) 0;
}

.servicos-hub h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.servicos-hub-sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-14);
  max-width: 560px;
}

.servicos-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .servicos-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t), transform var(--t), background var(--t);
  display: flex;
  flex-direction: column;
}

.service-hub-card:hover {
  border-color: var(--signal-border);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.service-hub-icon {
  width: 40px;
  height: 40px;
  color: var(--signal);
  margin-bottom: var(--sp-5);
}

.service-hub-card h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.service-hub-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  flex: 1;
}

.service-hub-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.service-hub-bullet {
  font-size: var(--text-xs);
  color: var(--text-faint);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  line-height: 1.5;
}

.service-hub-bullet::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  margin-top: 0.45em;
  opacity: 0.7;
}

.service-hub-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--t-fast);
}

.service-hub-link:hover {
  gap: var(--sp-3);
}

/* ================================================================
   14. PÁGINAS DE SERVIÇO DETALHE
   ================================================================ */
.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
}

.service-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  transition: border-color var(--t-fast);
}

.service-feature:hover {
  border-color: var(--signal-border);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--signal);
  letter-spacing: 0.1em;
  padding-top: 2px;
  min-width: 28px;
}

.feature-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.feature-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.results-strip {
  background: var(--signal-dim);
  border: 1px solid var(--signal-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin: var(--sp-12) 0;
}

.results-strip-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-5);
  display: block;
}

.results-strip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.strip-metric {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.strip-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1;
}

.strip-metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.related-services {
  background: var(--surface);
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--border);
}

.related-services h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
  font-size: var(--text-2xl);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: border-color var(--t-fast);
}

.related-card:hover {
  border-color: var(--signal-border);
}

.related-card-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.related-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.related-card-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--signal);
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* ================================================================
   15. PÁGINA /sobre/
   ================================================================ */
.about-story {
  background: var(--paper);
  padding: var(--sp-20) 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

@media (min-width: 1024px) {
  .about-story-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--sp-16);
  }
}

.about-story h2 {
  color: var(--paper-text);
  margin-bottom: var(--sp-6);
}

.about-story p {
  color: var(--paper-muted);
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.about-story p:last-child {
  margin-bottom: 0;
}

/* Placeholder de foto */
.photo-placeholder {
  background: var(--paper-muted);
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  opacity: 0.35;
}

.about-manifesto {
  background: var(--ink);
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--border);
}

.manifesto-quote {
  max-width: 800px;
}

.manifesto-quote > p {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-6);
}

.manifesto-quote .accent {
  color: var(--signal);
}

.manifesto-body {
  max-width: 620px;
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.75;
}

.about-values {
  background: var(--surface);
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--border);
}

.about-values h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-12);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

.value-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--signal);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
  display: block;
}

.value-card h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================================
   16. PÁGINA /contato/
   ================================================================ */
.contact-section {
  background: var(--ink);
  padding: var(--sp-20) 0 var(--sp-32);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
}

@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 1.4fr; gap: var(--sp-20); }
}

.contact-info h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.contact-info > p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.ci-icon {
  width: 36px;
  height: 36px;
  background: var(--signal-dim);
  border: 1px solid var(--signal-border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--signal);
}

.ci-icon svg {
  width: 18px;
  height: 18px;
}

.ci-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-1);
}

.ci-value {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.5;
}

.ci-value a {
  color: var(--text-primary);
  transition: color var(--t-fast);
}

.ci-value a:hover {
  color: var(--signal);
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}

.contact-form-wrap h3 {
  color: var(--text-primary);
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.015em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-form textarea {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color var(--t-fast);
  width: 100%;
  line-height: 1.6;
}

.contact-form textarea::placeholder {
  color: var(--text-faint);
}

.contact-form textarea:focus {
  border-color: var(--signal-border);
}

.contact-form .form-field input,
.contact-form .form-field select {
  background: var(--surface-2);
}

/* ================================================================
   17. 404
   ================================================================ */
.error-page {
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--sp-32) 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  color: var(--signal);
  opacity: 0.12;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: var(--sp-2);
  user-select: none;
}

.error-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.error-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--sp-10);
  max-width: 480px;
  line-height: 1.7;
}

.error-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

@media (min-width: 480px) {
  .error-nav { flex-direction: row; flex-wrap: wrap; }
}

.error-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.error-link:hover {
  color: var(--signal);
  border-color: var(--signal-border);
}
