:root {
  /* ===== Modo diurno (claro) ===== */
  --bg: #ffffff;
  --bg-soft: #f2f3f5;
  --surface: #ffffff;
  --border: #e2e4e9;
  --text: #14151a;
  --muted: #565b66;          /* ≥ 4.5:1 sobre bg e bg-soft */
  --brand: #14151a;
  --on-brand: #ffffff;
  --accent: #8a8f99;         /* cinza do "l" do logo */
  --hairline: #d6d9df;
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 44px -22px rgba(10, 12, 20, .28);
  --dock-bg: rgba(255, 255, 255, 0.55);
  --dock-border: rgba(255, 255, 255, 0.7);
  --dock-active: rgba(0, 0, 0, 0.06);
  --dock-shadow: 0 8px 30px rgba(0, 0, 0, .18);

  /* palco escuro (hero / cta) — constante nos dois temas: identidade preto */
  --stage: #0b0c0f;
  --stage-2: #16181d;
  --stage-ink: #f4f5f7;
  --stage-muted: #9aa0ab;    /* ≥ 4.5:1 sobre --stage */
  --stage-line: rgba(255, 255, 255, .14);
  --stage-glow: rgba(190, 194, 204, .26);

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --maxw: 1160px;
  --ease-out: cubic-bezier(.16, .84, .28, 1);

  /* escala de z-index semântica */
  --z-marquee: 1;
  --z-header: 50;
  --z-dock: 60;
  --z-fab: 65;
}

:root[data-theme="dark"] {
  /* ===== Modo noturno (escuro) ===== */
  --bg: #0a0b0e;
  --bg-soft: #101217;
  --surface: #14161c;
  --border: #23262f;
  --text: #eceef3;
  --muted: #a7adba;          /* ≥ 4.5:1 sobre bg escuro */
  --brand: #eceef3;
  --on-brand: #0a0b0e;
  --accent: #8f95a1;
  --hairline: #262a33;
  --header-bg: rgba(10, 11, 14, 0.72);
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, .7);
  --dock-bg: rgba(24, 27, 34, 0.5);
  --dock-border: rgba(255, 255, 255, 0.12);
  --dock-active: rgba(255, 255, 255, 0.14);
  --dock-shadow: 0 8px 30px rgba(0, 0, 0, .5);

  --stage: #050608;
  --stage-2: #0f1115;
  --stage-glow: rgba(150, 170, 220, .22);
}

html { color-scheme: light dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* micro-rótulo técnico (voz monospace) */
.label,
.hero .eyebrow,
.article-tag,
.hero-scroll,
.footer-bottom p,
.hero-proof dd {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* ===== Logo ===== */
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 29px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-accent { color: var(--accent); }
.logo-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-out), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
.btn-ghost { border-color: var(--hairline); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 18px 38px; font-size: 17px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, border-color .3s ease;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease-out), background .3s;
}
.theme-toggle:hover { border-color: var(--text); transform: translateY(-2px); }
.theme-toggle svg {
  grid-area: 1 / 1;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.icon-sun  { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: 4px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 112px;
  background: var(--stage);
  color: var(--stage-ink);
}
.hero-inner { position: relative; z-index: 2; max-width: 940px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--stage-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #46d17f;
  box-shadow: 0 0 0 4px rgba(70, 209, 127, .18);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 8.5vw, 92px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--stage-ink);
}
.hero h1 .accent {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--stage-muted);
  text-stroke: 1.4px var(--stage-muted);
}
.hero-sub {
  color: var(--stage-muted);
  font-size: clamp(17px, 2.2vw, 20px);
  margin: 28px 0 38px;
  max-width: 62ch;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost {
  background: rgba(255, 255, 255, .05);
  border-color: var(--stage-line);
  color: var(--stage-ink);
}
.hero .btn-ghost:hover { border-color: var(--stage-ink); }
.hero .btn-primary { background: var(--stage-ink); color: var(--stage); }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--stage-line);
  max-width: 620px;
}
.hero-proof dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.03em;
  color: var(--stage-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-proof dd {
  color: var(--stage-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 10px;
}

.hero-glow {
  position: absolute;
  top: -340px; right: -160px;
  width: 1100px; height: 820px;
  max-width: 150vw;
  background: radial-gradient(circle at 60% 40%, var(--stage-glow), transparent 62%);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 130px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--stage-muted);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollpulse 2.4s var(--ease-out) infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: .4; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ===== Sections ===== */
.section { padding: 108px 0; }
.section-muted { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 0 62px; }
.section-head h2 {
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.section-head p { color: var(--muted); margin-top: 18px; font-size: 18px; max-width: 60ch; text-wrap: pretty; }

.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.articles { grid-template-columns: repeat(3, 1fr); }

/* ===== Cards de serviço ===== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .25s ease, box-shadow .25s ease;
}
/* card em destaque: palco escuro, largura total, ícone ao lado do texto */
.cards .card:first-child {
  grid-column: span 3;
  background:
    radial-gradient(680px 320px at 6% 0%, rgba(255,255,255,.07), transparent 58%),
    linear-gradient(150deg, var(--stage-2), var(--stage));
  color: var(--stage-ink);
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px 44px;
}
.cards .card:first-child .card-icon { font-size: 44px; margin-bottom: 0; flex-shrink: 0; transition: transform .45s var(--ease-out); }
.cards .card:first-child:hover .card-icon { transform: translateX(10px); }
/* spotlight que segue o cursor */
.cards .card:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .10), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.cards .card:first-child:hover::after { opacity: 1; }
.cards .card:first-child .card-body { min-width: 0; }
.cards .card:first-child h3 { color: var(--stage-ink); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; letter-spacing: -0.025em; }
.cards .card:first-child p { color: var(--stage-muted); font-size: 16.5px; max-width: 64ch; }

.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 3px; width: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.cards .card:first-child:hover { box-shadow: 0 30px 70px -30px rgba(0,0,0,.65); }
.card-icon { font-size: 34px; margin-bottom: 20px; line-height: 1; }
.card h3 { font-size: 22px; margin-bottom: 11px; letter-spacing: -0.02em; font-weight: 700; }
.card p { color: var(--muted); font-size: 15.5px; text-wrap: pretty; }

/* ===== Segmentos — marquee ===== */
.segmentos { padding-bottom: 108px; overflow: hidden; }
.marquee {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { display: flex; width: max-content; }
.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 0;
  animation: marquee 34s linear infinite;
}
.marquee-row--reverse .marquee-track { animation-direction: reverse; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 82px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--accent);
  text-stroke: 1.3px var(--accent);
  white-space: nowrap;
  padding: 0 6px;
  transition: color .3s var(--ease-out);
}
.marquee-track span:not(.sep):hover { color: var(--text); }
.marquee-track .sep {
  -webkit-text-stroke: 0;
  color: var(--accent);
  opacity: .55;
  font-weight: 400;
  padding: 0 22px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ===== Articles ===== */
.article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .25s ease, border-color .25s;
}
.article:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.article-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.article h3 { font-size: 21px; line-height: 1.22; margin-bottom: 13px; letter-spacing: -0.02em; font-weight: 700; }
.article p { color: var(--muted); font-size: 15.5px; flex: 1; text-wrap: pretty; }
.link {
  color: var(--text); font-weight: 700; font-family: var(--font-display);
  margin-top: 22px; display: inline-flex; align-items: center; gap: 7px;
  transition: gap .25s var(--ease-out), color .2s;
}
.link:hover { color: var(--accent); gap: 13px; }

/* ===== CTA ===== */
.cta {
  background: var(--stage);
  color: var(--stage-ink);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 440px at 50% 120%, var(--stage-glow), transparent 60%);
  pointer-events: none;
}
.cta-inner { max-width: 820px; position: relative; z-index: 2; }
.cta h2 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: .98; color: var(--stage-ink); }
.cta p { color: var(--stage-muted); margin: 20px 0 0; font-size: 18px; max-width: 54ch; }
.cta-hint {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--stage-ink) !important;
  margin-top: 22px !important;
}

