/* ═══ Resolvvi — camada futurista (compartilhada por index e promoninja) ═══
   Tour interativo do programa, animações de entrada, tilt nos cards,
   brilho do cursor e tipografia. Tudo desliga com prefers-reduced-motion. */

:root { --cyan: #5ee6ff; --violet: #8f7bff; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; }

h1, h2, h3, .section-title, .price, .logo { font-family: var(--display); }
.section-title { background: linear-gradient(180deg, #fff 30%, #a9c6ff); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* Rótulo "// 01 · tour" acima de cada título */
.kicker { display: block; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan); opacity: .85; margin-bottom: 10px; }
.kicker::after { content: "_"; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* Brilho que segue o cursor (só em mouse) */
#fxGlow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(47,116,255,.10), rgba(143,123,255,.05) 40%, transparent 70%);
  will-change: transform; }
body.fx-mouse #fxGlow { opacity: 1; }

/* Entrada escalonada dos blocos */
/* translate/scale separados de transform: o hover dos cards (translateY) e o
   tilt continuam funcionando por cima da animação de entrada. */
.fx-rise { opacity: 0; translate: 0 26px; scale: .98; filter: blur(4px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
    scale .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), filter .7s var(--d, 0ms),
    transform .18s, border-color .18s, box-shadow .18s; }
.fx-rise.fx-in { opacity: 1; translate: none; scale: none; filter: none; }

/* Botão principal com reflexo passando */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { left: -80%; } 100% { left: 140%; } }

/* ─── Cards do catálogo: clicáveis, tilt e borda de energia ─── */
.card[data-k] { cursor: pointer; transform-style: preserve-3d; }
.card[data-k]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card .card-open { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; margin-left: 8px;
  font-size: 11.5px; font-weight: 700; color: var(--cyan); opacity: .55; transform: translateX(-3px);
  transition: .2s; vertical-align: middle; }
.card .card-open [data-lucide], .card .card-open svg { width: 13px; height: 13px; }
.card:hover .card-open, .card:focus-visible .card-open { opacity: 1; transform: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--cyan), var(--violet), transparent);
  -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; }
.card:hover::after { opacity: 1; animation: spin-border 2.6s linear infinite; }
@media (hover: none) { .card .card-open { opacity: 1; transform: none; } }

/* ─── Hero: janela do programa em perspectiva + terminal digitando ─── */
.typer { margin: 22px auto 0; font-family: var(--mono); font-size: 14.5px; color: #a9c6ff;
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 10px;
  background: rgba(7,11,24,.55); border: 1px solid rgba(94,230,255,.18); backdrop-filter: blur(6px); max-width: 100%; }
.typer .pr { color: var(--cyan); }
.typer b { color: #fff; font-weight: 600; white-space: nowrap; }
.typer b::after { content: "▌"; color: var(--cyan); animation: blink .9s steps(1) infinite; margin-left: 1px; }
.hero-shot { display: block; max-width: 980px; margin: 54px auto 0; perspective: 1400px; position: relative; }
.hero-shot .hs-frame { transform-origin: 50% 0; transform: rotateX(var(--rx, 24deg)) scale(var(--sc, .92));
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(110,168,255,.35);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 80px rgba(47,116,255,.22); background: #242424;
  transition: box-shadow .3s; will-change: transform; }
.hero-shot:hover .hs-frame { box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 110px rgba(94,230,255,.3); }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot .hs-cta { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 99px;
  background: rgba(11,14,20,.8); border: 1px solid rgba(94,230,255,.5); color: #fff; font-weight: 600;
  font-size: 15px; backdrop-filter: blur(8px); box-shadow: 0 0 30px rgba(94,230,255,.25); z-index: 3;
  animation: pulse 2.4s ease-in-out infinite; }
.hero-shot .hs-cta svg { width: 18px; height: 18px; color: var(--cyan); }
@keyframes pulse { 50% { box-shadow: 0 0 50px rgba(94,230,255,.45); transform: translate(-50%, -50%) scale(1.04); } }
.hero-shot .hs-scan { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(94,230,255,.10) 48%, rgba(94,230,255,.35) 50%, transparent 52%);
  background-size: 100% 300%; animation: scanY 5s linear infinite; mix-blend-mode: screen; }
@keyframes scanY { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ═══ TOUR — réplica clicável do programa ═══ */
.tour-sec { overflow: hidden; }
.tour-sec::before { content: ""; position: absolute; left: 50%; top: 40%; width: 1100px; height: 700px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(47,116,255,.16), transparent 65%); }
.tour-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; }
.tw { position: relative; border-radius: 16px; overflow: hidden; background: #242424;
  border: 1px solid rgba(110,168,255,.3);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4), 0 0 70px rgba(47,116,255,.16); outline: none; }
