/* =========================================
   Hero Section — Order-Boxes
   ========================================= */

.ob-hero-home {
  position: relative;
  padding: 140px 0 120px;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(0, 80, 216, 0.08), transparent 60%),
    radial-gradient(800px 400px at 15% 90%, rgba(0, 80, 216, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  overflow: hidden;
}

@media (max-width: 991px) {
  .ob-hero-home { padding: 100px 0 70px; }
}

/* Decorative grid pattern */
.ob-hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(21, 44, 91, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

.ob-hero-home .container {
  position: relative;
  z-index: 2;
}

.ob-hero-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

@media (max-width: 991px) {
  .ob-hero-row {
    flex-direction: column;
    gap: 50px;
  }
}

.ob-hero-content {
  flex: 1;
  max-width: 600px;
}

.ob-hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Eyebrow */
.ob-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0050d8;
  background: rgba(0, 80, 216, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

/* Title */
.ob-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: #152c5b;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}

.ob-hero-title mark {
  background: linear-gradient(180deg, transparent 60%, rgba(0, 80, 216, 0.18) 60%);
  color: #0050d8;
  padding: 0 6px;
}

@media (max-width: 1199px) {
  .ob-hero-title { font-size: 44px; }
}

@media (max-width: 767px) {
  .ob-hero-title { font-size: 34px; }
}

/* Subtitle */
.ob-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #5a6a85;
  margin: 0 0 28px;
}

.ob-hero-sub strong {
  color: #152c5b;
  font-weight: 700;
}

@media (max-width: 767px) {
  .ob-hero-sub { font-size: 16px; }
}

/* Checklist */
.ob-hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-hero-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #3a4a66;
}

.ob-hero-checklist .ob-hero-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 80, 216, 0.12);
  color: #0050d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* CTAs */
.ob-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

/* Trust pills */
.ob-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ob-hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a6a85;
  background: #ffffff;
  border: 1px solid #e7ecf3;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
}

.ob-hero-trust-pill i {
  color: #0050d8;
  font-size: 12px;
}

/* Visual side - image */
.ob-hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.ob-hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(0, 80, 216, 0.18), rgba(0, 80, 216, 0.02) 60%);
  border-radius: 32px;
  z-index: 0;
  filter: blur(20px);
}

.ob-hero-image {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 80, 216, 0.3),
              0 10px 30px -10px rgba(21, 44, 91, 0.15);
  z-index: 1;
}

/* Floating cards */
.ob-hero-float {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 20px 40px -12px rgba(21, 44, 91, 0.18);
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 140px;
  z-index: 2;
  animation: obFloat 4s ease-in-out infinite;
}

.ob-hero-float-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 80, 216, 0.1);
  color: #0050d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.ob-hero-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ob-hero-float-label {
  font-size: 10px;
  color: #8a96ad;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ob-hero-float-value {
  font-size: 13px;
  font-weight: 800;
  color: #152c5b;
}

.ob-hero-float-1 {
  top: 8%;
  left: -10%;
  animation-delay: 0s;
}

.ob-hero-float-2 {
  bottom: 30%;
  left: -14%;
  animation-delay: 1s;
}

.ob-hero-float-3 {
  bottom: 10%;
  right: -8%;
  animation-delay: 2s;
  background: #0050d8;
  border-color: #0050d8;
  box-shadow: 0 20px 40px -12px rgba(0, 80, 216, 0.45);
}

.ob-hero-float-3 .ob-hero-float-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.ob-hero-float-3 .ob-hero-float-label {
  color: rgba(255, 255, 255, 0.75);
}

.ob-hero-float-3 .ob-hero-float-value {
  color: #ffffff;
}

@keyframes obFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hide floating cards on smaller screens to avoid overlap */
@media (max-width: 1199px) {
  .ob-hero-float-1 { left: -5%; }
  .ob-hero-float-2 { left: -8%; }
  .ob-hero-float-3 { right: -5%; }
}

@media (max-width: 991px) {
  .ob-hero-float { display: none; }
  .ob-hero-image-wrap { max-width: 420px; }
}

/* ======================================================
   Hero "Status Stack" — layered status cards (no photo)
   ====================================================== */
.ob-hero-stack {
  display: block;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 3;
}
.ob-hero-stack .ob-stack-card { pointer-events: auto; }

.ob-hero-stack-glow {
  position: absolute;
  inset: -8% -10%;
  background: radial-gradient(ellipse at 60% 45%, rgba(34, 211, 238, 0.32) 0%, rgba(29, 78, 216, 0.18) 30%, transparent 65%);
  filter: blur(48px);
  z-index: 0;
}

/* Cutout image — full landscape, aligned to the hero divider line */
.ob-hero-cutout {
  display: block;
  position: absolute;
  right: calc((100vw - 1110px) / 2);
  bottom: 220px;
  width: 46%;
  height: auto;
  max-width: 700px;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1399px) {
  .ob-hero-cutout { width: 44%; bottom: 215px; }
}

