/* ========== Tokens ========== */
:root {
  --neon: #A8E61C;
  --neon-soft: rgba(168, 230, 28, 0.15);
}

html { scroll-behavior: smooth; }
body { background: #0A0A0A; }

::selection { background: var(--neon); color: #050505; }

/* ========== Background grid ========== */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-radial-glow {
  background: radial-gradient(ellipse at top, rgba(168, 230, 28, 0.06), transparent 60%);
}

/* ========== Glow ========== */
.glow-text {
  text-shadow:
    0 0 30px rgba(168, 230, 28, 0.55),
    0 0 60px rgba(168, 230, 28, 0.25);
}

.shadow-glow {
  box-shadow: 0 0 25px rgba(168, 230, 28, 0.35);
}
.shadow-glow-lg {
  box-shadow: 0 0 40px rgba(168, 230, 28, 0.45),
              0 0 80px rgba(168, 230, 28, 0.2);
}

/* ========== Pulsing dot ========== */
.pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon);
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ========== Card tilt on hover ========== */
.card-tilt {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-tilt:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
}

/* ========== Form elements ========== */
.opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #fff;
  font-weight: 500;
  transition: all 0.2s ease;
}
.opt:hover {
  border-color: var(--neon);
  background: var(--neon-soft);
  transform: translateX(4px);
}

.inp {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.inp:focus {
  outline: none;
  border-color: var(--neon);
  background: rgba(168, 230, 28, 0.04);
}
.inp::placeholder { color: rgba(255,255,255,0.3); }

/* ========== Scroll indicator (subtle) ========== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== Reduce motion respect ========== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ========== Touch device: disable tilt ========== */
@media (hover: none) {
  .card-tilt:hover { transform: none; }
}

/* ========== Underline neon (subheadline hero) ========== */
.agtec-underline {
  position: relative;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.agtec-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--neon);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(168, 230, 28, 0.6),
              0 0 24px rgba(168, 230, 28, 0.3);
}
@media (max-width: 640px) {
  .agtec-underline { white-space: normal; }
}

/* ========== Linha de produtos — faixas full-width estilo Polytoldos ========== */
.prod-list {
  display: flex;
  flex-direction: column;
}

.prod-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* Bloco de imagem como background fixo (efeito parallax estilo Polytoldos) */
.prod-img-bg {
  position: relative;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;        /* motion suave no scroll desktop */
  aspect-ratio: 16 / 10;
  transition: background-size 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prod-row:hover .prod-img-bg {
  background-size: 110%;               /* "zoom" sutil no hover sem sair do fixed */
}

/* Variante usada no hero — ocupa altura total da row do grid (acompanha bloco de texto) */
.prod-img-bg--hero {
  aspect-ratio: auto;
  height: 100%;
  min-height: 520px;
}
@media (max-width: 1023px) {
  .prod-img-bg--hero {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* ========== Hero grid full-bleed ========== */
/* Texto à esquerda alinhado com max-w-7xl; imagem à direita até a borda da viewport */
.hero-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.hero-text-wrap {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 1024px) {
  .hero-text-wrap {
    /* alinha o início do texto com a coluna do max-w-7xl (1280px) */
    padding-left: max(2rem, calc((100vw - 1280px) / 2 + 2rem));
    padding-right: 2rem;
  }
}

/* Bloco de texto */
.prod-text {
  display: flex;
  align-items: center;
  padding: 2.25rem 2rem;
}
.prod-text-inner {
  max-width: 520px;
  width: 100%;
}
@media (min-width: 1024px) {
  .prod-text { padding: 2.5rem 4rem; }
}

/* Variantes de fundo (alterna escuro/claro como na Polytoldos, mas sempre dentro da identidade dark) */
.prod-row--dark .prod-text {
  background: #0A0A0A;
}
.prod-row--light .prod-text {
  background: #141414;
}

/* Reverter ordem horizontal quando img fica à direita */
.prod-row--reverse {
  /* mantém grid 1fr 1fr; primeiro filho (texto) vai pra coluna 1, segundo (img) vai pra 2 */
}

/* Tipografia dos cards */
.prod-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1rem;
}
.prod-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.prod-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* CTA "Eu quero!" */
.prod-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--neon);
  color: #050505;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prod-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(168, 230, 28, 0.55),
              0 0 60px rgba(168, 230, 28, 0.25);
}
.prod-cta svg {
  transition: transform 0.25s ease;
}
.prod-cta:hover svg {
  transform: translateX(3px);
}

/* Mobile — empilha texto + imagem (e desliga background-attachment: fixed) */
@media (max-width: 1023px) {
  .prod-row {
    grid-template-columns: 1fr;
  }
  .prod-row .prod-img-bg {
    aspect-ratio: 16 / 10;
    background-attachment: scroll;     /* fixed bugа em iOS */
    order: 1;
  }
  .prod-row .prod-text {
    order: 2;
    padding: 2.25rem 1.5rem;
  }
  .prod-row--reverse .prod-img-bg { order: 1; }
  .prod-row--reverse .prod-text { order: 2; }
}

/* Touch devices: também desliga fixed (gera bug em vários browsers móveis) */
@media (hover: none) {
  .prod-img-bg { background-attachment: scroll; }
  .prod-row:hover .prod-img-bg { background-size: cover; }
}

