/* ============================================
   ArenaPlay — Landing Page Styles
   ============================================ */

:root {
  --bg-0: #04060c;
  --bg-1: #0a0f1a;
  --bg-2: #131a2a;
  --bg-card: rgba(20, 28, 45, 0.6);
  --cyan: #19b6e6;
  --cyan-bright: #4dd5ff;
  --cyan-soft: #66d4f0;
  --cyan-glow: rgba(25, 182, 230, 0.45);
  --blue: #1e6cff;
  --blue-bright: #4d8eff;
  --blue-glow: rgba(30, 108, 255, 0.45);
  --green: #00ff88;
  --green-soft: rgba(0, 255, 136, 0.7);
  --purple: #8b5cf6;
  --red-live: #ff3838;
  --white: #ffffff;
  --gray-lt: #c9cfda;
  --gray-md: #8892a3;
  --gray-dk: #4a5262;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(25, 182, 230, 0.3);

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg-0);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img, video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(25, 182, 230, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #04060c 0%, #0a0f1a 100%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 182, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 182, 230, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px; height: 400px;
  background: var(--cyan);
  top: 10%; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: 60%; right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: var(--cyan-bright);
  top: 90%; left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.95); }
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s;
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(4, 6, 12, 0.92);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 32px;
  filter: drop-shadow(0 2px 12px var(--cyan-glow));
  transition: transform 0.3s;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  color: var(--gray-lt);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--cyan-bright);
  background: rgba(25, 182, 230, 0.06);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  box-shadow: 0 8px 28px var(--blue-glow);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--blue-glow);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn-ghost::before { display: none; }

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: rgba(25, 182, 230, 0.05);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 32px 100px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
  filter: saturate(1.15) contrast(1.05);
}

.hero-video-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-vctrl {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.hero-vctrl:hover {
  background: rgba(25, 182, 230, 0.5);
  transform: scale(1.08);
}

.hero-vctrl:active {
  transform: scale(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg,
      rgba(4, 6, 12, 0.95) 0%,
      rgba(4, 6, 12, 0.85) 25%,
      rgba(4, 6, 12, 0.55) 50%,
      rgba(4, 6, 12, 0.2) 75%,
      rgba(4, 6, 12, 0) 100%
    ),
    linear-gradient(180deg,
      transparent 0%,
      transparent 70%,
      rgba(4, 6, 12, 0.9) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 56, 56, 0.1);
  border: 1px solid rgba(255, 56, 56, 0.4);
  color: #ff7777;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 36px;
  opacity: 0.6;
  animation: fadeIn 1s ease-out, badgePulse 3s ease-in-out infinite;
}

.badge-live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-live);
  box-shadow: 0 0 12px var(--red-live);
  animation: dotPulse 1.2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.3); }
  50% { box-shadow: 0 0 24px 4px rgba(255, 56, 56, 0.15); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(84px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: #fff;
  opacity: 0.75;
}

.hero-title span {
  display: block;
}

.hero-title .title-row {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

/* Botão Bola de Futebol */
.ball-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  transition: transform 0.3s var(--ease);
  animation: ballFloat 3.2s ease-in-out infinite, ballSpin 12s linear infinite;
  filter: drop-shadow(0 8px 24px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 16px rgba(25, 182, 230, 0.35));
}

.ball-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ball-btn::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 15%;
  right: 15%;
  height: 8%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  filter: blur(6px);
  z-index: -1;
  animation: ballShadow 3.2s ease-in-out infinite;
}

.ball-btn:hover {
  animation: ballSpin 1.2s linear infinite;
  filter: drop-shadow(0 12px 32px rgba(25, 182, 230, 0.5)) drop-shadow(0 0 24px rgba(25, 182, 230, 0.6));
}

.ball-btn.kicked {
  animation: ballKick 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ballFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes ballSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ballShadow {
  0%, 100% { opacity: 0.5; transform: scaleX(1); }
  50% { opacity: 0.25; transform: scaleX(0.7); }
}

@keyframes ballKick {
  0% { transform: rotate(0deg) translate(0, 0); }
  30% { transform: rotate(360deg) translate(40px, -60px); }
  60% { transform: rotate(720deg) translate(20px, -20px); }
  100% { transform: rotate(1080deg) translate(0, 0); }
}

.hero-title .gradient {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-bright) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 60px rgba(25, 182, 230, 0.4));
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--gray-lt);
  max-width: 720px;
  margin-bottom: 52px;
}

