/* =========================================================
   iPhone Fortal — camada visual "premium"
   Carrega DEPOIS do style.css e só sobrescreve/estende.
   ========================================================= */

:root {
  --violet: #7c5cff;
  --warm: #ffb36b;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

body { background: #f6f5fa; }

/* ---------- correção: revelar ao rolar ----------
   No style.css, a regra que ESCONDE (.js-reveal-ready .reveal) vinha depois da
   que MOSTRA (.reveal.is-visible) e vencia, deixando tudo invisível. */
.js-reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal-ready .card-product.reveal { transition: opacity .6s ease, transform .45s var(--ease), box-shadow .4s var(--ease); }
.js-reveal-ready .card-product.reveal.is-visible:hover { transform: translateY(-8px); }
.grid-products .reveal:nth-child(n) { transition-delay: 0s; } /* sem atraso no hover */

/* ---------- header ---------- */
.site-header {
  background: rgba(8, 0, 24, .72);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 0, 24, .92);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6);
}
.scroll-progress {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--warm), var(--violet), var(--accent));
}
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--warm); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { transition: transform .2s var(--ease), box-shadow .2s ease, background .2s; box-shadow: 0 6px 18px -6px rgba(37, 211, 102, .7); }
.nav-cta:hover { transform: translateY(-2px); }

/* barra de categorias (rola junto, destaca a seção atual) */
.catbar { border-top: 1px solid rgba(255, 255, 255, .07); }
.catbar-in {
  width: 100%; padding: 9px max(24px, calc((100% - 1132px) / 2));
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.catbar-in::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #d9d3f2;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, color .25s ease, transform .25s var(--ease), opacity .25s;
}
.chip small { margin-left: 7px; font-size: 11px; opacity: .55; font-weight: 700; }
.chip:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.chip.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.chip.is-empty { opacity: .35; }

/* ---------- hero ---------- */
.hero2 {
  position: relative; overflow: hidden; color: #fff;
  background: #07001a; padding: 78px 0 0;
}
.hero2-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.o1 { width: 540px; height: 540px; background: #5b3df5; top: -170px; left: -130px; }
.o2 { width: 480px; height: 480px; background: var(--accent); right: -110px; top: 30px; animation-delay: -6s; }
.o3 { width: 400px; height: 400px; background: #ff7a59; opacity: .28; bottom: -190px; left: 38%; animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(70px, 46px, 0) scale(1.18); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}

.hero2-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 36px;
  align-items: center; padding-bottom: 76px;
}

.pill-live {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px; font-weight: 600; color: #efeaff; letter-spacing: .01em;
  animation: rise .7s var(--ease) both;
}
.pill-live i { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.hero2 h1 {
  font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; font-weight: 800;
  letter-spacing: -.03em; margin: 20px 0 18px;
  animation: rise .8s .08s var(--ease) both;
}
.hero2 h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd9a0, #b49a6c 30%, #a58bff 65%, #ffd9a0);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero2-lead { font-size: 17px; line-height: 1.6; color: #cfc9ea; max-width: 520px; margin: 0 0 26px; animation: rise .8s .16s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 540px;
  padding: 8px 8px 8px 18px; border-radius: 999px; color: #cfc9ea;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s, box-shadow .25s, background .25s;
  animation: rise .8s .24s var(--ease) both;
}
.hero-search:focus-within { border-color: var(--warm); background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 4px rgba(255, 179, 107, .18); }
.hero-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: #fff; font: 500 15.5px var(--font-body); padding: 10px 0;
}
.hero-search input::placeholder { color: #a79fc9; }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search button {
  border: 0; cursor: pointer; font: 700 14px var(--font-body); color: var(--ink);
  background: linear-gradient(120deg, #ffd9a0, var(--accent)); padding: 12px 22px; border-radius: 999px;
  transition: transform .2s var(--ease), filter .2s;
}
.hero-search button:hover { transform: scale(1.04); filter: brightness(1.06); }

.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: #a79fc9; animation: rise .8s .3s var(--ease) both; }
.hero-quick a {
  padding: 6px 13px; border-radius: 999px; color: #e8e3fb; font-weight: 600;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .2s, transform .2s var(--ease);
}
.hero-quick a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); animation: rise .8s .36s var(--ease) both; }
.hero-stats b { display: block; font: 800 30px var(--font-display); letter-spacing: -.02em; color: #fff; }
.hero-stats span { font-size: 12.5px; color: #a79fc9; }

/* produtos flutuando */
.hero2-visual { position: relative; height: 480px; }
.fwrap { position: absolute; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .25s ease-out; }
.fw1 { top: 0; left: 12%; }
.fw2 { top: 130px; right: 0; }
.fw3 { bottom: 0; left: 0; }
.fcard {
  display: block; width: 228px; padding: 12px 12px 14px; color: var(--ink);
  background: #fff; border-radius: 28px; --r: 0deg;
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  transform: rotate(var(--r));
  animation: floaty 7s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: box-shadow .3s ease;
}
.fcard:hover { box-shadow: 0 40px 70px -20px rgba(124, 92, 255, .6); animation-play-state: paused; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-16px) rotate(var(--r)); } }
.fcard img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: #fff; }
.fcard-info { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px 0; }
.fcard-info strong { font: 700 14.5px var(--font-display); }
.fcard-info span { font-size: 13px; color: var(--accent-dark); font-weight: 700; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); pointer-events: none; animation: spin 40s linear infinite; }
.r1 { width: 420px; height: 420px; top: 30px; left: 50px; }
.r2 { width: 300px; height: 300px; top: 100px; left: 110px; animation-direction: reverse; animation-duration: 28s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* faixa rolando */
.marquee { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); }
.marquee-track { display: flex; gap: 52px; width: max-content; padding: 16px 0; animation: marq 42s linear infinite; }
.marquee-track span { font-size: 13.5px; font-weight: 600; color: #d9d3f2; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- barra de busca / filtros ---------- */
.toolbar-wrap { position: relative; z-index: 5; margin-top: 28px; scroll-margin-top: 120px; }
.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border-radius: 22px; padding: 12px 14px;
  box-shadow: 0 24px 50px -24px rgba(12, 0, 37, .45), 0 0 0 1px rgba(12, 0, 37, .05);
}
.search-box {
  display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 200px;
  background: #f3f1f8; border-radius: 14px; padding: 0 14px; color: var(--graphite);
  border: 1px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-box:focus-within { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .14); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 15px var(--font-body); padding: 13px 0; color: var(--ink); min-width: 0; }
