/* ==========================================================================
   Ydiriuá Solution — estilos
   Paleta oficial: azul escuro #1F2A73 · azul médio #1E7DB8 · verde água #8FE7D2
   ========================================================================== */

:root {
  --brand:      #1F2A73;   /* azul escuro da marca */
  --brand-2:    #16205a;
  --blue:       #1E7DB8;   /* azul médio */
  --mint:       #8FE7D2;   /* verde água (destaque/CTA) */
  --mint-deep:  #5ec7ae;

  --bg-dark:    #0E1636;   /* fundo escuro cinematográfico */
  --bg-dark-2:  #0a1029;
  --ink:        #101733;   /* texto sobre claro */
  --ink-soft:   #4a5578;
  --paper:      #ffffff;
  --paper-2:    #eef3fa;   /* seção clara alternativa */
  --line:       rgba(255,255,255,.10);
  --line-dark:  rgba(16,23,51,.10);

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;
  --shadow:     0 24px 60px -24px rgba(8,14,40,.55);
  --shadow-sm:  0 8px 30px -12px rgba(8,14,40,.25);

  --ff-title: "Sora", system-ui, sans-serif;
  --ff-body:  "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--ff-title); line-height: 1.12; letter-spacing: -.02em; }

/* ---------- Botões ---------- */
.btn {
  --shine: rgba(255,255,255,.55);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: .98rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.96); }
.btn.is-bouncing { animation: btn-bounce .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes btn-bounce { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.btn-ripple {
  position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
  background: rgba(255,255,255,.5); transform: scale(0); opacity: .6;
  animation: btn-ripple-out .6s ease-out forwards;
}
.btn-ghost .btn-ripple { background: rgba(255,255,255,.35); }
@keyframes btn-ripple-out { to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn.is-bouncing { animation: none; } .btn-ripple { display: none; } }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translate(2px,-2px); }
.btn > * { position: relative; z-index: 1; }

/* Glow interno que acompanha o cursor, como reflexo sobre vidro/metal */
.btn-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.4), transparent 65%);
  opacity: 0; transition: opacity .3s ease;
}
.btn:hover .btn-glow { opacity: 1; }
.btn-ghost .btn-glow { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 65%); }

.btn-primary {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
  color: #08331f;
  box-shadow: 0 10px 28px -10px rgba(94,199,174,.7);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(94,199,174,.85); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

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

/* Efeito de luz passando dentro do botão a cada 5s (e no hover) */
.btn-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, var(--shine) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0%   { left: -160%; }
  14%  { left: 170%; }
  100% { left: 170%; }
}
.btn-shine:hover::before { animation: shine-hover .8s ease; }
@keyframes shine-hover {
  0% { left: -160%; } 100% { left: 170%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-shine::before { animation: none; display: none; }
  .hero, .cta-box { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Textura de ruído (sutileza cinematográfica) ---------- */
.noise-overlay {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .02; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor premium (anel que acompanha o mouse) ---------- */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  border: 1.5px solid rgba(143,231,210,.55); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-title); font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #08331f;
  pointer-events: none; z-index: 95; opacity: 0;
  transform: translate3d(-100px,-100px,0) translate(-50%,-50%) scale(1);
  transition: transform .16s ease-out, opacity .3s ease, border-color .3s ease, background-color .3s ease;
}
.cursor-ring.show { opacity: .85; }
.cursor-ring.has-label { background: var(--mint); border-color: var(--mint); }
.cursor-ring-label { opacity: 0; transition: opacity .18s ease; }
.cursor-ring.has-label .cursor-ring-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ---------- Barra de progresso de scroll ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 80; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--mint), var(--blue)); box-shadow: 0 0 10px rgba(143,231,210,.6); transition: width .12s linear; }
@media (prefers-reduced-motion: reduce) { .scroll-progress span { transition: none; } }