.hero-sub strong {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 800px;
}

.stat {
  padding: 24px 0;
  border-top: 2px solid rgba(25, 182, 230, 0.3);
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  box-shadow: 0 0 12px var(--cyan-glow);
}

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--cyan-bright);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cyan);
}

.stat-label {
  font-size: 12px;
  color: var(--gray-md);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  animation: scrollFade 3s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--cyan-soft);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--cyan-bright);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-md);
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  color: var(--cyan-bright);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(25, 182, 230, 0.08);
  border: 1px solid rgba(25, 182, 230, 0.2);
  border-radius: 999px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  color: var(--white);
}

.section-sub {
  font-size: 17px;
  color: var(--gray-lt);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
  padding: 120px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.6) 0%, rgba(20, 28, 45, 0.3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(25, 182, 230, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(25, 182, 230, 0.15);
}

.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(25, 182, 230, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(25, 182, 230, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan-bright);
  transition: transform 0.4s var(--ease);
}

.feature-card:hover .feature-icon {
  transform: rotate(-8deg) scale(1.05);
  border-color: var(--cyan);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
  color: var(--white);
  line-height: 1.05;
}

.feature-card p {
  color: var(--gray-lt);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags span {
  background: rgba(25, 182, 230, 0.08);
  border: 1px solid rgba(25, 182, 230, 0.2);
  color: var(--cyan-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* ============================================
   HOW IT WORKS — TIMELINE
   ============================================ */

.how {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 26, 0.6) 50%, transparent 100%);
}

.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--cyan) 10%, var(--purple) 90%, transparent 100%);
  transform: translateX(-50%);
}

.step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
  position: relative;
}

.step:nth-child(odd) .step-content {
  text-align: right;
  order: 1;
}
.step:nth-child(odd) .step-num { order: 2; }
.step:nth-child(odd) .step-visual { order: 3; }

.step:nth-child(even) .step-visual { order: 1; }
.step:nth-child(even) .step-num { order: 2; }
.step:nth-child(even) .step-content {
  order: 3;
  text-align: left;
}

.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  color: var(--bg-0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(4, 6, 12, 1), 0 0 30px var(--cyan-glow);
  z-index: 2;
  position: relative;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--white);
}

.step-content p {
  color: var(--gray-lt);
  font-size: 15px;
  line-height: 1.6;
}

.step-visual {
  position: relative;
}

.step-visual img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.5s var(--ease);
}

.step:nth-child(odd) .step-visual img {
  margin-left: auto;
}

.step:hover .step-visual img {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 30px 80px rgba(25, 182, 230, 0.25), 0 0 0 1px var(--border-bright);
}

/* ============================================
   SHOWCASE
   ============================================ */

.showcase {
  padding: 120px 0;
}

.showcase-frame {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-bright), 0 0 80px rgba(25, 182, 230, 0.15);
}

.frame-bezel {
  background: rgba(10, 15, 26, 0.95);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.frame-controls {
  display: flex;
  gap: 8px;
}

.frame-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-dk);
}

