/* =========================================================
   MultFunctions - Hero CSS
   Versão limpa, sem duplicações
   Objetivo:
   - Hero SaaS premium
   - Notebook com print real
   - iPhone deslocado para direita para não tampar o dashboard
   - Cards flutuantes: 24h, Produtividade e White Label
   ========================================================= */

/* =========================
   HERO BASE
   ========================= */

.hero {
  position: relative;
  padding: 132px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(109, 40, 217, 0.10), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.75), transparent 20%, transparent 80%, rgba(255,255,255,0.75)),
    radial-gradient(circle at 50% 52%, rgba(37, 99, 235, 0.06), transparent 40%);
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 54px;
  text-align: center;
}

.hero__content {
  max-width: 960px;
  margin-inline: auto;
}

/* =========================
   BADGE
   ========================= */

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.hero__badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

/* =========================
   TEXT
   ========================= */

.hero__title {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(44px, 6.8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 900;
  color: var(--color-dark);
}

.hero__title span {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__description {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.65;
  color: var(--color-gray-500);
}

/* =========================
   ACTIONS
   ========================= */

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero__actions .btn {
  min-width: 180px;
}

.hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero__stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1;
}

.hero__rating p {
  margin: 0;
  color: var(--color-gray-500);
  font-size: 14px;
  font-weight: 700;
}

/* =========================
   VISUAL STAGE
   ========================= */

.hero__visual,
.hero__device-stage {
  position: relative;
}

.hero__device-stage {
  min-height: 620px;
  margin-top: -18px;
  padding-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero__device-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  width: min(920px, 86vw);
  height: 420px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 34% 42%, rgba(109, 40, 217, 0.18), transparent 48%),
    radial-gradient(circle at 72% 58%, rgba(37, 99, 235, 0.16), transparent 48%);
  filter: blur(42px);
  z-index: 0;
  pointer-events: none;
}

.hero__device-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: min(980px, 78vw);
  height: 92px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.14), transparent 72%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(76px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.hero__glow--one {
  left: 12%;
  top: 8%;
  background: rgba(109, 40, 217, 0.32);
}

.hero__glow--two {
  right: 8%;
  bottom: 18%;
  background: rgba(37, 99, 235, 0.28);
}

/* =========================
   NOTEBOOK / MACBOOK
   ========================= */

.macbook {
  position: relative;
  z-index: 2;
  width: min(100%, 1260px);
  margin-inline: auto;
  transform:
    perspective(2200px)
    rotateX(2deg)
    translateY(-62px);
  transform-style: preserve-3d;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
  filter: drop-shadow(0 54px 95px rgba(15, 23, 42, 0.16));
}

.macbook::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: 78%;
  height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.18), transparent 72%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

.macbook:hover {
  transform:
    perspective(2200px)
    rotateX(1deg)
    translateY(-72px);
}

.macbook__lid {
  position: relative;
  overflow: hidden;
  padding: 10px;
  aspect-ratio: 16 / 10;
  border-radius: 30px 30px 16px 16px;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  border: 1px solid rgba(15, 23, 42, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.11),
    inset 0 -2px 8px rgba(0,0,0,0.34),
    0 18px 45px rgba(15, 23, 42, 0.10);
}

.macbook__lid::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
  z-index: 5;
}

.macbook__lid::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  z-index: 6;
  pointer-events: none;
}

.macbook__camera {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  transform: translateX(-50%);
  z-index: 7;
}

.macbook__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px 20px 10px 10px;
  background: #f8fafc;
}

.macbook__screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
  transform: scale(1.01);
}

.macbook__base {
  position: relative;
  width: 108%;
  height: 31px;
  margin-left: -4%;
  border-radius: 0 0 34px 34px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #cbd5e1 38%, #94a3b8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(15,23,42,0.20),
    0 22px 46px rgba(15, 23, 42, 0.14);
}

.macbook__base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 170px;
  height: 13px;
  border-radius: 0 0 18px 18px;
  background: rgba(15, 23, 42, 0.14);
  transform: translateX(-50%);
}

.macbook__base::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 17px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15,23,42,0.20), transparent);
  filter: blur(10px);
}

.macbook__notch {
  display: none;
}

