/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

/* Offset de scroll para o header fixo */
[id] {
  scroll-margin-top: 80px;
}

::selection {
  background: #E5102F;
  color: #F5F3EE;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
  background: #2A2222;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B3142A;
}

/* ===== Diagonal section seams (signature) ===== */
.diagonal-top {
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
}
.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}
@media (max-width: 640px) {
  .diagonal-top { clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%); }
  .diagonal-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%); }
}

/* ===== Map dot backdrop (subtle, reads as a map, not a blueprint) ===== */
.map-dots {
  background-image: radial-gradient(rgba(245, 243, 238, 0.10) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero-glow {
  background:
    radial-gradient(600px circle at 15% 10%, rgba(255, 30, 60, 0.14), transparent 60%),
    radial-gradient(500px circle at 90% 30%, rgba(242, 183, 5, 0.10), transparent 60%);
}

/* ===== Cursor-follow spotlight — global, continuous across the whole page ===== */
.spotlight-global {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(190px circle at var(--mx, 50vw) var(--my, 25vh), rgba(242, 183, 5, 0.07), transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
  .spotlight-global { display: none; }
}

/* ===== Grain texture ===== */
.noise {
  position: relative;
}
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ===== Drifting ambient blobs ===== */
.blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
}
.blob-red {
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, #E5102F, transparent 70%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.blob-gold {
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, #F2B705, transparent 70%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, 40px); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-50px, -30px); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ===== CTA pulse ===== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 30, 60, 0.45), 0 0 18px rgba(255, 30, 60, 0.25); }
  50% { box-shadow: 0 0 0 9px rgba(255, 30, 60, 0), 0 0 28px rgba(255, 30, 60, 0.45); }
}
.btn-pulse {
  animation: pulse-glow 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse {
    animation: none;
    box-shadow: 0 0 20px rgba(255, 30, 60, 0.3);
  }
}

/* ===== Signature vertical line (headings) ===== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #E5102F, #F2B705);
  border-radius: 2px;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Tech card hover ===== */
.card-tech {
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card-tech:hover {
  border-color: rgba(242, 183, 5, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 30, 60, 0.15);
}

.card-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.card-accent-red::before { background: linear-gradient(90deg, #E5102F, transparent 85%); }
.card-accent-gold::before { background: linear-gradient(90deg, #F2B705, transparent 85%); }

/* ===== Featured cards (bento hero cards) — extra depth ===== */
.card-featured {
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}
.card-featured::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}
.card-featured.card-accent-gold::after {
  background: radial-gradient(circle, rgba(242, 183, 5, 0.14), transparent 70%);
}
.card-featured.card-accent-red::after {
  background: radial-gradient(circle, rgba(255, 30, 60, 0.14), transparent 70%);
}

.icon-well {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.icon-well-red { background: rgba(255, 30, 60, 0.10); }
.icon-well-gold { background: rgba(242, 183, 5, 0.10); }
.card-tech:hover .icon-well-red {
  box-shadow: 0 0 0 1px rgba(255, 30, 60, 0.3), 0 0 24px rgba(255, 30, 60, 0.25);
  transform: scale(1.08);
}
.card-tech:hover .icon-well-gold {
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.3), 0 0 24px rgba(242, 183, 5, 0.25);
  transform: scale(1.08);
}

/* ===== Button shine sweep (hover) ===== */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-shine:hover::after {
  left: 130%;
}
@media (prefers-reduced-motion: reduce) {
  .btn-shine::after {
    transition: none;
  }
}

/* ===== FAQ Accordion ===== */
.faq-answer {
  display: none;
}

.faq-answer.open {
  display: block;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* ===== WhatsApp Flutuante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2s ease-out 0.6s 1;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ===== Header shadow on scroll ===== */
header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