.frame-dot:nth-child(1) { background: #ff5f57; }
.frame-dot:nth-child(2) { background: #ffbd2e; }
.frame-dot:nth-child(3) { background: #28c940; }

.frame-url {
  flex: 1;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--gray-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.frame-live {
  background: rgba(255, 56, 56, 0.15);
  color: #ff7777;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  animation: dotPulse 1.5s infinite;
}

.showcase-video {
  width: 100%;
  display: block;
  background: #000;
}

.frame-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, var(--cyan) 0%, var(--purple) 50%, var(--cyan-bright) 100%);
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.showcase-cta {
  text-align: center;
  margin-top: 60px;
}

.showcase-cta p {
  color: var(--gray-lt);
  font-size: 18px;
  margin-bottom: 20px;
}

.showcase-cta strong {
  color: var(--cyan-bright);
}

/* Badge sobreposto no showcase */
.showcase-badge {
  position: absolute;
  top: 70px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  z-index: 5;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
  animation: badgeFloat 4s ease-in-out infinite;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: dotPulse 1.5s infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 30px rgba(0, 255, 136, 0.4); }
  50% { transform: translateY(-3px); box-shadow: 0 0 50px rgba(0, 255, 136, 0.6); }
}

/* Highlights row abaixo do video */
.showcase-highlights {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.3s, transform 0.3s;
}

.highlight:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(25, 182, 230, 0.1) 100%);
  border: 1px solid rgba(0, 255, 136, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.1;
}

.highlight-text span {
  font-size: 12px;
  color: var(--gray-md);
}

/* ============================================
   REPLACES
   ============================================ */

.replaces {
  padding: 120px 0;
}

.section-title .strike {
  position: relative;
  color: var(--gray-md);
}

.section-title .strike::after {
  content: '';
  position: absolute;
  top: 50%; left: -8%;
  width: 116%;
  height: 8px;
  background: var(--red-live);
  transform: rotate(-3deg);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(255, 56, 56, 0.6);
}

.replace-grid {
  max-width: 900px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.replace-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}

.replace-item:hover {
  border-color: var(--border-bright);
  transform: translateX(4px);
}

.replace-old {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gray-md);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 56, 56, 0.5);
  text-decoration-thickness: 2px;
}

.replace-old strong {
  color: var(--gray-lt);
  font-size: 16px;
}

.replace-old .cost {
  font-size: 12px;
  color: var(--gray-md);
  margin-left: auto;
  font-style: italic;
  text-decoration: none;
}

.x-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 56, 56, 0.15);
  color: var(--red-live);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.replace-arrow {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 600;
}

.replace-new {
  display: flex;
  align-items: center;
  gap: 14px;
}

.replace-new strong {
  color: var(--white);
  font-size: 16px;
}

.check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.replaces-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.tagline-prefix {
  color: var(--cyan-bright);
}

.tagline-main {
  color: var(--white);
}

/* ============================================
   SCHEDULE / FORM
   ============================================ */

.schedule {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 26, 0.4) 100%);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.schedule-info .section-title {
  text-align: left;
  font-size: clamp(36px, 4vw, 60px);
  margin-bottom: 24px;
}

.schedule-desc {
  color: var(--gray-lt);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.schedule-list {
  list-style: none;
  margin-bottom: 40px;
}

.schedule-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: var(--gray-lt);
  font-size: 15px;
}

.schedule-list svg {
  color: var(--cyan-bright);
  flex-shrink: 0;
  background: rgba(25, 182, 230, 0.1);
  padding: 4px;
  border-radius: 50%;
  border: 1px solid rgba(25, 182, 230, 0.3);
}

.schedule-trust {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-logo {
  height: 28px;
  filter: drop-shadow(0 2px 8px var(--cyan-glow));
}

.schedule-trust p {
  color: var(--gray-lt);
  font-size: 14px;
  margin: 0;
}

/* Form */
.schedule-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.schedule-form-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan), transparent, var(--purple));
  z-index: -1;
  opacity: 0.4;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 6px;
  color: var(--white);
}

.form-header p {
  color: var(--gray-md);
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  color: var(--gray-lt);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(25, 182, 230, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-dk);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-body);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366d4f0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-1);
  color: var(--white);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-check input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.form-check label {
  margin: 0;
  font-size: 13px;
  color: var(--gray-md);
  line-height: 1.5;
  cursor: pointer;
}

.form-foot {
  text-align: center;
  font-size: 12px;
  color: var(--gray-md);
  margin-top: 14px;
}

/* Success state */
.schedule-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.schedule-success.active {
  display: block;
  animation: revealUp 0.6s var(--ease);
}

.schedule-form.hidden {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.15);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--green);
  animation: successPop 0.6s var(--ease);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.schedule-success h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--white);
}

.schedule-success p {
  color: var(--gray-lt);
  margin-bottom: 28px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px var(--cyan-glow));
}

.footer-brand p {
  color: var(--gray-md);
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--gray-md);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan-bright);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-dk);
}