/* =========================
   IPHONE
   ========================= */

.iphone {
  position: absolute;
  z-index: 5;
  right: -34px;
  bottom: 52px;
  width: 300px;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 44px;
  background:
    linear-gradient(145deg, #020617 0%, #111827 55%, #020617 100%);
  border: 1px solid rgba(15, 23, 42, 0.62);
  box-shadow:
    0 44px 105px rgba(15, 23, 42, 0.34),
    inset 0 0 0 1px rgba(255,255,255,0.08);
   transform: rotate(-5deg) translateY(-10px);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.iphone:hover {
  transform: rotate(-4deg) translateY(-10px) scale(1.015);
  box-shadow:
    0 58px 120px rgba(15, 23, 42, 0.38),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

.iphone::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.20), transparent 68%);
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
}

.iphone__speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 78px;
  height: 20px;
  border-radius: 999px;
  background: #020617;
  transform: translateX(-50%);
  z-index: 7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.iphone__screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
}

.iphone__screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* =========================
   FLOATING DEVICE CARDS
   ========================= */

.device-card {
  position: absolute;
  z-index: 6;
  width: 210px;
  padding: 20px 22px;
  border-radius: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow:
    0 30px 75px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  transition:
    transform 0.38s ease,
    box-shadow 0.38s ease;
}

.device-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 42px 95px rgba(15, 23, 42, 0.17),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.device-card small {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 10px;
}

.device-card strong {
  display: block;
  color: #111827;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.device-card span {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 82% 32%, #2563eb 0 4px, transparent 5px),
    linear-gradient(135deg, transparent 18%, rgba(109,40,217,0.95) 19% 22%, transparent 23% 44%, rgba(37,99,235,0.95) 45% 48%, transparent 49%),
    linear-gradient(180deg, rgba(109,40,217,0.08), rgba(37,99,235,0.08));
}

.device-card--one {
  left: 2.5%;
  top: 24%;
}

.device-card--two {
  right: 1.5%;
  bottom: 18%;
}

.device-card--three {
  right: 10%;
  top: 11%;
}

.device-card--three strong {
  font-size: 27px;
}

.device-card--three span {
  height: auto;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.10);
  font-size: 12px;
  font-weight: 900;
}

/* Compatibilidade com nomes antigos */
.floating-card {
  position: absolute;
  z-index: 6;
  width: 210px;
  padding: 20px 22px;
  border-radius: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow:
    0 30px 75px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
}

.floating-card small {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 8px;
}

