/* Pingou Tech — landing page
   Layout: fundo off-white, hero com cards de oferta flutuando, faixa diagonal, passos numerados, bento de categorias */
:root {
  --red: #CC112C;
  --red-dark: #A50D23;
  --black: #211F20;
  --off: #F2F2EB;
  --white: #FFFFFF;
  --gray: #6B6866;
  --gray-2: #A6A39E;
  --line: rgba(33, 31, 32, 0.15);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --shadow: 0 24px 48px rgba(33, 31, 32, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--off);
  color: var(--black);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(var(--gutter), min(6.7vw, 96px));
  padding-right: max(var(--gutter-r), min(6.7vw, 96px));
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 30px; border-radius: 999px;
  font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 14px 24px; font-size: 16px; }
.btn-dark { background: var(--black); color: var(--off); }
.btn-dark:hover { background: #000; }
.btn-outline-dark { border-color: var(--black); color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--off); }
.btn-light { background: var(--off); color: var(--black); }
.btn-outline-light { border-color: var(--off); color: var(--off); }
.btn-outline-light:hover { background: var(--off); color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: max(22px, env(safe-area-inset-top, 0px)); padding-bottom: 22px;
}
.nav-logo img { width: 128px; height: auto; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 17px; opacity: .75; }
.nav-links a:hover { opacity: 1; color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1440px; margin: 0 auto;
  min-height: 960px;
  padding: 120px 20px 80px;
  display: flex; flex-direction: column; align-items: center;
}
.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center; max-width: 720px;
}
.live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 16px; border-radius: 999px;
  background: var(--white); box-shadow: 0 6px 16px rgba(33, 31, 32, .08);
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .06em;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(204, 17, 44, .45); } 50% { box-shadow: 0 0 0 7px rgba(204, 17, 44, 0); } }
.hero-title-wrap { position: relative; }
.hero-title {
  font-weight: 900;
  font-size: clamp(64px, 11.4vw, 168px);
  line-height: .86; letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-title .accent { color: var(--red); }
.hero-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: rgba(33, 31, 32, .75); max-width: 620px; }
.hero-note {
  position: absolute; left: 0; right: 0; bottom: 28px; text-align: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--gray);
}

/* cards flutuantes */
.float-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-layer > * { position: absolute; pointer-events: auto; }
.deal {
  width: 264px; padding: 12px 12px 18px; border-radius: 28px;
  background: var(--white); box-shadow: var(--shadow);
}
.deal img { width: 100%; height: 196px; object-fit: cover; border-radius: 20px; }
.deal-info { padding: 14px 6px 0; display: grid; gap: 8px; }
.deal h3 { font-weight: 600; font-size: 17px; line-height: 1.2; }
.price { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.price s { font-family: var(--mono); font-size: 13px; color: var(--gray); }
.price strong { font-weight: 900; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.price em {
  font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 13px;
  background: var(--red); color: var(--white); padding: 4px 9px; border-radius: 999px;
}
.f1 { left: 4.2%;  top: 150px; transform: rotate(-8deg); }
.f2 { right: 4.2%; top: 170px; transform: rotate(7deg); }
.f3 { left: 11.8%; top: 650px; transform: rotate(6deg); }
.f4 { right: 9%;   top: 640px; transform: rotate(-6deg); }
.notif {
  right: 2.4%; top: 505px; transform: rotate(3deg);
  display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px;
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.35; color: rgba(33, 31, 32, .78);
}
.notif b { color: var(--black); }
.notif-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red); flex: none; }
.notif-icon img { width: 26px; height: auto; }
.spark {
  left: 2.8%; top: 505px; transform: rotate(-4deg);
  display: grid; gap: 10px; padding: 16px 18px 18px;
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow);
}
.mono-label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--red); }
.spark-price { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--gray); font-weight: 600; }
.spark-price strong { font-weight: 900; font-size: 24px; color: var(--black); letter-spacing: -0.02em; }

/* ---------- Faixa ---------- */
.ticker {
  position: relative; height: 190px; overflow: hidden;
}
.ticker-band {
  position: absolute; left: -5%; right: -5%; top: 64px;
  background: var(--black); overflow: hidden;
  transform: rotate(-2.5deg);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker-group { display: flex; align-items: center; gap: 26px; padding: 22px 13px; white-space: nowrap; }
.stamp {
  font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--red);
  border: 1.5px solid var(--red); border-radius: 6px; padding: 3px 10px;
}
.t-time { font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--gray-2); }
.t-prod { font-weight: 600; font-size: 19px; color: var(--off); }
.t-price { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--off); }
.t-off { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--red); }
.ticker i { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-2); display: inline-block; }
@keyframes ticker { from { translate: 0 0; } to { translate: -50% 0; } }

