:root {
  --bg: #0a0e1a;
  --bg2: #0f1629;
  --bg3: #141d35;
  --card: #111827;
  --card-hover: #1a2540;
  --border: rgba(255, 255, 255, 0.07);
  --green: #00e676;
  --green2: #00c853;
  --gold: #ffd600;
  --blue: #1a73e8;
  --text: #e8eaf6;
  --text2: #9ca3af;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s, filter 0.2s;
}

.logo-img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 16px rgba(255, 100, 0, 0.4));
}

.header-nav {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
}

.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.btn-play {
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-play:hover {
  background: var(--green2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.35);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 6rem 4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 230, 118, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(26, 115, 232, 0.08) 0%, transparent 60%),
    var(--bg);
  gap: 4rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.15;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.15;
  }

  90% {
    opacity: 0.1;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-content {
  max-width: 620px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green), #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text2);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #00bcd4);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.45);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
  z-index: 1;
}

.ball-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 300px;
  height: auto;
  object-fit: contain;
  z-index: 2;
  position: relative;
  animation: ballFloat 4s ease-in-out infinite;
  filter:
    drop-shadow(0 0 30px rgba(255, 100, 0, 0.3)) drop-shadow(0 8px 40px rgba(0, 0, 0, 0.6));
}

@keyframes ballFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(15deg);
  }
}

.ball-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.2), transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7
  }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 230, 118, 0.15);
  animation: spin linear infinite;
}

.orbit-1 {
  width: 260px;
  height: 260px;
  animation-duration: 8s;
}

.orbit-2 {
  width: 320px;
  height: 320px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 380px;
  height: 380px;
  animation-duration: 16s;
}

@keyframes spin {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  position: sticky;
  top: 65px;
  z-index: 50;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.filter-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.search-input {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  outline: none;
  width: 280px;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--green);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  font-weight: 700;
}

/* ===== APP GRID ===== */
.app-grid-section {
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 3rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}

/* APP CARD */
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all 0.25s;
  cursor: default;
  animation: fadeInUp 0.5s ease both;
}

.app-card:hover {
  background: var(--card-hover);
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 230, 118, 0.1);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.app-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 188, 212, 0.1));
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-category-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 0.3rem;
}

.tag-brasil {
  background: rgba(0, 200, 83, 0.15);
  color: #4caf50;
}

.tag-estaduais {
  background: rgba(33, 150, 243, 0.15);
  color: #64b5f6;
}

.tag-europa {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
}

.tag-internacional {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
}

.tag-outros {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text2);
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.app-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}

.app-card-footer {
  margin-top: auto;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--green);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  width: 100%;
  transition: all 0.2s;
}

.btn-download:hover {
  background: var(--green);
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.3);
}

/* NO RESULTS */
.no-results {
  text-align: center;
  color: var(--text2);
  font-size: 1.1rem;
  padding: 4rem;
  width: 100%;
}

/* FOOTER */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-desc {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-play-link {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}

.footer-play-link:hover {
  opacity: 0.75;
}

.footer-copy {
  color: var(--text2);
  font-size: 0.8rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 7rem 2rem 3rem;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    width: 260px;
    height: 260px;
  }

  .ball {
    font-size: 5rem;
  }

  .orbit-1 {
    width: 180px;
    height: 180px;
  }

  .orbit-2 {
    width: 220px;
    height: 220px;
  }

  .orbit-3 {
    width: 260px;
    height: 260px;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .search-input {
    width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .filter-inner {
    flex-direction: column;
    align-items: stretch;
  }
}