:root {
    --bg: #0e0815;
    --purple: #7c4dff;
    --purple-light: #a99cff;
    --purple-deep: #4d6bf5;
    --magenta: #8b7bff;
    --text: #dfdbe8;
    --text-bright: #f2f0f7;
    --title: #b6b5b9;
    --text-muted: #9b96ab;
    --text-dim: #635e73;
    --line: rgba(255,255,255,.09);
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: hidden; }
  /* regras do Lenis (iguais à home): sem elas o smooth nativo briga com o Lenis */
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-stopped { overflow: hidden; }
  html{scrollbar-color:var(--purple) transparent;scrollbar-width:thin}
  ::-webkit-scrollbar{width:13px;height:13px}
  ::-webkit-scrollbar-track{background:#080510}
  ::-webkit-scrollbar-thumb{border-radius:20px;border:3px solid #080510;
    background:linear-gradient(180deg,var(--purple-light),var(--purple) 55%,var(--magenta))}
  ::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#cbaaff,var(--purple-light) 50%,var(--magenta))}
  ::-webkit-scrollbar-corner{background:#080510}
  body {
    background: var(--bg); color: var(--text); font-family: var(--font-body);
    line-height: 1.65; min-height: 100vh; -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 55% 45% at 80% 6%, rgba(108,69,150,0.2), transparent 60%),
      radial-gradient(ellipse 50% 40% at 10% 34%, rgba(138,92,196,0.12), transparent 60%);
  }
  body::after {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(5,3,10,0.55) 100%);
  }
  ::selection { background: var(--purple); color: #fff; }
  header, section { position: relative; z-index: 2; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
  /* padrão da home: título cinza claro + destaque branco puro */
  .grad { color: #fff; }
  h1 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.035em; color: var(--title); font-size: clamp(2.6rem, 5.4vw, 4.3rem); line-height: 1.06; }
  h1 b { font-weight: 400; }
  h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.03em; color: var(--title); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; }
  .section { padding: 100px 0; }
  .section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
  .section-head .eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 18px; }
  .section-head p { color: var(--text-muted); margin-top: 16px; font-size: clamp(0.95rem, 1.7vw, 1.08rem); }
  /* título largo: cada frase numa linha só (máx. 2 linhas no desktop) */
  .head-wide { max-width: 1000px; }
  .head-wide h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }

  /* botões no padrão da home */
  .btn-primary { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff; background: linear-gradient(120deg, #4a1647, #7c3aed); padding: 16px 28px; border-radius: 12px; text-decoration: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(181,123,255,0.32) inset, 0 10px 34px rgba(139,61,255,0.42); transition: transform 0.16s, filter 0.2s; }
  .btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
  .btn-dark { display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 16px 26px; border-radius: 12px; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
  .btn-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(181,123,255,0.4); }

  /* Botão brilhante — degradê deslizante + pulso de brilho (cores da home) */
  .btn-glow {
    display: inline-block; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff;
    background: linear-gradient(100deg, #4a1647, #7c3aed, #7c4dff, #4a1647);
    background-size: 300% 100%;
    padding: 16px 30px; border-radius: 12px; text-decoration: none; cursor: pointer;
    position: relative;
    animation: btnGradShift 5s ease-in-out infinite, btnPulse 2.6s ease-in-out infinite;
    transition: transform 0.15s;
  }
  .btn-glow:hover { transform: translateY(-2px); }

  @keyframes btnGradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  @keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(181,123,255,0.4) inset, 0 4px 22px rgba(139,61,255,0.35); }
    50% { box-shadow: 0 0 0 1px rgba(224,181,255,0.6) inset, 0 6px 42px rgba(224,95,255,0.65), 0 0 30px rgba(139,61,255,0.4); }
  }

  /* ============ NAV (idêntico à home) ============ */
  .nav{position:fixed;top:14px;left:14px;right:14px;z-index:100;display:flex;justify-content:center}
  .nav-shell{width:100%;max-width:1240px;display:flex;align-items:center;justify-content:space-between;
    padding:11px 20px;border-radius:16px;
    background:rgba(20,15,28,.66);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 44px -24px rgba(0,0,0,.65);
    transition:background .3s,border-color .3s,box-shadow .3s}
  .nav.scrolled .nav-shell{background:rgba(16,12,23,.82);border-color:rgba(255,255,255,.11);box-shadow:0 24px 54px -22px rgba(0,0,0,.75)}
  .brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:600;font-size:19px;color:var(--text-bright);letter-spacing:-0.01em;text-decoration:none}
  .brand .mk{width:26px;height:26px}
  .nav-links{display:flex;align-items:center;gap:4px}
  .nav-links a{position:relative;color:var(--text-muted);font-size:13.5px;font-weight:500;padding:9px 14px;border-radius:11px;overflow:hidden;isolation:isolate;transition:color .25s;text-decoration:none}
  .nav-links a::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;opacity:0;
    background:radial-gradient(85% 90% at 50% 120%, rgba(124,20,90,.55), rgba(124,77,255,.12) 55%, transparent 78%);
    border:1px solid rgba(255,255,255,.08);transition:opacity .25s}
  .nav-links a:hover{color:var(--text-bright)}
  .nav-links a:hover::before{opacity:1}
  .nav-links .nav-tool{color:var(--purple-light);display:inline-flex;align-items:center}
  .nav-links .nav-tool::after{content:"";width:6px;height:6px;border-radius:50%;margin-left:8px;background:#8b7bff;
    box-shadow:0 0 9px rgba(139,123,255,.9);animation:toolPulse 2.2s ease-in-out infinite}
  .nav-links .nav-tool:hover{color:#fff}
  @keyframes toolPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.7)}}
  .nav-cta{font-size:13.5px;font-weight:600;color:#fff;background:linear-gradient(120deg,#4a1647,#7c3aed);padding:10px 18px;border-radius:10px;box-shadow:0 0 0 1px rgba(181,123,255,.3) inset;transition:transform .15s,filter .2s;text-decoration:none}
  .nav-cta:hover{transform:translateY(-1px);filter:brightness(1.08)}
  .nav-burger{display:none;background:none;border:none;color:var(--text-bright);cursor:pointer;padding:6px}
  .nav-burger svg{width:24px;height:24px}
  .mobile-panel{display:none;position:fixed;inset:0 0 auto 0;z-index:99;background:rgba(12,9,19,.97);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);padding:90px 24px 26px;flex-direction:column;gap:6px;opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .25s,transform .25s}
  .mobile-panel.open{opacity:1;transform:none;pointer-events:auto}
  .mobile-panel a{color:var(--text);font-size:16px;font-weight:500;padding:13px 12px;border-radius:10px;text-decoration:none}
  .mobile-panel a:hover{background:rgba(139,61,255,.1);color:var(--text-bright)}

  /* hero centralizado — o fundo entra na .hero-bg */
  .hero { position: relative; padding: 150px 5vw 80px; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(124,77,255,0.16), transparent 65%); }
  .hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
  .hero-left { position: relative; z-index: 3; max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-left h1 { opacity: 0; animation: rise 0.9s ease 0.15s forwards; }
  .hero-sub { margin-top: 28px; font-size: clamp(0.95rem, 1.6vw, 1.1rem); color: var(--text-muted); max-width: 56ch; line-height: 1.75; opacity: 0; animation: rise 0.9s ease 0.35s forwards; }
  .hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: rise 0.9s ease 0.55s forwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

  .spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e0c4ff; box-shadow: 0 0 10px 2px rgba(181,123,255,0.8); animation: twinkle 3.2s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

  /* Prova social */
  .proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 20px; }
  .proof-card {
    display: flex; gap: 16px; align-items: center;
    border-radius: 16px; padding: 22px 24px;
    border: 1px solid transparent;
    background:
      linear-gradient(120deg, #1c1526 0%, #150f1f 100%) padding-box,
      linear-gradient(120deg, rgba(224,95,255,0.32), rgba(139,61,255,0.1) 60%, rgba(255,255,255,0.05)) border-box;
    transition: transform 0.3s;
  }
  .proof-card:hover { transform: translateY(-3px); }
  .proof-tile {
    width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
    background: linear-gradient(160deg, #241a34, #150f1f);
    border: 1px solid rgba(181,123,255,0.2);
    display: flex; align-items: center; justify-content: center;
  }
  .bolt-icon { width: 20px; height: 20px; }
  .bolt-icon path {
    fill: url(#boltGrad);
    animation: boltGlow 2.2s ease-in-out infinite, boltFlicker 2.2s linear infinite;
    transform-origin: center;
  }
  @keyframes boltGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(181,123,255,0.55)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 12px rgba(224,95,255,0.95)) drop-shadow(0 0 22px rgba(139,61,255,0.6)); transform: scale(1.08); }
  }
  @keyframes boltFlicker {
    0%, 18%, 21%, 52%, 55%, 100% { opacity: 1; }
    19%, 20%, 53% { opacity: 0.45; }
  }
  .proof-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
  .proof-card p b { color: var(--text-bright); font-weight: 600; }

  /* Clientes atendidos */
  .clients-section { position: relative; padding: 100px 0 90px; overflow: hidden; }
  .clients-section::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 62% 60% at 50% 38%, rgba(139,61,255,0.28), transparent 68%);
  }
  .clients-section .container { position: relative; z-index: 1; }

  /* Reveal bidirecional: entra ao descer, sai ao subir */
  .reveal-io {
    opacity: 0; transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal-io.in { opacity: 1; transform: translateY(0); }
  /* stagger dos cards de prova */
  .proof-strip .proof-card:nth-child(2) { transition-delay: 0.12s; }
  .proof-strip .proof-card:nth-child(3) { transition-delay: 0.24s; }
  .trust-left-top .video-frame { margin-top: 22px; min-height: 190px; }

  .client-rows { margin-top: 56px; position: relative; }
  .client-rows::before, .client-rows::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 130px; z-index: 2; pointer-events: none;
  }
  .client-rows::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .client-rows::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

  .client-track { display: flex; gap: 14px; width: max-content; animation: cmarquee 34s linear infinite; }
  .client-track.rev { animation-direction: reverse; animation-duration: 40s; margin-top: 14px; }
  .client-track:hover { animation-play-state: paused; }
  @keyframes cmarquee { to { transform: translateX(-50%); } }

  /* logos originais soltos no fundo, sem caixa */
  .client-chip {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 12px 34px;
    white-space: nowrap;
    transition: transform 0.25s, opacity 0.25s;
  }
  .client-chip:hover { transform: translateY(-3px); }
  .client-chip img { height: 32px; width: auto; max-width: 170px; object-fit: contain; display: block;
    filter: brightness(0) invert(1); opacity: 0.75; transition: opacity 0.25s; }
  .client-chip:hover img { opacity: 1; }

  .clients-cta { text-align: center; margin-top: 52px; }

  /* Sticky-stack — bloco 1 nasce e trava, bloco 2 sobe e cobre */
  .stack-section { position: relative; padding: 40px 0 90px; }
  /* trilho unico e contido: os dois paineis empilham no mesmo container,
     com margem lateral e cantos arredondados (nao largura total) */
  .stack-inner { max-width: 1120px; margin: 0 auto; padding: 0 5vw; }
  .stack-panel {
    position: sticky; top: 88px;
    min-height: 470px;
    border-radius: 26px;
    display: flex; align-items: center; flex-wrap: wrap;
    padding: clamp(28px, 4vw, 56px);
    gap: 40px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  }
  /* o primeiro cria a distancia de rolagem para o segundo subir por cima */
  .stack-1 {
    z-index: 1;
    margin-bottom: 90px;
    background:
      radial-gradient(ellipse 90% 120% at 15% 30%, #c25a2e 0%, #8a3a1e 30%, #2a1520 62%, #150e1f 100%);
    border: 1px solid rgba(255,150,90,0.18);
  }
  /* z-index maior + fundo opaco: sobe e cobre o primeiro por completo */
  .stack-2 {
    z-index: 2;
    background: linear-gradient(150deg, #150f1f 0%, #0e0a15 100%);
    border: 1px solid rgba(255,255,255,0.07);
  }

  .stack-text { flex: 1; max-width: 480px; }
  .stack-text h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
  .stack-text > p { color: rgba(255,255,255,0.7); margin-top: 16px; font-size: 14.5px; max-width: 420px; }
  .stack-2 .stack-text > p { color: var(--text-muted); }

  .stack-check { list-style: none; margin-top: 24px; }
  .stack-check li { display: flex; gap: 13px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.82); padding: 8px 0; }
  .stack-check li::before {
    content: '';
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-top: 1px;
    border-radius: 7px;
    background:
      rgba(255,178,120,0.14)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 12px no-repeat;
    border: 1px solid rgba(255,170,110,0.35);
  }
  .stack-2 .stack-check li { color: var(--text-muted); }
  .stack-2 .stack-check li::before {
    background:
      rgba(181,123,255,0.15)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d3b4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 12px no-repeat;
    border: 1px solid rgba(181,123,255,0.4);
  }

  .stack-visual { flex: 1; position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }

  /* Editor de código digitando sozinho */
  .code-editor {
    width: 100%; max-width: 420px;
    background: #0c0912; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  }
  .code-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .code-dot { width: 9px; height: 9px; border-radius: 50%; background: #302b3d; }
  .code-dot:first-child { background: #6a4030; }
  .code-body { padding: 20px 22px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.9; min-height: 220px; }
  .code-line { white-space: pre; color: #b8b4c4; }
  .code-line .tk-kw { color: #ff9d6c; }
  .code-line .tk-var { color: #7ee2a8; }
  .code-line .tk-str { color: #f0c674; }
  .code-line .tk-op { color: #b8b4c4; }
  .code-line .tk-com { color: #6b6578; font-style: italic; }
  .code-cursor { display: inline-block; width: 7px; height: 15px; background: #ff9d6c; vertical-align: -2px; animation: cursorBlink 0.9s step-end infinite; }
  @keyframes cursorBlink { 50% { opacity: 0; } }

  /* Tela de fluxo estilo automacao/codigo */
  .pulse-scene {
    position: relative; width: 100%; max-width: 470px; height: 330px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: radial-gradient(ellipse 68% 60% at 50% 50%, rgba(139,61,255,0.12), transparent 72%);
  }
  /* grid pontilhado de editor */
  .pulse-scene::before {
    content: ''; position: absolute; inset: 0; border-radius: 18px; opacity: 0.6;
    background-image: radial-gradient(rgba(181,123,255,0.16) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask: radial-gradient(ellipse 78% 72% at 50% 50%, #000 42%, transparent 80%);
            mask: radial-gradient(ellipse 78% 72% at 50% 50%, #000 42%, transparent 80%);
  }
  .flow-svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }

  .flow-wire { fill: none; stroke: rgba(181,123,255,0.24); stroke-width: 1.4; }
  .flow-wire-lit { fill: none; stroke: url(#wireGrad); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 4 8; animation: wireDash 1.1s linear infinite; }
  @keyframes wireDash { to { stroke-dashoffset: -24; } }

  .flow-packet { fill: #ecdcff; filter: drop-shadow(0 0 5px #c99bff); }

  .flow-node-box { fill: rgba(18,12,28,0.94); stroke: rgba(181,123,255,0.42); stroke-width: 1.2; }
  .flow-node-glyph { font-family: 'Courier New', monospace; font-weight: 700; fill: #d6c1ff; font-size: 13px; letter-spacing: 0.5px; }

  .flow-core-box { fill: rgba(30,20,48,0.96); stroke: rgba(211,180,255,0.85); stroke-width: 1.5; filter: drop-shadow(0 0 16px rgba(139,61,255,0.75)); }
  .flow-core-bolt { fill: #fff; filter: drop-shadow(0 0 5px #fff); }
  .flow-pulse-ring { fill: none; stroke: rgba(181,123,255,0.55); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ringOut 2.9s ease-out infinite; }
  .flow-pulse-ring.d2 { animation-delay: 1.45s; }
  @keyframes ringOut { 0% { transform: scale(0.55); opacity: 0.75; } 100% { transform: scale(1.9); opacity: 0; } }


  /* ===== Depoimentos — carrossel em loop ===== */
  .tstm-section { position: relative; padding: 96px 0 104px; overflow: hidden; }
  .tstm-section::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 55% at 50% 26%, rgba(139,61,255,0.22), transparent 66%);
  }
  .tstm-section .container { position: relative; z-index: 1; }

  /* selo com raio piscando */
  .results-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px 8px 12px; border-radius: 999px;
    background: rgba(139,61,255,0.12);
    border: 1px solid rgba(181,123,255,0.32);
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
    color: var(--text-bright); margin-bottom: 20px;
  }
  .results-pill .bolt { width: 15px; height: 15px; flex-shrink: 0; }
  .results-pill .bolt path { fill: #d3b4ff; }
  .results-pill .bolt {
    filter: drop-shadow(0 0 5px rgba(181,123,255,0.8));
    animation: boltBlink 2.4s steps(1, end) infinite;
  }
  /* pisca em loop: dois lampejos rápidos e uma pausa, tipo raio */
  @keyframes boltBlink {
    0%, 12%, 20%, 100% { opacity: 1; }
    6%, 16% { opacity: 0.15; }
    40%, 46% { opacity: 0.15; }
    43%, 50% { opacity: 1; }
  }

  .tstm-viewport {
    margin-top: 48px; position: relative; overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .tstm-track { display: flex; gap: 22px; width: max-content; animation: tstmScroll 60s linear infinite; }
  .tstm-viewport:hover .tstm-track { animation-play-state: paused; }
  @keyframes tstmScroll { to { transform: translateX(-50%); } }

  .tstm-card {
    width: 420px; flex-shrink: 0;
    display: flex; flex-direction: column;
    border-radius: 20px; padding: 30px 32px;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #17121f, #110d19) padding-box,
      linear-gradient(155deg, rgba(181,123,255,0.28), rgba(139,61,255,0.06) 50%, rgba(255,255,255,0.04)) border-box;
    white-space: normal;
    transition: transform 0.3s, border-color 0.3s;
  }
  .tstm-card:hover { transform: translateY(-5px); }
  .tstm-metric { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--text-bright); line-height: 1.25; margin-bottom: 16px; }
  .tstm-metric b { color: #d3b4ff; font-weight: 600; }
  .tstm-quote { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; flex: 1; }
  .tstm-quote::before { content: '“'; color: var(--purple-light); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
  .tstm-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 22px 0 18px; }
  .tstm-author { display: flex; align-items: center; gap: 13px; }
  .tstm-avatar {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff;
  }
  /* logo real do cliente, solto no card (cores originais) */
  .tstm-avatar.tstm-logo { background: none; border: none; padding: 0; width: auto; max-width: 110px; height: 30px; border-radius: 0; }
  .tstm-avatar.tstm-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .tstm-author b { display: block; color: var(--text-bright); font-size: 14.5px; font-weight: 600; }
  .tstm-author span { color: var(--text-muted); font-size: 13px; }

  /* ===== Fechamento — horizonte laranja + frase de impacto ===== */
  .final-section {
    position: relative; overflow: hidden;
    padding: 150px 0 0;
  }
  .final-section::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 120% 62% at 50% 108%, rgba(255,138,60,0.55) 0%, rgba(216,88,34,0.4) 26%, rgba(122,44,26,0.28) 48%, transparent 72%),
      radial-gradient(ellipse 70% 40% at 50% 100%, rgba(255,180,110,0.28), transparent 70%);
  }
  .final-inner { position: relative; z-index: 1; text-align: center; padding: 0 5vw 110px; }
  .final-inner h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
  .final-inner h2 .soft { color: rgba(255,255,255,0.55); }
  .final-inner p { color: rgba(255,236,222,0.72); margin: 22px auto 0; max-width: 560px; font-size: clamp(0.95rem, 1.7vw, 1.1rem); }
  .final-cta { margin-top: 38px; }
  .btn-fire {
    display: inline-block; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff;
    background: linear-gradient(120deg, #ff8a3c 0%, #f0541e 100%);
    padding: 15px 34px; border-radius: 12px; text-decoration: none;
    box-shadow: 0 0 0 1px rgba(255,180,120,0.4) inset, 0 8px 34px rgba(240,84,30,0.45);
    transition: transform 0.15s, box-shadow 0.25s, filter 0.2s;
  }
  .btn-fire:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 0 0 1px rgba(255,200,150,0.55) inset, 0 12px 44px rgba(240,84,30,0.6); }
  .final-spark { position: absolute; z-index: 1; }

  /* footer em card, por cima do horizonte */
  .footer-card {
    position: relative; z-index: 1;
    max-width: 1120px; margin: 0 auto;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(180deg, rgba(16,10,14,0.82), rgba(10,7,12,0.94));
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,170,110,0.14); border-bottom: none;
    padding: clamp(34px, 5vw, 56px) clamp(26px, 5vw, 60px) 34px;
  }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .footer-brand .logo-line { display: flex; align-items: center; gap: 10px; }
  .footer-card .logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
  .footer-card .logo-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text-bright); letter-spacing: -0.01em; }
  .footer-brand .tagline { margin-top: 14px; color: var(--text-muted); font-size: 14px; max-width: 260px; }
  .footer-social { display: flex; gap: 16px; margin-top: 22px; }
  .footer-social a { color: var(--text-dim); transition: color 0.2s, transform 0.2s; display: inline-flex; }
  .footer-social a:hover { color: #ffb27a; transform: translateY(-2px); }
  .footer-social svg { width: 19px; height: 19px; }
  .footer-col b { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,190,140,0.75); margin-bottom: 16px; }
  .footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color 0.2s; }
  .footer-col a:hover { color: var(--text-bright); }
  .footer-base {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 24px;
    color: var(--text-dim); font-size: 13px;
  }
  .footer-base .links { display: flex; gap: 10px; align-items: center; }
  .footer-base .links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
  .footer-base .links a:hover { color: var(--text-bright); }
  .footer-base .links i { font-style: normal; opacity: 0.4; }

  /* Prova real — 3 blocos assimétricos */
  .trust-duo { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
  .trust-left-top { grid-column: 1; grid-row: 1; }
  .trust-left-bottom { grid-column: 1; grid-row: 2; }
  .trust-right { grid-column: 2; grid-row: 1 / 3; }

  .trust-card {
    border-radius: 22px; padding: 40px;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #17121f, #120e1a) padding-box,
      linear-gradient(150deg, rgba(181,123,255,0.32), rgba(139,61,255,0.08) 45%, rgba(255,255,255,0.05)) border-box;
    display: flex; flex-direction: column;
  }

  /* Card de baixo com tom roxo mais forte, diferenciando do de cima */
  .trust-left-bottom.trust-card {
    background:
      linear-gradient(165deg, #241a3a 0%, #1a1228 55%, #140d1f 100%) padding-box,
      linear-gradient(150deg, rgba(181,123,255,0.42), rgba(139,61,255,0.1) 45%, rgba(255,255,255,0.06)) border-box;
  }

  .trust-card h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 400; line-height: 1.28; color: var(--text-bright); }
  .trust-card > p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 400px; }

  .trust-check { list-style: none; margin-top: 20px; }
  .trust-check li { display: flex; gap: 11px; font-size: 13.5px; color: var(--text-muted); padding: 6px 0; }
  .trust-check li::before { content: '✓'; color: #c9a0ff; font-weight: 700; flex-shrink: 0; }

  .trust-right { justify-content: space-between; }
  .video-frame {
    margin-top: 22px; border-radius: 14px; overflow: hidden; position: relative;
    background: #0a0812; border: 1px solid rgba(255,255,255,0.08);
    flex: 1; min-height: 200px;
    display: flex; align-items: center; justify-content: center;
  }
  /* TROCAR por: <video src="gravacao.mp4" controls style="width:100%;height:100%;object-fit:cover"></video> */
  .video-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .play-btn {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #7c4dff, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(139,61,255,0.5);
    cursor: pointer; transition: transform 0.2s;
  }
  .play-btn:hover { transform: scale(1.08); }
  .play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
  .video-placeholder span { font-size: 12px; color: var(--text-dim); }
  .trust-left-bottom .video-frame { min-height: 160px; }

  /* Fundo decorativo animado — fluxos + código em baixa opacidade */
  .trust-left-bottom { position: relative; overflow: hidden; }
  .trust-content { position: relative; z-index: 1; }
  .deco-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.6; pointer-events: none; }
  .deco-line { fill: none; stroke: rgba(181,123,255,0.4); stroke-width: 1.2; stroke-dasharray: 6 5; animation: decoDash 2.2s linear infinite; }
  .deco-dot { fill: rgba(224,181,255,0.55); animation: twinkle 3s ease-in-out infinite; }
  .deco-code { font-family: 'Courier New', monospace; font-size: 10px; fill: rgba(255,255,255,0.1); }
  .deco-code .k { fill: rgba(181,123,255,0.22); }
  @keyframes decoDash { to { stroke-dashoffset: -22; } }

  /* Entrada suave, simultânea nos 3 + deslocamento X sincronizado ligado ao scroll */
  .trust-duo { }
  .tilt-in {
    --tx: 0px;
    opacity: 0;
    transform: translateX(var(--tx)) translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
  }
  .tilt-in.in { opacity: 1; transform: translateX(var(--tx)) translateY(0); }

  /* abas no topo + grade de projetos embaixo */
  .showcase { display: flex; flex-direction: column; gap: 38px; }
  .side-list { display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; }
  .side-item { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 13px 24px; cursor: pointer; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); transition: background 0.3s, border-color 0.3s, transform 0.2s; }
  .side-item:hover { border-color: rgba(169,156,255,0.35); transform: translateY(-1px); }
  .side-item b { font-family: var(--font-display); font-size: 15.5px; font-weight: 500; color: var(--text-dim); transition: color 0.3s; }
  .side-item p { display: none; }
  .side-item .count { font-size: 12px; color: var(--text-dim); font-weight: 500; transition: color 0.3s; }
  .side-item:hover b { color: var(--text-muted); }
  .side-item.active { background: linear-gradient(120deg, rgba(124,77,255,0.18), rgba(77,107,245,0.08)); border-color: rgba(169,156,255,0.45); }
  .side-item.active b { color: var(--text-bright); }
  .side-item.active .count { color: var(--purple-light); }

  /* painéis com altura automática (a lista de projetos cresce) */
  .stage { position: relative; min-height: 460px; }
  .stage-panel { display: none; }
  .stage-panel.active { display: block; animation: panelIn 0.5s cubic-bezier(0.22,1,0.36,1); }
  @keyframes panelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

  .stage-duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; row-gap: 34px; }

  .browser { border-radius: 16px; overflow: hidden; border: 1px solid transparent; background: linear-gradient(180deg, #17121f, #120e1a) padding-box, linear-gradient(150deg, rgba(181,123,255,0.4), rgba(139,61,255,0.08) 45%, rgba(255,255,255,0.05)) border-box; box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 44px rgba(139,61,255,0.1); transition: box-shadow 0.3s; }
  .browser:hover { box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 60px rgba(139,61,255,0.16); }
  .browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .bdot { width: 9px; height: 9px; border-radius: 50%; background: #302b3d; }
  .bdot:first-child { background: #4a3b5c; }
  .burl { flex: 1; margin-left: 9px; background: rgba(0,0,0,0.3); border-radius: 6px; font-size: 11px; color: var(--text-muted); padding: 5px 12px; display: flex; align-items: center; gap: 6px; }
  .burl svg { width: 10px; height: 10px; stroke: #6d5a8a; }
  .viewport { height: 320px; overflow: hidden; position: relative; background: #0f0b16; }
  .page-scroll { width: 100%; transition: transform 4.5s ease-in-out; transform: translateY(0); }
  .page-scroll img { width: 100%; display: block; }
  /* prints reais são longos: rolagem mais lenta pra dar tempo de ver */
  .page-scroll:has(img) { transition-duration: 16s; transition-timing-function: linear; }
  .browser:hover .page-scroll { transform: translateY(calc(-100% + 320px)); }
  .scroll-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; background: rgba(12,9,19,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 7px 15px; font-size: 11px; color: var(--text-muted); transition: opacity 0.3s; pointer-events: none; }
  .browser:hover .scroll-hint { opacity: 0; }
  .scroll-hint svg { width: 12px; height: 12px; stroke: var(--purple-light); }

  .panel-caption { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 0 4px; flex-wrap: wrap; gap: 10px; }
  .pc-left .pc-name { font-family: var(--font-display); font-size: 15.5px; font-weight: 500; color: var(--text-bright); }
  .pc-left .pc-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
  .pc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #c9a0ff; text-decoration: none; padding: 7px 14px; border-radius: 8px; border: 1px solid rgba(181,123,255,0.3); transition: background 0.2s, border-color 0.2s; flex-shrink: 0; }
  .pc-link:hover { background: rgba(139,61,255,0.1); border-color: rgba(181,123,255,0.5); }
  .pc-link svg { width: 13px; height: 13px; stroke: currentColor; }

  .fake-page { width: 100%; display: flex; flex-direction: column; }
  .fp-hero { min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 24px; gap: 10px; }
  .fp-bar { height: 9px; border-radius: 4px; background: rgba(255,255,255,0.14); }
  .fp-bar.lg { height: 16px; width: 72%; }
  .fp-bar.md { width: 50%; }
  .fp-bar.sm { width: 32%; }
  .fp-btn { height: 30px; width: 120px; border-radius: 8px; margin-top: 6px; }
  .fp-section { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
  .fp-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
  .fp-card { height: 76px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.04); }
  .fp-img { height: 110px; border-radius: 12px; }
  .fp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .theme-a .fp-hero { background: linear-gradient(150deg, #1a1030, #241640); } .theme-a .fp-btn { background: linear-gradient(120deg, #a44dff, #7a2ef0); } .theme-a .fp-img { background: linear-gradient(135deg, #2a1a45, #1a1030); } .theme-a .fp-bar.accent { background: #b57bff; }
  .theme-b .fp-hero { background: linear-gradient(150deg, #0f1a24, #14202e); } .theme-b .fp-btn { background: linear-gradient(120deg, #3b9edb, #1c6fa5); } .theme-b .fp-img { background: linear-gradient(135deg, #16283a, #0f1a24); } .theme-b .fp-bar.accent { background: #5ab6e8; }
  .theme-c .fp-hero { background: linear-gradient(150deg, #24160f, #2e1d14); } .theme-c .fp-btn { background: linear-gradient(120deg, #e8804a, #c25a24); } .theme-c .fp-img { background: linear-gradient(135deg, #3a2416, #24160f); } .theme-c .fp-bar.accent { background: #e89a5a; }
  .theme-d .fp-hero { background: linear-gradient(150deg, #0f2418, #14301f); } .theme-d .fp-btn { background: linear-gradient(120deg, #3bcf7e, #1c9a54); } .theme-d .fp-img { background: linear-gradient(135deg, #163a24, #0f2418); } .theme-d .fp-bar.accent { background: #5ce89a; }
  .theme-e .fp-hero { background: linear-gradient(150deg, #24101f, #301428); } .theme-e .fp-btn { background: linear-gradient(120deg, #e05f9f, #b23670); } .theme-e .fp-img { background: linear-gradient(135deg, #3a1630, #24101f); } .theme-e .fp-bar.accent { background: #e88ac0; }
  .theme-f .fp-hero { background: linear-gradient(150deg, #1a1a24, #202030); } .theme-f .fp-btn { background: linear-gradient(120deg, #6d6dff, #4a4ad0); } .theme-f .fp-img { background: linear-gradient(135deg, #22223a, #1a1a24); } .theme-f .fp-bar.accent { background: #8a8aff; }
  .theme-g .fp-hero { background: linear-gradient(150deg, #241a0f, #302314); } .theme-g .fp-btn { background: linear-gradient(120deg, #e0b040, #b2841c); } .theme-g .fp-img { background: linear-gradient(135deg, #3a2c16, #241a0f); } .theme-g .fp-bar.accent { background: #e8c870; }
  .theme-h .fp-hero { background: linear-gradient(150deg, #101f24, #14262e); } .theme-h .fp-btn { background: linear-gradient(120deg, #40c4b0, #1c8a7a); } .theme-h .fp-img { background: linear-gradient(135deg, #163632, #101f24); } .theme-h .fp-bar.accent { background: #6ce0cc; }

  @media (max-width: 900px) {
    .proof-strip { grid-template-columns: 1fr; }
    .client-rows::before, .client-rows::after { width: 60px; }
    .client-chip { padding: 10px 16px 10px 10px; }
    .trust-duo { grid-template-columns: 1fr; grid-template-rows: auto; }
    .trust-left-top, .trust-left-bottom, .trust-right { grid-column: 1; grid-row: auto; }
    .stack-inner { padding: 0 6vw; }
    .stack-panel { position: relative; top: 0; min-height: 0; height: auto; flex-direction: column; padding: 32px 24px; margin: 0 0 18px; }
    .stack-1 { margin-bottom: 18px; }
    /* mobile: ilustracao primeiro, depois o texto */
    .stack-visual { order: -1; margin-top: 0; margin-bottom: 26px; }
    .stack-text { order: 1; }
    .tstm-card { width: min(80vw, 330px); padding: 26px 24px; }
    .tstm-track { gap: 16px; }
    .tstm-metric { font-size: 1.15rem; }
    .final-section { padding-top: 110px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-card { border-radius: 20px 20px 0 0; }
    .footer-base { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 1020px) {
    .hero { padding-top: 120px; min-height: auto; }
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: block; }
    .mobile-panel { display: flex; }
    .showcase { gap: 28px; }
    .side-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
    .side-list::-webkit-scrollbar { display: none; }
    .side-item { flex-shrink: 0; padding: 12px 20px; }
    .side-item b { font-size: 14.5px; }
    .side-item .count { display: none; }
    .stage { min-height: 0; }
    .stage-panel { position: relative; display: none; }
    .stage-panel.active { display: block; }
    .stage-duo { grid-template-columns: 1fr; gap: 30px; }
    .viewport { height: 380px; }
    .browser:hover .page-scroll { transform: translateY(0); }
    .browser.in-view .page-scroll { transform: translateY(calc(-100% + 380px)); }
    .browser.in-view .scroll-hint { opacity: 0; }
  }
  @media (max-width: 720px) {
    .hero { padding: 120px 6vw 40px; }
    .hero-left h1 { font-size: clamp(2.3rem, 9vw, 3rem); line-height: 1.1; }
    .hero-sub { margin: 26px auto 0; max-width: 420px; font-size: 15.5px; }
    .hero-ctas { flex-direction: column; width: 100%; max-width: 400px; margin: 34px auto 0; gap: 12px; }
    .hero-ctas a { width: 100%; text-align: center; justify-content: center; padding: 15px 28px; font-size: 15px; }
  }
  @media (max-width: 420px) {
    .hero-left h1 { font-size: 2.1rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
    .hero-left h1, .hero-ctas, .hero-sub, .reveal-io, .tilt-in { opacity: 1 !important; transform: none !important; }
    .page-scroll { transition: none; }
    .client-track { animation: none; }
    .btn-glow { animation: none; background-position: 0% 50%; }
    .wa-bubble { opacity: 1 !important; transform: none !important; }
    .flow-wire-lit { animation: none; stroke-dasharray: none; }
    .flow-pulse-ring { animation: none; opacity: 0; }
    .flow-packet { display: none; }
    .tstm-track { animation: none; }
    .results-pill .bolt { animation: none; }
    .code-cursor { animation: none; }
  }
  a:focus-visible, button:focus-visible { outline: 2px solid #c9a0ff; outline-offset: 3px; }
  /* vídeo real dentro do frame */
  .frame-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  /* ============ títulos cinéticos (palavra a palavra no scroll) ============ */
  .kin .kw{display:inline-block;opacity:0;transform:translateY(28px) rotate(2.5deg);filter:blur(7px);
    transition:opacity .65s cubic-bezier(.22,1,.36,1),transform .65s cubic-bezier(.22,1,.36,1),filter .65s ease}
  .kin.kin-in .kw{opacity:1;transform:none;filter:none}
  .kin-big .kw{transform:scale(2.2) translateY(10px);filter:blur(10px)}
  .kin-big.kin-in .kw{transform:none;filter:none}
  @media (prefers-reduced-motion:reduce){.kin .kw{opacity:1;transform:none;filter:none;transition:none}}

  /* ============ fechamento: varredura de cor ============ */
  .final-section{position:relative;overflow:hidden}
  .final-inner{position:relative;z-index:2}
  .final-section .footer-card{position:relative;z-index:2}
  .final-section.fs-in .btn-fire{box-shadow:0 18px 60px rgba(0,0,0,.35),0 0 0 6px rgba(255,255,255,.14)}
  .btn-fire{will-change:transform}


  /* ============ HERO · palco da home (aurora + muro 3D + cine) ============ */
  .aurora{position:absolute;inset:-10% -5%;z-index:0;pointer-events:none;filter:blur(50px);opacity:0;animation:auroraIn 2.4s ease .1s forwards}
  .aurora span{position:absolute;border-radius:50%;mix-blend-mode:screen;will-change:transform}
  .aurora .a1{width:52vw;height:52vw;left:8%;top:12%;background:radial-gradient(circle,rgba(108,69,150,.34),transparent 66%);animation:drift1 22s ease-in-out infinite}
  .aurora .a2{width:46vw;height:46vw;right:6%;top:22%;background:radial-gradient(circle,rgba(138,92,196,.26),transparent 66%);animation:drift2 26s ease-in-out infinite}
  .aurora .a3{width:60vw;height:60vw;left:24%;bottom:-18%;background:radial-gradient(circle,rgba(108,69,150,.32),transparent 68%);animation:drift3 30s ease-in-out infinite}
  @keyframes auroraIn{to{opacity:1}}
  @keyframes drift1{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(6%,-4%) scale(1.12)}}
  @keyframes drift2{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-5%,5%) scale(1.15)}}
  @keyframes drift3{0%,100%{transform:translate(0,0) scale(1.05)}50%{transform:translate(4%,-6%) scale(1)}}

  /* ---- palco cinematográfico ---- */
  .cine{position:absolute;inset:0;z-index:1;width:100%;height:100%;opacity:0;transition:opacity 1.8s ease .3s}
  .cine.on{opacity:1}

  /* vinheta de lente */
  .cine-vignette{position:absolute;inset:0;z-index:3;pointer-events:none;
    background:
      radial-gradient(120% 90% at 50% 46%, transparent 42%, rgba(8,6,14,.55) 82%, rgba(6,4,11,.82) 100%),
      radial-gradient(58% 44% at 50% 52%, rgba(8,6,14,.5), rgba(8,6,14,.18) 55%, transparent 78%)}

  /* grão de filme (feTurbulence via data-uri, saltando em steps) */
  .cine-grain{position:absolute;inset:-60px;z-index:4;pointer-events:none;opacity:.055;mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size:220px 220px;animation:grainShift 1.1s steps(5) infinite}
  @keyframes grainShift{
    0%{transform:translate(0,0)}20%{transform:translate(-28px,14px)}40%{transform:translate(16px,-30px)}
    60%{transform:translate(-12px,-18px)}80%{transform:translate(26px,22px)}100%{transform:translate(0,0)}}

  /* light leak ocasional (varredura quente-roxa) */
  .cine-leak{position:absolute;inset:0;z-index:3;pointer-events:none;mix-blend-mode:screen;opacity:0;
    background:linear-gradient(105deg,transparent 30%,rgba(138,92,196,.16) 46%,rgba(255,150,90,.10) 52%,rgba(138,92,196,.14) 58%,transparent 72%);
    transform:translateX(-120%);animation:leakSweep 13s ease-in-out infinite 4s}
  @keyframes leakSweep{
    0%,72%{opacity:0;transform:translateX(-120%)}
    78%{opacity:1}
    88%,100%{opacity:0;transform:translateX(120%)}}

.hero-wall{position:absolute;inset:-14%;z-index:1;pointer-events:none;overflow:hidden;perspective:1500px}
.wall-plane{position:absolute;left:50%;top:50%;width:130%;height:150%;transform-style:preserve-3d;will-change:transform;
  display:flex;justify-content:center;gap:clamp(18px,2.2vw,32px);
  transform:translate(-50%,-50%) rotateX(16deg) rotateY(-9deg) rotateZ(4deg) scale(1.08);
  filter:brightness(.4) saturate(.72)}
.wall-col{display:flex;flex-direction:column;gap:clamp(18px,2.2vw,32px);width:clamp(250px,26vw,430px);
  animation:wallUp 90s linear infinite}
.wall-col img{width:100%;height:auto;display:block;border-radius:16px;border:1px solid rgba(255,255,255,.09)}
.wc-b{animation-name:wallDown;animation-duration:110s}
.wc-c{animation-duration:126s}
@keyframes wallUp{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@keyframes wallDown{from{transform:translateY(-50%)}to{transform:translateY(0)}}
/* névoa: funde a parede no roxo e garante leitura da headline */
.hero-wall::after{content:"";position:absolute;inset:0;
  background:
    radial-gradient(ellipse 60% 52% at 50% 46%,rgba(14,8,21,.3),rgba(14,8,21,.82) 82%),
    linear-gradient(180deg,rgba(14,8,21,.6) 0%,rgba(14,8,21,.12) 26%,rgba(14,8,21,.12) 58%,#0e0815 97%),
    radial-gradient(ellipse 80% 70% at 50% 50%,rgba(93,42,173,.16),transparent 70%)}
@media (max-width:900px){
  .wall-plane{gap:14px;transform:translate(-50%,-50%) rotateX(14deg) rotateY(-6deg) rotateZ(3deg) scale(1.16)}
  .wall-col{width:44vw;gap:14px}
  .wc-c{display:none}
}
@media (prefers-reduced-motion:reduce){
  .wall-col{animation:none}
}

  .hero{isolation:isolate}
  .hero-left{position:relative;z-index:5}
  .hero-bg{display:none}

  /* mobile: o frame adota a proporção exata do vídeo (16:9), sem corte */
  @media (max-width:700px){
    .video-frame{flex:none;height:auto;min-height:0;aspect-ratio:16/9}
  }

/* ============ MENU MOBILE CINEMATOGRÁFICO ============ */
@media (max-width:900px){
  .mobile-panel{position:fixed;inset:0;z-index:55;display:flex;flex-direction:column;justify-content:center;gap:2px;
    padding:104px min(9vw,34px) 42px;counter-reset:mnav;border:none;
    background:
      radial-gradient(60% 45% at 88% 6%,rgba(124,77,255,.30),transparent 62%),
      radial-gradient(55% 42% at 6% 96%,rgba(124,20,90,.32),transparent 66%),
      rgba(9,6,15,.97);
    backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
    opacity:1;transform:none;pointer-events:none;
    clip-path:circle(0px at calc(100% - 47px) 45px);
    transition:clip-path .62s cubic-bezier(.76,0,.24,1)}
  .mobile-panel.open{opacity:1;transform:none;pointer-events:auto;
    clip-path:circle(160% at calc(100% - 47px) 45px)}

  .mobile-panel a{counter-increment:mnav;position:relative;display:flex;align-items:center;gap:16px;
    font-family:'Poppins',sans-serif;font-weight:300;font-size:clamp(1.65rem,7.4vw,2.35rem);
    letter-spacing:-0.02em;line-height:1.25;color:#e9e6f2;padding:9px 4px;background:none;border-radius:0;
    opacity:0;transform:translateY(30px);
    transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1),color .2s}
  .mobile-panel a::before{content:"0" counter(mnav);font-family:'Space Mono',monospace;
    font-size:11px;letter-spacing:.08em;color:#a99cff;opacity:.85;min-width:22px}
  .mobile-panel a:active{color:#fff}
  .mobile-panel.open a{opacity:1;transform:none}
  .mobile-panel.open a:nth-child(1){transition-delay:.14s}
  .mobile-panel.open a:nth-child(2){transition-delay:.19s}
  .mobile-panel.open a:nth-child(3){transition-delay:.24s}
  .mobile-panel.open a:nth-child(4){transition-delay:.29s}
  .mobile-panel.open a:nth-child(5){transition-delay:.34s}
  .mobile-panel.open a:nth-child(6){transition-delay:.39s}
  .mobile-panel.open a:nth-child(7){transition-delay:.44s}
  .mobile-panel.open a:nth-child(8){transition-delay:.52s}

  .mobile-panel a[href*="analise"]::after{content:"";width:8px;height:8px;border-radius:50%;background:#8b7bff;
    box-shadow:0 0 12px rgba(139,123,255,.95);animation:mnPulse 2.2s ease-in-out infinite}
  @keyframes mnPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}

  .mobile-panel a:last-child{margin-top:28px;justify-content:center;gap:10px;
    font-family:'Inter',sans-serif;font-weight:600;font-size:1.06rem;letter-spacing:0;color:#fff;
    background:linear-gradient(120deg,#4a1647,#7c3aed);border-radius:15px;padding:18px;
    box-shadow:0 0 0 1px rgba(181,123,255,.34) inset,0 16px 44px rgba(139,61,255,.4)}
  .mobile-panel a:last-child::before{display:none}

  .nav-burger{position:relative;z-index:70;width:38px;height:38px}
  .nav-burger svg{transition:opacity .22s,transform .35s cubic-bezier(.22,1,.36,1)}
  .nav-burger[aria-expanded="true"] svg{opacity:0;transform:rotate(90deg) scale(.4)}
  .nav-burger::before,.nav-burger::after{content:"";position:absolute;left:50%;top:50%;width:21px;height:2px;
    border-radius:2px;background:currentColor;opacity:0;transform:translate(-50%,-50%) rotate(0deg);
    transition:transform .4s cubic-bezier(.22,1,.36,1),opacity .2s}
  .nav-burger[aria-expanded="true"]::before{opacity:1;transform:translate(-50%,-50%) rotate(45deg)}
  .nav-burger[aria-expanded="true"]::after{opacity:1;transform:translate(-50%,-50%) rotate(-45deg)}

  body:has(.mobile-panel.open){overflow:hidden}
}
@media (prefers-reduced-motion:reduce){
  .mobile-panel{transition:none}
  .mobile-panel a{transition:none;opacity:1;transform:none}
}

  /* marca real */
  .brand .brand-img{height:34px;width:auto;display:block}
  .logo-line .logo-img{height:38px;width:auto;display:block}