/* ---------- Seções ---------- */
.section { padding-top: 140px; padding-bottom: 80px; }
.section-cat { padding-top: 80px; padding-bottom: 140px; }
.sec-head { display: grid; gap: 20px; margin-bottom: 48px; }
.sec-head.split { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; color: var(--red); }
.sec-title { font-weight: 900; font-size: clamp(48px, 6.4vw, 92px); line-height: .9; letter-spacing: -0.05em; }
.sec-aside { max-width: 380px; font-size: 20px; line-height: 1.5; color: var(--gray); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 80px minmax(0, 480px) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.step-n { font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--gray); }
.steps h3 { font-weight: 900; font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1; }
.steps p { color: var(--gray); font-size: 19px; line-height: 1.5; }

.bento {
  display: grid; gap: 16px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 540px 380px;
}
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: 32px; background: #E8E6DF; text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tag {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 999px; padding: 11px 16px 11px 18px;
  font-weight: 600; font-size: 18px;
}
.tag b { color: var(--red); font-weight: 900; }

.stats { background: var(--black); color: var(--off); padding: 120px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
.stats-grid > div { display: grid; gap: 14px; align-content: start; padding: 0 40px; border-left: 1px solid rgba(166, 163, 158, .35); }
.stats-grid > div:first-child { padding-left: 0; border-left: 0; }
.stats strong { font-weight: 900; font-size: clamp(56px, 6.6vw, 104px); line-height: .95; letter-spacing: -0.05em; white-space: nowrap; }
.stats p { color: var(--gray-2); font-size: 18px; line-height: 1.5; max-width: 320px; }

.cta {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--red); color: var(--off);
  border-radius: 48px; padding: 72px 40px 72px 80px;
}
.cta-text { display: grid; gap: 28px; justify-items: start; }
.cta h2 { font-weight: 900; font-size: clamp(56px, 8.3vw, 120px); line-height: .88; letter-spacing: -0.05em; }
.cta p { font-size: 22px; opacity: .9; }
.cta .btn-row { justify-content: flex-start; }
.cta-peng { width: min(32vw, 360px); height: auto; transform: rotate(-8deg); flex: none; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: max(56px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 22px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row img { width: 110px; height: auto; }
.footer-links { font-family: var(--mono); font-size: 14px; color: var(--gray); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.disclosure { font-size: 14px; line-height: 1.5; color: var(--gray); max-width: 1000px; }
.copy { font-family: var(--mono); font-size: 13px; color: var(--gray); }

/* ---------- Telas médias ---------- */
@media (max-width: 1180px) {
  .hero { min-height: 0; padding-bottom: 40px; }
  .float-layer {
    position: relative; inset: auto; margin-top: 64px;
    display: grid; grid-template-columns: repeat(2, 264px); gap: 28px 32px; justify-content: center;
  }
  .float-layer > * { position: relative; inset: auto; left: auto; right: auto; top: auto; }
  .notif, .spark { grid-column: span 1; align-self: center; }
  .hero-note { position: static; margin-top: 32px; }
  .nav-links { display: none; }
}

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-logo img { width: 104px; }
  .btn { font-size: 16px; padding: 16px 24px; }
  .btn-sm { padding: 12px 18px; font-size: 15px; }
  .hero { padding: 48px 0 32px; }
  .hero-center { padding: 0 var(--gutter-r) 0 var(--gutter); gap: 22px; }
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .btn-row .btn { width: 100%; }
  .float-layer {
    margin-top: 44px; width: 100%;
    display: flex; justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 18px var(--gutter-r) 28px var(--gutter);
    scrollbar-width: none;
  }
  .float-layer::-webkit-scrollbar { display: none; }
  .float-layer > * { flex: none; scroll-snap-align: center; }
  .deal { width: 230px; }
  .deal img { height: 170px; }
  .notif { width: 280px; }
  .ticker { height: 120px; }
  .ticker-band { top: 34px; transform: rotate(-4deg); }
  .f1, .f3, .notif { transform: rotate(-3deg); }
  .f2, .f4, .spark { transform: rotate(3deg); }
  .float-layer > * { scroll-snap-align: start; }
  .ticker-group { gap: 18px; padding: 16px 9px; }
  .t-prod { font-size: 16px; }
  .section { padding-top: 88px; padding-bottom: 48px; }
  .section-cat { padding-top: 48px; padding-bottom: 88px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head.split { grid-template-columns: 1fr; gap: 20px; }
  .sec-aside { font-size: 17px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .steps p { font-size: 16px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 12px; }
  .tile { aspect-ratio: 1 / 1.1; border-radius: 24px; }
  .t-big, .t-wide { grid-column: span 2; aspect-ratio: 1.3 / 1; }
  .tag { left: 12px; bottom: 12px; font-size: 14px; padding: 8px 12px; gap: 6px; }
  .stats { padding: 88px 0; }
  .stats-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .stats-grid > div { padding: 28px 0; border-left: 0; border-top: 1px solid rgba(166, 163, 158, .35); }
  .stats-grid > div:first-child { padding-top: 0; border-top: 0; }
  .cta { flex-direction: column; align-items: stretch; padding: 48px 24px 0; border-radius: 32px; overflow: hidden; gap: 8px; }
  .cta-text { min-width: 0; }
  .cta h2 { font-size: clamp(44px, 13vw, 64px); }
  .cta p { font-size: 18px; }
  .cta .btn-row .btn { width: 100%; }
  .cta-peng { width: 70%; align-self: flex-end; margin-right: -6%; margin-bottom: -12%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Movimento: entrada do hero, cards flutuando, revelar ao rolar,
   menu fixo que some/volta, brilho nos botões, pinguim balançando
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.2, .8, .2, 1.15); }

/* menu fixo */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  transition: transform .45s var(--ease), background-color .3s ease, box-shadow .3s ease;
}
.nav-bar.is-scrolled {
  background: rgba(242, 242, 235, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-bar.is-scrolled .nav { padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: 14px; }
.nav { transition: padding .3s ease; }
.nav-bar.is-hidden { transform: translateY(-110%); }

/* entrada do hero */
@keyframes rise { from { opacity: 0; translate: 0 28px; filter: blur(8px); } }
@keyframes pop { from { opacity: 0; scale: .8; } }
@keyframes bob { 50% { translate: 0 -12px; } }
.hero-center > * { animation: rise 1s var(--ease) both; }
.hero-center > .live { animation-delay: .05s; }
.hero-center > .hero-title-wrap { animation: none; }
.hero-center > .hero-sub { animation-delay: .45s; }
.hero-center > .btn-row { animation-delay: .6s; }
.hero-title .line { display: inline-block; animation: rise 1.1s var(--ease) .15s both; }
.hero-title .line.accent { animation-delay: .3s; }
.hero-note { animation: rise 1s var(--ease) 1.4s both; }

/* cards flutuando + parallax leve */
.float-layer { translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -16px); transition: translate .8s var(--ease); }
.hero-center { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px); transition: translate .8s var(--ease); }
.float-layer > * { animation: pop .9s var(--spring) both, bob 6s ease-in-out infinite; }
.float-layer > :nth-child(1) { animation-delay: .5s, 1.4s; }
.float-layer > :nth-child(2) { animation-delay: .62s, 2.1s; animation-duration: .9s, 7s; }
.float-layer > :nth-child(3) { animation-delay: .74s, 1.8s; animation-duration: .9s, 6.6s; }
.float-layer > :nth-child(4) { animation-delay: .86s, 2.4s; animation-duration: .9s, 7.4s; }
.float-layer > :nth-child(5) { animation-delay: .98s, 1.6s; animation-duration: .9s, 5.8s; }
.float-layer > :nth-child(6) { animation-delay: 1.1s, 2.6s; animation-duration: .9s, 6.2s; }
.deal { transition: box-shadow .3s ease, scale .3s var(--ease); }
.deal:hover { scale: 1.04; box-shadow: 0 32px 64px rgba(33, 31, 32, .18); }
.deal img { transition: scale .5s var(--ease); }
.deal:hover img { scale: 1.06; }
.deal { overflow: hidden; }

/* faixa: pausa ao passar o mouse */
.ticker:hover .ticker-track { animation-play-state: paused; }

/* revelar ao rolar (entra e sai) */
html.js [data-reveal] {
  opacity: 0; translate: 0 44px; filter: blur(6px);
  transition: opacity .9s var(--ease) var(--d, 0ms), translate .9s var(--ease) var(--d, 0ms), filter .9s var(--ease) var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; filter: blur(0); }
html.js .cta[data-reveal] { scale: .96; transition: opacity .9s var(--ease), translate .9s var(--ease), filter .9s var(--ease), scale 1s var(--ease); }
html.js .cta[data-reveal].is-in { scale: 1; }

/* passos: título desliza no hover */
.steps h3 { transition: translate .4s var(--ease), color .3s ease; }
.steps li:hover h3 { translate: 12px 0; color: var(--red); }

/* categorias: seta anda */
.tag b { transition: translate .3s var(--ease); }
.tile:hover .tag b { translate: 5px 0; }

/* brilho nos botões */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  translate: -130% 0; transition: translate .8s var(--ease);
}
.btn:hover::before { translate: 130% 0; }

/* pinguim do CTA balançando */
@keyframes sway { 0%, 100% { rotate: -8deg; translate: 0 0; } 50% { rotate: -3deg; translate: 0 -12px; } }
.cta-peng { transform: none; rotate: -8deg; transform-origin: 50% 90%; animation: sway 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .live-dot, .hero-center > *, .hero-title .line, .hero-note, .float-layer > *, .cta-peng { animation: none !important; }
  .btn, .tile img, .deal, .deal img, .nav-bar, .steps h3 { transition: none; }
  .float-layer, .hero-center { translate: none; }
  html.js [data-reveal] { opacity: 1; translate: none; filter: none; scale: 1; transition: none; }
}
