/* ===== CSS Variables ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --background: #0f0f1a;
  --surface: #1a1a2e;
  --surface-light: #252542;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --gradient-start: #6366f1;
  --gradient-end: #ec4899;
  --mega-sena: #209869;
  --lotofacil: #930089;
  --quina: #260085;
  --lotomania: #f78100;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Animated Background ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(80px);
  animation: float 20s infinite ease-in-out;
}

.ball-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.ball-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: 50%;
  right: -100px;
  animation-delay: -5s;
}

.ball-3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-end);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}

.ball-4 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  top: 30%;
  left: 20%;
  animation-delay: -15s;
}

.ball-5 {
  width: 350px;
  height: 350px;
  background: var(--primary-light);
  bottom: 20%;
  right: 20%;
  animation-delay: -7s;
}

.ball-6 {
  width: 200px;
  height: 200px;
  background: var(--mega-sena);
  top: 60%;
  left: 10%;
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.95);
  }
  75% {
    transform: translate(-50px, -30px) scale(1.05);
  }
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.nav-cta {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  padding: 10px 24px !important;
  border-radius: 50px;
  color: var(--text) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.badge-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--text);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: var(--surface-light);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  background: linear-gradient(145deg, #2a2a45, #1a1a2e);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatCard 4s infinite ease-in-out;
}

.card-1 {
  top: 15%;
  left: -60px;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  right: -80px;
  animation-delay: -1.5s;
}

.card-3 {
  bottom: 20%;
  left: -40px;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-icon {
  font-size: 1.25rem;
}

.card-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===== Exclusive Feature Section ===== */
.exclusive-feature {
  padding: 100px 0;
  text-align: center;
}

.exclusive-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

.viability-demo {
  display: flex;
  justify-content: center;
}

.viability-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.viability-meter {
  position: relative;
  width: 200px;
  height: 200px;
}

.meter-svg {
  transform: rotate(-90deg);
}

.meter-bg {
  fill: none;
  stroke: var(--surface-light);
  stroke-width: 12;
}

.meter-fill {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 65;
  animation: meterFill 2s ease-out forwards;
}

@keyframes meterFill {
  from {
    stroke-dashoffset: 502;
  }
  to {
    stroke-dashoffset: 65;
  }
}

.meter-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
}

.meter-value span {
  font-size: 1.5rem;
  opacity: 0.7;
}

.viability-info {
  text-align: left;
}

.viability-info h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.number-bubbles {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mega-sena), #1a7353);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 15px rgba(32, 152, 105, 0.3);
}

.bubble.mega {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.viability-verdict {
  font-size: 1.125rem;
  color: var(--secondary);
  font-weight: 600;
}

/* ===== Features Section ===== */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(236, 72, 153, 0.2)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ===== Lotteries Section ===== */
.lotteries {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(99, 102, 241, 0.05),
    transparent
  );
}

.lotteries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.lottery-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 32px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.lottery-card:hover {
  transform: translateY(-5px);
}

.lottery-card.mega {
  border-bottom: 3px solid var(--mega-sena);
}
.lottery-card.loto {
  border-bottom: 3px solid var(--lotofacil);
}
.lottery-card.quina {
  border-bottom: 3px solid var(--quina);
}
.lottery-card.lotomania {
  border-bottom: 3px solid var(--lotomania);
}
.lottery-card.dupla {
  border-bottom: 3px solid #c73838;
}
.lottery-card.mais {
  border-bottom: 3px solid var(--primary);
}

.lottery-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.lottery-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ===== Other Apps Section ===== */
.other-apps {
  padding: 100px 0;
}

.apps-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 16px;
}

.lotofacil-icon {
  background: linear-gradient(145deg, var(--lotofacil), #6d0066);
}
.lotomania-icon {
  background: linear-gradient(145deg, var(--lotomania), #d46d00);
}
.harpa-icon {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
}
.hcc-icon {
  background: linear-gradient(145deg, #8b5cf6, #6d28d9);
}
.cantor-icon {
  background: linear-gradient(145deg, #ec4899, #be185d);
}
.biblia-icon {
  background: linear-gradient(145deg, #10b981, #059669);
}

.app-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-rating {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.app-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 40px;
}

.app-link {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.875rem;
}

.app-link:hover {
  color: var(--text);
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-rating {
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
}

.author-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Download CTA Section ===== */
.download-cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.download-cta .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9375rem;
}

.cta-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.cta-decoration .deco-ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.cta-decoration .deco-ball:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.cta-decoration .deco-ball:nth-child(2) {
  width: 300px;
  height: 300px;
  background: var(--gradient-end);
  bottom: -50px;
  right: -50px;
}

.cta-decoration .deco-ball:nth-child(3) {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  top: 50%;
  right: 20%;
}

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .logo-icon {
  font-size: 2rem;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 6px 0;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom .disclaimer {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== SVG Gradient Definition ===== */
.viability-meter svg {
  overflow: visible;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lotteries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .apps-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .viability-card {
    flex-direction: column;
    text-align: center;
  }

  .viability-info {
    text-align: center;
  }

  .number-bubbles {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .phone-mockup {
    width: 240px;
    height: 490px;
  }

  .floating-card {
    display: none;
  }

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

  .lotteries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apps-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .viability-card {
    padding: 32px 24px;
  }

  .viability-meter {
    width: 160px;
    height: 160px;
  }

  .meter-value {
    font-size: 2.5rem;
  }

  .bubble {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }

  .apps-carousel {
    grid-template-columns: 1fr;
  }

  .lotteries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