.toolbar .filters { background: #f3f1f8; }
.toolbar .filters button { position: relative; }
.toolbar .filters button.active { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(12, 0, 37, .6); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite); font-weight: 600; }
.sort select {
  appearance: none; -webkit-appearance: none; border: 0; background: #f3f1f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234a3f6b' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 11px 34px 11px 14px; border-radius: 12px; font: 600 13.5px var(--font-body); color: var(--ink); cursor: pointer; outline: 0;
}
.sort select:focus-visible { box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.result-count { font-size: 13px; color: var(--graphite); font-weight: 600; margin-left: auto; padding-right: 6px; }

.empty-search { text-align: center; padding: 70px 20px 40px; }
.empty-search[hidden] { display: none; }
.es-emoji { font-size: 44px; margin-bottom: 8px; }
.empty-search h3 { font-size: 24px; margin-bottom: 6px; }
.empty-search p { color: var(--graphite); max-width: 420px; margin: 0 auto 20px; }

/* ---------- seções e cards ---------- */
.finish-bar { display: none; }
.section { padding: 64px 0 18px; scroll-margin-top: 112px; }
.section.is-hidden, .card-product.is-hidden { display: none !important; }
.sec-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.sec-kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.03em; }

.grid-products { gap: 24px; }

.card-product {
  position: relative; border-radius: 24px; border: 1px solid rgba(12, 0, 37, .06);
  box-shadow: 0 1px 2px rgba(12, 0, 37, .04), 0 18px 34px -22px rgba(12, 0, 37, .3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .5s ease;
  will-change: transform;
}
.card-product::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4;
  background: linear-gradient(135deg, var(--warm), var(--violet), var(--accent));
  -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 .35s ease;
}
.card-product:hover { transform: translateY(-8px); box-shadow: 0 34px 56px -26px rgba(76, 44, 190, .5); }
.card-product:hover::before { opacity: 1; }
.card-product.reveal:hover { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }

