/* ==========================================================================
   GREEN BOTS — Design System
   Paleta: verde neon sobre grafite profundo, acentos em vermelho (roleta/aviator)
   ========================================================================== */

:root {
  --bg: #05080a;
  --bg-soft: #0a1014;
  --surface: #0e161b;
  --line: rgba(45, 215, 108, 0.14);
  --green: #22c55e;
  --green-bright: #39ff88;
  --green-deep: #0f7a38;
  --red: #ef4444;
  --txt: #e8f5ec;
  --txt-dim: #93a79b;
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: var(--font-display); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #060a0c; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border-radius: 99px;
  border: 2px solid #060a0c;
}

/* ---------- Seleção ---------- */
::selection { background: var(--green); color: #04150a; }

/* ==========================================================================
   Fundo animado global
   ========================================================================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg) translateY(-10%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  animation: gridScroll 22s linear infinite;
}

@keyframes gridScroll {
  to { background-position: 0 64px, 64px 0; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: #16a34a; top: -140px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #065f46; bottom: -160px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 340px; height: 340px; background: #14532d; top: 45%; left: 55%; animation-delay: -11s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -50px) scale(1.12); }
  66%      { transform: translate(-45px, 40px) scale(0.92); }
}

/* Ruído sutil */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Tipografia e utilitários
   ========================================================================== */
.text-gradient {
  background: linear-gradient(135deg, #eafff1 0%, var(--green-bright) 45%, #0d9e4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow-text { text-shadow: 0 0 28px rgba(57, 255, 136, 0.45); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(34, 197, 94, 0.07);
  color: var(--green-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), #12a34e 55%, #0b6b32);
  color: #04150a;
  box-shadow: 0 10px 34px -10px rgba(34, 197, 94, 0.75), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 46px -12px rgba(57, 255, 136, 0.85); }

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.55) 50%, transparent 75%);
  transform: translateX(-120%);
  z-index: -1;
}
.btn-primary:hover::after { animation: sheen 0.9s ease; }

@keyframes sheen { to { transform: translateX(120%); } }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--txt);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-3px);
}

/* ==========================================================================
   Cards / vidro
   ========================================================================== */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 22px;
}

/* Borda com brilho que segue o mouse */
.spotlight { position: relative; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(57,255,136,0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* ==========================================================================
   Card de bot (home)
   ========================================================================== */
.bot-card {
  position: relative;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), border-color 0.45s, box-shadow 0.45s;
  transform-style: preserve-3d;
}
.bot-card:hover {
  transform: translateY(-10px);
  border-color: rgba(57, 255, 136, 0.42);
  box-shadow: 0 30px 70px -30px rgba(34, 197, 94, 0.6);
}

.bot-card .chip-art {
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.6s;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.6));
}
.bot-card:hover .chip-art {
  transform: scale(1.07) rotate(-4deg);
  filter: drop-shadow(0 12px 34px rgba(57,255,136,.4));
}

/* Anel giratório da ficha */
.chip-ring { animation: spinSlow 26s linear infinite; transform-origin: 50% 50%; }
.bot-card:hover .chip-ring, .hero-chip:hover .chip-ring { animation-duration: 6s; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 10, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--txt-dim);
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright);
  transition: width 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover, .nav-link.active { color: var(--txt); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Menu mobile */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(.2,.8,.2,1);
}
#mobileMenu.open { max-height: 460px; }

.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.35s, opacity 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.85s cubic-bezier(.2,.8,.2,1), transform 0.85s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"]  { transform: scale(0.9); }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Roleta animada (hero)
   ========================================================================== */
.wheel-outer { animation: spinSlow 40s linear infinite; }
.wheel-inner { animation: spinSlow 18s linear infinite reverse; }
.ball-orbit  { animation: spinSlow 4.2s linear infinite reverse; transform-origin: 50% 50%; }

