html {
  scroll-behavior: smooth;
}

body {
  background-color: #05070d;
}

::selection {
  background: #2563eb;
  color: #fff;
}

.grain-bg {
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ===== Paleta Coditech: fundo escuro + glows azul/verde ===== */
.bg-scene {
  position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
      radial-gradient(ellipse 70% 50% at 15% 0%, rgba(37,99,235,0.10) 0%, transparent 55%),
      radial-gradient(ellipse 55% 45% at 85% 100%, rgba(16,185,129,0.07) 0%, transparent 55%),
      linear-gradient(180deg, #05080f 0%, #05070d 45%, #060a14 100%);
}
.bg-scene::after {
  content: ''; position: absolute; inset: 0;
  background-image:
      linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
}

.particle { position: absolute; border-radius: 50%; pointer-events: none; animation: float-particle linear infinite; }
@keyframes float-particle {
  0%   { transform: translateY(0) scale(1); opacity: .8; }
  100% { transform: translateY(-140px) scale(.3); opacity: 0; }
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #f8fafc;
}
.nav-link:hover::after {
  width: 100%;
}

.placeholder-img {
  background-color: #0f1626;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 12px);
  color: transparent;
  position: relative;
}
.placeholder-img::after {
  content: attr(data-placeholder-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
img.placeholder-img::after {
  content: none; 
}

img.placeholder-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.modal-trigger {
  position: relative;
  cursor: zoom-in;
  text-align: left;
}
.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(6px);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.modal-trigger:hover .zoom-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gallery-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 4 / 3;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
}
.gallery-thumb .zoom-hint {
  bottom: 50%;
  transform: translate(-50%, 50%) scale(0.85);
  padding: 8px;
  border-radius: 999px;
}
.gallery-thumb:hover .zoom-hint {
  transform: translate(-50%, 50%) scale(1);
}
.gallery-thumb:hover img {
  filter: brightness(0.7);
}
.gallery-thumb img {
  transition: filter 0.25s ease;
}

.img-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 9, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.img-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.img-modal__content {
  max-width: min(90vw, 960px);
  max-height: 88vh;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.img-modal.is-open .img-modal__content {
  transform: scale(1);
}
.img-modal__content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0b0f1a;
}
.img-modal__caption {
  margin-top: 14px;
  text-align: center;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.img-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.img-modal__close:hover {
  background: rgba(255,255,255,0.1);
}

.stamp-badge {
  position: absolute;
  top: -18px;
  right: -14px;
  z-index: 10;
  width: 108px;
  height: 108px;
  border: 2px dashed #2563eb;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-9deg);
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(2px);
}
.stamp-badge span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #60a5fa;
  line-height: 1.4;
}

.process-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.process-step {
  text-align: center;
  padding: 0 8px;
}
.stamp-number {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.stamp-number span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #cbd5e1;
  font-size: 15px;
}
.stamp-number--final {
  border-style: solid;
  border-color: #22c55e;
  background: #22c55e;
}
.stamp-number--final span {
  color: #05070d;
  font-size: 18px;
}
.process-step:hover .stamp-number:not(.stamp-number--final) {
  border-color: #2563eb;
  transform: rotate(-6deg);
}
.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 20px;
  transform: rotate(90deg);
  animation: arrow-slide 1.4s ease-in-out infinite;
}
@keyframes arrow-slide {
  0%, 100% { transform: rotate(90deg) translateX(0); }
  50% { transform: rotate(90deg) translateX(3px); }
}
@keyframes stamp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}
.stamp-number--final {
  animation: stamp-pulse 2s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .process-flow {
    grid-template-columns: repeat(7, 1fr);
  }
  .process-step {
    grid-column: span 1;
  }
  .process-arrow {
    transform: none;
    margin-top: 22px;
    animation: arrow-slide-h 1.4s ease-in-out infinite;
  }
}
@keyframes arrow-slide-h {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.feature-card {
  background: rgba(15, 22, 38, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow .35s ease;
}
.feature-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(34, 197, 94, .12);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.audience-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
}

.compare-card {
  background: rgba(15, 22, 38, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
}
.compare-card--after {
  border-color: #2563eb;
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.35);
}
.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pricing-card {
  background: rgba(15, 22, 38, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #f1f5f9;
  background: rgba(5, 8, 16, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder {
  color: #64748b;
}
.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.social-icon:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .process-arrow,
  .stamp-number--final {
    animation: none;
  }
}