/* ============================================
   MODAL (Login)
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 80px rgba(25, 182, 230, 0.2);
  animation: modalIn 0.4s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--gray-lt);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(25, 182, 230, 0.05);
}

.modal-brand {
  text-align: center;
  margin-bottom: 32px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 16px var(--cyan-glow));
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.modal-brand h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 6px;
  color: var(--white);
}

.modal-brand p {
  color: var(--gray-md);
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-md);
  cursor: pointer;
  border-radius: calc(var(--radius-md) - 4px);
  transition: all 0.2s ease;
}

.auth-tab:hover { color: var(--gray-lt); }

.auth-tab.active {
  background: linear-gradient(135deg, rgba(25,182,230,0.18), rgba(25,182,230,0.08));
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(25,182,230,0.35), 0 4px 18px rgba(25,182,230,0.12);
}

.auth-msg {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
  border: 1px solid transparent;
  animation: authMsgIn 0.25s ease;
}

@keyframes authMsgIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-msg[data-tone="error"] {
  background: rgba(255, 60, 90, 0.08);
  border-color: rgba(255, 60, 90, 0.4);
  color: #ff8095;
}

.auth-msg[data-tone="warn"] {
  background: rgba(255, 180, 30, 0.08);
  border-color: rgba(255, 180, 30, 0.4);
  color: #ffd27a;
}

.auth-msg[data-tone="success"] {
  background: rgba(70, 220, 140, 0.08);
  border-color: rgba(70, 220, 140, 0.4);
  color: #7fe6b0;
}

.auth-msg[data-tone="info"] {
  background: rgba(25, 182, 230, 0.08);
  border-color: rgba(25, 182, 230, 0.35);
  color: var(--cyan-bright);
}

.pwd-wrap {
  position: relative;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gray-md);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.2s;
}

.pwd-toggle:hover {
  color: var(--cyan);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--gray-lt);
}

.check-inline input {
  accent-color: var(--cyan);
}

.link-soft {
  color: var(--gray-lt);
  text-decoration: none;
  transition: color 0.2s;
}

.link-soft:hover {
  color: var(--cyan-bright);
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--gray-md);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  padding: 0 14px;
}

.login-foot {
  text-align: center;
  color: var(--gray-md);
  font-size: 14px;
}

.login-foot a {
  color: var(--cyan-bright);
  text-decoration: none;
  font-weight: 500;
}

.login-foot a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .timeline-line { left: 32px; }
  .step,
  .step:nth-child(odd),
  .step:nth-child(even) {
    grid-template-columns: auto 1fr;
    gap: 24px;
    text-align: left;
  }
  .step:nth-child(odd) .step-content,
  .step:nth-child(even) .step-content {
    text-align: left;
    order: 2;
  }
  .step:nth-child(odd) .step-num,
  .step:nth-child(even) .step-num {
    order: 1;
  }
  .step-visual {
    display: none;
  }
  .showcase-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-badge {
    top: 60px;
    right: 16px;
    font-size: 10px;
    padding: 8px 14px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }

  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(4, 6, 12, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 120px 20px 80px; min-height: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num { font-size: 44px; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 32px 24px; }

  .replace-item {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
    padding: 18px 20px;
  }
  .replace-arrow { transform: rotate(90deg); justify-self: start; }
  .replace-old, .replace-new { flex-wrap: wrap; }

  .schedule-form-wrap { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .schedule-info .section-title { font-size: 36px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .scroll-indicator { display: none; }

  .modal-content { padding: 36px 24px; }

  .showcase-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .showcase-badge {
    top: 50px;
    right: 12px;
    font-size: 9px;
    padding: 6px 12px;
  }
}

/* ============================================
   HEATMAP SECTION
   ============================================ */

.heatmap-section {
  padding: 120px 0;
  position: relative;
}

.heatmap-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.field-container {
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.6) 0%, rgba(20, 28, 45, 0.3) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(25, 182, 230, 0.1);
  position: relative;
  overflow: hidden;
}

.field-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.field-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
}

.field-team { color: var(--white); }
.field-vs { color: var(--gray-md); }

.field-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 56, 56, 0.1);
  border: 1px solid rgba(255, 56, 56, 0.35);
  color: #ff7777;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-live);
  box-shadow: 0 0 10px var(--red-live);
  animation: dotPulse 1.2s infinite;
}

