/* Topo do site: grade de telas reais com o símbolo 3D no centro. */
.grade-hero{position:relative;overflow:hidden;height:max(640px,calc(100svh - 80px));color:#f4eef0;
  background:radial-gradient(42% 60% at 16% 28%,#f2c9d6 0%,#f2c9d600 100%),radial-gradient(45% 62% at 86% 30%,#d2456c 0%,#d2456c00 100%),radial-gradient(30% 50% at 50% 30%,#4a0f24 0%,#4a0f2400 100%),radial-gradient(48% 55% at 20% 95%,#3b2430 0%,#3b243000 100%),radial-gradient(50% 55% at 82% 95%,#8a1d40 0%,#8a1d4000 100%),#2a0f1b}
.grade-tela{position:absolute;width:min(31vw,calc(max(600px,100svh - 80px)*.44*1.6));height:auto;aspect-ratio:1440/900;border-radius:14px;border:1px solid #ffffff1c;box-shadow:0 30px 80px -20px #0009;z-index:1;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.grade-tela:hover{transform:translateY(-6px)}
.grade-tl{left:3vw;top:5%}.grade-tr{right:3vw;top:5%}.grade-bl{left:3vw;bottom:5%}.grade-br{right:3vw;bottom:5%}
.grade-logo{position:absolute;left:36%;width:28%;top:0;height:52%}
.grade-logo iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent}
.grade-texto{position:absolute;left:30%;width:40%;bottom:5%;max-height:48%;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 28px;
  background:linear-gradient(160deg,#7a1f3dd9,#3a0c1dd9);backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);border:1px solid #ffffff22;border-radius:28px;box-shadow:0 40px 90px -20px #000c,inset 0 1px 0 #ffffff26}
.grade-texto .hero-note{margin:0 0 8px;font-size:14px;opacity:.85}
.grade-texto h1{font-size:clamp(28px,3.2vw,54px);margin:0;letter-spacing:-.035em;line-height:1.05}
.grade-texto>p{font-size:clamp(14px,1.1vw,18px);margin:10px 0 20px;opacity:.9}
.grade-texto .hero-actions{display:flex;gap:10px;flex-wrap:nowrap;justify-content:center}.grade-texto .btn{white-space:nowrap}
@media (max-width:900px){
  .grade-hero{height:auto;display:flex;flex-direction:column;align-items:center;gap:16px;padding:0 16px 32px}
  .grade-logo{position:relative;left:auto;top:auto;width:100%;height:320px;order:-2}
  .grade-texto{position:relative;left:auto;top:auto;width:100%;order:-1}
  .grade-tela{position:relative;inset:auto;width:100%}
}
@media (prefers-reduced-motion:reduce){.grade-tela{transition:none}}
@media (min-width:901px){.grade-texto{background:linear-gradient(160deg,#7a1f3da6,#3a0c1da6);bottom:11%}}
/* Raio de luz percorrendo a borda da caixa (computador) */
@property --raio{syntax:'<angle>';inherits:false;initial-value:0deg}
@media (min-width:901px){
  .grade-texto::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;
    background:conic-gradient(from var(--raio),transparent 0deg,transparent 305deg,#ffd1e040 330deg,#ffe4ecb3 352deg,transparent 360deg);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
    filter:drop-shadow(0 0 4px #ff9ec080);animation:raio-borda 7s linear infinite}
}
@keyframes raio-borda{to{--raio:360deg}}
@media (prefers-reduced-motion:reduce){.grade-texto::before{animation:none}}
/* Símbolo 3D com tamanho fixo no computador (não muda com a altura da janela) */
@media (min-width:901px){.grade-logo{height:363px;top:max(0px,calc(26% - 181px))}}
/* Telas do topo mais vivas */
.grade-tela{filter:saturate(1.45) brightness(1.18) contrast(1.06);box-shadow:0 30px 80px -20px #0009,0 0 0 1px #ffffff14,0 0 60px -10px #ff5c8a40}
/* Topo vivo (computador): telas em perspectiva, flutuando, com brilho próprio e aurora no fundo */
@media (min-width:901px){
  .grade-hero{perspective:1600px;isolation:isolate}
  .grade-hero::before{content:"";position:absolute;inset:-20%;z-index:0;pointer-events:none;opacity:.6;will-change:transform;
    background:radial-gradient(30% 38% at 25% 35%,#ff4d8d 0%,transparent 100%),radial-gradient(28% 36% at 75% 30%,#8b5cf6 0%,transparent 100%),radial-gradient(30% 34% at 30% 80%,#f97316aa 0%,transparent 100%),radial-gradient(30% 34% at 72% 78%,#06b6d488 0%,transparent 100%);
    animation:topo-aurora 18s ease-in-out infinite alternate}
  .grade-tela{transform-style:preserve-3d;animation:topo-flutua 7s ease-in-out infinite alternate}
  .grade-tl{transform:rotateY(14deg) rotateX(5deg);box-shadow:0 40px 90px -25px #000c,0 0 70px -8px #ff4d8d80;animation-delay:0s}
  .grade-tr{transform:rotateY(-14deg) rotateX(5deg);box-shadow:0 40px 90px -25px #000c,0 0 70px -8px #8b5cf680;animation-delay:-2s}
  .grade-bl{transform:rotateY(14deg) rotateX(-5deg);box-shadow:0 40px 90px -25px #000c,0 0 70px -8px #22c55e70;animation-delay:-4s}
  .grade-br{transform:rotateY(-14deg) rotateX(-5deg);box-shadow:0 40px 90px -25px #000c,0 0 70px -8px #06b6d480;animation-delay:-6s}
  .grade-tela:hover{transform:none;translate:0 -6px}
}
@keyframes topo-flutua{from{translate:0 0}to{translate:0 -14px}}
@keyframes topo-aurora{0%{transform:translate(0,0) rotate(0)}50%{transform:translate(4%,-3%) rotate(8deg)}100%{transform:translate(-4%,3%) rotate(-6deg)}}
@media (prefers-reduced-motion:reduce){.grade-tela,.grade-hero::before{animation:none}}
/* Troca suave das telas */
.grade-tela{transition:transform .8s cubic-bezier(.2,.8,.2,1),opacity .45s ease}
/* Raio de luz contornando cada tela, cada uma com sua cor (computador) */
@media (min-width:901px){
  .grade-tela{padding:2px;border-color:transparent;background:conic-gradient(from var(--raio),transparent 0deg,transparent 300deg,color-mix(in srgb,var(--cor) 30%,transparent) 325deg,var(--cor) 350deg,transparent 360deg) border-box,#151215 padding-box;
    animation:topo-flutua 7s ease-in-out infinite alternate,raio-borda 6s linear infinite}
  .grade-tl{--cor:#ff4d8d}.grade-tr{--cor:#a78bfa}.grade-bl{--cor:#22c55e}.grade-br{--cor:#22d3ee}
  .grade-tl{animation-delay:0s,0s}.grade-tr{animation-delay:-2s,-1.5s}.grade-bl{animation-delay:-4s,-3s}.grade-br{animation-delay:-6s,-4.5s}
}

@media (max-width: 720px) {
  .grade-hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    padding: 0;
    background:
      radial-gradient(ellipse at 50% 0%, #853850, transparent 52%),
      linear-gradient(115deg, #351823, #4e1a31 55%, #271721);
  }
  .grade-logo {
    grid-area: 1 / 1 / 2 / -1;
    height: clamp(96px, 25vw, 140px);
  }
  .grade-tela {
    grid-row: 2;
    justify-self: center;
    border-radius: 10px;
  }
  .grade-tl {
    grid-column: 2 / -2;
    width: min(100%, 460px);
    margin-bottom: 22px;
    border-color: #f6c1d870;
    box-shadow: 0 18px 36px -16px #140810, 0 0 26px #e47b9d40;
    z-index: 2;
  }
  .grade-tr, .grade-bl {
    width: min(100%, 260px);
    opacity: .72;
    filter: saturate(.8) brightness(.82);
    box-shadow: none;
  }
  .grade-tr { grid-column: 8 / -1; }
  .grade-bl { grid-column: 1 / 6; }
  .grade-br { display: none; }
  .grade-texto {
    grid-area: 3 / 1 / 4 / -1;
    bottom: auto;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: clamp(26px, 6vw, 42px) 16px clamp(30px, 7vw, 48px);
    background: radial-gradient(ellipse at 50% 0%, #39202e, transparent 72%), #21151d;
    border-top: 1px solid #efabc321;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .grade-texto .hero-note {
    margin: 0 0 10px;
    color: #efc2d2;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: 1;
  }
  .grade-texto h1 {
    font-size: clamp(24px, 7.7vw, 48px);
    font-weight: 750;
    text-wrap: balance;
  }
  .grade-texto > p {
    max-width: 36ch;
    margin: 14px 0 0;
    font-size: 1rem;
    line-height: 1.5;
    text-wrap: pretty;
  }
  .grade-texto .hero-actions { display: none; }
}
