/* =========================================
   PALETA DE CORES
   --bg:      #050810  fundo principal
   --card:    #0a0f1a  cards
   --border:  #1a2030  bordas
   --accent:  #4f8ef7  azul principal
   --accent2: #a78bfa  roxo
   --accent3: #34d399  verde
   --text:    #e8eaf0  texto
   --muted:   #5a6478  texto secundário
========================================= */

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

:root {
  --bg: #050810;
  --surface: #0d1117;
  --card: #0a0f1a;
  --border: #1a2030;
  --accent: #4f8ef7;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --text: #e8eaf0;
  --muted: #5a6478;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── GLOW ── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb.one {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.12) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.glow-orb.two {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.10) 0%, transparent 70%);
  bottom: 0;
  right: -150px;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5,8,16,0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #4f8ef7, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── SEÇÕES ── */
.section-o,
.section-t {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 80px;
}

.section-o {
  padding-top: 140px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title strong {
  background: linear-gradient(135deg, #4f8ef7, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.section-desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 48px;
}

/* ── APP CARD ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,142,247,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.app-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.app-card:hover::before {
  opacity: 1;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-icon {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon i {
  font-size: 28px;
  color: var(--accent);
}

.app-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.app-version {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.app-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-beta {
  background: rgba(167,139,250,0.12);
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.2);
}

.app-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.app-desc strong {
  color: var(--text);
}

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

.chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.chip-blue {
  color: #4f8ef7;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.15);
}

.chip-purple {
  color: #a78bfa;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.15);
}

.chip-green {
  color: #34d399;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.15);
}

.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.app-size {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-size i {
  font-size: 13px;
  color: var(--accent);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f8ef7, #6366f1);
  color: white;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(79,142,247,0.25);
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(79,142,247,0.4);
}

/* ── DIVIDER ── */
.divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 60px;
}

/* ── FEATURES ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(79,142,247,0.25);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

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

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

footer span {
  background: linear-gradient(135deg, #4f8ef7, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.ativo {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 420px;
  max-width: 90%;
  background: #0d1117;
  border: 1px solid #1a2030;
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.ativo .modal-box {
  transform: translateY(0);
}

.modal-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-fechar:hover {
  color: #ef4444;
}

.modal-icone {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
  margin: 0 auto 16px;
}

.modal-titulo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.modal-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 40px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.modal-input::placeholder {
  letter-spacing: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.12);
}

.modal-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.modal-olho {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
}

.modal-olho:hover {
  color: var(--text);
}

.modal-erro {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 10px;
  display: none;
}

.modal-btn {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, #4f8ef7, #6366f1);
  border: none;
  padding: 13px;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(79,142,247,0.3);
}

.modal-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(79,142,247,0.45);
}

.modal-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Shake no erro */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.erro-shake {
  animation: shake 0.4s ease;
  border-color: #ff6b6b !important;
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .section-o,
  .section-t {
    padding: 100px 24px 60px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .divider {
    margin: 0 24px;
  }

  .modal-box {
    padding: 28px 20px;
  }
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,142,247,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; /* ← adiciona essa linha */
}