/* Previa isolada: primeira dobra e sua transicao visual para Sobre. */
@keyframes zor-hero-enter {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zor-hero-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes zor-signal-breathe {
  0%, 100% { opacity: .76; }
  50% { opacity: 1; }
}

@media (min-width: 901px) {
  #home.hero {
    background:
      linear-gradient(104deg, rgba(3, 8, 16, .97) 0%, rgba(5, 11, 21, .84) 32%, rgba(8, 13, 24, .37) 62%, rgba(8, 12, 21, .08) 100%),
      url("/img/hero-zorza-tec.webp") 64% center / cover no-repeat !important;
  }

  #home.hero::before {
    background:
      url("/zor-assets/ilustracoes/hero-fluxo-desktop.svg") right 42% / min(790px, 66vw) auto no-repeat,
      linear-gradient(180deg, rgba(3, 7, 14, .42) 0%, transparent 27%, transparent 67%, rgba(5, 11, 20, .69) 100%),
      radial-gradient(ellipse 42% 60% at 79% 50%, rgba(190, 54, 75, .11), transparent 74%) !important;
    animation: zor-signal-breathe 9s ease-in-out infinite;
  }

  #home.hero .inner > div:first-child {
    animation: zor-hero-enter .55s ease-out both;
  }

  #home.hero .quick {
    width: max-content;
    max-width: 100%;
    padding: 5px !important;
    gap: 4px !important;
    border: 1px solid rgba(218, 231, 243, .14);
    border-radius: 19px;
    background: rgba(11, 20, 34, .58);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
  }

  #home.hero .quick .btn.btn-gray,
  #home.hero .quick .dl-split-mobile-visible .dl-toggle {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: rgba(242, 247, 251, .87) !important;
  }

  #home.hero .quick .btn.btn-gray:hover,
  #home.hero .quick .dl-split-mobile-visible .dl-toggle:hover {
    background: rgba(255, 255, 255, .09) !important;
    color: #fff !important;
  }

  #home.hero .hero-side {
    top: 29px !important;
    max-width: 340px !important;
    padding: 22px 22px 17px !important;
    border: 1px solid rgba(227, 237, 247, .18) !important;
    border-left: 2px solid rgba(240, 105, 116, .8) !important;
    background: linear-gradient(155deg, rgba(22, 35, 53, .87), rgba(12, 21, 36, .67)) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .29), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
    backdrop-filter: blur(16px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(110%) !important;
    animation: zor-hero-enter .65s .08s ease-out both;
  }

  #home.hero .hero-side .t-quote {
    font-size: 15.5px !important;
    font-style: normal !important;
    line-height: 1.58 !important;
  }

  #home.hero .hero-side::after {
    color: rgba(255, 255, 255, .04) !important;
  }

  #sobre.about-connected {
    background: linear-gradient(180deg, #ede8e7 0, #f4f3f1 76px) !important;
    box-shadow: inset 0 15px 28px -24px rgba(14, 24, 39, .38);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  header .topbar {
    padding: 4px 22px !important;
    box-sizing: border-box;
  }

  #home.hero .inner {
    padding-inline: 22px !important;
    box-sizing: border-box;
  }

  #home.hero .hero-side {
    top: 18px !important;
    max-width: 320px !important;
  }
}