.field-controls {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--border);
}

.field-btn {
  background: transparent;
  color: var(--gray-md);
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.field-btn:hover { color: var(--white); }

.field-btn.active {
  background: var(--cyan);
  color: var(--bg-0);
  box-shadow: 0 4px 12px var(--cyan-glow);
}

.field-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a5d1f;
}

.hot-spot {
  transform-origin: center;
  animation: hotPulse 2.4s ease-in-out infinite;
}

.hot-spot.spawn {
  animation: hotSpawn 0.8s var(--ease) forwards, hotPulse 2.4s ease-in-out 0.8s infinite;
}

@keyframes hotSpawn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes hotPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.player-dot {
  fill: white;
  stroke: rgba(0,0,0,0.4);
  stroke-width: 1;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

.heatmap-legend {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legend-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-md);
  font-weight: 600;
  flex-shrink: 0;
}

.legend-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(80, 200, 255, 0.7) 0%,
    rgba(80, 255, 150, 0.7) 30%,
    rgba(255, 220, 30, 0.85) 60%,
    rgba(255, 100, 30, 0.95) 85%,
    rgba(255, 40, 40, 1) 100%
  );
  box-shadow: 0 0 16px rgba(255, 100, 30, 0.3);
  min-width: 180px;
}

.legend-marks {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
  color: var(--gray-md);
}

@media (min-width: 600px) {
  .legend-marks {
    width: auto;
    gap: 24px;
  }
}

.heatmap-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hstat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.hstat:hover {
  border-color: var(--border-bright);
  transform: translateX(-2px);
}

.hstat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-md);
  margin-bottom: 6px;
  font-weight: 600;
}

.hstat-value {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--cyan-bright);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.hstat-value small {
  font-size: 22px;
  color: var(--cyan);
  font-family: var(--font-display);
}

.hstat-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.hstat-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-bright) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width 1.4s var(--ease);
}

.hstat.in-view .hstat-bar span { width: var(--w); }

.hstat-export {
  margin-top: 8px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(25, 182, 230, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px dashed rgba(25, 182, 230, 0.3);
  border-radius: var(--radius);
}

.export-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan-bright);
  font-weight: 700;
  margin-bottom: 10px;
}

.export-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.export-formats span {
  background: rgba(25, 182, 230, 0.12);
  border: 1px solid rgba(25, 182, 230, 0.3);
  color: var(--cyan-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.heatmap-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--gray-md);
  font-style: italic;
}

@media (max-width: 900px) {
  .heatmap-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .heatmap-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hstat-export { grid-column: 1 / -1; }
  .field-controls { width: 100%; justify-content: center; }
}

@media (max-width: 540px) {
  .field-container { padding: 16px; }
  .heatmap-stats { grid-template-columns: 1fr; }
  .field-info { font-size: 18px; }
}


/* ── Video demonstrativo (ex match-dashboard) ────── */
.analysis-video {
  position: relative;
  margin: 60px auto 0;
  max-width: 1100px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(25, 182, 230, 0.18);
  aspect-ratio: 16 / 9;
  background: #04060c;
}

.analysis-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.analysis-video-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent 80%, rgba(4, 6, 12, 0.6) 100%);
}

@media (max-width: 768px) {
  .analysis-video { margin-top: 32px; border-radius: 12px; }
}


/* ============================================
   ARENA AI CHATBOT — futurista
   ============================================ */

.ai-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  font-family: var(--font-body);
}

.ai-fab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px 0 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(30, 108, 255, 0.65) 0%, rgba(77, 142, 255, 0.65) 60%, rgba(25, 182, 230, 0.65) 100%);
  box-shadow:
    0 14px 40px rgba(30, 108, 255, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 22px rgba(77, 142, 255, 0.3);
  transition: box-shadow 0.25s var(--ease), filter 0.25s var(--ease), background 0.25s;
  overflow: visible;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: aiFabFloat 4.2s ease-in-out infinite;
  touch-action: none;
}

/* Filhos do FAB nao capturam pointer — eventos vao direto pro botao (drag funciona em qualquer parte) */
.ai-fab > *:not(.ai-fab-pulse) { pointer-events: none; }

