/* ==========================================================================
   Spark Streamer — estilo global (acid pop + glassmorphism)
   ========================================================================== */

:root {
  /* Paleta */
  --bg: #0A0A0F;
  --bg-card: #16161E;
  --bg-elevated: #1F1F2A;
  --neon-green: #A8FF35;
  --neon-cyan: #00D9FF;
  --neon-magenta: #FF2EC4;
  --text: #F5F5F7;
  --text-soft: #9A9AA5;
  --border: rgba(168, 255, 53, 0.15);
  --border-strong: rgba(168, 255, 53, 0.4);

  /* Tipografia */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Espaçamentos */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Sombras */
  --glow-green: 0 0 32px rgba(168, 255, 53, 0.25);
  --glow-cyan: 0 0 32px rgba(0, 217, 255, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   Tipografia
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-soft); max-width: 60ch; }

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover { color: var(--neon-green); }

/* ==========================================================================
   Layout / containers
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* ==========================================================================
   Header (compartilhado entre páginas)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover, .nav a.active {
  color: var(--text);
}

.nav a.cta {
  background: var(--neon-green);
  color: var(--bg);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.nav a.cta:hover {
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(168, 255, 53, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero .badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--neon-green);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-soft);
  max-width: 38ch;
  margin: 0 auto 2.5rem;
}

.hero .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--neon-green);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.btn-disabled {
  background: rgba(255,255,255,0.05);
  color: rgba(245,245,247,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.btn-disabled::after {
  content: "🔒";
  margin-left: 0.5rem;
}

/* ==========================================================================
   Cards / glassmorphism
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
}

.card-glass {
  background: rgba(31, 31, 42, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ==========================================================================
   Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

/* ==========================================================================
   Section header
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .label {
  color: var(--neon-green);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* ==========================================================================
   Como funciona — passos numerados
   ========================================================================== */
.step {
  position: relative;
  padding-top: 1rem;
}

.step .number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.step h3 { margin-bottom: 0.75rem; }

/* ==========================================================================
   Tabela de planos
   ========================================================================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--neon-green);
  box-shadow: var(--glow-green);
  position: relative;
}

.plan.featured::before {
  content: 'Mais popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-green);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.plan h3 { margin-bottom: 0.5rem; }

.plan .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
}

.plan .price small {
  font-size: 1rem;
  color: var(--text-soft);
  font-weight: 400;
}

.plan ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
}

.plan li {
  padding: 0.6rem 0;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan li::before {
  content: '✓';
  color: var(--neon-green);
  font-weight: 800;
}

.plan li.no::before { content: '×'; color: var(--text-soft); opacity: 0.5; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-footer .links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .nav { gap: 1rem; }
  .nav a:not(.cta) { display: none; }
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0; }
}

/* ==========================================================================
   Página de instruções (jogos / plugins)
   ========================================================================== */
.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding-top: 4rem;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.doc-sidebar ul { list-style: none; }
.doc-sidebar li { padding: 0.4rem 0; }
.doc-sidebar a {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.doc-content h2 { margin: 3rem 0 1rem; }
.doc-content h3 { margin: 2rem 0 0.75rem; }
.doc-content p { margin-bottom: 1rem; max-width: none; }
.doc-content ul, .doc-content ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-soft); }
.doc-content li { padding: 0.3rem 0; }
.doc-content code {
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--neon-green);
}
.doc-content pre {
  background: var(--bg-elevated);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.doc-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; }
}

/* ==========================================================================
   Tags de plataforma (Windows / Mac)
   ========================================================================== */
.platforms {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.platform-tag.windows { color: #00D9FF; border-color: rgba(0, 217, 255, 0.3); }
.platform-tag.mac { color: #A8FF35; border-color: rgba(168, 255, 53, 0.3); }
.platform-tag.disabled { opacity: 0.4; }

/* ==========================================================================
   Mascote Caramelo (capivara) — widget flutuante no canto inferior direito
   ========================================================================== */
.mascote {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascote-bubble {
  position: absolute;
  bottom: 110%;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  width: 260px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--glow-green);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascote-bubble strong {
  color: var(--neon-green);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.mascote-bubble p { color: var(--text-soft); margin: 0; max-width: none; }

.mascote-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 32px;
  width: 16px; height: 16px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

.mascote:hover .mascote-bubble,
.mascote.active .mascote-bubble {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mascote-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 16px rgba(168, 255, 53, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascote:hover .mascote-img {
  transform: scale(1.1) rotate(-8deg);
}

.mascote-pulse {
  position: absolute;
  top: 0; left: 0;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 2px solid var(--neon-green);
  animation: mascote-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes mascote-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.mascote-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.mascote-actions a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mascote-actions a:hover {
  border-color: var(--border-strong);
  background: var(--bg);
  color: var(--neon-green);
}

@media (max-width: 768px) {
  .mascote { bottom: 16px; right: 16px; }
  .mascote-img, .mascote-pulse { width: 64px; height: 64px; }
  .mascote-bubble { width: 220px; }
}
