/* ═══════════════════════════════════════════════════════════════════════════
   Data4Decision — Design System (padrão D4Hub v2)
   Tokens + componentes + motion. Fonte da verdade visual da marca.
   Sincronizar com C:\GitHub\d4hub (src/components/v2) — ver README-core.md.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ink: #050508;            /* validado contra o repo do D4Hub (INK) */
  --ink-deep: #030305;       /* footer */
  --purple: #7B3EFF;
  --cyan: #00C4FF;
  --white: #FFFFFF;
  --grad: linear-gradient(135deg, #7B3EFF 0%, #00C4FF 100%);
  --grad-serif: linear-gradient(120deg, #7B3EFF 0%, #00C4FF 90%);

  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-faint: rgba(255, 255, 255, 0.30);

  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-serif: "Instrument Serif", serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 24px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 62, 255, 0.5) rgba(255, 255, 255, 0.04);
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(123, 62, 255, 0.55); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--white); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* Acento serif itálico com gradiente (padrão dos H2 do D4Hub) */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad-serif);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Grain overlay ──────────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Cursor customizado (pointer fine) ──────────────────────────────────── */
html.cursor-on, html.cursor-on * { cursor: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 120;
  pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity 0.3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cyan); }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease),
              margin 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
html.cursor-visible .cursor-dot, html.cursor-visible .cursor-ring { opacity: 1; }
html.cursor-hover .cursor-ring {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: var(--cyan); background: rgba(0, 196, 255, 0.05);
}

/* ── Preloader ──────────────────────────────────────────────────────────── */
html:not(.js) .preloader { display: none; }
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.85s var(--ease);
}
.preloader.done { transform: translateY(-100%); }
.preloader-logo-mask { overflow: hidden; margin-bottom: 24px; }
.preloader-logo-mask img {
  height: 44px; width: auto;
  transform: translateY(110%);
  animation: pre-logo-in 0.7s var(--ease) 0.1s forwards;
}
@keyframes pre-logo-in { to { transform: translateY(0); } }
.preloader-status {
  display: flex; align-items: baseline; gap: 10px;
  transition: opacity 0.4s;
}
.preloader.done .preloader-status { opacity: 0; }
.preloader-label {
  color: rgba(255, 255, 255, 0.25); font-size: 12px;
  letter-spacing: 0.35em; text-transform: uppercase;
}
.preloader-pct {
  color: var(--cyan); font-family: var(--font-display); font-weight: 600;
  font-size: 14px; min-width: 42px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.preloader-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: rgba(255, 255, 255, 0.05);
}
.preloader-bar span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 16px 16px 0;
  transition: transform 0.9s var(--ease) 0.15s, opacity 0.9s var(--ease) 0.15s;
}
html.js body:not(.is-loaded) .nav { transform: translateY(-90px); opacity: 0; }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
}
.nav.is-scrolled .nav-inner {
  background: rgba(8, 8, 12, 0.72);
  border-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2px; }
