html { scroll-behavior: smooth; }
  body { margin: 0; background: #070507; }
  * { box-sizing: border-box; }
  a { color: #9f01ed; text-decoration: none; }
  a:hover { color: #b944f5; }
  input::placeholder { color: #7a7382; }
  @keyframes stgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  @keyframes stgGlow { 0%,100% { opacity: .55; } 50% { opacity: .9; } }
  @keyframes stgRise { 0% { opacity: 0; transform: translateY(22px); filter: blur(8px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
  .stg-rise { opacity: 0; animation: stgRise .7s cubic-bezier(.16,1,.3,1) forwards; }
  @media (prefers-reduced-motion: reduce) { .stg-rise { animation: none; opacity: 1; } }
  .hero-copy { max-width: 900px; }
  @media (max-width: 900px) { .hero-copy { max-width: 100%; } .hero-copy h1 { white-space: normal !important; } .hero-copy p span { white-space: normal !important; display: inline !important; } }
  @keyframes heroParallax { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-10px,-14px,0); } 100% { transform: translate3d(0,0,0); } }
  .hero-grid { animation: heroParallax 60s ease-in-out infinite; will-change: transform; }
  .hero-dots { animation: heroParallax 78s ease-in-out infinite reverse; will-change: transform; }
  @media (prefers-reduced-motion: reduce) { .hero-grid, .hero-dots { animation: none; } }
  @keyframes marqueeScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-12.5%,0,0); } }
  .marquee-track { display: flex; width: max-content; animation: marqueeScroll 12s linear infinite; will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0); }
  .marquee-mask { contain: paint; }
  .marquee-mask:hover .marquee-track { animation-play-state: paused; }
  @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
  @keyframes ctaShine { 0% { opacity: 0; transform: translateX(0); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateX(340%); } }
  .cta-shine::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.30), transparent);
    filter: blur(12px); opacity: 0; pointer-events: none;
  }
  @media (hover: hover) { .cta-shine:hover::after { animation: ctaShine .8s ease-out 1 both; } }
  @media (prefers-reduced-motion: reduce) { .cta-shine:hover::after { animation: none; } }
  @keyframes mthRing { 0% { transform: scale(.35); opacity: .6; } 100% { transform: scale(2.7); opacity: 0; } }
  @keyframes mthRun { from { transform: translateX(0); } to { transform: translateX(100%); } }
  .mth-glow, .mth-runner { opacity: 0; transition: opacity .7s ease-out; }
  .mth.in .mth-glow { opacity: 1; }
  .mth.in .mth-runner { opacity: 1; animation: mthRun 7s linear infinite; }
  @keyframes ecoSpin { to { transform: rotate(360deg); } }
  @keyframes ecoSpinBack { to { transform: rotate(-360deg); } }
  @keyframes ecoFloat { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
  @keyframes ecoGlow { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
  @keyframes ecoCore { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .95; } 50% { transform: translate(-50%,-50%) scale(1.04); opacity: 1; } }
  .eco-orbit { animation: ecoSpin 40s linear infinite; will-change: transform; }
  .eco-fix { animation: ecoSpinBack 40s linear infinite; will-change: transform; }
  .eco-stage.hold .eco-orbit, .eco-stage.hold .eco-fix { animation-play-state: paused; }

  .eco-rings circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease-out; }
  .eco-stage.in .eco-rings circle { stroke-dashoffset: 0; }
  .eco-stage.in .eco-rings circle:nth-child(2) { transition-delay: .18s; }
  .eco-float { animation: ecoFloat 3s ease-in-out infinite; display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; opacity: 0; transition: opacity .5s ease-out; }
  .eco-stage.in .eco-float { opacity: 1; }
  .eco-stage.in .eco-slot:nth-child(1) .eco-float { transition-delay: .55s; }
  .eco-stage.in .eco-slot:nth-child(2) .eco-float { transition-delay: .67s; }
  .eco-stage.in .eco-slot:nth-child(3) .eco-float { transition-delay: .79s; }
  .eco-stage.in .eco-slot:nth-child(4) .eco-float { transition-delay: .91s; }
  .eco-stage.in .eco-slot:nth-child(5) .eco-float { transition-delay: 1.03s; }
  .eco-stage.in .eco-slot:nth-child(6) .eco-float { transition-delay: 1.15s; }
  .eco-stage.in .eco-slot:nth-child(7) .eco-float { transition-delay: 1.27s; }
  .eco-stage.in .eco-slot:nth-child(8) .eco-float { transition-delay: 1.39s; }
  .eco-float.seen .eco-ico { box-shadow: 0 0 0 1.5px rgba(159,1,237,.65), 0 8px 25px rgba(45,0,70,.15); }
  .eco-arc { filter: drop-shadow(0 0 2px rgba(159,1,237,.5)); }
  .eco-float.open .eco-ico {
    transform: scale(1.14); color: #ffffff; background: #9f01ed; border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(159,1,237,.85), 0 12px 32px rgba(45,0,70,.18), 0 0 26px rgba(159,1,237,.45);
  }
  .eco-float.act .eco-ico {
    transform: scale(1.16); color: #ffffff; background: #9f01ed; border-color: #ffffff;
    box-shadow: 0 0 0 2px #070507, 0 12px 34px rgba(159,1,237,.35);
  }
  .eco-ico::before { animation: none; opacity: 0; transition: opacity .3s ease-out; }
  .case-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
  @media (min-width: 720px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
  .case-card {
    position: relative; display: flex; flex-direction: column; gap: 16px;
    background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px; padding: 28px 24px 26px;
    transition: transform .28s ease-out, border-color .28s ease-out, background-color .28s ease-out, box-shadow .28s ease-out;
  }
  .case-tag {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d8cfe2;
    padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  }
  .case-dot { width: 5px; height: 5px; border-radius: 50%; background: #9f01ed; }
  .case-desc { font-size: 14.5px; line-height: 1.6; color: #a9a2b0; margin: 0; flex: 1; }
  .case-desc strong { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 17px; color: #fff; }
  .case-num { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
  .case-big { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: clamp(38px,4.6vw,52px); line-height: 1; letter-spacing: -0.03em; color: #fff; transition: color .28s ease-out; }
  .case-unit { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a48fb8; }
  @media (hover: hover) {
    .case-card:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(159,1,237,.5); background-color: rgba(255,255,255,.06); box-shadow: 0 18px 40px rgba(159,1,237,.16); }
    .case-card:hover .case-big { color: #c084fc; }
  }
  @media (prefers-reduced-motion: reduce) { .case-card { transition: none; } }
  .eco-slot { pointer-events: none; }
  .eco-float { pointer-events: auto; }
  .eco-pin { position: absolute; left: 50%; top: 19%; transform: translate(-50%,-50%); }
  .eco-labpin { position: absolute; left: 50%; top: 6%; transform: translate(-50%,-50%); pointer-events: none; }
  .eco-lab {
    display: block; width: 104px; text-align: center; font-size: 12px; font-weight: 500;
    line-height: 1.25; color: #4b4b4b; opacity: 0; transition: opacity .5s ease-out, color .25s ease-out, font-weight .2s, transform .25s ease-out;
  }
  .eco-stage.in .eco-lab { opacity: 1; }
  .eco-slot.on .eco-lab { color: #9f01ed; font-weight: 600; transform: scale(1.06); }
  .eco-line { display: none; }
  .eco-ico {
    position: relative; width: 58px; height: 58px; border-radius: 50%; background: #ffffff;
    border: 4px solid #ffffff; box-shadow: 0 0 0 1.5px rgba(159,1,237,.45), 0 8px 25px rgba(45,0,70,.15);
    display: flex; align-items: center; justify-content: center; color: #9f01ed; cursor: pointer;
    transition: transform .25s ease-out, box-shadow .25s ease-out;
  }
  .eco-ico::before {
    content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
    box-shadow: 0 0 18px rgba(159,1,237,.35); animation: ecoGlow 5s ease-in-out infinite;
  }
  .eco-lab { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #4a4550; white-space: nowrap; cursor: pointer; transition: color .25s ease-out; }
  .eco-core {
    position: absolute; left: 50%; top: 50%; width: 33%; max-width: 170px; aspect-ratio: 1/1; border-radius: 50%;
    background: linear-gradient(145deg, #9f01ed 0%, #070507 100%); display: flex; align-items: center; justify-content: center;
    transform: translate(-50%,-50%); animation: ecoCore 6s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(159,1,237,.28); will-change: transform;
  }
  @media (hover: hover) {
    .eco-float:hover .eco-ico { transform: scale(1.1); box-shadow: 0 0 0 1.5px rgba(159,1,237,.8), 0 12px 30px rgba(45,0,70,.22), 0 0 22px rgba(159,1,237,.3); }
    .eco-float:hover.act .eco-ico { transform: scale(1.18); }
  }
  @media (max-width: 560px) { .eco-lab { font-size: 10.5px; } .eco-ico { width: 46px; height: 46px; border-width: 3px; } }
  @media (prefers-reduced-motion: reduce) {
    .eco-orbit, .eco-fix, .eco-float, .eco-core, .eco-ico::before, .eco-pulse { animation: none; }
    .eco-core { transform: translate(-50%,-50%); }
    .eco-rings circle { stroke-dashoffset: 0; transition: none; }
    .eco-float { opacity: 1; transition: none; }
  }
  .mth-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
  @media (min-width: 620px) { .mth-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1040px) { .mth-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 1039px) { .mth-rail { display: none; } }
  .mth-card { cursor: pointer; }
  .mth .mth-card.hot, .mth .mth-card.act {
    border-color: rgba(159,1,237,.55); background-color: rgba(255,255,255,.06);
    box-shadow: 0 0 32px rgba(159,1,237,.14); transform: translateY(-8px);
  }
  .mth .mth-card.hot .mth-ico, .mth .mth-card.act .mth-ico {
    transform: rotate(-4deg) scale(1.08);
    border-color: rgba(159,1,237,.6);
    box-shadow: 0 0 30px rgba(159,1,237,.38), inset 0 0 20px rgba(159,1,237,.16);
  }
  .mth-badges > span { white-space: nowrap; padding: 5px 8px !important; font-size: 10px !important; letter-spacing: .06em !important; }
  .mth-card .mth-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.22,.9,.3,1), opacity .35s ease-out; }
  .mth-card.hot .mth-more, .mth-card.act .mth-more { grid-template-rows: 1fr; opacity: 1; }
  .mth-more > div { overflow: hidden; }
  .mth-dot.hot { background: #f5ecff; border-color: #f5ecff; box-shadow: 0 0 18px 6px rgba(159,1,237,.7); }
  .mth-h { opacity: 0; transform: translateY(40px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.22,.9,.3,1); }
  .mth.in .mth-h { opacity: 1; transform: none; }
  .mth.in .mth-h.d1 { transition-delay: .12s; }
  .mth.in .mth-h.d2 { transition-delay: .24s; }
  .mth-dot { transition: background-color .45s ease-out, border-color .45s ease-out, box-shadow .45s ease-out; }
  .mth-dot.on { background: #c084fc; border-color: #f0e0ff; box-shadow: 0 0 12px 3px rgba(159,1,237,.55); }
  .mth-card { opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .55s ease-out, transform .55s cubic-bezier(.22,.9,.3,1), border-color .28s ease-out, background-color .28s ease-out; }
  .mth-card.on { opacity: 1; transform: none; }
  .mth-badges { opacity: 0; transition: opacity .5s ease-out .2s; }
  .mth-card.on .mth-badges { opacity: 1; }
  @keyframes mthPop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-5px) scale(1.06) rotate(-4deg); } 100% { transform: translateY(0) scale(1) rotate(0deg); } }
  .mth-ico { transition: transform .3s ease-out, border-color .5s ease-out, background-color .5s ease-out, box-shadow .5s ease-out; }
  .mth-svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .85s ease-out; }
  .mth-card.on .mth-svg > * { stroke-dashoffset: 0; }
  .mth-card.on .mth-svg > *:nth-child(2) { transition-delay: .10s; }
  .mth-card.on .mth-svg > *:nth-child(3) { transition-delay: .18s; }
  .mth-card.on .mth-svg > *:nth-child(4) { transition-delay: .26s; }
  .mth-card.on .mth-svg > *:nth-child(5) { transition-delay: .34s; }
  .mth-card.on .mth-svg > *:nth-child(6) { transition-delay: .42s; }
  .mth-card.on .mth-svg > *:nth-child(7) { transition-delay: .50s; }
  .mth-card.on .mth-ico {
    border-color: rgba(159,1,237,.55); background-color: rgba(159,1,237,.16);
    box-shadow: 0 0 22px rgba(159,1,237,.26), inset 0 0 18px rgba(159,1,237,.12);
    animation: mthPop .6s cubic-bezier(.22,.9,.3,1) .18s;
  }
  .mth-res { opacity: 0; transform: translateY(16px); transition: opacity .65s ease-out, transform .65s cubic-bezier(.22,.9,.3,1); }
  .mth.done .mth-res { opacity: 1; transform: none; }
  .mth.done .mth-node .r { animation: mthRing 2.4s ease-out 3 both; }
  .mth.done .mth-node .r2 { animation-delay: .7s; }
  .mth.done .mth-node .r3 { animation-delay: 1.4s; }
  @media (hover: hover) {
    .mth-card.on:hover { transform: translateY(-8px); border-color: rgba(159,1,237,.5); background-color: rgba(255,255,255,.055); }
    .mth-card.on:hover .mth-ico { transform: rotate(-4deg) scale(1.08); box-shadow: 0 0 28px rgba(159,1,237,.38), inset 0 0 20px rgba(159,1,237,.16); }
  }
  @media (prefers-reduced-motion: reduce) {
    .mth-h, .mth-card, .mth-res, .mth-badges { opacity: 1; transform: none; transition: none; }
    .mth-svg > * { stroke-dashoffset: 0; transition: none; }
    .mth-card.on .mth-ico { animation: none; }
    .mth.done .mth-node .r { animation: none; }
  }
  .aud-card { isolation: isolate; }
  .aud-card::before {
    content: ""; position: absolute; inset: 0; border-radius: 16px; z-index: 0;
    background: #1d1825; box-shadow: 0 0 24px rgba(159,1,237,.12);
    opacity: 0; transition: opacity .28s ease-out;
  }
  .aud-card > * { position: relative; z-index: 1; }
  .aud-num { transition: color .28s ease-out, text-shadow .28s ease-out; }
  @media (hover: hover) {
    .aud-card:hover { transform: translateY(-5px); border-color: rgba(159,1,237,.55); will-change: transform; }
    .aud-card:hover::before { opacity: 1; }
    .aud-card:hover .aud-num { color: #b944f5; text-shadow: 0 0 14px rgba(159,1,237,.35); }
    .aud-card:hover .aud-arrow { opacity: .7; transform: translate(0,0); }
  }
  @media (prefers-reduced-motion: reduce) { .aud-card, .aud-card::before, .aud-arrow { transition: none; } }

  /* ---------- revelação no scroll (fade + slide up, com stagger) ---------- */
  .rvl { opacity: 0; transform: translateY(26px); transition: opacity .62s ease-out, transform .62s cubic-bezier(.22,.9,.3,1); will-change: opacity, transform; }
  .rvl.on { opacity: 1; transform: none; }
  .rvl-img { opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .7s ease-out, transform .7s cubic-bezier(.22,.9,.3,1); }
  .rvl-img.on { opacity: 1; transform: none; }
  /* parallax só no desktop */
  .plx { will-change: transform; }
  @media (max-width: 1023px) { .plx { transform: none !important; } }
  /* movimento contínuo discreto na malha do método */
  @keyframes meshDrift { from { background-position: 0 0, 0 0; } to { background-position: 56px 56px, 56px 56px; } }
  .mth-mesh { animation: meshDrift 42s linear infinite; }
  @media (prefers-reduced-motion: reduce) {
    .rvl, .rvl-img { opacity: 1 !important; transform: none !important; transition: none !important; }
    .mth-mesh { animation: none; }
  }

  /* ---------- narrativa de scroll por seção ---------- */
  .sx { opacity: 0; transition: opacity .62s ease-out, transform .66s cubic-bezier(.22,.9,.3,1); will-change: opacity, transform; }
  .sx.on { opacity: 1; transform: none; }
  .sx-l { transform: translate3d(-34px,0,0); }
  .sx-r { transform: translate3d(34px,0,0); transition-delay: .15s; }
  .sx-up { transform: translate3d(0,22px,0); }
  .sx-form { transform: scale(.95); }
  @media (max-width: 900px) {
    .sx-l, .sx-r { transform: translate3d(0,18px,0); }
    .sx-r { transition-delay: .12s; }
  }
  @media (min-width: 901px) {
    .sx-grow { position: relative; border-left-color: transparent !important; }
    .sx-grow::before {
      content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%;
      background: rgba(159,1,237,.4); transform: scaleY(0); transform-origin: top center;
      transition: transform .8s cubic-bezier(.22,.9,.3,1) .14s;
    }
    .sx-grow.on::before { transform: scaleY(1); }
  }
  @keyframes sxDrift { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
  .sx-r.on .sx-float { animation: sxDrift 7.5s ease-in-out infinite; }
  @keyframes sxRing { 0% { box-shadow: 0 0 0 0 rgba(159,1,237,.40); } 70% { box-shadow: 0 0 0 9px rgba(159,1,237,0); } 100% { box-shadow: 0 0 0 0 rgba(159,1,237,0); } }
  .sx-hot { border-color: rgba(159,1,237,.55) !important; animation: sxRing 1.5s ease-out 2; }
  @media (prefers-reduced-motion: reduce) {
    .sx { opacity: 1 !important; transform: none !important; transition: none !important; }
    .sx-grow::before { transform: scaleY(1) !important; transition: none; }
    .sx-r.on .sx-float, .sx-hot { animation: none; }
  }

  /* --- rodapé: grid responsivo --- */
  @media (max-width: 820px) {
    footer > div { grid-template-columns: repeat(2, auto) !important; gap: 36px !important; }
    footer > div > div:first-child { grid-column: 1 / -1; }
  }
  @media (max-width: 640px) {
    footer > div { padding-left: 20px !important; padding-right: 20px !important; }
  }
  @media (max-width: 520px) {
    footer > div { grid-template-columns: 1fr !important; }
  }


/* ---------- estados do formulário (sem JS: etapa 1 visível) ---------- */
.frm-step{display:none}
.frm-step.on{display:block}
#frm-quiz [hidden],#frm-done[hidden],#frm-quiz[hidden]{display:none!important}
#frm-quiz.is-sending #frm-next,#frm-quiz.is-sending #frm-send{opacity:.65;pointer-events:none}
#frm-error{font-size:14px;color:#c0392b;margin:14px 0 0}

/* estados vindos do canvas */
.sfx-1:hover{filter:brightness(1.12) !important;transform:translateY(-2px) !important}
.sfx-2:active{transform:translateY(1px) !important}
.sfx-3:focus{border-color:#9f01ed !important;box-shadow:0 0 0 3px rgba(159,1,237,.35) !important}
.sfx-4:focus{border-color:#9f01ed !important;box-shadow:0 0 0 3px rgba(159,1,237,.35) !important}
.sfx-5:focus{border-color:#9f01ed !important;box-shadow:0 0 0 3px rgba(159,1,237,.35) !important}
.sfx-6:focus{border-color:#9f01ed !important;box-shadow:0 0 0 3px rgba(159,1,237,.35) !important}
.sfx-7:hover{border-color:#9f01ed !important;color:#9f01ed !important}
.sfx-8:hover{filter:brightness(1.12) !important}
.sfx-9:hover{filter:brightness(1.12) !important}
.sfx-10:hover{animation:waFloatPulse .9s ease-in-out infinite !important;box-shadow:0 14px 34px rgba(80,0,120,.45) !important}
.sfx-11:hover{color:#9f01ed !important}
.sfx-12:hover{color:#9f01ed !important}
.sfx-13:hover{color:#9f01ed !important;border-color:rgba(159,1,237,.5) !important;background:rgba(159,1,237,.08) !important}
.sfx-14:hover{color:#9f01ed !important;border-color:rgba(159,1,237,.5) !important;background:rgba(159,1,237,.08) !important}
