/* ========================================
   GAMER ZONE — Systemtecshop
   Tema RGB sobre a base preto/verde do site
   ======================================== */

.gz {
  --rgb-1: #ff003c;
  --rgb-2: #ff9900;
  --rgb-3: #f9f002;
  --rgb-4: #2bff6a;
  --rgb-5: #00e5ff;
  --rgb-6: #7a5cff;
  --rgb-7: #ff2ec2;
  --gz-bg: #050506;
  --gz-panel: #0d0e12;
  --gz-line: rgba(169, 255, 58, 0.14);
  font-family: var(--font-principal);
  background: var(--gz-bg);
  color: #eef0f2;
}

.gz * { box-sizing: border-box; }

@keyframes gz-hue {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

@keyframes gz-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gz-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

@keyframes gz-float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 0px)); opacity: 0; }
}

@keyframes gz-scan {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

@keyframes gz-flicker {
  0%, 19%, 21%, 23%, 80%, 100% { opacity: 1; }
  20%, 22% { opacity: 0.72; }
}

@keyframes gz-underline {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ===== FUNDO GLOBAL: grid + scanlines ===== */
.gz-bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--gz-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--gz-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
  opacity: 0.5;
}

.gz-bg-scan {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: gz-scan 6s linear infinite;
  opacity: 0.5;
}

.gz-particles {
  position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
}
.gz-particle {
  position: absolute; bottom: -10px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 8px 2px currentColor;
  animation: gz-float linear infinite;
}

.gz > .container { position: relative; z-index: 2; }

/* ===== HERO ===== */
.gz-hero {
  padding: calc(var(--header-height) + 70px) 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gz-hero::before {
  content: '';
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 160vw;
  background: radial-gradient(circle, rgba(169,255,58,0.16), transparent 62%);
  z-index: 0; pointer-events: none;
}

.gz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--verde); border: 1px solid rgba(169,255,58,0.4);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(169,255,58,0.06);
  animation: gz-flicker 5s infinite;
}
.gz-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rgb-1);
  box-shadow: 0 0 8px 2px var(--rgb-1);
  animation: gz-pulse 1.4s ease-in-out infinite;
}

.gz-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg,
    var(--rgb-1), var(--rgb-2), var(--rgb-3), var(--rgb-4),
    var(--rgb-5), var(--rgb-6), var(--rgb-7), var(--rgb-1));
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gz-underline 7s linear infinite;
  filter: drop-shadow(0 0 22px rgba(169,255,58,0.25));
}

.gz-title .sep {
  color: rgba(255,255,255,0.28);
  -webkit-text-fill-color: rgba(255,255,255,0.28);
  padding: 0 6px;
}

.gz-subtitle {
  max-width: 760px; margin: 0 auto 8px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75; color: rgba(255,255,255,0.82);
}

.gz-lede {
  max-width: 820px; margin: 28px auto 0;
  display: grid; gap: 18px;
  font-size: 1.02rem; line-height: 1.85; color: rgba(255,255,255,0.68);
  text-align: left;
}

.gz-hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-top: 40px;
}

/* Botão com borda RGB giratória (anel real: camada maior gira atrás, cortada pelo overflow) */
.gz-btn {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.gz-btn:hover { transform: translateY(-3px); }

.gz-btn-rgb-ring {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
    var(--rgb-1), var(--rgb-2), var(--rgb-3), var(--rgb-4),
    var(--rgb-5), var(--rgb-6), var(--rgb-7), var(--rgb-1));
  animation: gz-spin 3.2s linear infinite;
}

.gz-btn-face {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  font-weight: 700; font-size: 0.98rem;
  border-radius: 10px;
  color: var(--preto);
  background: var(--verde);
  white-space: nowrap;
}

.gz-btn.gz-btn-outline .gz-btn-face {
  background: #0a0a0c; color: #fff;
}

/* ===== SEÇÕES GERAIS ===== */
.gz-section { padding: 80px 0; position: relative; }
.gz-section + .gz-section { border-top: 1px solid rgba(255,255,255,0.06); }

.gz-section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.gz-section-head .gz-kicker {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--verde); display: block; margin-bottom: 10px;
}
.gz-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; color: #fff;
}
.gz-section-head p { color: rgba(255,255,255,0.62); line-height: 1.7; }