/* ===== FAB WhatsApp ===== */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--z-fab);
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .55), 0 8px 20px rgba(0, 0, 0, .28);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.wa-fab svg { width: 33px; height: 33px; fill: #fff; position: relative; z-index: 1; }
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: 0;
  animation: waPulse 2.6s var(--ease-out) infinite;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 20px 40px -10px rgba(37, 211, 102, .7), 0 8px 20px rgba(0, 0, 0, .3); }
@keyframes waPulse {
  0% { transform: scale(1); opacity: .5; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 54px 0 32px; background: var(--bg); }
.site-footer .logo-sub { color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; }
.footer-social { display: flex; gap: 24px; }
.footer-social a {
  color: var(--muted); font-weight: 600; font-family: var(--font-display); font-size: 14px;
  transition: color .2s;
}
.footer-social a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: 12.5px; letter-spacing: .01em; }

/* ===== Dock mobile — liquid glass ===== */
.dock { display: none; }
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: var(--z-dock);
  width: min(440px, calc(100% - 24px));
}
.dock-inner {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding: 10px;
  border-radius: 26px;
  background: var(--dock-bg);
  border: 1px solid var(--dock-border);
  box-shadow: var(--dock-shadow), inset 0 1px 0 rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px 6px;
  border-radius: 18px;
  color: var(--muted);
  transition: color .2s ease, background .25s ease;
}
.dock-item.active { color: var(--text); background: var(--dock-active); }
.dock-icon svg { width: 24px; height: 24px; display: block; }
.dock-label { font-size: 11px; font-weight: 600; letter-spacing: .1px; }

/* ===== Reveal encenado ===== */
@media (prefers-reduced-motion: no-preference) {
  body.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  body.js [data-reveal].in { opacity: 1; transform: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-row { width: 100%; }
  .marquee-row--reverse { display: none; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .eyebrow-dot, .hero-scroll::after, .wa-fab::before { animation: none; }
  .theme-toggle svg { transition: opacity .2s ease; transform: none !important; }
  .cards .card:first-child::after { display: none; }
  .cards .card:first-child:hover .card-icon { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:first-child { grid-column: span 2; }
  .articles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .dock { display: block; }
  body { padding-bottom: 96px; }
  /* FAB acima do dock flutuante para não sobrepor */
  .wa-fab { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); right: 18px; width: 56px; height: 56px; }
  .wa-fab svg { width: 30px; height: 30px; }
  .cta-hint { display: none; }
  .hero { padding: 92px 0 84px; }
  .hero-scroll { display: none; }
  .hero-proof { gap: 32px; margin-top: 44px; }
  .section { padding: 76px 0; }
  .segmentos { padding-bottom: 76px; }
  .section-head { margin-bottom: 44px; }
  .cards, .articles { grid-template-columns: 1fr; }
  .cards .card:first-child { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 28px; }
  .cards .card:first-child .card-icon { margin-bottom: 4px; }
  .header-inner { gap: 12px; height: 72px; }
  .logo-word { font-size: 25px; }
}
@media (max-width: 380px) {
  .dock-label { font-size: 10px; }
  .dock-inner { gap: 0; padding: 9px 7px; }
}