@media (max-width: 900px) {
  header .topbar {
    padding: 4px clamp(20px, 5vw, 36px) !important;
    box-sizing: border-box;
  }

  header .menu-toggle {
    display: inline-flex !important;
    flex-direction: column;
    gap: 4px;
    margin-right: 0;
  }

  header .menu-toggle .bar {
    flex: 0 0 2px;
    width: 22px;
    height: 2px;
    margin: 0;
  }

  #home.hero {
    margin-top: -80px !important;
    padding: 80px 0 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background:
      radial-gradient(ellipse 85% 42% at 50% 66%, rgba(177, 51, 72, .19), transparent 74%),
      radial-gradient(ellipse 75% 38% at 88% 4%, rgba(38, 78, 116, .24), transparent 76%),
      linear-gradient(162deg, #101827 0%, #0b1423 52%, #13101d 100%) !important;
  }

  #home.hero::before {
    background-image: radial-gradient(circle, rgba(166, 190, 212, .14) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
    opacity: .55;
    mask-image: linear-gradient(180deg, transparent 4%, #000 32%, #000 82%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 32%, #000 82%, transparent 100%) !important;
  }

  #home.hero .inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100%;
    padding: 22px clamp(20px, 5vw, 36px) 28px !important;
    box-sizing: border-box;
  }

  #home.hero .inner > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    animation: zor-hero-enter .55s ease-out both;
  }

  #home.hero .mobile-hero-kicker {
    grid-row: 1;
    white-space: normal !important;
    margin-bottom: 12px !important;
    color: rgba(231, 239, 247, .76) !important;
  }

  #home.hero h1 {
    grid-row: 2;
    max-width: none !important;
    margin-bottom: 14px !important;
    font-size: clamp(29px, 7.6vw, 37px) !important;
    line-height: 1.12 !important;
  }

  #home.hero h1::before {
    display: none !important;
  }

  #home.hero .inner > div:first-child > p:not(.mobile-hero-kicker) {
    grid-row: 3;
    max-width: 44ch !important;
    margin-bottom: 0 !important;
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    color: rgba(245, 248, 251, .78) !important;
  }

  #home.hero .inner > div:first-child::after {
    content: "";
    grid-row: 4;
    display: block;
    width: min(100%, 420px);
    height: clamp(140px, 39vw, 172px);
    margin: 0 auto;
    background: url("/zor-assets/ilustracoes/hero-conexoes.svg") center / contain no-repeat;
    filter: drop-shadow(0 10px 28px rgba(195, 50, 75, .16));
    animation: zor-hero-drift 7s ease-in-out infinite;
    pointer-events: none;
  }

  #home.hero .quick {
    grid-row: 5;
    width: 100%;
  }

  #home.hero .mobile-hero-cta {
    min-height: 58px;
    border-radius: 14px;
    box-shadow: 0 12px 27px rgba(114, 24, 40, .27), inset 0 1px 0 rgba(255,255,255,.2) !important;
  }

  #home.hero .mobile-trust-note {
    color: rgba(237, 242, 247, .68);
  }

  #home.hero .mobile-hero-secondary-actions {
    display: block;
    margin-top: 10px;
  }

  #home.hero .mobile-hero-secondary:not(.mobile-hero-secondary-disabled) {
    display: flex;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    background: none;
    box-shadow: none;
    color: rgba(241, 246, 250, .84) !important;
    font-size: 13px;
    text-decoration: underline !important;
    text-underline-offset: 4px;
  }

  #home.hero .mobile-hero-secondary-disabled {
    display: none !important;
  }

  #home.hero .mobile-hero-cta:focus-visible,
  #home.hero .mobile-hero-secondary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
  }

  #home.hero .hero-side {
    display: block !important;
    align-self: stretch !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 154px !important;
    margin: 16px 0 0 !important;
    background: rgba(255,255,255,.052) !important;
    border-color: rgba(255,255,255,.12) !important;
    border-left: 2px solid rgba(244, 103, 112, .86) !important;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  #home.hero .inner {
    padding-top: 54px !important;
  }

  #home.hero .inner > div:first-child {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
    column-gap: 18px;
    align-items: center;
  }

  #home.hero .mobile-hero-kicker,
  #home.hero h1,
  #home.hero .inner > div:first-child > p:not(.mobile-hero-kicker),
  #home.hero .quick {
    grid-column: 1;
  }

  #home.hero .inner > div:first-child::after {
    grid-column: 2;
    grid-row: 1 / 6;
    width: 100%;
    height: 300px;
    margin: 0;
  }

  #home.hero .mobile-hero-cta,
  #home.hero .mobile-hero-secondary-actions {
    max-width: 370px;
  }

  #home.hero .hero-side {
    max-width: 540px !important;
  }
}

@media (max-width: 359px) {
  #home.hero .mobile-hero-kicker {
    font-size: 10px !important;
    letter-spacing: .06em !important;
    white-space: nowrap !important;
  }

  #home.hero h1 {
    font-size: 29px !important;
  }

  #home.hero .mobile-hero-cta {
    gap: 8px;
    padding: 16px 12px;
    font-size: 16px;
  }

  #home.hero .hero-side {
    margin-top: 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home.hero::before,
  #home.hero .inner > div:first-child,
  #home.hero .hero-side,
  #home.hero .inner > div:first-child::after {
    animation: none !important;
  }

  #home.hero .mobile-hero-cta,
  #home.hero .mobile-hero-secondary,
  #home.hero .hero-side .t-item {
    transition: none !important;
  }

  #home.hero .t-dots button[aria-current="true"]::after {
    animation: none !important;
    width: 100% !important;
  }
}
