/* ─────────────────────────────────────────────
   Bingo Guarapiche — Landing Page Styles
   ───────────────────────────────────────────── */

/* ── Design Tokens ── */
:root {
  --bg: #0b1220;
  --bg-deep: #071021;
  --bg-mid: #071829;
  --accent: #ff4757;
  --accent-light: #ff6b81;
  --accent-2: #2ed573;
  --accent-2-light: #7ef6a2;
  --accent-3: #ffd32a;
  --accent-3-light: #ffd86b;
  --accent-4: #3aa0ff;
  --accent-4-light: #7cc7ff;
  --muted: #c5d2e0;
  --text-dim: #9fb3c9;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --shadow-deep: rgba(2, 6, 23, 0.6);
  --radius: 14px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--muted);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 60%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Keyframes ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(4deg); }
}

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

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
  50% { box-shadow: 0 0 20px 6px rgba(255, 71, 87, 0.15); }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes numberCount {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Confetti Particles ── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall linear infinite;
  opacity: 0;
}

.confetti:nth-child(1)  { left: 5%;  background: var(--accent);   animation-duration: 12s; animation-delay: 0s;   width: 6px;  height: 10px; }
.confetti:nth-child(2)  { left: 15%; background: var(--accent-2); animation-duration: 15s; animation-delay: 2s;   width: 8px;  height: 6px;  border-radius: 50%; }
.confetti:nth-child(3)  { left: 25%; background: var(--accent-3); animation-duration: 10s; animation-delay: 4s;   width: 5px;  height: 12px; }
.confetti:nth-child(4)  { left: 40%; background: var(--accent-4); animation-duration: 14s; animation-delay: 1s;   width: 10px; height: 6px;  border-radius: 50%; }
.confetti:nth-child(5)  { left: 55%; background: var(--accent);   animation-duration: 11s; animation-delay: 3s;   width: 7px;  height: 7px; }
.confetti:nth-child(6)  { left: 65%; background: var(--accent-2); animation-duration: 13s; animation-delay: 5s;   width: 6px;  height: 10px; border-radius: 50%; }
.confetti:nth-child(7)  { left: 75%; background: var(--accent-3); animation-duration: 16s; animation-delay: 0.5s; width: 9px;  height: 5px; }
.confetti:nth-child(8)  { left: 85%; background: var(--accent-4); animation-duration: 12s; animation-delay: 2.5s; width: 5px;  height: 8px;  border-radius: 50%; }
.confetti:nth-child(9)  { left: 35%; background: var(--accent-light); animation-duration: 17s; animation-delay: 6s; width: 8px; height: 8px; }
.confetti:nth-child(10) { left: 92%; background: var(--accent-2-light); animation-duration: 14s; animation-delay: 3.5s; width: 6px; height: 6px; border-radius: 50%; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: rgba(7, 16, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  animation: fadeSlideRight 0.6s ease-out;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.3) 0%, transparent 25%),
              linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo:hover {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 71, 87, 0.5);
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: white;
  letter-spacing: -0.3px;
}

.header-cta {
  margin-left: auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  color: white;
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.5s ease-in-out infinite;
}

.header-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
  animation: none;
}

/* ── Hero ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 64px 48px 48px;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 55%;
  animation: fadeSlideUp 0.8s ease-out;
}

.hero h2 {
  color: white;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero h2 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-2), #1db954);
  padding: 14px 32px;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(46, 213, 115, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 35px rgba(46, 213, 115, 0.45);
}

/* ── Bingo Balls ── */
.balls {
  display: flex;
  gap: 16px;
  animation: fadeSlideUp 1s ease-out 0.3s both;
}

.ball {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 8px 25px var(--shadow-deep);
  animation: float 3.5s ease-in-out infinite;
  transition: box-shadow var(--transition);
  position: relative;
}

/* Glossy shine effect */
.ball::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.ball:nth-child(1) { animation-delay: 0s; }
.ball:nth-child(2) { animation-delay: 0.5s; }
.ball:nth-child(3) { animation-delay: 1s; }
.ball:nth-child(4) { animation-delay: 1.5s; }

.ball.red    { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.ball.green  { background: linear-gradient(135deg, var(--accent-2-light), var(--accent-2)); }
.ball.yellow { background: linear-gradient(135deg, var(--accent-3-light), var(--accent-3)); color: #1a1a2e; }
.ball.blue   { background: linear-gradient(135deg, var(--accent-4-light), var(--accent-4)); }

.ball:hover {
  animation-play-state: paused;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 48px 48px;
  position: relative;
  z-index: 1;
}

.features article {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 28px 24px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeSlideUp 0.8s ease-out both;
}

.features article:nth-child(1) { animation-delay: 0.2s; }
.features article:nth-child(2) { animation-delay: 0.4s; }
.features article:nth-child(3) { animation-delay: 0.6s; }

.features article:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(255, 71, 87, 0.12);
  border-color: rgba(255, 71, 87, 0.2);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.features h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.features p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ── Stats ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 48px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  animation: numberCount 0.6s ease-out both;
}

.stat:nth-child(1) .stat-number { animation-delay: 0.6s; }
.stat:nth-child(2) .stat-number { animation-delay: 0.8s; }
.stat:nth-child(3) .stat-number { animation-delay: 1.0s; }

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Divider */
.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), rgba(255, 71, 87, 0.2), var(--glass-border), transparent);
}

/* ── About ── */
.about {
  padding: 0 48px 56px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.8s ease-out 0.7s both;
}

.about-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-4));
  border-radius: var(--radius) var(--radius) 0 0;
}

.about h3 {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.about p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-dim);
  max-width: 680px;
}

/* ── Footer ── */
.site-footer {
  padding: 28px 48px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.footer-text {
  margin: 0;
  font-size: 14px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-cta:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 71, 87, 0.3);
  transform: translateY(-2px);
}

/* ── Bottom gradient overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: auto 0 0 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
  z-index: 0;
}

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 32px 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .balls {
    margin: 24px 0 0;
    justify-content: center;
    width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 16px 32px 32px;
  }

  .stats {
    gap: 32px;
    padding: 32px;
  }

  .about {
    padding: 0 32px 40px;
  }

  .site-footer {
    padding: 24px 32px;
    flex-direction: column;
    text-align: center;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 600px) {
  .site-header {
    padding: 14px 20px;
    gap: 12px;
  }

  .logo {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .site-title {
    font-size: 17px;
  }

  .header-cta {
    padding: 9px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 36px 20px 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  .balls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ball {
    width: 72px;
    height: 72px;
    font-size: 22px;
  }

  .ball::before {
    width: 24px;
    height: 11px;
    top: 11px;
  }

  .features {
    padding: 12px 20px 28px;
    gap: 14px;
  }

  .features article {
    padding: 22px 20px;
  }

  .stats {
    flex-direction: column;
    gap: 24px;
    padding: 28px 20px;
    align-items: center;
  }

  .about {
    padding: 0 20px 36px;
  }

  .about-card {
    padding: 28px 24px;
  }

  .about h3 {
    font-size: 19px;
  }

  .site-footer {
    padding: 20px;
  }
}

/* ── Responsive: Small Mobile ── */
@media (max-width: 400px) {
  .hero h2 {
    font-size: 24px;
  }

  .ball {
    width: 62px;
    height: 62px;
    font-size: 19px;
  }

  .ball::before {
    width: 20px;
    height: 9px;
    top: 9px;
  }

  .stat-number {
    font-size: 32px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