@media (min-width: 1100px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: 8px 14px; font-size: 13px;
  color: rgba(255, 255, 255, 0.5); transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: rgba(10, 10, 16, 0.95); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.nav-drop.open .nav-drop-menu,
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; color: var(--text-soft); transition: background 0.2s, color 0.2s;
}
.nav-drop-menu a:hover { background: var(--surface-2); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav {
  position: relative; overflow: hidden;
  padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-nav::before {
  content: ""; position: absolute; inset: 0; background: var(--grad);
  transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.btn-nav:hover::before { transform: translateY(0); }
.btn-nav > * { position: relative; }

.nav-burger {
  display: flex; flex-direction: column; gap: 5px; padding: 10px;
}
@media (min-width: 1100px) { .nav-burger { display: none; } }
.nav-burger span {
  width: 22px; height: 1.5px; background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 32px 48px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700; color: rgba(255, 255, 255, 0.75); padding: 10px 0;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.3s;
}
.mobile-menu a:hover { color: #fff; }
body.menu-open .mobile-menu a {
  transform: translateY(0); opacity: 1;
  transition-delay: calc(var(--i, 0) * 55ms + 0.1s);
}
.mobile-menu .mobile-menu-small {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--text-muted);
}
.mobile-menu-group {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-soft);
}
.mobile-menu-group p {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px;
}

/* ── Botões ─────────────────────────────────────────────────────────────── */
.btn-primary {
  position: relative; overflow: hidden; display: inline-flex;
  align-items: center; gap: 10px; padding: 16px 32px;
  border-radius: 999px; font-weight: 600; font-size: 15px; color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 44px rgba(123, 62, 255, 0.27);
  transition: box-shadow 0.4s;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  opacity: 0; transition: opacity 0.4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 16px 60px rgba(123, 62, 255, 0.4); }
.btn-primary > * { position: relative; }
.btn-primary .arr { transition: transform 0.3s; }
.btn-primary:hover .arr { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.3s, border-color 0.3s;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }

.btn-lg { padding: 20px 48px; font-size: 17px; font-weight: 700; }

/* ── Section tag "/01 — Nome" ───────────────────────────────────────────── */
.stag { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.stag.center { justify-content: center; }
.stag-n {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cyan);
}
.stag-line { height: 1px; width: 40px; background: rgba(0, 196, 255, 0.4); }
.stag-l {
  font-size: 11px; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-muted);
}

.h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.025em; line-height: 1.05;
}
.sub {
  color: var(--text-muted); font-size: 18px; line-height: 1.65; max-width: 560px;
}

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
[data-reveal] {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(28px); }

/* Palavras saindo de máscara */
[data-words] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-words] .wi {
  display: inline-block; transform: translateY(115%); will-change: transform;
  transition: transform 0.75s var(--ease);
  transition-delay: calc(var(--wi, 0) * 45ms);
}
[data-words].in .wi { transform: translateY(0); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.hero-aurora {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 78% 18%, rgba(123, 62, 255, 0.15) 0%, transparent 62%),
    radial-gradient(ellipse 45% 38% at 18% 82%, rgba(0, 196, 255, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(123, 62, 255, 0.08) 0%, transparent 65%);
}
.hero-vignette {
  position: absolute; left: 0; right: 0; bottom: 0; height: 192px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ink));
}
.hero-content {
  position: relative; z-index: 10; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1280px; margin: 0 auto; width: 100%;
  padding: 128px 24px 96px;
}
@media (min-width: 1024px) { .hero-content { padding-left: 48px; padding-right: 48px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px; font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 32px; width: fit-content;
  transition: opacity 0.8s var(--ease) 0.35s, transform 0.8s var(--ease) 0.35s;
}
html.js body:not(.is-loaded) .hero-badge { opacity: 0; transform: translateY(16px); }
.hero-badge-pill {
  padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; color: #fff; background: var(--grad);
}
.hero-badge-text { color: rgba(255, 255, 255, 0.55); }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 32px;
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-line > span {
  display: block; will-change: transform;
  transition: transform 1.1s var(--ease);
}
html.js body:not(.is-loaded) .hero-line > span { transform: translateY(108%); }
.hero-line:nth-child(1) > span { transition-delay: 0.45s; }
.hero-line:nth-child(2) > span { transition-delay: 0.58s; }
.hero-line:nth-child(3) > span { transition-delay: 0.71s; }

.hero-grid {
  display: grid; gap: 40px; align-items: end;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-sub {
  color: var(--text-muted); font-size: 18px; line-height: 1.65; max-width: 560px;
  transition: opacity 0.9s var(--ease) 0.9s, transform 0.9s var(--ease) 0.9s;
}
@media (min-width: 1024px) { .hero-sub { font-size: 20px; } }
html.js body:not(.is-loaded) .hero-sub { opacity: 0; transform: translateY(20px); }
.hero-sub strong { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px;
  transition: opacity 0.9s var(--ease) 1s, transform 0.9s var(--ease) 1s;
}
@media (min-width: 1024px) { .hero-ctas { justify-content: flex-end; } }
html.js body:not(.is-loaded) .hero-ctas { opacity: 0; transform: translateY(20px); }

.hero-foot {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 32px;
  transition: opacity 1s 1.25s;
}
html.js body:not(.is-loaded) .hero-foot { opacity: 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.hero-stat-v { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; }
.hero-stat-l {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35); margin-top: 4px;
}
.hero-badges { display: flex; align-items: center; gap: 24px; opacity: 0.85; }
.hero-badges img { height: 46px; width: auto; border-radius: 8px; }
.ms-partner { display: flex; align-items: center; gap: 10px; }
.ms-partner-name { font-size: 14px; color: #fff; line-height: 1.2; }
.ms-partner-sub { font-size: 10px; color: rgba(255, 255, 255, 0.55); }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: opacity 1s 1.6s;
}
html.js body:not(.is-loaded) .scroll-cue { opacity: 0; }
.scroll-cue span {
  color: rgba(255, 255, 255, 0.25); font-size: 9px;
  letter-spacing: 0.4em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cue 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Marquee tipográfico ────────────────────────────────────────────────── */
.type-marquee {
  position: relative; padding: 40px 0; overflow: hidden;
  user-select: none; background: var(--ink);
}
.marquee-track {
  display: flex; align-items: center; white-space: nowrap;
  width: max-content;
  animation: marquee 55s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track.rev { animation: marquee-rev 60s linear infinite; }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tm-item {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.03em;
  padding: 0 24px; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}
.tm-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}

/* ── Manifesto ──────────────────────────────────────────────────────────── */
.manifesto { padding: 144px 0; }
@media (min-width: 1024px) { .manifesto { padding: 192px 0; } }
.manifesto-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.32; letter-spacing: -0.015em;
  max-width: 960px;
}
.manifesto-text .mw {
  display: inline-block; margin-right: 0.28em;
  color: rgba(255, 255, 255, 0.13);
  transition: color 0.2s linear;
}

/* ── Grid de serviços ───────────────────────────────────────────────────── */
.services { padding: 128px 0; }
.services-grid {
  display: grid; gap: 20px; margin-top: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.svc {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 280px;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(123, 62, 255, 0.35); }
.svc-n {
  position: absolute; right: -6px; bottom: -28px;
  font-family: var(--font-display); font-weight: 700; font-size: 7rem;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none; user-select: none;
}
.svc-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(123, 62, 255, 0.09); border: 1px solid rgba(123, 62, 255, 0.21);
  margin-bottom: 22px; transition: box-shadow 0.4s;
}
.svc:hover .svc-icon { box-shadow: 0 0 24px rgba(0, 196, 255, 0.25); }
.svc-icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.svc h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: -0.01em; }
.svc p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Spotlight (borda-glow que segue o mouse) */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, -340px) var(--my, -340px),
              rgba(123, 62, 255, 0.11), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.spot:hover::after { opacity: 1; }

