/* =====================================================
   INTRO CINEMATOGRÁFICA — vitrine dos produtos xPH
   ===================================================== */
#intro { display: none; }
html.intro-on, html.intro-on body { overflow: hidden; }
html.intro-on #intro {
  display: block; position: fixed; inset: 0; z-index: 9999; background: #030812; color: #fff; overflow: hidden;
  font-family: "Inter", system-ui, sans-serif; clip-path: circle(150% at 50% 50%);
}
#intro.exit { transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), opacity .4s 1s; clip-path: circle(0% at 50% 50%); opacity: 0; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .scan { position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
#intro .vignette { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.75)); }

/* HUD nos cantos */
.i-hud { position: absolute; z-index: 6; font: 600 11px/1.6 "Courier New", monospace; color: rgba(34,200,255,.75); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.i-hud.tl { top: 22px; left: 26px; } .i-hud.tr { top: 22px; right: 26px; text-align: right; }
.i-hud.bl { bottom: 22px; left: 26px; } .i-hud.br { bottom: 70px; right: 26px; text-align: right; }
.i-corner { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(34,200,255,.6); z-index: 6; pointer-events: none; }
.i-corner.c1 { top: 12px; left: 12px; border-right: 0; border-bottom: 0; } .i-corner.c2 { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.i-corner.c3 { bottom: 12px; left: 12px; border-right: 0; border-top: 0; } .i-corner.c4 { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* Cenas */
.i-scene { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.i-scene.on { opacity: 1; visibility: visible; transition: opacity .5s; }

/* 1. Boot */
.i-term { width: min(620px, 100%); font: 500 clamp(12px, 1.6vw, 15px)/1.9 "Courier New", monospace; color: #9fe9ff; }
.i-term .ln { white-space: pre; overflow: hidden; }
.i-term .ok { color: #3dd9b5; font-weight: 700; }
.i-term .cur { display: inline-block; width: 9px; height: 1.1em; background: #22c8ff; vertical-align: -3px; animation: iblink .6s steps(1) infinite; }
@keyframes iblink { 50% { opacity: 0; } }
.i-load { margin-top: 22px; height: 4px; border-radius: 4px; background: rgba(34,200,255,.15); overflow: hidden; }
.i-load i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c8ff, #3dd9b5); box-shadow: 0 0 14px #22c8ff; transition: width .25s; }
.i-pct { margin-top: 8px; font: 700 12px "Courier New", monospace; color: #22c8ff; text-align: right; }

/* 2. Logo */
.i-logo { text-align: center; position: relative; }
.i-logo .rings { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.i-logo .rings b { position: absolute; left: 50%; top: 50%; border: 2px solid rgba(34,200,255,.6); border-radius: 50%; transform: translate(-50%,-50%); width: 0; height: 0; opacity: 0; }
.i-scene.on .i-logo .rings b { animation: iring 2s cubic-bezier(.2,.8,.2,1) forwards; }
.i-scene.on .i-logo .rings b:nth-child(2) { animation-delay: .25s; } .i-scene.on .i-logo .rings b:nth-child(3) { animation-delay: .5s; }
@keyframes iring { 0% { width: 0; height: 0; opacity: 1; } 100% { width: 900px; height: 900px; opacity: 0; } }
.i-glitch { position: relative; font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(5rem, 18vw, 12rem); letter-spacing: -.06em; line-height: 1;
  background: linear-gradient(120deg, #fff 20%, #22c8ff 60%, #3dd9b5); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(34,200,255,.55)); }
.i-glitch::before, .i-glitch::after { content: attr(data-t); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; }
.i-scene.on .i-glitch::before { animation: iglA 1.4s steps(2) 3; color: rgba(255,0,90,.7); }
.i-scene.on .i-glitch::after { animation: iglB 1.4s steps(2) 3; color: rgba(0,240,255,.7); }
@keyframes iglA { 0%,100% { clip-path: inset(0 0 100% 0); transform: none; } 20% { clip-path: inset(20% 0 55% 0); transform: translate(-8px, 2px); } 40% { clip-path: inset(70% 0 5% 0); transform: translate(6px,-2px); } 60% { clip-path: inset(40% 0 40% 0); transform: translate(-4px,0); } }
@keyframes iglB { 0%,100% { clip-path: inset(0 0 100% 0); transform: none; } 25% { clip-path: inset(60% 0 20% 0); transform: translate(8px,-2px); } 50% { clip-path: inset(10% 0 75% 0); transform: translate(-6px, 2px); } 75% { clip-path: inset(85% 0 2% 0); transform: translate(4px,0); } }
.i-scene.on .i-glitch { animation: izoom 1.6s cubic-bezier(.2,.9,.2,1) both; }
@keyframes izoom { from { transform: scale(2.4); opacity: 0; filter: blur(20px); } to { transform: none; opacity: 1; } }
.i-tag { margin-top: 18px; font: 600 clamp(.75rem, 1.6vw, 1rem) "Courier New", monospace; letter-spacing: .4em; text-transform: uppercase; color: #8fe3ff; }

/* 3. Produtos */
.i-prod { width: min(1100px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.i-prod .txt { position: relative; }
.i-num { font: 700 13px "Courier New", monospace; letter-spacing: .3em; color: var(--c, #22c8ff); margin-bottom: 14px; }
.i-name { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.045em; line-height: 1; margin-bottom: 16px;
  text-shadow: 0 0 40px color-mix(in srgb, var(--c, #22c8ff) 60%, transparent); }
.i-pitch { font-size: clamp(1.05rem, 2vw, 1.4rem); color: #d6e6fa; max-width: 460px; margin-bottom: 22px; }
.i-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.i-feats span { font-size: .8rem; padding: 7px 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: #fff;
  opacity: 0; transform: translateY(12px); }
.i-scene.on .i-feats span { animation: iup .5s forwards; }
.i-scene.on .i-feats span:nth-child(2) { animation-delay: .15s; } .i-scene.on .i-feats span:nth-child(3) { animation-delay: .3s; }
@keyframes iup { to { opacity: 1; transform: none; } }
.i-frame { position: relative; aspect-ratio: 16/11; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--c) 35%, transparent), 0 40px 80px -30px #000; transform: perspective(1200px) rotateY(-14deg) rotateX(4deg); }
.i-scene.on .i-frame { animation: iframe 1s cubic-bezier(.2,.9,.2,1) both; }
@keyframes iframe { from { transform: perspective(1200px) rotateY(-40deg) translateX(80px); opacity: 0; filter: blur(10px); } }
.i-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.i-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, transparent), transparent 50%, rgba(3,8,18,.7)); }
.i-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; top: 0; z-index: 2; background: var(--c); box-shadow: 0 0 20px var(--c); animation: iscan 1.6s ease-in-out infinite; }
@keyframes iscan { 50% { top: calc(100% - 3px); } }
.i-badge { position: absolute; z-index: 3; bottom: 14px; left: 14px; font: 700 11px "Courier New", monospace; letter-spacing: .15em; padding: 6px 10px; border-radius: 6px; background: rgba(3,8,18,.75); color: var(--c); border: 1px solid var(--c); }
.i-dots { position: absolute; z-index: 6; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.i-dots i { width: 26px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; position: relative; }
.i-dots i.done { background: #22c8ff; }
.i-dots i.cur::after { content: ""; position: absolute; inset: 0; background: #22c8ff; transform-origin: left; animation: idot var(--d) linear forwards; }
@keyframes idot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 4. Final */
.i-final { text-align: center; }
.i-final h2 { font-family: "Sora", sans-serif; font-weight: 300; font-size: clamp(1.8rem, 5vw, 3.6rem); letter-spacing: -.03em; }
.i-final h2 b { font-weight: 800; background: linear-gradient(120deg, #22c8ff, #3dd9b5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i-final p { margin-top: 14px; color: #9fb2cc; font: 600 13px "Courier New", monospace; letter-spacing: .3em; text-transform: uppercase; }

/* Pular */
.i-skip { position: absolute; z-index: 10; bottom: 22px; right: 26px; font: 700 12px "Courier New", monospace; letter-spacing: .15em; text-transform: uppercase;
  color: #cfefff; background: rgba(34,200,255,.08); border: 1px solid rgba(34,200,255,.45); padding: 10px 16px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); transition: .2s; }
.i-skip:hover { background: rgba(34,200,255,.2); box-shadow: 0 0 20px rgba(34,200,255,.5); }
.i-flash { position: absolute; inset: 0; z-index: 8; background: #fff; opacity: 0; pointer-events: none; }
.i-flash.go { animation: iflash .5s ease-out; }
@keyframes iflash { 0% { opacity: .7; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .i-prod { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .i-prod .frame-wrap { order: -1; }
  .i-frame { transform: none; max-width: 420px; margin: 0 auto; aspect-ratio: 16/9; }
  .i-pitch { margin-inline: auto; } .i-feats { justify-content: center; }
  .i-hud.tr, .i-hud.br { display: none; }
  .i-skip { right: 50%; transform: translateX(50%); bottom: 50px; }
}