/* Linha viva: fio vertical que cresce conforme desce, conectando as seções */
.scroll-spine { position: fixed; left: 18px; top: 96px; bottom: 96px; width: 2px; z-index: 40; pointer-events: none; background: rgba(255,255,255,.08); border-radius: 2px; }
.scroll-spine span { display: block; width: 100%; height: 0%; background: linear-gradient(180deg, var(--mint), var(--blue)); box-shadow: 0 0 8px rgba(143,231,210,.5); border-radius: 2px; transition: height .12s linear; }
@media (max-width: 1100px) { .scroll-spine { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-spine span { transition: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 16px 24px;
}
/* Navbar premium: transparente/integrada no topo, vira pill de vidro e encolhe ao rolar */
.header-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 9px 9px 9px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
/* Ao rolar: vidro na cor da marca + altura reduzida */
.site-header.scrolled .header-inner {
  padding: 6px 6px 6px 16px;
  background: linear-gradient(120deg, rgba(31,42,115,.58), rgba(14,22,54,.52));
  border-color: rgba(255,255,255,.05);
  box-shadow: 0 16px 40px -18px rgba(6,10,30,.75), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand-logo { height: 44px; width: auto; display: block; transition: height .35s ease; }
.site-header.scrolled .brand-logo { height: 34px; }
.footer-brand .brand-logo { height: 40px; }
.brand-text { font-family: var(--ff-title); font-weight: 600; font-size: .95rem; letter-spacing: .04em; line-height: 1.05; color: #dfe7ff; }
.brand-text strong { color: #fff; font-weight: 800; }
.brand-text em { display: block; font-style: normal; font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); margin-top: 2px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; color: #c7d0ec; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--mint); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px;
  background: rgba(10,16,41,.97);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a { color: #dbe3ff; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(30,125,184,.38), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(31,42,115,.6), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  background-size: 160% 160%, 160% 160%, 100% 100%;
  animation: hero-breathe 20s ease-in-out infinite;
  color: #fff;
  overflow: hidden;
  padding: 92px 0 52px;
}
@keyframes hero-breathe {
  0%, 100% { background-position: 85% -10%, 0% 100%, 0 0; }
  50%      { background-position: 65% 10%, 20% 80%, 0 0; }
}
.hero-glow {
  position: absolute; width: 560px; height: 560px; right: -60px; top: 20px;
  background: radial-gradient(circle, rgba(143,231,210,.18), transparent 65%);
  filter: blur(24px); pointer-events: none; z-index: 1;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr;
  align-items: center; gap: 32px; width: 100%;
}
.hero-content { min-width: 0; max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint);
  padding: 7px 15px; border-radius: 999px;
  background: rgba(143,231,210,.08); border: 1px solid rgba(143,231,210,.25);
  margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(143,231,210,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(143,231,210,0); } }

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 14px;
}
.hero-title .hl { position: relative; color: var(--mint); white-space: nowrap; }
.hero-title .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .12em;
  background: linear-gradient(90deg, var(--mint), transparent);
  border-radius: 4px;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: #c3cceb;
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.hero-trust li { font-size: .88rem; color: #aeb8dc; position: relative; padding-left: 20px; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.hero-trust strong { color: #fff; font-weight: 700; }

/* ----- Cena 3D: claquete de cristal ----- */
.hero-visual {
  position: relative; min-width: 0; align-self: stretch;
  min-height: clamp(360px, 58vh, 600px);
  display: grid; place-items: center;
}
.hero-3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .7s ease; will-change: opacity;
}
#hero3dWrap.is-ready .hero-3d-canvas { opacity: 1; }
#hero3dWrap.is-ready .hero-3d-fallback { opacity: 0; }

/* Fallback: orbe iridescente enquanto o 3D carrega (ou se o 3D não rodar) */
.hero-3d-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .7s ease; }
.hero-3d-orb {
  width: clamp(200px, 22vw, 320px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 120deg, #8FE7D2, #1E7DB8, #1F2A73, #7fd9ff, #8FE7D2);
  filter: blur(30px) saturate(150%); opacity: .6;
  animation: orb-spin 14s linear infinite;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }

.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); opacity: .7; filter: blur(.3px); z-index: 2; }
.spark.s1 { top: 30%; left: 18%; animation: twinkle 3s ease-in-out infinite; }
.spark.s2 { top: 55%; right: 14%; width: 4px; height: 4px; animation: twinkle 2.4s .6s ease-in-out infinite; }
.spark.s3 { top: 18%; right: 26%; width: 3px; height: 3px; animation: twinkle 2.8s 1.1s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.7); } 50% { opacity: .9; transform: scale(1); } }