/* ── Integrações ────────────────────────────────────────────────────────── */
.integr { padding: 128px 0; }
.integr-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.chip {
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.4s, color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.chip:hover {
  color: #fff; border-color: rgba(0, 196, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 196, 255, 0.12);
}
.chip.more { border-style: dashed; color: var(--cyan); }

/* ── Produto D4Hub ──────────────────────────────────────────────────────── */
.product { padding: 128px 0; position: relative; overflow: hidden; }
.product-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 80% 30%, rgba(123, 62, 255, 0.1) 0%, transparent 65%);
}
.product-grid { display: grid; gap: 56px; align-items: center; position: relative; }
@media (min-width: 1024px) { .product-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.product-note {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px; padding: 12px 20px; border-radius: 14px;
  background: rgba(0, 196, 255, 0.05); border: 1px solid rgba(0, 196, 255, 0.18);
  font-size: 14px; color: var(--text-soft);
}
.product-note b { color: #fff; font-weight: 600; }
.caps-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .caps-grid { grid-template-columns: repeat(2, 1fr); } }
.cap {
  border-radius: 18px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(0, 196, 255, 0.3); }
.cap-n {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: var(--cyan); display: block; margin-bottom: 10px;
}
.cap h3 { font-size: 16px; margin-bottom: 6px; }
.cap p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── Browser mockup / embed ─────────────────────────────────────────────── */
.embed-sec { padding: 128px 0; }
.browser {
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 16, 0.92);
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.7), 0 0 100px rgba(123, 62, 255, 0.13);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
  margin: 0 auto; padding: 4px 16px; border-radius: 6px;
  font-size: 11px; color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
}
.browser-live {
  font-size: 10px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: rgba(0, 196, 255, 0.11); color: var(--cyan); white-space: nowrap;
}
/* proporção do relatório publicado (2000×1200, como no site em produção) */
.embed-frame { position: relative; aspect-ratio: 2000 / 1200; background: #0a0a10; overflow: hidden; }
@media (max-width: 640px) { .embed-frame { aspect-ratio: 4 / 3.2; } }
/* iframe 110px mais alto, deslocado -27px: barra do publish-to-web (≈56px)
   sai por baixo do recorte com folga e o letterbox de centralização sai por cima */
.embed-frame iframe {
  position: absolute; top: -27px; left: 0;
  width: 100%; height: calc(100% + 110px); border: 0;
}
.embed-skeleton {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: var(--text-faint); font-size: 12px;
  letter-spacing: 0.25em; text-transform: uppercase;
  transition: opacity 0.6s; z-index: 1;
}
.embed-skeleton.hide { opacity: 0; pointer-events: none; }
.embed-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.embed-hint {
  text-align: center; margin-top: 20px;
  font-size: 12px; color: var(--text-faint); letter-spacing: 0.08em;
}

/* Tilt 3D no scroll */
.tilt-wrap { perspective: 1400px; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ── Clientes ───────────────────────────────────────────────────────────── */
.clients { padding: 112px 0; overflow: hidden; }
.testimonials { display: grid; gap: 20px; margin: 56px 0 72px; }
@media (min-width: 900px) { .testimonials { grid-template-columns: 1fr 1fr; } }
.testi {
  border-radius: var(--radius); padding: 36px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.testi:hover { transform: translateY(-6px); border-color: rgba(123, 62, 255, 0.3); }
.testi-stars { display: flex; gap: 4px; }
.testi-stars svg { width: 15px; height: 15px; fill: var(--cyan); }
.testi p {
  color: var(--text-soft); font-size: 16px; line-height: 1.7; flex: 1;
}
.testi-who { display: flex; align-items: center; gap: 16px; }
.testi-avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 1px solid var(--border);
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* fotos de corpo inteiro — zoom no rosto, calibrado por foto */
.testi-avatar .face-fabio {
  object-position: 50% 0%;
  transform: scale(1.4);
  transform-origin: 62% 4%;
}
.testi-avatar .face-robson {
  object-position: 50% 0%;
  transform: scale(1.75);
  transform-origin: 48% 0%;
}
.testi-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.testi-org { font-size: 13px; color: var(--cyan); }
.testi-org:hover { text-decoration: underline; }

.logo-marquee { position: relative; margin-bottom: 20px; }
.logo-marquee::before, .logo-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 144px; z-index: 10;
  pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.logo-card {
  position: relative; display: inline-block; flex-shrink: 0; overflow: hidden;
  width: 170px; height: 95px; border-radius: 16px; margin: 0 9px;
}
.logo-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); opacity: 0.55;
  transition: filter 0.5s, opacity 0.5s;
}
.logo-card:hover img { filter: none; opacity: 1; }
.logo-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ── Números ────────────────────────────────────────────────────────────── */
.numbers { padding: 128px 0; }
.numbers-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 56px;
}
@media (min-width: 1024px) { .numbers-grid { grid-template-columns: repeat(4, 1fr); } }
.num { padding: 32px; }
.num + .num { border-left: 1px solid rgba(255, 255, 255, 0.07); }
@media (max-width: 1023px) { .num:nth-child(3) { border-left: none; } }
.num-v {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-variant-numeric: tabular-nums;
}
.num-l {
  margin-top: 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.4); line-height: 1.7;
}