.card-product .thumb { background: radial-gradient(circle at 50% 38%, #ffffff 0%, #f4f2fa 100%); cursor: pointer; }
.card-product .thumb img { transition: transform .6s var(--ease), opacity .5s ease; }
.js-ready .card-product .thumb img:not(.is-loaded) { opacity: 0; }
.card-product:hover .thumb img { transform: scale(1.09) translateY(-4px); }

.quick {
  position: absolute; left: 50%; bottom: 14px; z-index: 3;
  transform: translate(-50%, 14px); opacity: 0;
  border: 0; cursor: pointer; color: #fff; padding: 9px 18px; border-radius: 999px;
  font: 600 12.5px var(--font-body); background: rgba(12, 0, 37, .88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .3s ease, transform .35s var(--ease), background .2s;
}
.quick:hover { background: var(--violet); }
.card-product:hover .quick, .quick:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .quick { opacity: 1; transform: translate(-50%, 0); padding: 7px 13px; font-size: 11px; bottom: 10px; } }

.card-product h3 { cursor: pointer; transition: color .2s; }
.card-product h3:hover { color: var(--violet); }
.card-product .price { letter-spacing: -.02em; }

.btn-whatsapp { position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .25s, background .2s; }
.btn-whatsapp::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(37, 211, 102, .8); }
.btn-whatsapp:hover::after { left: 130%; }

/* ---------- seções finais ---------- */
.about, .team { position: relative; }
.team-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -24px rgba(12, 0, 37, .4); }
.wa-float { animation: waPulse 2.6s ease-in-out infinite; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, 0); } }

/* ---------- janela de detalhes ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 0, 18, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s ease both; }
.modal-box {
  position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 30px;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7); animation: pop .45s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(12, 0, 37, .08); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.modal-x:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal-img { display: flex; align-items: center; justify-content: center; padding: 30px; background: radial-gradient(circle at 50% 40%, #fff, #efecf7); }
.modal-img img { width: 100%; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.modal-body { padding: 38px 34px 32px; display: flex; flex-direction: column; gap: 12px; }
.modal-badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.modal-body h3 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; padding-right: 30px; }
.modal-spec { color: var(--graphite); font-size: 14.5px; }
.modal-price .price { font-size: 32px; margin: 4px 0; }
.modal-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }
.modal-desc:empty { display: none; }
.modal-perks { list-style: none; padding: 14px 0; margin: 4px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-soft); }
.modal-perks li::before { content: "✓"; color: #1ea952; font-weight: 800; margin-right: 10px; }
.modal-body .btn { width: 100%; justify-content: center; text-align: center; }
.modal-copy { border: 0; background: transparent; color: var(--ink-soft); font: 600 13px var(--font-body); cursor: pointer; padding: 8px; border-radius: 10px; transition: background .2s; }
.modal-copy:hover { background: #f3f1f8; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .hero2 { padding-top: 56px; }
  .hero2-grid { grid-template-columns: 1fr; padding-bottom: 54px; }
  .hero2-visual { height: 330px; max-width: 420px; margin: 0 auto; width: 100%; }
  .fcard { width: 168px; border-radius: 22px; padding: 9px 9px 11px; }
  .fw2 { top: 70px; } .r1, .r2 { display: none; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-img { padding: 18px; } .modal-img img { max-height: 260px; }
}
@media (max-width: 600px) {
  .catbar-in { padding: 8px 16px; }
  .hero-stats { gap: 22px; } .hero-stats b { font-size: 24px; }
  .hero-search button { padding: 11px 16px; }
  .toolbar { border-radius: 18px; gap: 10px; }
  .toolbar .filters { order: 3; width: 100%; justify-content: space-between; }
  .toolbar .filters button { flex: 1; padding: 9px 8px; }
  .result-count { margin-left: 0; }
  .section { padding-top: 46px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: 26px 26px 0 0; max-height: 92vh; animation-name: sheet; }
  .modal-body { padding: 24px 22px 26px; } .modal-body h3 { font-size: 25px; }
}
@keyframes sheet { from { transform: translateY(60px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .orb, .ring, .fcard, .marquee-track, .wa-float, .pill-live i, .hero2 h1 em { animation: none !important; }
  .pill-live, .hero2 h1, .hero2-lead, .hero-search, .hero-quick, .hero-stats { animation: none !important; }
  .card-product, .card-product .thumb img, .quick { transition: none !important; }
  .fwrap { transition: none; transform: none; }
}