.floating-card strong {
  display: block;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.floating-card--one {
  left: 2.5%;
  top: 24%;
}

.floating-card--two {
  right: 1.5%;
  bottom: 18%;
}

.floating-card--three {
  right: 10%;
  top: 11%;
}

/* =========================
   MICRO ANIMATIONS
   ========================= */

@media (prefers-reduced-motion: no-preference) {
  .macbook {
    animation: deviceFloatNotebook 7s ease-in-out infinite;
  }

  .iphone {
    animation: deviceFloatPhone 6.5s ease-in-out infinite;
  }

  .device-card--one,
  .floating-card--one {
    animation: cardFloatOne 5.8s ease-in-out infinite;
  }

  .device-card--two,
  .floating-card--two {
    animation: cardFloatTwo 6.2s ease-in-out infinite;
  }

  .device-card--three,
  .floating-card--three {
    animation: cardFloatThree 6.6s ease-in-out infinite;
  }
}

@keyframes deviceFloatNotebook {
  0%, 100% {
    transform: perspective(2200px) rotateX(2deg) translateY(-62px);
  }
  50% {
    transform: perspective(2200px) rotateX(1.6deg) translateY(-68px);
  }
}

@keyframes deviceFloatPhone {
  0%, 100% {
    transform: rotate(-5deg) translateY(-10px);
  }
  50% {
    transform: rotate(-5.8deg) translateY(-18px);
  }
}

@keyframes cardFloatOne {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes cardFloatTwo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes cardFloatThree {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1320px) {
  .macbook {
    width: min(100%, 1180px);
  }

  .iphone {
    right: -42px;
    width: 286px;
  }

  .device-card--two,
  .floating-card--two {
    right: 0;
  }

  .device-card--three,
  .floating-card--three {
    right: 7%;
  }
}

@media (max-width: 1180px) {
  .hero {
    padding-top: 126px;
  }

  .hero__device-stage {
    min-height: 600px;
  }

  .macbook {
    width: min(100%, 1080px);
    transform:
      perspective(1800px)
      rotateX(2deg)
      translateY(-38px);
  }

  .iphone {
    width: 252px;
    right: -26px;
    bottom: 92px;
  }

  .device-card,
  .floating-card {
    display: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .macbook,
    .iphone {
      animation: none;
    }
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 118px 0 70px;
  }

  .hero__container {
    gap: 44px;
  }

  .hero__title {
    font-size: clamp(42px, 9vw, 72px);
    letter-spacing: -0.062em;
  }

  .hero__description {
    font-size: 17px;
  }

  .hero__device-stage {
    min-height: auto;
    padding-bottom: 70px;
    flex-direction: column;
  }

  .macbook {
    width: 100%;
    transform: none;
    filter: drop-shadow(0 34px 70px rgba(15, 23, 42, 0.16));
  }

  .macbook:hover {
    transform: translateY(-6px);
  }

  .iphone {
    position: relative;
    right: auto;
    bottom: auto;
    width: 250px;
    margin-top: -72px;
    transform: rotate(-3deg);
  }

  .iphone:hover {
    transform: rotate(-3deg) translateY(-8px);
  }
}

@media (max-width: 720px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .hero__rating {
    max-width: 320px;
    margin-inline: auto;
  }

  .hero__stars {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 110px;
  }

  .hero__badge {
    font-size: 12px;
    padding: 9px 13px;
  }

  .hero__title {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
  }

  .hero__description {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero__device-stage {
    padding-bottom: 46px;
  }

  .macbook {
    width: 110%;
  }

  .macbook__lid {
    padding: 8px;
    border-radius: 22px 22px 12px 12px;
  }

  .macbook__screen {
    border-radius: 14px 14px 8px 8px;
  }

  .macbook__base {
    height: 22px;
    border-radius: 0 0 22px 22px;
  }

  .macbook__base::before {
    width: 110px;
    height: 9px;
  }

  .iphone {
    width: 218px;
    margin-top: -50px;
  }
}
.iphone{
    right:-120px;
    bottom:35px;
    width:285px;
    transform:rotate(-7deg);
}

/* =========================================================
   FIX QUALIDADE DAS PRINTS - HERO
   Remove blur visual, overlay branco e escala forçada
   ========================================================= */

.hero::before{
  opacity:.45;
}

.macbook,
.macbook__lid,
.macbook__screen,
.iphone,
.iphone__screen{
  filter:none !important;
  backdrop-filter:none !important;
}

.macbook{
  filter:drop-shadow(0 48px 90px rgba(15,23,42,.18)) !important;
}

.macbook__lid::before{
  display:none !important;
}

.macbook__lid::after{
  opacity:.35;
}

.macbook__screen{
  background:#fff;
}

.macbook__screen img,
.iphone__screen img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top left;

  transform:none !important;
  filter:none !important;
  opacity:1 !important;

  image-rendering:auto;
  backface-visibility:hidden;
}

.iphone__screen img{
  object-position:top center;
}

/* Corrige conflito do .iphone duplicado no final do arquivo */
.iphone{
  right:-120px;
  bottom:35px;
  width:285px;
  transform:rotate(-7deg) translateY(-10px);
}

.iphone:hover{
  transform:rotate(-6deg) translateY(-14px) scale(1.015);
}

/* melhora nitidez geral */
.macbook__lid{
  padding:8px;
}

.macbook__screen{
  border-radius:18px 18px 10px 10px;
}

/* mobile mantém responsivo */
@media(max-width:1180px){
  .iphone{
    right:-26px;
    bottom:92px;
    width:252px;
  }
}

@media(max-width:980px){
  .iphone{
    position:relative;
    right:auto;
    bottom:auto;
    width:250px;
    margin-top:-72px;
    transform:rotate(-3deg);
  }
}

@media(max-width:560px){
  .iphone{
    width:218px;
    margin-top:-50px;
  }
}