/* =====================================================================
   Site em 5 Dias — "Futurista comercial premium" (camada v4)
   Dispositivos 3D pré-renderizados com capturas reais nas telas.
   ===================================================================== */

/* ---------- Dispositivos ---------- */
.dev { --accent: #875BFF; position: relative; width: 100%; aspect-ratio: 1800 / 1230; isolation: isolate; transform-origin: 50% 60%; transition: transform .2s linear;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%); mask-composite: intersect; }
.dev__scr { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; overflow: hidden; background: #070A12; }
.dev__scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .9s var(--ease-out); }
.dev__scr img.on { opacity: 1; }
.dev__scr[data-q="monitor"] img { filter: brightness(.86) saturate(.95); }
.dev__sweep { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 120% 0; opacity: 0; }
.dev__sweep.go { animation: devSweep 1.3s var(--ease-out); }
@keyframes devSweep { 0% { opacity: 0; background-position: 120% 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: -20% 0; } }
.dev picture, .dev__body { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.dev__floor { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: .9; background:
  radial-gradient(34% 16% at 52% 86%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
  radial-gradient(30% 40% at 92% 40%, rgba(135, 91, 255, .22), transparent 70%),
  radial-gradient(30% 40% at 6% 30%, rgba(71, 123, 255, .16), transparent 70%); transition: background 1s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .dev__scr img { transition: none; } .dev__sweep { display: none; } }

/* ---------- HOME ---------- */
.hero4 { position: relative; overflow: hidden; isolation: isolate; padding: clamp(16px, 3vh, 40px) 0 clamp(48px, 7vh, 88px); border-bottom: 1px solid var(--line); }
.hero4__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(45% 55% at 76% 38%, rgba(135, 91, 255, .20), transparent 70%),
  radial-gradient(40% 45% at 58% 78%, rgba(71, 123, 255, .14), transparent 70%),
  radial-gradient(30% 40% at 0% 0%, rgba(71, 123, 255, .10), transparent 70%),
  linear-gradient(180deg, #0B0F1E, var(--ink) 70%); }
.hero4__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(143, 174, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 174, 255, .05) 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: radial-gradient(60% 70% at 70% 45%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 70% 45%, #000, transparent 80%); }
.hero4__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 48px); align-items: center; min-height: min(calc(100svh - 140px), 840px); }
.hero4__copy { position: relative; z-index: 2; animation: fadeUp 1s var(--ease-out) both; }
.hero4__title { font: 800 clamp(40px, 4.3vw, 76px)/.96 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.hero4__title em { display: block; margin-top: .1em; background: linear-gradient(100deg, #5C8BFF 0%, #8E7BFF 55%, #D2C4FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(135, 91, 255, .25)); }
.hero4__lead { margin-top: 20px; font-size: clamp(16.5px, 1.3vw, 19px); color: #C3CAE0; max-width: 520px; }
.hero4__ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero4__show { --accent: #E8DCCB; position: relative; animation: fadeUp 1.3s .15s var(--ease-out) both; }
.hero4__show .dev { width: 106%; margin: -7% -1% -4% -5%; }
.now4 { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 var(--gut) 0 4%; padding: 14px 16px 14px 20px; border-radius: 18px; background: linear-gradient(120deg, rgba(27, 34, 58, .9), rgba(15, 20, 36, .9)); border: 1px solid rgba(143, 174, 255, .22); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); }
.now4::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 14px var(--accent); transition: background .8s; }
.now4__k { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.now4__k span { color: var(--accent); transition: color .8s; }
.now4__name { margin-top: 4px; font: 700 clamp(20px, 1.8vw, 26px)/1.05 var(--display); letter-spacing: -.03em; }
.now4__next { margin-top: 4px; font-size: 12.5px; color: var(--soft); }
.now4__open { flex-shrink: 0; }
.chips4 { margin: 14px var(--gut) 0 4%; display: flex; flex-wrap: wrap; gap: 6px; }
.chips4 button { --accent: #9AA4B8; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(9, 13, 22, .4); color: var(--muted); font: 500 13px var(--sans); cursor: pointer; transition: color .25s, border-color .25s, background-color .25s; }
.chips4 button i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chips4 button:hover { color: var(--ice); border-color: var(--line-2); }
.chips4 button[aria-pressed="true"] { color: var(--ink); background: var(--ice); border-color: var(--ice); }

@media (max-width: 1100px) {
  .hero4__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero4__show { margin-right: 0; max-width: 820px; }
  .hero4__show .dev { width: 108%; margin: -2% -4% -2% -4%; }
  .now4, .chips4 { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .hero4 { padding-top: 22px; }
  .hero4__title { font-size: clamp(36px, 10.4vw, 52px); }
  .hero4__lead { margin-top: 14px; font-size: 15.5px; line-height: 1.55; }
  .hero4__ctas { margin-top: 18px; }
  .hero4__ctas .pill { flex: 1 1 100%; --h: 54px; }
  .hero4__show .dev { width: 124%; margin: 0 -12% -4% -12%; }
  .now4 { flex-direction: column; align-items: stretch; }
  .now4__open { width: 100%; }
}

/* ---------- PORTFÓLIO ---------- */
.port4 { background: radial-gradient(60% 40% at 50% 0%, rgba(135, 91, 255, .10), transparent 70%), linear-gradient(180deg, var(--ink), var(--ink-2)); }
.port4__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.port4__head .kicker { margin-bottom: 20px; }
@media (max-width: 900px) { .port4__head { grid-template-columns: 1fr; } }

/* Destaque com dispositivos */
.spot { --accent: #E8DCCB; position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); align-items: center; gap: 12px clamp(20px, 3vw, 48px); padding: clamp(10px, 1.6vw, 24px) clamp(18px, 3vw, 44px) clamp(18px, 3vw, 40px) 0; border-radius: 30px; background: radial-gradient(60% 80% at 30% 60%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), linear-gradient(160deg, #121931, #0A0E1A); border: 1px solid rgba(143, 174, 255, .16); box-shadow: 0 60px 120px -70px rgba(105, 90, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .04); overflow: hidden; transition: background 1s var(--ease-out); }
.spot__stage .dev { width: 108%; margin: -2% -4% -4% -4%; }
.spot__k { display: flex; align-items: center; gap: 12px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); transition: color .8s; }
.spot__n { color: var(--ice); padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; }
.spot__name { margin-top: 16px; font: 800 clamp(30px, 3vw, 48px)/1 var(--display); letter-spacing: -.04em; }
.spot__seg { margin-top: 8px; color: #B7C8FF; font-size: 15px; }
.spot__desc { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.spot__price { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; font: 700 24px/1.1 var(--display); letter-spacing: -.02em; }
.spot__price small { font: 500 10.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.spot__acts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) {
  .spot { grid-template-columns: 1fr; padding: 0 20px 24px; }
  .spot__stage .dev { width: 116%; margin: 0 -8% -2% -8%; }
  .spot__acts .pill { flex: 1 1 100%; }
}

.port4__bar { margin: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.port4__hint { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

/* Mural por plano */
.wall { display: grid; gap: clamp(48px, 6vw, 80px); }
.wall__group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2.2vw, 30px); }
.wall__group.is-hidden { display: none; }
.wall__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.wall__plan { font: 800 clamp(26px, 2.6vw, 40px)/1 var(--display); letter-spacing: -.04em; }
.wall__group--premium .wall__plan { background: linear-gradient(100deg, #7EA2FF, #B39BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wall__desc { color: var(--muted); font-size: 15px; }
.tile4 { --accent: #9AA4B8; grid-column: span 4; display: flex; flex-direction: column; min-width: 0; }
.tile4--premium { grid-column: span 6; }
.tile4__media { position: relative; display: block; width: 100%; padding: clamp(22px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px) clamp(26px, 3vw, 40px); border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(70% 60% at 50% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), linear-gradient(165deg, #1A2140, #0B0F1C 75%); cursor: pointer; overflow: hidden; perspective: 1400px; text-align: left; transition: border-color .4s, box-shadow .5s var(--ease-out); }
.tile4__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tile4__screen { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(245, 247, 255, .18); background: #0E1322; transform: rotateY(-9deg) rotateX(5deg) rotateZ(.5deg); transform-origin: 40% 50%; box-shadow: 30px 40px 60px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4); transition: transform 1s var(--ease-out);
  -webkit-box-reflect: below 8px linear-gradient(transparent 70%, rgba(0, 0, 0, .18)); }
.tile4__screen img { width: 100%; aspect-ratio: 1200 / 680; object-fit: cover; object-position: top; }
.tile4--premium .tile4__screen img { aspect-ratio: 1200 / 640; }
.tile4__phone { position: absolute; right: clamp(16px, 3vw, 38px); bottom: clamp(14px, 2vw, 26px); width: 21%; border-radius: 16px; overflow: hidden; border: 4px solid #232C47; transform: rotateY(-12deg) rotateX(4deg) translateZ(40px); box-shadow: -14px 24px 50px -16px rgba(0, 0, 0, .95); transition: transform 1s var(--ease-out); }
.tile4__phone img { width: 100%; aspect-ratio: 390 / 740; object-fit: cover; object-position: top; }
.tile4__see { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); padding: 9px 14px; border-radius: 999px; background: rgba(9, 13, 22, .82); border: 1px solid rgba(143, 174, 255, .35); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #DDE4FA; opacity: 0; transition: opacity .3s, transform .5s var(--ease-out); }
.tile4__media:hover, .tile4__media:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--accent) 70%, transparent); }
.tile4__media:hover .tile4__screen, .tile4__media:focus-visible .tile4__screen { transform: rotateY(0) rotateX(0) translateY(-4px); }
.tile4__media:hover .tile4__phone, .tile4__media:focus-visible .tile4__phone { transform: rotateY(-4deg) translateZ(60px) translateY(-10px); }
.tile4__media:hover .tile4__see, .tile4__media:focus-visible .tile4__see { opacity: 1; transform: translate(-50%, -50%); }
.tile4.is-current .tile4__media { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.tile4__body { padding: 20px 4px 0; display: flex; flex-direction: column; flex: 1; }
.tile4__k { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.tile4__plan { color: var(--accent); }
.tile4__title { margin-top: 10px; font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--display); letter-spacing: -.03em; }
.tile4--premium .tile4__title { font-size: clamp(26px, 2.4vw, 38px); }
.tile4__seg { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.tile4__acts { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tile4__style { font-size: 14px; font-weight: 600; color: #B7C8FF; text-decoration: none; }
.tile4__style:hover { color: #fff; }
.wall .gsoon { grid-column: 1 / -1; }
@media (max-width: 1100px) { .tile4 { grid-column: span 6; } }
@media (max-width: 720px) {
  .tile4, .tile4--premium { grid-column: span 12; }
  .tile4__acts { flex-direction: column; align-items: stretch; }
  .tile4__acts .pill { width: 100%; --h: 50px; }
  .tile4__style { text-align: center; padding: 4px 0; }
}
@media (hover: none) { .tile4__see { opacity: 1; transform: translate(-50%, -50%); top: auto; bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .tile4__screen, .tile4__phone { transition: none; } }
@media (max-width: 600px) {
  .port4__bar .filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .port4__bar .filter { justify-content: center; padding: 0 12px; }
}
