/* ==========================================================================
   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;
}

/* Download dropdown */
.download-group {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.download-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1a1a24;
  border: 1px solid rgba(168,255,53,0.25);
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  min-width: 220px;
}

.download-group:hover .download-options,
.download-group:focus-within .download-options {
  display: flex;
  flex-direction: column;
}

.download-options a {
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.download-options a:last-child {
  border-bottom: none;
}

.download-options a:hover {
  background: rgba(168,255,53,0.1);
  color: #A8FF35;
}

/* ==========================================================================
   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
   ========================================================================== */

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 2.5rem; }

  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    z-index: 49;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text-soft);
  }

  .nav a:last-child { border-bottom: none; }

  .nav a.cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }

  .section-header { margin-bottom: 2.5rem; }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .btn { padding: 0.8rem 1.25rem; font-size: 0.95rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { text-align: center; justify-content: center; }
  .download-group { width: 100%; }
  .plan { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   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; }

/* ==========================================================================
   Login Dropdown (nav — compartilhado entre páginas)
   ========================================================================== */
.login-dropdown { position: relative; display: flex; align-items: center; }

.login-trigger {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: var(--text-soft);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.login-trigger:hover { color: var(--text); border-color: rgba(255,255,255,0.35); }
.login-trigger .lt-arrow { font-size: 0.6rem; transition: transform 0.2s; display: inline-block; }
.login-trigger.open .lt-arrow { transform: rotate(180deg); }

.login-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1a28;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.5rem;
  min-width: 220px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.login-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.login-menu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.15s;
}
.login-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.login-menu a:hover .lm-title { color: var(--text); }

.lm-icon { font-size: 1.35rem; width: 30px; text-align: center; flex-shrink: 0; }
.lm-title { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.lm-sub   { display: block; font-size: 0.74rem; color: var(--text-soft); margin-top: 0.1rem; }

/* mobile: login menu fica abaixo do nav toggle */
@media (max-width: 768px) {
  .login-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); display: none; }
  .login-menu.open { display: block; }
  .login-dropdown { flex-direction: column; align-items: stretch; width: 100%; }
  .login-trigger { justify-content: center; width: 100%; border-radius: 8px; }
}

