  :root {
    color-scheme: dark;
    --bg: #0D0D0F;
    --bg-alt: #161618;
    --card: #18181B;
    --border: #27272A;
    --roxo: #6D28D9;
    --roxo-hover: #7C3AED;
    --txt: #FAFAFA;
    --txt-2: #A1A1AA;
    /* escala de espaçamento (base 4pt) [layout] */
    --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;
    /* curvas de easing [animate] */
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;  /* [typeset] body humanista no lugar do Inter */
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s-8); }
  /* [typeset] Sora só no display, escala fluida, tracking dentro do piso -0.04em */
  h1, h2, h3 { font-family: 'Sora', sans-serif; letter-spacing: -0.03em; text-wrap: balance; line-height: 1.05; }

  a, button { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 2px solid var(--roxo-hover); outline-offset: 3px; border-radius: 4px; }

  .mark { background: var(--roxo); color: #fff; border-radius: 12px; padding: 2px 14px; display: inline-block; }
  .cursor-accent { display: inline-block; width: .62em; height: .62em; vertical-align: baseline; margin-left: .06em; }
  .cursor-accent path { fill: var(--roxo); }

  nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13,13,15,.72); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  .logo { display: inline-flex; align-items: center; font-family: 'Sora'; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
  .logo .b { background: var(--roxo); color: #fff; padding: 1px 10px; border-radius: 9px; margin-right: 9px; }
  .logo-cursor { width: .5em; height: .5em; margin-left: .12em; vertical-align: baseline; }
  .logo-cursor path { fill: var(--roxo); }
  .nav-links { display: flex; gap: var(--s-8); align-items: center; }
  .nav-links a { color: var(--txt); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: color .2s var(--ease-quart); }
  .nav-links a:hover { color: #C4B5FD; }
  .btn {
    font-family: 'Hanken Grotesk'; font-weight: 600; font-size: .9375rem; border: none; cursor: pointer;
    border-radius: 10px; padding: 12px 22px; text-decoration: none; display: inline-block;
    touch-action: manipulation;
    transition: background-color .2s var(--ease-quart), box-shadow .2s var(--ease-quart), transform .12s var(--ease-quart);
  }
  .btn-primary { background: var(--roxo); color: #fff; }
  .btn-primary:hover { background: var(--roxo-hover); box-shadow: 0 0 28px rgba(109,40,217,.45); transform: translateY(-1px); }
  .btn-primary:active { transform: translateY(0) scale(.97); }   /* [animate] feedback de clique */
  .nav-cta .lbl-short { display: none; }   /* no desktop mostra o texto completo */
  .btn-ghost { background: transparent; color: var(--txt); border: 1px solid var(--border); }
  .btn-ghost:hover { border-color: var(--roxo); color: #fff; }
  .btn-ghost:active { transform: scale(.97); }

  .hero { position: relative; padding: var(--s-24) 0 calc(var(--s-24) - var(--s-2)); text-align: center; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(109,40,217,.30), rgba(109,40,217,0));
    filter: blur(20px);
  }
  .hero .badge {
    position: relative; display: inline-flex; align-items: center; gap: var(--s-2);
    border: 1px solid var(--border); background: var(--bg-alt);
    color: var(--txt-2); font-size: .875rem; font-weight: 500;
    padding: 8px 16px; border-radius: 999px; margin-bottom: var(--s-8);
  }
  .hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--roxo); box-shadow: 0 0 10px var(--roxo); }
  .hero h1 { position: relative; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; }
  .hero p.sub { position: relative; margin: 30px auto 0; max-width: 640px; font-size: 1.3125rem; line-height: 1.5; color: var(--txt-2); text-wrap: pretty; }
  .hero .cta { position: relative; margin-top: var(--s-8); display: flex; gap: var(--s-3); justify-content: center; }
  .hero .trust { position: relative; margin-top: var(--s-6); font-size: .875rem; color: #71717A; }

  section { padding: var(--s-24) 0; }
  [id] { scroll-margin-top: 92px; }
  .sec-head { max-width: 660px; margin-bottom: 56px; }
  .sec-head h2 { font-size: clamp(2rem, 4vw, 2.875rem); font-weight: 800; }
  .sec-head p { margin-top: 18px; font-size: 1.125rem; color: var(--txt-2); line-height: 1.55; text-wrap: pretty; }

  /* [layout] grid quebrado: 1 serviço carro-chefe (largo) + 3 de apoio */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: var(--s-8) calc(var(--s-8) - var(--s-2));
    transition: border-color .2s var(--ease-quart), transform .2s var(--ease-quart);
  }
  .card:hover { border-color: var(--roxo); transform: translateY(-3px); }
  .card.featured {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-8);
    background: linear-gradient(120deg, #1b1530, var(--card) 60%);
  }
  .card .ico {
    width: 52px; height: 52px; border-radius: 13px; background: rgba(109,40,217,.16);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .card.featured .ico { width: 64px; height: 64px; border-radius: 16px; }
  .card:not(.featured) .ico { margin-bottom: var(--s-6); }
  .card .ico svg { width: 26px; height: 26px; stroke: var(--roxo); fill: none; stroke-width: 2; }
  .card.featured .ico svg { width: 32px; height: 32px; }
  .card h3 { font-size: 1.4rem; font-weight: 700; }
  .card.featured h3 { font-size: 1.875rem; }
  .card p { margin-top: var(--s-3); color: var(--txt-2); font-size: 1rem; line-height: 1.55; text-wrap: pretty; max-width: 60ch; }

  .valores { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
  .valores .row { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-8); }
  .valores .v h3 { font-size: 1.875rem; font-weight: 800; color: #fff; }
  .valores .v p { margin-top: var(--s-3); color: var(--txt-2); font-size: 1rem; line-height: 1.5; text-wrap: pretty; }

  .cta-final { text-align: center; }
  .cta-box {
    position: relative; overflow: hidden; border-radius: 24px; padding: var(--s-16) var(--s-8) calc(var(--s-16) + var(--s-2));
    background: linear-gradient(160deg, #1A1130, #0D0D0F 70%);
    border: 1px solid #2a2140;
  }
  .cta-box::before {
    content: ""; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 400px; background: radial-gradient(closest-side, rgba(109,40,217,.35), transparent); filter: blur(10px);
  }
  .cta-box h2 { position: relative; font-size: clamp(2.25rem, 4.5vw, 3.125rem); font-weight: 800; }
  .cta-box p { position: relative; margin: var(--s-4) auto 0; max-width: 34ch; color: var(--txt-2); font-size: 1.1875rem; text-wrap: pretty; }
  .cta-box .cta { position: relative; margin-top: var(--s-8); }

  footer { border-top: 1px solid var(--border); padding: var(--s-8) 0; }
  .foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s-4); text-align: center; }
  .foot .meta { color: #E4E4E7; font-size: .875rem; }
  .foot .meta a { color: #E4E4E7; text-decoration: none; transition: color .2s var(--ease-quart); }
  .foot .meta a:hover { color: #fff; }

  /* [animate] entrada de herói orquestrada (stagger), visível por padrão se reduzir movimento */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    .reveal { opacity: 0; animation: rise .7s var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 90ms); }
  }

  /* ============ RESPONSIVO ============ */
  /* Tablet: grade de 3 vira 2 colunas, menos respiro vertical */
  @media (max-width: 860px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    section { padding: var(--s-16) 0; }
    .hero { padding: var(--s-16) 0 calc(var(--s-16) - var(--s-2)); }
    .sec-head { margin-bottom: var(--s-12); }
    .valores .row { gap: var(--s-6); }
  }
  /* Celular: tudo empilha em 1 coluna */
  @media (max-width: 600px) {
    .wrap { padding: 0 var(--s-6); }
    .logo { font-size: 1.25rem; }               /* logo um tico menor pra dar folga pro botão */
    .nav-links { gap: var(--s-4); }
    .nav-links a:not(.btn) { display: none; }   /* esconde links de texto, mantém o botão do WhatsApp */
    .nav-cta { white-space: nowrap; padding: 9px 16px; }  /* não quebra linha no menu */
    .nav-cta .lbl-full { display: none; }        /* no celular o botão do menu mostra só "WhatsApp" */
    .nav-cta .lbl-short { display: inline; }
    .btn { padding: 11px 18px; }

    .hero h1 { font-size: clamp(2.1rem, 8.5vw, 3rem); }
    .hero p.sub { font-size: 1.125rem; margin-top: var(--s-6); }
    .hero .cta { flex-direction: column; }
    .hero .cta .btn { width: 100%; text-align: center; }

    .grid { grid-template-columns: 1fr; }
    .card.featured { grid-template-columns: 1fr; align-items: start; gap: var(--s-4); }
    .card.featured .ico { margin-bottom: 0; }
    .card.featured h3 { font-size: 1.6rem; }

    .valores .row { grid-template-columns: 1fr; gap: var(--s-8); }

    .cta-box { padding: var(--s-12) var(--s-6) calc(var(--s-12) + var(--s-2)); }
    .cta-box p { max-width: none; }
    .foot .meta { font-size: .8125rem; }
  }

  /* delays do reveal do herói (antes inline style="--i:N", agora no CSS pra CSP estrito) */
  .hero .badge.reveal { --i: 0; }
  .hero h1.reveal     { --i: 1; }
  .hero .sub.reveal   { --i: 2; }
  .hero .cta.reveal   { --i: 3; }
  .hero .trust.reveal { --i: 4; }

  /* ============ SUBPÁGINAS (Serviços / Por que a gente) ============ */
  a.logo { text-decoration: none; color: var(--txt); }
  .nav-links a[aria-current="page"] { color: #C4B5FD; }

  /* cabeçalho de subpágina: reaproveita o hero, mais baixo */
  .hero.hero-sub { padding: var(--s-16) 0 var(--s-12); border-bottom: 1px solid var(--border); }
  .hero.hero-sub h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
  .hero.hero-sub p.sub { font-size: 1.1875rem; }

  /* link "ver mais" nos teasers da home */
  .more-row { margin-top: var(--s-8); }
  .more-link {
    display: inline-flex; align-items: center; gap: 8px; color: #C4B5FD;
    text-decoration: none; font-weight: 600; font-size: 1rem;
    transition: gap .2s var(--ease-quart), color .2s var(--ease-quart);
  }
  .more-link:hover { color: #fff; gap: 12px; }

  /* serviço detalhado (página de serviços) */
  .svc-list { display: grid; gap: 18px; }
  .svc {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: var(--s-8) calc(var(--s-8) - var(--s-2));
    display: grid; grid-template-columns: auto 1fr; gap: var(--s-8); align-items: start;
    transition: border-color .2s var(--ease-quart);
  }
  .svc:hover { border-color: var(--roxo); }
  .svc .ico { width: 52px; height: 52px; border-radius: 13px; background: rgba(109,40,217,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .svc .ico svg { width: 26px; height: 26px; stroke: var(--roxo); fill: none; stroke-width: 2; }
  .svc h3 { font-size: 1.5rem; font-weight: 700; }
  .svc p { margin-top: var(--s-3); color: var(--txt-2); line-height: 1.55; text-wrap: pretty; max-width: 64ch; }
  .svc ul { margin-top: var(--s-4); list-style: none; display: grid; gap: 9px; }
  .svc li { color: var(--txt-2); padding-left: 22px; position: relative; font-size: .96rem; }
  .svc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--roxo); }

  /* passos "como funciona" */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .step { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: var(--s-6); }
  .step .n { font-family: 'Sora'; font-weight: 800; color: var(--roxo); font-size: 1.5rem; }
  .step h4 { font-family: 'Sora'; font-weight: 700; margin-top: 6px; font-size: 1.05rem; letter-spacing: -0.02em; }
  .step p { margin-top: 8px; color: var(--txt-2); font-size: .94rem; line-height: 1.5; }

  /* links de navegação no rodapé (cross-page, útil no mobile onde a nav some) */
  .foot-nav { display: flex; gap: var(--s-6); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s-3); }
  .foot-nav a { color: var(--txt-2); text-decoration: none; font-size: .9rem; transition: color .2s var(--ease-quart); }
  .foot-nav a:hover { color: #fff; }

  @media (max-width: 860px) {
    .svc { gap: var(--s-6); }
    .steps { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .svc { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
  }