@keyframes aiFabFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.ai-fab:hover {
  filter: brightness(1.08);
  background: linear-gradient(135deg, rgba(30, 108, 255, 1) 0%, rgba(77, 142, 255, 1) 60%, rgba(25, 182, 230, 1) 100%);
  box-shadow:
    0 22px 60px rgba(30, 108, 255, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 38px rgba(77, 142, 255, 0.7);
}

.ai-fab-icon, .ai-fab-close { position: relative; z-index: 2; }
.ai-fab-close { display: none; }
.ai-fab-label { position: relative; z-index: 2; }

.ai-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(77, 142, 255, 0.45);
  animation: aiFabPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.ai-fab-pulse-2 { animation-delay: 1.2s; }

@keyframes aiFabPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* FAB some quando widget aberto — fechar so pelo X do header */
.ai-chatbot.open .ai-fab { display: none; }
.ai-chatbot.open .ai-fab-pulse { display: none; }

.ai-chat-window {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: min(400px, calc(100vw - 28px));
  height: min(620px, calc(100svh - 110px));
  border-radius: 22px;
  background: rgba(10, 18, 36, 0.20);
  backdrop-filter: blur(38px) saturate(1.4);
  -webkit-backdrop-filter: blur(38px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(30, 108, 255, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.4s var(--ease);
}

.ai-chatbot.open .ai-chat-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(30, 108, 255, 0.28) 0%, rgba(25, 182, 230, 0.14) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.ai-chat-header:active { cursor: grabbing; }

.ai-chat-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e6cff, #19b6e6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(77, 142, 255, 0.55);
  flex-shrink: 0;
}

.ai-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  border: 2px solid #0a1224;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.7);
  animation: aiDotPulse 1.6s ease-in-out infinite;
}

@keyframes aiDotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.7); }
  50% { box-shadow: 0 0 16px rgba(0, 255, 136, 1); }
}

.ai-chat-title { flex: 1; min-width: 0; }
.ai-chat-title h4 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.ai-chat-status {
  font-size: 13.5px;
  color: rgba(220, 232, 252, 0.85);
  display: block;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.ai-chat-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
}
.ai-chat-close:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.4);
  color: #ff8090;
}

.ai-scan-line {
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(77, 142, 255, 0.15) 50%, transparent 100%);
  animation: aiScan 4s linear infinite;
  pointer-events: none;
}

@keyframes aiScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.ai-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat-body::-webkit-scrollbar { width: 6px; }
.ai-chat-body::-webkit-scrollbar-track { background: transparent; }
.ai-chat-body::-webkit-scrollbar-thumb {
  background: rgba(77, 142, 255, 0.3);
  border-radius: 4px;
}

.ai-msg { display: flex; animation: aiMsgIn 0.35s var(--ease); }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-bot { justify-content: flex-start; }

@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-msg-bubble {
  max-width: 86%;
  padding: 14px 17px;
  border-radius: 18px;
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 500;
  position: relative;
  word-wrap: break-word;
}

.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, #1e6cff 0%, #4d8eff 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom-right-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 6px 22px rgba(30, 108, 255, 0.4);
}

