@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-glass: rgba(26, 35, 50, 0.7);
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: rgba(255,255,255,0.08);
  --sidebar-w: 260px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Background animated gradient ─── */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(139,92,246,0.06) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(14,165,233,0.04) 0%, transparent 70%);
  animation: bgMove 20s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes bgMove {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, -2%) rotate(3deg); }
}

/* ─── Sidebar ─── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }

.logo-icon-img {
  width: 40px; height: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-light);
}

.nav-item .icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.nav-item.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-subtle);
}

/* ─── Main content ─── */
.main {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ─── Header bar ─── */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

.topbar-title {
  font-size: 14px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.btn-github {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-github:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* ─── Hero Section ─── */
.hero {
  padding: 80px 40px 60px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-version {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease-out 0.25s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-subtle);
  animation: fadeInUp 0.6s ease-out 0.35s both;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-store:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

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

/* ─── Sections ─── */
.section {
  padding: 20px 40px 60px;
  max-width: 1100px;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

/* ─── Screenshots Grid ─── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.screenshot-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.screenshot-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.screenshot-label {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-icon.blue { background: rgba(59,130,246,0.15); }
.feature-icon.purple { background: rgba(139,92,246,0.15); }
.feature-icon.green { background: rgba(16,185,129,0.15); }
.feature-icon.cyan { background: rgba(6,182,212,0.15); }
.feature-icon.orange { background: rgba(251,146,60,0.15); }
.feature-icon.pink { background: rgba(236,72,153,0.15); }
.feature-icon.red { background: rgba(239,68,68,0.15); }

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Download Section ─── */
.download-card {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.download-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.download-info p {
  color: var(--text-muted);
  font-size: 15px;
}

.download-meta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.download-meta span {
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.btn-download {
  white-space: nowrap;
}

.version-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.version-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.version-tag .label {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Historia ─── */
.historia-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  backdrop-filter: blur(10px);
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}

.historia-texto h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.historia-texto p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.historia-texto em {
  color: #7dd3fc;
  font-style: italic;
}

.historia-destaque {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 10px;
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.6;
}

.destaque-icon {
  font-size: 24px;
}

.historia-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.historia-img img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s;
}

.historia-img img:hover {
  transform: scale(1.02);
}

.historia-img-label {
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
  font-style: italic;
}

/* ─── Pix / Donation ─── */
.pix-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.pix-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pix-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.pix-qr {
  width: 180px; height: 180px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.pix-qr svg {
  width: 100%;
  height: 100%;
}

.donation-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.donation-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.donation-method h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.donation-desc {
  font-size: 13px !important;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 8px !important;
}

.pix-key {
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  font-family: 'Inter', monospace;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.pix-key:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.pix-copiado {
  font-size: 13px;
  color: #22c55e;
  opacity: 0;
  transition: opacity 0.3s;
}


.pix-copiado.show {
  opacity: 1;
}

.btn-mercadopago {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #dce5f0;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 180px;
  height: 180px;
}

.btn-mercadopago:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 177, 234, 0.4);
  background: #c8d4e3;
}

.mp-logo {
  width: 140px;
  height: auto;
}

.btn-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #c9dff5;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 180px;
  height: 180px;
}

.btn-paypal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 112, 186, 0.4);
  background: #b3d1ef;
}

.pp-logo {
  width: 140px;
  height: auto;
}

/* ─── Contato ─── */
.contato-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.contato-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.contato-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.contato-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.contato-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.contato-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lbFadeIn 0.3s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-weight: 300;
}

.lightbox-close:hover {
  opacity: 1;
}

.screenshot-card {
  cursor: pointer;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 40px 20px 40px; }
  .section { padding: 20px 20px 40px; }
  .download-card { text-align: center; }
  .download-row { flex-direction: column; }
  .version-info { justify-content: center; }
  .topbar { padding: 12px 20px; }
  .donation-methods { grid-template-columns: 1fr; gap: 40px; }
  .historia-content { grid-template-columns: 1fr; }
  .historia-card { padding: 24px; }
  .historia-img { margin-top: 16px; }
}

/* ─── FAQ ─── */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(59,130,246,0.3);
}

.faq-item.active {
  border-color: rgba(59,130,246,0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: white;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255,255,255,0.03);
}

.faq-arrow {
  font-size: 12px;
  color: var(--text-subtle);
  transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