.tw-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #1b1b1b;
  border-bottom: 1px solid #333; }
.tw-bar .dot { width: 11px; height: 11px; }
.tw-title { margin-left: 10px; font-size: 12.5px; color: #9aa4b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-title em { font-style: normal; opacity: .6; }
.tw-title b { color: #e9eef6; font-weight: 600; }
.tw-play { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 inherit;
  font-family: inherit; color: var(--cyan); background: rgba(94,230,255,.08); border: 1px solid rgba(94,230,255,.3);
  padding: 6px 11px; border-radius: 99px; cursor: pointer; transition: .15s; white-space: nowrap; }
.tw-play:hover { background: rgba(94,230,255,.16); }
.tw-play svg { width: 13px; height: 13px; }
/* a lateral acompanha a altura da tela (proporção fixa) e rola por dentro, como no app */
.tw-body { position: relative; }
.tw-side { position: absolute; left: 0; top: 0; bottom: 0; width: 226px; background: #2b2b2b; padding: 12px 8px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #555 transparent; }
.tw-brand { font-family: var(--display); font-weight: 700; font-size: 15px; padding: 2px 8px 8px; color: #fff; }
.tw-search { display: flex; align-items: center; gap: 6px; margin: 0 4px 8px; padding: 6px 9px; border-radius: 7px;
  background: #1f1f1f; border: 1px solid #3a3a3a; }
.tw-search:focus-within { border-color: var(--blue2); }
.tw-search svg { width: 14px; height: 14px; color: #888; flex-shrink: 0; }
.tw-search input { all: unset; width: 100%; font-size: 12.5px; color: #eee; }
.tw-search input::placeholder { color: #888; }
.tw-cat { font-size: 10.5px; font-weight: 700; color: #8a8a8a; padding: 10px 8px 4px; text-transform: uppercase; letter-spacing: .08em; }
.tw-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border-radius: 6px; font-size: 12.5px; color: #cfcfcf; cursor: pointer; position: relative;
  transition: background .15s, color .15s; }
.tw-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.tw-item:hover { background: #363636; color: #fff; }
.tw-item:focus-visible { outline: 1px solid var(--cyan); }
.tw-item.on { background: #1f6aa5; color: #fff; }
.tw-item.on::before { content: ""; position: absolute; left: -8px; top: 5px; bottom: 5px; width: 3px; border-radius: 3px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tw-item .nw { margin-left: auto; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: #0b0e14;
  background: linear-gradient(135deg, #6ea8ff, #b8d2ff); padding: 1px 5px; border-radius: 99px; }
.tw-item.hide, .tw-cat.hide { display: none; }
.tw-empty { font-size: 12px; color: #888; padding: 10px 8px; display: none; }
.tw-screen { position: relative; margin-left: 226px; aspect-ratio: 1060 / 800; background: #242424; overflow: hidden; }
.tw-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  transition: opacity .22s ease, filter .22s ease, transform .22s ease; }
.tw-screen img.out { opacity: 0; filter: blur(6px) saturate(1.6); transform: scale(.985); }
.tw-scanline { position: absolute; left: 0; right: 0; height: 90px; top: -90px; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(94,230,255,.08) 70%, rgba(94,230,255,.55) 98%, transparent);
  mix-blend-mode: screen; }
.tw-scanline.go { animation: scanDown .7s cubic-bezier(.4,0,.2,1); }
@keyframes scanDown { from { top: -90px; } to { top: 100%; } }
.tw-hud { position: absolute; inset: 10px; pointer-events: none; z-index: 2; }
.tw-hud i { position: absolute; width: 18px; height: 18px; border-color: rgba(94,230,255,.55); border-style: solid; border-width: 0; }
.tw-hud i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.tw-hud i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.tw-hud i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.tw-hud i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.tw-prog { height: 3px; background: #1b1b1b; }
.tw-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px var(--cyan); }
.tw-prog i.run { animation: prog var(--dur, 5s) linear forwards; }
@keyframes prog { to { width: 100%; } }

/* Painel de detalhes embaixo da janela */
.tw-info { margin-top: 18px; display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 22px; align-items: center;
  background: rgba(20,25,37,.72); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; position: relative; overflow: hidden; }
.tw-info::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .6; }
.twi-head { display: flex; gap: 14px; align-items: flex-start; }
.twi-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.twi-head h3 { font-size: 21px; line-height: 1.2; margin: 3px 0 6px; }
.twi-head p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tw-info .runs { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px; }
.tw-info .runs svg { width: 12px; height: 12px; }
.tw-info ul { list-style: none; display: grid; gap: 8px; }
.tw-info li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: #c2ccdb; }
.tw-info li svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.tw-info .anim > * { animation: infoIn .45s cubic-bezier(.2,.7,.2,1) both; }
.tw-info .anim > *:nth-child(2) { animation-delay: .06s; } .tw-info .anim > *:nth-child(3) { animation-delay: .12s; }
@keyframes infoIn { from { opacity: 0; transform: translateY(10px); } }
.twi-nav { display: flex; gap: 8px; }
.twi-nav button { all: unset; box-sizing: border-box; width: 44px; height: 44px; border-radius: 12px; display: grid;
  place-items: center; cursor: pointer; border: 1px solid var(--border); background: var(--bg2); color: var(--text); transition: .15s; }
.twi-nav button:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px rgba(94,230,255,.2); }
.twi-nav button:focus-visible { outline: 2px solid var(--cyan); }
.twi-nav svg { width: 20px; height: 20px; }
.tour-hint { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.tour-hint kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; background: var(--bg2); color: #c2ccdb; }

/* Números que contam */
.fx-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: -22px auto 34px; }
.fx-stat { min-width: 132px; text-align: center; padding: 12px 16px; border-radius: 14px;
  background: rgba(20,25,37,.6); border: 1px solid var(--border); }
.fx-stat b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1;
  background: linear-gradient(120deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-stat span { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .tw-info { grid-template-columns: 1fr; gap: 14px; }
  .twi-nav { justify-content: flex-end; }
}
@media (max-width: 780px) {
  .tour-wrap { padding: 0 12px; }
  .tw-screen { margin-left: 0; }
  .tw-side { position: static; width: auto; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px; order: -1;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tw-brand, .tw-search, .tw-cat, .tw-empty { display: none !important; }
  .tw-item { width: auto; flex-shrink: 0; white-space: nowrap; padding: 9px 12px; min-height: 40px; background: #333;
    border-radius: 99px; scroll-snap-align: start; }
  .tw-item.on::before { display: none; }
  .tw-item .nw { display: none; }
  .tw-play span { display: none; }
  .tw-title { font-size: 11.5px; }
  .hero-shot { margin-top: 36px; }
  .hero-shot .hs-cta { font-size: 13px; padding: 9px 16px; }
  .typer { font-size: 12.5px; }
  .fx-stat { min-width: 0; flex: 1 1 40%; }
  .fx-stat b { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fx-rise { opacity: 1; translate: none; scale: none; filter: none; }
  #fxGlow { display: none; }
  .hero-shot .hs-frame { transform: none; }
}

/* Ampliar a tela do tour (no celular o print fica pequeno) */
.tw-screen { cursor: zoom-in; }
.tw-zoom { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #e9eef6; background: rgba(11,14,20,.75); border: 1px solid rgba(94,230,255,.35);
  padding: 5px 10px; border-radius: 99px; pointer-events: none; backdrop-filter: blur(6px); }
.tw-zoom svg { width: 13px; height: 13px; color: var(--cyan); }
#fxLight { position: fixed; inset: 0; z-index: 200; background: rgba(5,8,14,.94); display: none; cursor: zoom-out; }
#fxLight.on { display: block; animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
#fxLight .fl-scroll { position: absolute; inset: 0; overflow: auto; padding: 64px 16px 24px; -webkit-overflow-scrolling: touch; }
#fxLight img { display: block; margin: 0 auto; max-width: min(1060px, 100%); height: auto; border-radius: 10px;
  border: 1px solid rgba(110,168,255,.3); box-shadow: 0 0 60px rgba(47,116,255,.2); }
#fxLight .fl-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 12px; display: grid;
  place-items: center; background: var(--bg2); border: 1px solid var(--border); color: #fff; font-size: 22px; cursor: pointer; }
#fxLight .fl-cap { position: absolute; z-index: 2; top: 22px; left: 18px; right: 70px; font-weight: 600; color: #e9eef6; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 780px) {
  /* no celular a imagem fica no tamanho real e rola pro lado */
  #fxLight img { max-width: none; width: 1060px; }
  .hero-shot .hs-cta { white-space: nowrap; }
}

/* "pagamento único" / "/mês" não quebram no meio com a fonte display */
.price { line-height: 1.1; }
.price small { white-space: nowrap; display: inline-block; }