/* Linha de gráfico do Aviator */
.aviator-path {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: drawPath 3.4s ease-in-out infinite;
}
@keyframes drawPath {
  0%   { stroke-dashoffset: 640; }
  55%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ==========================================================================
   Planos / preços
   ========================================================================== */
.plan {
  position: relative;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.plan:hover { transform: translateY(-8px); }

.plan-pro {
  border-color: rgba(57, 255, 136, 0.4);
  box-shadow: 0 0 0 1px rgba(57,255,136,.12), 0 34px 80px -40px rgba(34,197,94,.75);
  background:
    radial-gradient(600px circle at 50% -10%, rgba(34,197,94,.16), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
}

.plan-pro::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--green-bright), transparent 40%, transparent 60%, var(--green-bright));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
  animation: borderPulse 3.5s ease-in-out infinite;
}
@keyframes borderPulse { 50% { opacity: .95; } }

.badge-pop {
  background: linear-gradient(135deg, var(--green-bright), #0e9b48);
  color: #04150a;
  box-shadow: 0 8px 26px -8px rgba(57,255,136,.9);
}

/* Toggle mensal/anual */
.toggle-track {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
}
.toggle-thumb {
  position: absolute;
  top: 5px; bottom: 5px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--green-bright), #10a04c);
  box-shadow: 0 6px 20px -6px rgba(57,255,136,.8);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), width 0.4s;
}
.toggle-btn {
  position: relative;
  z-index: 1;
  padding: 9px 26px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--txt-dim);
  transition: color 0.3s;
  white-space: nowrap;
}
.toggle-btn.active { color: #04150a; }

/* Troca de preço */
.price-swap { animation: priceIn 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes priceIn {
  from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Lista de features */
.feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px dashed rgba(255,255,255,0.045);
}
.feat:last-child { border-bottom: 0; }
.feat-icon {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34,197,94,.16);
  color: var(--green-bright);
}
.feat-new .feat-icon { background: linear-gradient(135deg, var(--green-bright), #0d8f43); color: #04150a; }
.feat-off { opacity: .38; }
.feat-off .feat-icon { background: rgba(255,255,255,.06); color: var(--txt-dim); }

/* ==========================================================================
   Timeline "como funciona"
   ========================================================================== */
.step { position: relative; padding-left: 62px; }
.step::before {
  content: '';
  position: absolute;
  left: 21px; top: 46px; bottom: -34px;
  width: 2px;
  background: linear-gradient(180deg, var(--green), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(34,197,94,.12);
  border: 1px solid var(--line);
  color: var(--green-bright);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s;
  opacity: 0;
}
.faq.open .faq-body { opacity: 1; }
.faq.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }

/* ==========================================================================
   Ticker de resultados (roleta)
   ========================================================================== */
.num-chip {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex: none;
  animation: chipIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes chipIn { from { opacity: 0; transform: translateX(-14px) scale(.7); } }
.num-red   { background: linear-gradient(160deg,#e5484d,#8f1d21); color: #fff; }
.num-black { background: linear-gradient(160deg,#2b3238,#0d1113); color: #fff; }
.num-green { background: linear-gradient(160deg,var(--green-bright),#0b6b32); color: #04150a; box-shadow: 0 0 20px rgba(57,255,136,.55); }

/* ==========================================================================
   Diversos
   ========================================================================== */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,136,.5), transparent);
}

.hover-lift { transition: transform .35s cubic-bezier(.2,.8,.2,1), color .35s; }
.hover-lift:hover { transform: translateY(-3px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: .06em;
  background: rgba(34,197,94,.1);
  border: 1px solid var(--line);
  color: var(--green-bright);
}

/* Barra de progresso das estatísticas */
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #0b6b32, var(--green-bright));
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}

/* Rodapé */
.footer-link { color: var(--txt-dim); transition: color .25s, padding-left .25s; }
.footer-link:hover { color: var(--green-bright); padding-left: 5px; }

/* Botão flutuante do topo */
#toTop {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 55;
  opacity: 0;
  transform: translateY(20px) scale(.85);
  pointer-events: none;
  transition: opacity .35s, transform .35s;
}
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }

/* Barra de progresso de leitura */
#scrollBar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 70;
  background: linear-gradient(90deg, var(--green-deep), var(--green-bright));
  box-shadow: 0 0 12px var(--green-bright);
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