.ai-msg-bot .ai-msg-bubble {
  background: linear-gradient(135deg, rgba(15, 25, 50, 0.60) 0%, rgba(8, 16, 32, 0.60) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(77, 142, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.4);
}

.ai-msg-bot.ai-msg-fresh .ai-msg-bubble {
  animation: aiBotGlow 1.4s ease-out;
}

@keyframes aiBotGlow {
  0% {
    box-shadow:
      0 0 0 1px rgba(77, 142, 255, 0.6),
      0 0 30px rgba(77, 142, 255, 0.5);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(77, 142, 255, 0),
      0 0 0 rgba(77, 142, 255, 0);
  }
}

.ai-msg-text { white-space: pre-wrap; }
.ai-msg-text strong { color: #4d8eff; }
.ai-msg-user .ai-msg-text strong { color: #fff; }

.ai-msg-text.streaming::after {
  content: 'P';
  display: inline-block;
  margin-left: 2px;
  color: #4d8eff;
  animation: aiBlink 0.9s steps(2) infinite;
}
@keyframes aiBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.ai-typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d8eff;
  animation: aiTypingDot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ai-chip {
  padding: 10px 16px;
  font-size: 14.5px;
  font-family: var(--font-body);
  font-weight: 600;
  color: #c8d4ec;
  background: rgba(77, 142, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}
.ai-chip:hover {
  background: rgba(77, 142, 255, 0.22);
  border-color: rgba(77, 142, 255, 0.55);
  color: #fff;
  transform: translateY(-1px);
}
.ai-chip:active { transform: translateY(0); }

.ai-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(77, 142, 255, 0.2);
  background: linear-gradient(180deg, transparent 0%, rgba(30, 108, 255, 0.05) 100%);
}

.ai-chat-input input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  background: rgba(10, 18, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 500;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-chat-input input::placeholder { color: rgba(180, 200, 230, 0.45); }
.ai-chat-input input:focus {
  border-color: rgba(77, 142, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(77, 142, 255, 0.18);
}

.ai-chat-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e6cff 0%, #4d8eff 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(30, 108, 255, 0.4);
}
.ai-chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(77, 142, 255, 0.6);
}
.ai-chat-send:active { transform: scale(0.94); }
.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 540px) {
  .ai-chatbot { right: 14px; bottom: 14px; }
  .ai-chat-window {
    width: calc(100vw - 28px);
    height: calc(100vh - 100px);
    bottom: 70px;
  }
  .ai-fab-label { display: none; }
  .ai-fab { padding: 0; width: 56px; justify-content: center; }
}


/* ── TTS button (Qwen3-TTS Alibaba) ── */
.ai-tts-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  font-size: 12.5px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4d8eff;
  background: rgba(77, 142, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}
.ai-tts-btn::after {
  content: "Ouvir";
  margin-left: 2px;
}
.ai-tts-btn:hover {
  background: rgba(77, 142, 255, 0.22);
  border-color: rgba(77, 142, 255, 0.6);
  color: #fff;
}
.ai-tts-btn:disabled { cursor: wait; }
.ai-tts-btn.loading {
  color: #b8d0ff;
  background: rgba(77, 142, 255, 0.18);
}
.ai-tts-btn.loading::after { content: "Gerando..."; }
.ai-tts-btn.playing {
  background: linear-gradient(135deg, #1e6cff, #4d8eff);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 0 12px rgba(77, 142, 255, 0.6);
  animation: aiTtsPlayingGlow 1.6s ease-in-out infinite;
}
.ai-tts-btn.playing::after { content: "Tocando"; }
@keyframes aiTtsPlayingGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(77, 142, 255, 0.5); }
  50% { box-shadow: 0 0 22px rgba(77, 142, 255, 0.85); }
}
.ai-tts-spin { animation: aiTtsSpin 1s linear infinite; transform-origin: 12px 12px; }
@keyframes aiTtsSpin { to { transform: rotate(360deg); } }


/* ── Microfone (STT Whisper) ── */
.ai-chat-mic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(77, 142, 255, 0.3);
  border-radius: 50%;
  background: rgba(77, 142, 255, 0.08);
  color: #4d8eff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.ai-chat-mic:hover {
  background: rgba(77, 142, 255, 0.18);
  border-color: rgba(77, 142, 255, 0.6);
  color: #fff;
}
.ai-chat-mic.recording {
  background: linear-gradient(135deg, #ff3b56, #ff5e7e);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 59, 86, 0.55);
  animation: aiMicPulse 1s ease-in-out infinite;
}
@keyframes aiMicPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 59, 86, 0.55); }
  50% { box-shadow: 0 0 32px rgba(255, 59, 86, 0.9); }
}
.ai-chat-mic.recording::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 59, 86, 0.5);
  animation: aiMicRing 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes aiMicRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.ai-chat-mic.sending {
  background: rgba(77, 142, 255, 0.25);
  color: #fff;
  cursor: wait;
}
.ai-mic-spin { animation: aiTtsSpin 1s linear infinite; transform-origin: 12px 12px; }


.ai-link {
  color: #4d8eff;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  transition: color 0.15s;
}
.ai-link:hover { color: #fff; text-decoration-color: #4d8eff; }
.ai-msg-user .ai-link { color: #fff; text-decoration-color: rgba(255,255,255,0.6); }
