/* ============================================================
   NKN DIGITAL — Design System
   Tema claro, identidade tech (mono + grid + verde da marca).
   Alterar cores: editar as variáveis abaixo, nada mais no CSS.
   ============================================================ */

:root {
  --bg: #f5f7fc;
  --bg-alt: #eef1fa;
  --surface: #ffffff;
  --surface-hover: #f3f5fc;
  --border: #e2e6f3;
  --border-soft: #eceffa;

  --text: #0b0f1f;
  --text-muted: #565d78;
  --text-faint: #8a90ac;

  --accent: #0f9c85;
  --accent-strong: #0b7a68;
  --accent-soft: rgba(15, 156, 133, 0.08);
  --accent-border: rgba(15, 156, 133, 0.28);

  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --shadow-card: 0 24px 50px -28px rgba(30, 41, 82, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea {
  font-family: inherit;
}

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

section {
  position: relative;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.eyebrow::before {
  content: "//";
  color: var(--accent);
  font-weight: 700;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

h1, .h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h3, .h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
}

.section-head {
  max-width: none;
  margin-bottom: 3rem;
}

.section-head.center {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 0.9rem;
}

.section-head p {
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px -14px rgba(15, 156, 133, 0.55);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(15, 156, 133, 0.65);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(245, 247, 252, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 104px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.site-header.scrolled .brand img {
  height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 6.5rem var(--gutter) 2.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav a {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}

.mobile-nav .header-cta {
  margin-top: 2rem;
  flex-direction: column;
  align-items: stretch;
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(9rem, 16vw, 11.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  margin-top: 1.1rem;
}

.hero .lead {
  margin-top: 1.4rem;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.3rem;
}

.hero-note {
  margin-top: 2.6rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Painel visual do hero */
.hero-panel-wrap {
  position: relative;
}

.hero-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.3rem 1.4rem;
  z-index: 1;
}

.hero-panel-dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hero-panel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.hero-panel-dots span:nth-child(1) { background: #f87171; }
.hero-panel-dots span:nth-child(2) { background: #fbbf24; }
.hero-panel-dots span:nth-child(3) { background: #34d399; }

.hero-panel-lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-panel-lines span {
  display: block;
  height: 1em;
}

.hero-panel-lines .l1 { color: var(--accent); width: 70%; }
.hero-panel-lines .l2 { width: 92%; }
.hero-panel-lines .l3 { width: 55%; }
.hero-panel-lines .l4 { color: var(--accent); width: 80%; }
.hero-panel-lines .l5 { width: 40%; }

.hero-panel-lines span::before {
  content: "";
  display: inline-block;
  height: 0.85em;
  width: 100%;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.16;
  vertical-align: middle;
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
}

.hero-chip .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.hero-chip .dot svg {
  width: 14px;
  height: 14px;
}

.hero-chip-erp {
  top: -1.1rem;
  left: -1.4rem;
}

.hero-chip-wa {
  bottom: -1.1rem;
  right: -1.2rem;
}

/* ---------- Faixa de clientes ---------- */
.trust-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 1.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.trust-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  animation: trustScroll 34s linear infinite;
}

.trust-track img {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.trust-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes trustScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track {
    animation: none;
  }
}

.page-hero {
  padding: clamp(7.5rem, 14vw, 9.5rem) 0 3.5rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}

.page-hero .lead {
  margin-top: 1.1rem;
  max-width: none;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 0 0.5rem;
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stats-footnote {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ---------- Frentes (ERP / Sob Medida) ---------- */
.frentes {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.frente-card {
  position: relative;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.frente-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.frente-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.frente-card h3.headline {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-top: 0.9rem;
}

.frente-card p.desc {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.frente-list {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.frente-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.frente-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.frente-card .btn {
  margin-top: 1.8rem;
}

/* ---------- Project cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-alt), var(--surface-hover));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.8;
}

.project-thumb svg {
  width: 34%;
  height: 34%;
  color: var(--accent);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.project-thumb-img {
  background: var(--bg-alt);
}

.project-thumb-img::after {
  display: none;
}

.project-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.demo-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: rgba(13, 19, 22, 0.85);
  border: 1px solid var(--accent-border);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.project-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.project-category {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.project-body h3 {
  font-size: 1.15rem;
}

.project-row {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.project-row strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.project-client {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: -0.4rem;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-summary + .spec-link {
  margin-top: -0.3rem;
}

.projects-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ---------- Filters (Projetos page) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

/* ---------- Quem é a NKN ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text p {
  color: var(--text-muted);
  margin-top: 1.1rem;
}

.about-text p:first-of-type {
  margin-top: 1.3rem;
}

/* ---------- Especializadas ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.spec-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.spec-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.spec-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.spec-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.spec-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.spec-icon svg {
  width: 22px;
  height: 22px;
}

.spec-card h3 {
  margin-bottom: 0.7rem;
}

.step-card {
  position: relative;
}

.step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.step-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 46px;
  right: -0.75rem;
  transform: translate(50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-border);
  z-index: 2;
}

.step-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 46px;
  right: -0.75rem;
  transform: translate(50%, -50%);
  z-index: 3;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

/* linhas de 3: some a seta no fim de cada linha (item 3 e 6), não só no último */
.flow-grid .step-card:nth-child(3n)::before,
.flow-grid .step-card:nth-child(3n)::after {
  display: none;
}

/* linhas de 4: some a seta no fim de cada linha (item 4, 8...), não só no último */
.flow-grid-4 .step-card:nth-child(4n)::before,
.flow-grid-4 .step-card:nth-child(4n)::after {
  display: none;
}

/* cards numerados sem seta de conexão entre eles */
.no-connector .step-card::before,
.no-connector .step-card::after {
  display: none;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spec-row {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--border);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.spec-row:hover {
  border-color: var(--accent-border);
  border-left-color: var(--accent);
}

.spec-row-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.spec-row .spec-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.spec-row .spec-icon svg {
  width: 24px;
  height: 24px;
}

.spec-row h3 {
  font-size: 1.3rem;
}

.spec-row p {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 62ch;
}

.spec-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.spec-link:hover {
  color: var(--accent-strong);
}

/* ---------- AI highlight ---------- */
.ai-highlight {
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background:
    radial-gradient(ellipse 640px 320px at 12% -10%, var(--accent-soft), transparent 65%),
    var(--surface);
}

.ai-highlight h2 {
  margin-top: 0.8rem;
}

.ai-highlight .lead {
  margin-top: 1.1rem;
  max-width: 760px;
}

.ai-points {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ai-point h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

.ai-point p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.case-result .lead {
  max-width: 68ch;
}

.case-result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.6rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background: radial-gradient(ellipse 700px 300px at 50% -20%, rgba(15, 156, 133, 0.08), transparent 65%), var(--bg);
}

.cta-band h2 {
  max-width: 600px;
  margin: 0 auto;
}

.cta-band .lead {
  max-width: 520px;
  margin: 1rem auto 0;
}

.cta-band .btn {
  margin-top: 2rem;
}

/* ---------- Contact page ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.contact-card .icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .icon svg {
  width: 24px;
  height: 24px;
}

.contact-card-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.contact-card-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-card-primary {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-color: var(--accent-border);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.office-info {
  padding: 1.75rem;
}

.office-info strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.office-info span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.office-map {
  aspect-ratio: 16 / 10;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

/* ---------- Case study (projeto real) ---------- */
.case-hero-photo {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg, var(--surface-hover), var(--surface-hover) 10px, var(--surface) 10px, var(--surface) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.case-hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  line-height: 0;
}

.case-hero-image > img {
  width: 100%;
  height: auto;
  display: block;
}

/* variante com foto de fundo padrão + lente escura + logo do cliente */
.case-hero-branded {
  aspect-ratio: 21 / 9;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 22, 0.72), rgba(13, 19, 22, 0.88));
}

.case-hero-logo-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 4rem);
  max-height: calc(100% - 4rem);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.case-hero-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 90px;
  object-fit: contain;
}

/* logo clara o suficiente para ir direto sobre a lente escura, sem cartão branco */
.case-hero-logo-standalone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(280px, calc(100% - 4rem));
  max-height: calc(100% - 4rem);
}

/* mesma composição, em miniatura, para a capa do card do projeto */
.project-thumb-branded {
  background: #0d1316;
}

.project-thumb-branded::after {
  display: none;
}

.project-thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 22, 0.72), rgba(13, 19, 22, 0.88));
}

.project-thumb-logo-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 40px;
  object-fit: contain;
}

.project-thumb-logo-standalone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(150px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
}

.case-hero-logo-plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.case-hero-logo-plate img {
  width: auto;
  max-width: min(58%, 380px);
  height: auto;
  background: #fff;
  padding: 1.4rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
}

.case-content {
  max-width: 68ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.case-content h2 {
  margin-top: 1.2rem;
}

.case-content h2:first-child {
  margin-top: 0;
}

.case-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.case-content .frente-list {
  margin-top: 0.2rem;
}

.case-content .spec-link {
  margin-top: 0.5rem;
}

/* ---------- Case carousel ---------- */
.case-carousel {
  position: relative;
  max-width: 68ch;
  margin: 0 auto;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s var(--ease);
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 19, 22, 0.75);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  border-color: var(--accent-border);
  background: rgba(13, 19, 22, 0.92);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}

/* ---------- Lightbox ---------- */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(6, 9, 11, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  border-color: var(--accent-border);
  color: var(--accent-strong);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-nav:hover {
  border-color: var(--accent-border);
  color: var(--accent-strong);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: clamp(0.75rem, 3vw, 2rem);
}

.lightbox-next {
  right: clamp(0.75rem, 3vw, 2rem);
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3.5rem 0 2rem;
  background: var(--bg-alt);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.footer-brand img {
  height: 60px;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 300px;
}

.footer-nav {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

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

.address-item {
  margin-bottom: 0.9rem;
}

.address-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.address-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px -10px rgba(15, 156, 133, 0.55);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wa-float:hover {
  background: var(--accent-strong);
  transform: scale(1.07);
  box-shadow: 0 18px 38px -8px rgba(15, 156, 133, 0.65);
}

.wa-float svg {
  width: 27px;
  height: 27px;
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav,
  .header-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand img {
    height: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel-wrap {
    max-width: 420px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
  }

  .contact-cards,
  .offices-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid-3,
  .spec-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card::before,
  .step-card::after {
    display: none;
  }

  .ai-points {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid-3,
  .spec-grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn,
  .cta-band .btn {
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-panel-wrap {
    display: none;
  }

  .footer-nav {
    gap: 2rem;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