/* ===== CATEGORIAS ===== */
.gz-cats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.gz-cat {
  background: var(--gz-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.gz-cat i {
  font-size: 1.6rem; color: var(--verde); margin-bottom: 12px; display: block;
  filter: drop-shadow(0 0 6px rgba(169,255,58,0.5));
}
.gz-cat span { font-size: 0.85rem; color: rgba(255,255,255,0.78); font-weight: 500; }
.gz-cat:hover {
  transform: translateY(-4px);
  border-color: var(--verde);
  box-shadow: 0 10px 30px rgba(169,255,58,0.12);
}

/* ===== CARROSSEL GAMER ===== */
.gz-carrossel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gz-panel);
  border: 1px solid rgba(255,255,255,0.08);
}

.gz-carrossel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gz-carrossel-track::-webkit-scrollbar { display: none; }

.gz-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  overflow: hidden;
}
.gz-slide img {
  width: 100%; height: 100%; object-fit: contain;
  background: #000;
  transition: transform 0.5s ease;
  display: block;
}
.gz-slide:hover img { transform: scale(1.035); }

.gz-slide-expand {
  position: absolute; bottom: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; backdrop-filter: blur(4px);
  pointer-events: none;
}

.gz-carrossel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(5,5,6,0.6); border: 1px solid rgba(169,255,58,0.4);
  color: var(--verde); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}
.gz-carrossel-nav:hover { background: var(--verde); color: var(--preto); }
.gz-carrossel-nav.prev { left: 16px; }
.gz-carrossel-nav.next { right: 16px; }

.gz-carrossel-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 18px 0;
}
.gz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.22); border: none; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gz-dot.active { background: var(--verde); transform: scale(1.3); box-shadow: 0 0 8px 1px rgba(169,255,58,0.7); }

/* ===== POR QUE ESCOLHER ===== */
.gz-checklist {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 980px; margin: 0 auto;
}
.gz-check-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--gz-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.gz-check-item:hover { border-color: var(--verde); transform: translateX(4px); }
.gz-check-item .gz-check-ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--verde); color: var(--preto);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; margin-top: 2px;
  box-shadow: 0 0 10px 1px rgba(169,255,58,0.5);
}
.gz-check-item p { margin: 0; color: rgba(255,255,255,0.82); line-height: 1.55; font-size: 0.96rem; }

/* ===== CTA FINAL (anel real: camada maior gira atrás, cortada pelo overflow) ===== */
.gz-cta-ring {
  position: relative;
  padding: 2px;
  border-radius: 26px;
  overflow: hidden;
}
.gz-cta-ring::before {
  content: '';
  position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, var(--rgb-1), var(--rgb-4), var(--rgb-5), var(--rgb-6), var(--rgb-1));
  animation: gz-spin 6s linear infinite;
}
.gz-cta {
  position: relative; z-index: 1;
  text-align: center;
  padding: 70px 40px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(169,255,58,0.10), rgba(255,0,60,0.06)), var(--gz-bg);
}
.gz-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 14px; }
.gz-cta p { color: rgba(255,255,255,0.72); max-width: 640px; margin: 0 auto 30px; line-height: 1.7; }

/* ===== LIGHTBOX ===== */
.gz-lightbox {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(3,3,4,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.gz-lightbox.active { display: flex; }
.gz-lightbox-img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(169,255,58,0.18);
  animation: gz-lightbox-in 0.25s ease;
}
@keyframes gz-lightbox-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.gz-lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.gz-lightbox-close:hover { background: var(--rgb-1); border-color: var(--rgb-1); }
.gz-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.gz-lightbox-nav:hover { background: var(--verde); color: var(--preto); }
.gz-lightbox-nav.prev { left: 18px; }
.gz-lightbox-nav.next { right: 18px; }
.gz-lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .gz-hero { padding: calc(var(--header-height) + 40px) 0 60px; }
  .gz-lede { text-align: left; font-size: 0.95rem; }
  .gz-section { padding: 56px 0; }
  .gz-cats { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .gz-carrossel-nav { width: 38px; height: 38px; font-size: 0.95rem; }
  .gz-lightbox-nav { width: 42px; height: 42px; }
  .gz-cta { padding: 46px 22px; }
}

@media (max-width: 480px) {
  .gz-hero-actions { flex-direction: column; align-items: stretch; }
  .gz-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gz-title, .gz-btn-rgb-ring, .gz-cta-ring::before, .gz-bg-scan, .gz-particle, .gz-eyebrow, .nav-gamer-btn {
    animation: none !important;
  }
}
