/* ============================================
   ORION-W ANIMAÇÕES — Keyframes hero1–4
   ============================================ */

/* ══════════════════════════════════════════
   HERO 1 — MacBook Levitando
   ══════════════════════════════════════════ */

@keyframes macFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes macGlow {
  0%,100% {
    box-shadow: 0 40px 80px rgba(91,82,255,0.2),
                0 60px 100px rgba(91,82,255,0.1);
  }
  50% {
    box-shadow: 0 40px 100px rgba(91,82,255,0.4),
                0 80px 120px rgba(91,82,255,0.2);
  }
}

@keyframes screenLine {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 0.7; }
}

@keyframes macReflect {
  0%,100% { opacity: 0.08; }
  50%     { opacity: 0.14; }
}

.mac-wrap {
  position: relative;
  padding-top: 22px; /* reserva espaço para o float subir -16px */
  animation: macFloat 5s ease-in-out infinite;
}

/* MacBook body */
.mac-body {
  width: 280px;
  height: 175px;
  background: linear-gradient(145deg, #3A3A3C, #2A2A2C);
  border-radius: 12px 12px 0 0;
  padding: 12px;
  position: relative;
  box-shadow:
    0 4px 0 rgba(0,0,0,0.4),
    0 40px 80px rgba(91,82,255,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  animation: macGlow 5s ease-in-out infinite;
}

/* Câmera */
.mac-cam {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1A1A1A;
  margin: 0 auto 8px;
}

/* Tela */
.mac-screen {
  background: #0D0F26;
  border-radius: 4px;
  height: 140px;
  overflow: hidden;
  position: relative;
}

/* Conteúdo do site na tela */
.mac-site-nav {
  height: 18px;
  background: rgba(91,82,255,0.12);
  border-bottom: 1px solid rgba(91,82,255,0.15);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}
.mac-dot { width: 5px; height: 5px; border-radius: 50%; }
.mac-dot-r { background: #FF5F57; }
.mac-dot-y { background: #FEBC2E; }
.mac-dot-g { background: #28C840; }

.mac-site-hero {
  height: 50px;
  background: linear-gradient(135deg, rgba(91,82,255,0.15), rgba(124,117,255,0.08));
  margin: 6px;
  border-radius: 3px;
  animation: screenLine 3s ease-in-out infinite;
}

.mac-site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 0 6px;
  margin-top: 4px;
}
.mac-card {
  height: 28px;
  border-radius: 2px;
  background: rgba(91,82,255,0.08);
  border: 1px solid rgba(91,82,255,0.12);
  animation: screenLine 3s ease-in-out infinite;
}
.mac-card:nth-child(2) { animation-delay: 0.5s; }
.mac-card:nth-child(3) { animation-delay: 1s; }

/* Base do MacBook */
.mac-base {
  width: 300px;
  height: 14px;
  background: linear-gradient(145deg, #3A3A3C, #2A2A2C);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.mac-base::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: rgba(0,0,0,0.4);
  border-radius: 0 0 4px 4px;
}

/* Reflexo no "chão" */
.mac-reflection {
  width: 280px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(91,82,255,0.08), transparent);
  border-radius: 50%;
  margin: 4px auto 0;
  transform: scaleY(-1);
  filter: blur(4px);
  animation: macReflect 5s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   HERO 2 — Wireframe se construindo
   ══════════════════════════════════════════ */

@keyframes buildBlock {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes fillPurple {
  0%,60% { background: transparent; border-color: rgba(91,82,255,0.25); }
  100%   { background: rgba(91,82,255,0.1); border-color: rgba(91,82,255,0.5); }
}

@keyframes browserFadeLoop {
  0%,80% { opacity: 1; }
  95%    { opacity: 0; }
  100%   { opacity: 1; }
}

.browser-wrap {
  width: 320px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(91,82,255,0.15), 0 0 0 1px rgba(91,82,255,0.12);
  animation: browserFadeLoop 8s ease-in-out infinite;
}

.browser-bar {
  background: #E8ECF8;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid rgba(91,82,255,0.1);
}
.b-dot { width: 10px; height: 10px; border-radius: 50%; }
.b-dot-r { background: #FF5F57; } .b-dot-y { background: #FEBC2E; } .b-dot-g { background: #28C840; }
.b-url {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(91,82,255,0.2);
  border-radius: 4px;
  height: 20px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.65rem;
  color: var(--gray-500);
  font-family: var(--font-sans);
}

.browser-content {
  background: #fff;
  padding: 16px;
  min-height: 220px;
}

/* Blocos que surgem com delay */
.wire-block {
  height: 12px;
  border: 1px solid rgba(91,82,255,0.2);
  border-radius: 3px;
  margin-bottom: 8px;
  transform-origin: left;
  animation: buildBlock 8s ease-out infinite, fillPurple 8s ease-out infinite;
}
.wire-hero  { height: 60px; animation-delay: 0.2s, 4s; }
.wire-h1    { width: 70%; animation-delay: 0.6s, 4.4s; }
.wire-p1    { width: 90%; animation-delay: 1s, 4.8s; }
.wire-p2    { width: 75%; animation-delay: 1.3s, 5.1s; }
.wire-btn   { width: 30%; height: 28px; animation-delay: 1.6s, 5.4s; border-radius: 5px; }
.wire-grid  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.wire-card  { height: 40px; animation: buildBlock 8s ease-out infinite, fillPurple 8s ease-out infinite; border: 1px solid rgba(91,82,255,0.2); border-radius: 4px; transform-origin: left; }
.wire-c1    { animation-delay: 2s, 5.8s; }
.wire-c2    { animation-delay: 2.3s, 6.1s; }
.wire-c3    { animation-delay: 2.6s, 6.4s; }

/* ══════════════════════════════════════════
   HERO 3 — Typewriter URL
   ══════════════════════════════════════════ */

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  0%,100% { border-right-color: var(--orion); }
  50%     { border-right-color: transparent; }
}

@keyframes urlConfirm {
  0%,70%  { background: rgba(91,82,255,0.05); }
  80%,100%{ background: rgba(40,200,80,0.1); }
}

@keyframes siteReveal {
  0%,65%  { opacity: 0; transform: translateY(12px); }
  85%,100%{ opacity: 1; transform: translateY(0); }
}

@keyframes typingLoop {
  0%     { width: 0; }
  45%    { width: 16ch; }
  70%    { width: 16ch; }
  85%    { width: 0; }
  100%   { width: 0; }
}

.typewriter-wrap {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tw-browser {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(91,82,255,0.12), 0 0 0 1px rgba(91,82,255,0.1);
}

.tw-bar {
  background: #E8ECF8;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  border-bottom: 1px solid rgba(91,82,255,0.1);
}

.tw-url-field {
  flex: 1;
  margin-left: 8px;
  height: 22px;
  background: #fff;
  border: 1px solid rgba(91,82,255,0.25);
  border-radius: 4px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  animation: urlConfirm 5s ease-in-out infinite;
}

.tw-url-text {
  font-size: 0.68rem;
  font-family: monospace;
  color: var(--night);
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--orion);
  animation: typingLoop 5s steps(16) infinite, blink 0.6s step-end infinite;
  max-width: 16ch;
}

.tw-site {
  padding: 16px;
  animation: siteReveal 5s ease-in-out infinite;
}

.tw-site-nav {
  height: 8px;
  background: rgba(91,82,255,0.15);
  border-radius: 4px;
  margin-bottom: 12px;
  width: 40%;
}

.tw-site-hero {
  height: 50px;
  background: linear-gradient(135deg, rgba(91,82,255,0.1), rgba(124,117,255,0.06));
  border-radius: 5px;
  margin-bottom: 10px;
}

.tw-site-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tw-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(91,82,255,0.1);
}
.tw-line:nth-child(2) { width: 80%; }
.tw-line:nth-child(3) { width: 60%; }

/* ══════════════════════════════════════════
   HERO 4 — Três Browsers em Camadas
   ══════════════════════════════════════════ */

@keyframes browserFloat1 {
  0%,100% { transform: perspective(800px) rotateY(-8deg) translateY(0); }
  50%     { transform: perspective(800px) rotateY(-8deg) translateY(-10px); }
}

@keyframes browserFloat2 {
  0%,100% { transform: perspective(800px) rotateY(-5deg) translateY(-8px); }
  50%     { transform: perspective(800px) rotateY(-5deg) translateY(4px); }
}

@keyframes browserFloat3 {
  0%,100% { transform: perspective(800px) rotateY(-3deg) translateY(-4px); }
  50%     { transform: perspective(800px) rotateY(-3deg) translateY(-16px); }
}

.browsers-wrap {
  position: relative;
  width: 340px;
  height: 280px;
}

.browser-layer {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.browser-layer-1 {
  width: 280px;
  left: 0; top: 20px;
  opacity: 0.5;
  animation: browserFloat1 7s ease-in-out infinite;
  box-shadow: 0 8px 30px rgba(91,82,255,0.08);
}

.browser-layer-2 {
  width: 295px;
  left: 15px; top: 10px;
  opacity: 0.75;
  animation: browserFloat2 6s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(91,82,255,0.12);
}

.browser-layer-3 {
  width: 310px;
  left: 30px; top: 0;
  opacity: 1;
  animation: browserFloat3 5s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(91,82,255,0.2), 0 0 0 1px rgba(91,82,255,0.15);
}

.bl-bar {
  height: 28px;
  background: #E8ECF8;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
  border-bottom: 1px solid rgba(91,82,255,0.1);
}
.bl-dot { width: 8px; height: 8px; border-radius: 50%; }
.bl-dot-r { background: #FF5F57; } .bl-dot-y { background: #FEBC2E; } .bl-dot-g { background: #28C840; }
.bl-url-bar {
  flex: 1; margin-left: 6px; height: 16px;
  background: rgba(91,82,255,0.06);
  border-radius: 3px;
}

.bl-content { padding: 12px; }
.bl-hero    { height: 45px; background: linear-gradient(135deg, rgba(91,82,255,0.08), rgba(124,117,255,0.04)); border-radius: 4px; margin-bottom: 8px; }
.bl-line    { height: 6px; border-radius: 3px; background: rgba(91,82,255,0.08); margin-bottom: 5px; }
.bl-line:nth-child(3) { width: 75%; }
.bl-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.bl-card    { height: 30px; border-radius: 3px; background: rgba(91,82,255,0.06); border: 1px solid rgba(91,82,255,0.1); }

/* ══════════════════════════════════════════
   EMBED MODE — contraste para fundo escuro
   ══════════════════════════════════════════ */

/* Hero 1 — MacBook: borda e brilho para destacar do fundo */
.embed .mac-body {
  box-shadow:
    0 0 0 1px rgba(91,82,255,0.55),
    0 40px 90px rgba(91,82,255,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.12) !important;
}
.embed .mac-screen     { background: #0D0F26 !important; }
.embed .mac-site-hero  { background: linear-gradient(135deg, rgba(91,82,255,0.28), rgba(124,117,255,0.16)) !important; }
.embed .mac-card       { background: rgba(91,82,255,0.14) !important; border-color: rgba(91,82,255,0.28) !important; }
.embed .mac-reflection { opacity: 0.4 !important; }

/* Hero 2 — wireframe: navegador branco → dark glass */
.embed .browser-wrap,
.embed .tw-browser,
.embed .browser-layer { background: rgba(13,15,38,0.85) !important; box-shadow: 0 16px 50px rgba(91,82,255,0.25), 0 0 0 1px rgba(91,82,255,0.18) !important; }

.embed .browser-bar,
.embed .tw-bar,
.embed .bl-bar { background: rgba(91,82,255,0.12) !important; border-bottom-color: rgba(91,82,255,0.18) !important; }

.embed .browser-content,
.embed .tw-site { background: rgba(13,15,38,0.6) !important; }

.embed .b-url,
.embed .tw-url-field { background: rgba(91,82,255,0.08) !important; border-color: rgba(91,82,255,0.28) !important; }
.embed .tw-url-text  { color: rgba(255,255,255,0.75) !important; }

/* Hero 2 — wire blocks brighter */
.embed .wire-block  { border-color: rgba(91,82,255,0.35) !important; }
.embed .wire-hero   { background: rgba(91,82,255,0.12) !important; }

/* Hero 4 — stacked browsers */
.embed .bl-content { background: transparent !important; }
.embed .bl-hero    { background: linear-gradient(135deg, rgba(91,82,255,0.14), rgba(124,117,255,0.08)) !important; }
.embed .bl-line    { background: rgba(91,82,255,0.18) !important; }
.embed .bl-card    { background: rgba(91,82,255,0.10) !important; border-color: rgba(91,82,255,0.22) !important; }