.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.28); border-radius: 999px; z-index: 3; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--mint); border-radius: 4px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translateY(0)} 40%{opacity:1} 80%{opacity:0; transform:translateY(12px)} }
@media (prefers-reduced-motion: reduce) {
  .rocket-float, .flame, .spark, .scroll-hint span { animation: none; }
}

/* ---------- Seções base ---------- */
.section { padding: clamp(56px, 6vw, 76px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.tag {
  display: inline-block; font-family: var(--ff-title); font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.tag.center { display: block; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; color: var(--ink); }
.section-head .lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft); }
.section-head.light h2 { color: #fff; }
.section-head.light .lead { color: #b9c2e2; }

/* ---------- Fundador (fundo claro) ---------- */
.fundador { background: var(--paper); }
.fundador-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.fundador-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.fundador-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.05rem; }
.fundador-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.fundador-stats .stat { background: var(--paper-2); border: 1px solid var(--line-dark); flex: 1; min-width: 150px; }
.fundador-stats .stat strong { color: var(--blue); }
.fundador-stats .stat span { color: var(--ink-soft); }
.fundador-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: end start; box-shadow: var(--shadow-sm);
  background:
    linear-gradient(150deg, var(--brand), var(--blue)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
}
.fundador-photo .proj-badge { margin: 18px; position: relative; z-index: 1; }
.fundador-photo.ph::after { content: "foto / vídeo"; position: absolute; bottom: 14px; right: 16px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.fundador-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- Problema + Solução (fundo escuro) ---------- */
.problema { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-dark-2), var(--brand-2)); color: #fff; }
.problema .section-head h2 { color: #fff; }
.problema .section-head .lead { color: #c3cceb; }
.problema .tag { color: var(--mint); }
.problema .container { position: relative; z-index: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-col { padding: 30px; border-radius: var(--radius); }
.problem-col { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.solution-col { background: linear-gradient(160deg, rgba(143,231,210,.14), rgba(30,125,184,.10)); border: 1px solid rgba(143,231,210,.3); }

/* Efeito premium: spotlight que segue o mouse + tilt 3D + brilho na borda */
.fx-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.fx-card > * { position: relative; z-index: 1; }
.fx-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(143,231,210,.20), transparent 62%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.fx-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(143,231,210,.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.fx-card:hover { box-shadow: 0 30px 60px -30px rgba(6,10,30,.7); }
.fx-card:hover .fx-glow, .fx-card:hover::after { opacity: 1; }
.split-col h3 { font-size: 1.25rem; margin-bottom: 20px; color: #fff; }
.list-x, .list-check { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.list-x li, .list-check li { position: relative; padding-left: 32px; color: #cdd5f0; font-size: 1rem; }
.list-x li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,120,120,.15); color: #ff9a9a; font-size: .7rem; font-weight: 700; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(143,231,210,.2); color: var(--mint); font-size: .72rem; font-weight: 700; }

/* ---------- Serviços (fundo claro) ---------- */
.servicos { background: var(--paper); }

/* Efeito exclusivo: trilho que acende cada serviço em sequência (ligando a operação completa) */
.svc-rail { position: relative; height: 3px; margin: 0 0 34px; background: var(--line-dark); border-radius: 999px; overflow: hidden; }
.svc-rail-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--mint), var(--blue)); border-radius: 999px; transition: width 1.7s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 12px rgba(94,199,174,.55); }
.svc-rail.in .svc-rail-fill { width: 100%; }
.cards-grid.chain-armed .card.svc {
  opacity: .4; filter: grayscale(65%) brightness(.88);
  transition: opacity .5s ease, filter .5s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.cards-grid.chain-armed .card.svc.lit { opacity: 1; filter: none; }
.cards-grid.chain-armed .card.svc.lit .svc-ico { animation: svc-pulse .5s ease; }
@keyframes svc-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 rgba(143,231,210,0); }
  45%  { transform: scale(1.16); box-shadow: 0 0 22px rgba(143,231,210,.6); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(143,231,210,0); }
}

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card.svc { position: relative; overflow: hidden; }
.card.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(30,125,184,.4); }

/* Flutuação contínua e sutil, cada card com seu próprio ritmo pra não sincronizar */
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.card.svc.fx-card { animation: card-float 10s ease-in-out infinite; }
.card.svc.fx-card:nth-child(1) { animation-duration: 9s;   animation-delay: 0s; }
.card.svc.fx-card:nth-child(2) { animation-duration: 11s;  animation-delay: .6s; }
.card.svc.fx-card:nth-child(3) { animation-duration: 8.5s; animation-delay: 1.2s; }
.card.svc.fx-card:nth-child(4) { animation-duration: 10.5s;animation-delay: .3s; }
.card.svc.fx-card:nth-child(5) { animation-duration: 9.5s; animation-delay: .9s; }
.card.svc.fx-card:nth-child(6) { animation-duration: 12s;  animation-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) { .card.svc.fx-card { animation: none; } }
/* Top accent bar: só no hover, animando da esquerda p/ direita */
.card.svc::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card.svc:hover::before { transform: scaleX(1); }
.svc-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(30,125,184,.12), rgba(143,231,210,.18));
  border: 1px solid rgba(30,125,184,.16);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.card.svc:hover .svc-ico { transform: scale(1.08); }
.card.svc h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.card.svc p { color: var(--ink-soft); font-size: .98rem; }

.section-cta { text-align: center; margin-top: 44px; }

/* ---------- Projetos / carrossel (fundo escuro) ---------- */
.projetos { position: relative; background: linear-gradient(180deg, var(--brand-2), var(--bg-dark)); color: #fff; padding-bottom: 70px; overflow: hidden; }
.projetos > .container { position: relative; z-index: 1; }
.projetos .tag { color: var(--mint); }

.marquee { width: 100%; overflow: hidden; margin: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.marquee-left  { animation: scroll-left 42s linear infinite; }
.marquee-right { animation: scroll-right 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.proj-card { width: 320px; flex: 0 0 auto; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.proj-media {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(30,125,184,.35), rgba(31,42,115,.55)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px);
}
.proj-media.ph::after { content: "foto / vídeo"; position: absolute; bottom: 12px; right: 14px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.proj-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-badge { font-family: var(--ff-title); font-weight: 700; font-size: 1.05rem; color: #fff; padding: 8px 16px; border-radius: 999px; background: rgba(14,22,54,.5); border: 1px solid rgba(143,231,210,.4); }
.proj-card figcaption { padding: 16px 18px; font-size: .95rem; color: #c7d0ec; }
.proj-note { margin-top: 22px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.42); }

/* ---------- Confiança / diferenciais (fundo claro alt) ---------- */
.confianca { background: var(--paper-2); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 70px; }
.diff { background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.diff:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(30,125,184,.4); }
/* Top accent bar: só no hover, animando da esquerda p/ direita */
.diff::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.diff:hover::before { transform: scaleX(1); }
.diff-num { font-family: var(--ff-title); font-weight: 800; font-size: 1.1rem; color: var(--mint-deep); background: rgba(143,231,210,.16); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.diff h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.diff p { color: var(--ink-soft); font-size: .98rem; }

.historia { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: linear-gradient(150deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 48px; margin-bottom: 70px; }
.historia .tag { color: var(--mint); }
.historia-text h3 { font-size: clamp(1.4rem,2.6vw,1.9rem); margin-bottom: 16px; }
.historia-text p { color: #c9d2ef; margin-bottom: 22px; }
.link-arrow { position: relative; display: inline-block; color: var(--mint); font-weight: 600; font-family: var(--ff-title); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: var(--mint); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.link-arrow:hover::after { transform: scaleX(1); }
.historia-stats { display: flex; flex-direction: column; gap: 16px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.stat strong { display: block; font-family: var(--ff-title); font-weight: 800; font-size: 1.7rem; color: var(--mint); }
.stat span { font-size: .9rem; color: #b9c2e2; }

.feedbacks .tag { color: var(--blue); }
.fb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 26px; }
.fb-card { background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(30,125,184,.4); }
.fb-stars { color: var(--mint-deep); letter-spacing: 3px; margin-bottom: 14px; }
.fb-card blockquote { color: var(--ink); font-size: 1rem; margin-bottom: 20px; }
.fb-card figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.fb-card figcaption em { display: block; font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.fb-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(150deg, var(--blue), var(--mint)); flex: 0 0 auto; }

/* ---------- FAQ (fundo escuro) ---------- */
.faq { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-2)); color: #fff; }
.faq .section-head h2 { color: #fff; }
.faq .tag { color: var(--mint); }
.faq .container { position: relative; z-index: 1; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.acc-item[open] { border-color: rgba(143,231,210,.4); background: rgba(143,231,210,.05); }
.acc-item summary { cursor: pointer; list-style: none; padding: 22px 24px; font-family: var(--ff-title); font-weight: 600; font-size: 1.08rem; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-size: 1.5rem; color: var(--mint); transition: transform .4s cubic-bezier(.2,.7,.2,1); flex: 0 0 auto; }
.acc-item[open] summary::after { transform: rotate(225deg); }
.acc-body { padding: 0 24px 22px; color: #c3cceb; }
.acc-item[open] .acc-body { animation: acc-in .4s ease both; }
@keyframes acc-in {
  from { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .acc-item[open] .acc-body { animation: none; }
}

/* ---------- CTA final ---------- */
.cta-final { background: var(--bg-dark-2); padding: 80px 0; }
.cta-box {
  position: relative; text-align: center; border-radius: 28px; padding: 64px 40px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--brand), var(--blue), var(--brand));
  background-size: 220% 220%;
  animation: cta-breathe 20s ease-in-out infinite;
}
@keyframes cta-breathe {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.cta-glow { position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% -20%, rgba(143,231,210,.35), transparent 60%); pointer-events: none; }
.cta-box h2 { position: relative; font-size: clamp(1.8rem,4vw,2.8rem); color: #fff; margin-bottom: 16px; }
.cta-box p { position: relative; color: #dbe6ff; max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem; }
.cta-box .btn { position: relative; }
.cta-box .cta-fine { position: relative; margin: 32px auto 0; font-size: .85rem; color: rgba(255,255,255,.7); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--bg-dark-2); color: #fff; padding: 56px 0 30px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-cta { margin-left: auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-cta p { font-family: var(--ff-title); font-weight: 600; color: #dbe3ff; }
.back-top { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-title); font-weight: 600; color: #c7d0ec; }
.back-top-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: #08331f; font-weight: 800; transition: transform .2s; }
.back-top:hover .back-top-ico { transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; flex-wrap: wrap; }
.footer-bottom p { font-size: .85rem; color: #8791b6; }
.footer-legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-credit { font-size: .78rem; color: #8791b6; border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; white-space: nowrap; text-decoration: none; transition: .2s; }
.footer-credit strong { color: var(--blue); font-weight: 600; }
.footer-credit:hover { border-color: var(--blue); background: rgba(30,125,184,.12); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #c7d0ec; border: 1px solid var(--line); transition: .2s; }
.footer-social a:hover { color: #08331f; background: var(--mint); border-color: var(--mint); }

/* ---------- WhatsApp flutuante ---------- */
.wpp-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #25d366, #128c4b); box-shadow: 0 12px 30px -8px rgba(18,140,75,.7); transition: transform .2s; animation: wpp-in .4s .8s both; }
.wpp-float:hover { transform: scale(1.08); }
@keyframes wpp-in { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Fundo vivo (blobs) + spotlight que segue o mouse (só em seções escuras) ---------- */
.ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: -20%; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(143,231,210,.07), transparent 65%);
  filter: blur(50px);
}
[data-spotlight].spot-on .ambient::before { opacity: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .16; }
.blob.b1 { width: 420px; height: 420px; background: var(--mint); top: -12%; left: -8%; animation: blob-a 34s ease-in-out infinite; }
.blob.b2 { width: 380px; height: 380px; background: var(--blue); bottom: -14%; right: -6%; animation: blob-b 40s ease-in-out infinite; }
.blob.b3 { width: 300px; height: 300px; background: #7a5cff; top: 30%; right: 18%; animation: blob-c 30s ease-in-out infinite; }
@keyframes blob-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.15); } }
@keyframes blob-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,-30px) scale(1.1); } }
@keyframes blob-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,50px) scale(.9); } }
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  [data-spotlight] .ambient::before { display: none; }
}

/* ---------- Animações de entrada ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .7s ease, transform .7s ease, filter .7s ease; }
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

/* Leitura premium: cada palavra sobe com blur, em leitura natural e sofisticada */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), filter .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.word-reveal.in .word { opacity: 1; filter: blur(0); transform: none; }
/* .hl já tem position:relative + ::after (sublinhado): mantém inline pra não quebrar o layout de linha */
.word-reveal .hl.word { display: inline; }

/* Reveal de imagens estilo painel: um painel colorido "desliza" revelando a imagem por trás */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(120deg, var(--mint-deep), var(--blue));
  transform: scaleX(1); transform-origin: left;
  transition: transform .9s cubic-bezier(.65,0,.35,1);
}
.img-reveal.in::before { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .img-reveal::before { transition: none; transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .word-reveal .word { transition: none; opacity: 1; filter: blur(0); transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 116px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-content { max-width: 100%; }
  .hero-visual { min-height: 240px; }
  .rocket { width: clamp(150px, 40vw, 230px); }
}
/* Abaixo de 760px o canvas 3D nem chega a rodar (bloqueado via JS por performance),
   então o bloco visual fica vazio e só desperdiça altura de tela — melhor esconder. */
@media (max-width: 760px) {
  .hero-visual { display: none; }
  .hero-grid { gap: 0; }
  .cards-grid, .diff-grid, .fb-grid { grid-template-columns: 1fr 1fr; }
  .historia { grid-template-columns: 1fr; padding: 34px; }
  .historia-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 120px; }
  .fundador-grid { grid-template-columns: 1fr; }
  .fundador-photo { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .split { grid-template-columns: 1fr; }
  .cards-grid, .diff-grid, .fb-grid { grid-template-columns: 1fr; }
  .split-col, .diff, .fb-card { padding: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta { margin-left: 0; align-items: flex-start; text-align: left; width: 100%; }
  .proj-card { width: 260px; }
  .hero { padding-top: 116px; }
  .hero-title { font-size: clamp(2.1rem, 8.8vw, 2.9rem); }
  .hero-title .hl { white-space: normal; }
  .eyebrow { font-size: .68rem; letter-spacing: .08em; padding: 6px 12px; white-space: normal; line-height: 1.35; }
  .hero-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .btn-lg { font-size: .98rem; padding: .95rem 1.3rem; }
  .historia-text h3, .fundador-text h2, .section-head h2 { overflow-wrap: anywhere; }
}