/* ── Contato ────────────────────────────────────────────────────────────── */
.contact { padding: 128px 0; }
.contact-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 6fr; } }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft); font-size: 15px;
}
.contact-item svg { width: 18px; height: 18px; stroke: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.contact-item a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 32px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.socials a:hover {
  border-color: rgba(0, 196, 255, 0.5); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 196, 255, 0.15);
}
.socials svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, 0.7); }
.socials a:hover svg { fill: #fff; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form input, .form textarea {
  width: 100%; padding: 17px 22px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  color: #fff; font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-faint); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: rgba(123, 62, 255, 0.55);
  background: rgba(123, 62, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(123, 62, 255, 0.12);
}
.form textarea { min-height: 150px; resize: vertical; }
.form-micro { font-size: 12px; color: var(--text-faint); }

/* ── CTA final ──────────────────────────────────────────────────────────── */
.final-cta { position: relative; padding: 160px 0; overflow: hidden; text-align: center; }
.final-cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 60%, rgba(123, 62, 255, 0.14) 0%, transparent 65%);
}
.final-cta-eyebrow {
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 32px;
}
.final-cta h2 {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 32px;
}
.final-cta .sub { margin: 0 auto 48px; }
.final-cta-btns {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px;
}
@media (min-width: 640px) { .final-cta-btns { flex-direction: row; } }
.final-cta-micro { font-size: 12px; color: rgba(255, 255, 255, 0.22); margin-top: 32px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative; padding: 80px 0 40px; overflow: hidden;
  background: var(--ink-deep); border-top: 1px solid var(--border-soft);
}
.footer-top {
  display: flex; flex-direction: column; gap: 40px;
  justify-content: space-between; margin-bottom: 64px;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; } }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p {
  color: var(--text-faint); font-size: 14px; margin-top: 16px; max-width: 300px;
}
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col p {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--text-faint); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px; transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 700; text-align: center;
  font-size: clamp(2.6rem, 10.5vw, 10rem);
  line-height: 0.9; letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.015) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none; white-space: nowrap;
}
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  justify-content: space-between; padding-top: 32px; margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px; color: rgba(255, 255, 255, 0.22);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ── Portfólio ──────────────────────────────────────────────────────────── */
.pf-hero { padding: 190px 0 64px; position: relative; overflow: hidden; }
.pf-grid { display: grid; gap: 28px; padding-bottom: 128px; }
@media (min-width: 900px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
.pf-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.pf-card:hover {
  transform: translateY(-8px); border-color: rgba(123, 62, 255, 0.4);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(123, 62, 255, 0.1);
}
.pf-shot { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #0a0a10; }
.pf-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.7s var(--ease);
}
.pf-card:hover .pf-shot img { transform: scale(1.04); }
.pf-shot-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 8, 0.55); opacity: 0; transition: opacity 0.4s;
}
.pf-card:hover .pf-shot-overlay { opacity: 1; }
.pf-shot-overlay span {
  padding: 12px 28px; border-radius: 999px; background: var(--grad);
  font-weight: 600; font-size: 14px; color: #fff;
  box-shadow: 0 12px 44px rgba(123, 62, 255, 0.4);
}
.pf-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pf-body h3 { font-size: 24px; letter-spacing: -0.01em; }
.pf-body > p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pf-tags span {
  padding: 6px 14px; border-radius: 999px; font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Página BI (embed fullscreen) ───────────────────────────────────────── */
.bi-page { height: 100svh; display: flex; flex-direction: column; background: var(--ink); }
.bi-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; border-bottom: 1px solid var(--border-soft);
  background: rgba(8, 8, 12, 0.9); flex-shrink: 0;
}
.bi-bar img { height: 26px; width: auto; }
.bi-bar-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--text-soft);
  margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bi-bar a, .bi-bar button {
  font-size: 12px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.bi-bar a:hover, .bi-bar button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.bi-stage { position: relative; flex: 1; overflow: hidden; }
.bi-stage iframe {
  position: absolute; top: -27px; left: 0;
  width: 100%; height: calc(100% + 110px); border: 0;
}

/* ── Página de agradecimento ────────────────────────────────────────────── */
.thanks {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden; padding: 24px;
}
.thanks h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.thanks p { color: var(--text-muted); font-size: 17px; max-width: 440px; margin-bottom: 40px; }

/* ── Utilidades ─────────────────────────────────────────────────────────── */
.center { text-align: center; }
.mt-6 { margin-top: 48px; }

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], [data-words] .wi, .hero-line > span,
  .hero-badge, .hero-sub, .hero-ctas, .hero-foot, .scroll-cue, .nav {
    opacity: 1 !important; transform: none !important;
  }
  .manifesto-text .mw { color: rgba(255, 255, 255, 0.92) !important; }
  .marquee-track { animation: none !important; }
  .preloader { display: none; }
}
