/* ============================================
   DIGES – Custom Styles
   Complementa TailwindCSS com animações,
   efeitos de glow e estilos que precisam de CSS puro
   ============================================ */

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B0D14;
}
::-webkit-scrollbar-thumb {
  background: #1E2230;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFAF48;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(255, 175, 72, 0.3);
  color: #fff;
}

/* ---------- Prevent horizontal overflow on mobile ---------- */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---------- Smooth Scroll ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Card Glow on Hover ---------- */
.card-glow {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 175, 72, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
  pointer-events: none;
}
.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 175, 72, 0.12), 0 0 0 1px rgba(255, 175, 72, 0.2);
  border-color: rgba(255, 175, 72, 0.3);
}
.card-glow:hover::before {
  opacity: 1;
}

/* ---------- Hero Float Animation ---------- */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
}

/* ---------- Pulse Glow for CTA ---------- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 175, 72, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 175, 72, 0.15); }
}
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #FFAF48, #FFD699);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Background Patterns ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 175, 72, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 175, 72, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-dots {
  background-image: radial-gradient(rgba(255, 175, 72, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Tab Active State ---------- */
.tab-btn {
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #FFAF48;
  transition: width 0.3s ease;
  border-radius: 1px;
}
.tab-btn.active {
  color: #FFAF48;
  background: rgba(255, 175, 72, 0.08);
}
.tab-btn.active::after {
  width: 60%;
}

/* ---------- Tab Content Transition ---------- */
.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Integration Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid #1E2230;
  background: #141722;
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}
.pill:hover {
  border-color: rgba(255, 175, 72, 0.4);
  background: rgba(255, 175, 72, 0.06);
  box-shadow: 0 0 16px rgba(255, 175, 72, 0.08);
}
.pill-highlight {
  border-color: rgba(255, 175, 72, 0.3);
  background: rgba(255, 175, 72, 0.08);
  color: #FFAF48;
}

/* ---------- Steps connector line ---------- */
.step-connector {
  position: absolute;
  top: 56px;
  left: 28px;
  width: 2px;
  height: calc(100% - 28px);
  background: linear-gradient(to bottom, #FFAF48, transparent);
}

/* ---------- Form Focus Ring ---------- */
.form-input:focus {
  outline: none;
  border-color: #FFAF48;
  box-shadow: 0 0 0 3px rgba(255, 175, 72, 0.15);
}

/* ---------- CTA Band Gradient ---------- */
.cta-band {
  background: linear-gradient(135deg, #111318 0%, #181B24 30%, #141722 60%, #0F111A 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(148, 163, 184, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ---------- Header transition ---------- */
.header-scrolled {
  background: rgba(11, 13, 20, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 175, 72, 0.08);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  border-color: transparent;
}
.mobile-menu.open {
  max-height: 500px;
  border-color: rgba(30, 34, 48, 0.5);
}

/* ---------- Number badge ---------- */
.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 175, 72, 0.3);
  background: rgba(255, 175, 72, 0.08);
  color: #FFAF48;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* ---------- Responsiveness fine-tune ---------- */
@media (max-width: 768px) {
  .hero-float {
    animation: none;
  }
  .step-connector {
    display: none;
  }
}