@media (max-width: 1199px) {
  .ob-hero-cutout {
    right: calc((100vw - 930px) / 2);
    width: 42%;
    bottom: 210px;
  }
}

@media (max-width: 1199px) {
  .ob-hero-cutout { display: none; }
}

.ob-hero {
  position: relative;
  overflow: hidden;
}

.ob-hero-inner {
  position: relative;
  z-index: 2;
}

.ob-stack-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  box-shadow: 0 22px 44px -16px rgba(15, 37, 88, 0.35),
              0 6px 14px -6px rgba(15, 37, 88, 0.18);
  animation: obStackFloat 6s ease-in-out infinite;
  will-change: transform;
}

.ob-stack-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ob-stack-icon-success { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.ob-stack-icon-cyan    { background: rgba(34, 211, 238, 0.14); color: #0891B2; }
.ob-stack-icon-warning { background: rgba(245, 158, 11, 0.14); color: #D97706; }
.ob-stack-icon-whats   { background: rgba(37, 211, 102, 0.16); color: #25D366; font-size: 18px; }

.ob-stack-card-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.ob-stack-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0A1628;
  letter-spacing: -0.01em;
}

.ob-stack-card-meta {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
  margin-top: 2px;
}

.ob-stack-card-time {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Live pulse dot (green) — used inside the "Servidor online" card */
.ob-pulse-dot {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
}
.ob-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: obPulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes obPulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Typing dots animation */
.ob-stack-typing {
  display: inline-block;
  color: #25D366;
  animation: obTyping 1.4s steps(4, end) infinite;
}
@keyframes obTyping {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Card positions per reference layout (upright, no rotation) */
.ob-stack-card-back-left { /* Backup automático — center-bottom, between monitor and man */
  top: 56%;
  left: 56%;
  z-index: 5;
  min-width: 220px;
  animation-delay: 0.2s;
}
.ob-stack-card-back-right { /* SSL ativo — middle-right beside man's head */
  top: 42%;
  right: 2%;
  z-index: 5;
  min-width: 170px;
  animation-delay: 1.4s;
}
.ob-stack-card-mid-left { /* Servidor online — top-right corner, above image */
  top: 24%;
  right: 2%;
  z-index: 5;
  min-width: 220px;
  animation-delay: 0.7s;
}
.ob-stack-card-mid-right { /* Anti-vírus — upper-left of image, over monitor top */
  top: 34%;
  left: 54%;
  z-index: 5;
  min-width: 200px;
  animation-delay: 2.1s;
}
.ob-stack-card-featured { /* Suporte respondendo — middle, in front of monitor */
  top: 44%;
  left: 46%;
  min-width: 260px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1D4ED8 0%, #0F2558 100%);
  border-color: transparent;
  box-shadow: 0 32px 64px -16px rgba(29, 78, 216, 0.6),
              0 12px 24px -8px rgba(15, 37, 88, 0.45);
  z-index: 6;
  animation-delay: 1s;
}
.ob-stack-card-featured .ob-stack-card-title { color: #FFFFFF; }
.ob-stack-card-featured .ob-stack-card-meta  { color: #C9D3E4; }
.ob-stack-card-featured .ob-stack-card-time  { color: #67E8F9; }
.ob-stack-card-featured .ob-stack-icon-whats { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

@keyframes obStackFloat {
  0%, 100% { transform: var(--stack-base, translateY(0)) translateY(0); }
  50%      { transform: var(--stack-base, translateY(0)) translateY(-6px); }
}

/* Apply the existing transform plus the float — using individual rules so transform composition works */
.ob-stack-card-back-left,
.ob-stack-card-back-right,
.ob-stack-card-mid-left,
.ob-stack-card-mid-right,
.ob-stack-card-featured {
  animation: none;
}

.ob-stack-card-back-left,
.ob-stack-card-back-right,
.ob-stack-card-mid-left,
.ob-stack-card-mid-right,
.ob-stack-card-featured {
  animation: obStackFloatSimple 6s ease-in-out infinite;
}

@keyframes obStackFloatSimple {
  0%, 100% { transform: scale(0.78) translateY(0); }
  50%      { transform: scale(0.78) translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .ob-stack-card,
  .ob-pulse-dot::after,
  .ob-stack-typing { animation: none !important; }
}

@media (max-width: 1199px) {
  .ob-hero-stack { height: 420px; }
  .ob-stack-card { min-width: 200px; }
  .ob-stack-card-featured { min-width: 250px; }
  .ob-stack-card-back-left  { left: -2%; }
  .ob-stack-card-back-right { right: -2%; }
  .ob-stack-card-mid-left   { left: -4%; }
  .ob-stack-card-mid-right  { right: -4%; }
}

@media (max-width: 991px) {
  .ob-hero-stack { display: none; }
}
