@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

:root {
  --color-primary: #1f74ff;
  --color-accent: #e51e2a;
  --color-success: #00c853;
  --color-highlight: #ffd700;
  --color-surface: #1a1a1a;
  --color-background: #000000;
  --color-foreground: #ffffff;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-muted: rgba(255, 255, 255, 0.65);
  --color-panel-gradient: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(31, 116, 255, 0.1));
  --color-body-gradient: radial-gradient(circle at top, rgba(31, 116, 255, 0.15) 0%, rgba(0, 0, 0, 0.9) 55%, #000 100%);
  --color-card-bg: rgba(26, 26, 26, 0.95);
  --color-outline: rgba(255, 255, 255, 0.2);
  --color-overlay: rgba(31, 116, 255, 0.2);
  --color-stat-text: #ffd700;
  --color-hero-badge-bg: rgba(31, 116, 255, 0.1);
  --color-hero-badge-border: rgba(31, 116, 255, 0.5);
  --color-nav-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  color-scheme: light;
  --color-primary: #1f74ff;
  --color-accent: #dc143c;
  --color-success: #00c853;
  --color-highlight: #1a1a1a;
  --color-surface: #f8f9fa;
  --color-background: #ffffff;
  --color-foreground: #1a1a1a;
  --color-border: rgba(26, 26, 26, 0.12);
  --color-muted: rgba(26, 26, 26, 0.6);
  --color-panel-gradient: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(31, 116, 255, 0.12));
  --color-body-gradient: radial-gradient(circle at top, rgba(31, 116, 255, 0.15) 0%, rgba(248, 249, 250, 0.9) 55%, #ffffff 100%);
  --color-card-bg: rgba(255, 255, 255, 0.95);
  --color-outline: rgba(26, 26, 26, 0.15);
  --color-overlay: rgba(31, 116, 255, 0.08);
  --color-stat-text: #1f74ff;
  --color-hero-badge-bg: rgba(31, 116, 255, 0.15);
  --color-hero-badge-border: rgba(31, 116, 255, 0.3);
  --color-nav-bg: rgba(255, 255, 255, 0.85);
}

body {
  background: var(--color-body-gradient);
  background-attachment: fixed;
  color: var(--color-foreground);
}

.glass-panel {
  background: var(--color-panel-gradient);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.glass-panel--hover:hover {
  border-color: rgba(229, 30, 42, 0.6);
  box-shadow: 0 0 45px rgba(229, 30, 42, 0.35);
}

.neon-border {
  position: relative;
  overflow: hidden;
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(31, 116, 255, 0.8), rgba(229, 30, 42, 0.6));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
}

.shadow-glow-blue {
  box-shadow: 0 0 20px rgba(31, 116, 255, 0.35), 0 15px 30px rgba(0, 0, 0, 0.35);
}

.shadow-glow-red {
  box-shadow: 0 0 25px rgba(229, 30, 42, 0.4), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.shadow-elevated {
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.45);
}

.text-glow-yellow {
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.gradient-underline {
  position: relative;
  display: inline-block;
}

.gradient-underline::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 0;
  right: 0;
  bottom: -6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 116, 255, 0.9), rgba(229, 30, 42, 0.9));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gradient-underline:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.hover-tilt {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-tilt:hover {
  transform: translateY(-8px) rotate3d(1, 1, 0, 3deg);
  box-shadow: 0 18px 36px rgba(31, 116, 255, 0.2);
}

.badge-outline {
  border: 1px solid rgba(255, 215, 0, 0.6);
  color: #ffd700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(24px);
}

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

.timeline-slide {
  animation: slideIn 1s ease forwards;
  opacity: 0;
  transform: translateX(-30px);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.whatsapp-button {
  position: fixed;
  width: 64px;
  height: 64px;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 15px 25px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.07) translateY(-4px);
  box-shadow: 0 22px 45px rgba(37, 211, 102, 0.45);
}

.whatsapp-button::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.15);
  filter: blur(20px);
  z-index: -1;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }
}

[data-accordion] button {
  transition: color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

[data-accordion] button[aria-expanded="true"] {
  color: #ffd700;
  border-left: 3px solid rgba(31, 116, 255, 0.8);
  padding-left: 1rem;
}

.copy-feedback {
  position: absolute;
  top: -24px;
  right: 16px;
  font-size: 0.75rem;
  color: #ffd700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-feedback[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.tmdb-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 320px;
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(31, 116, 255, 0.12);
}

.tmdb-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.tmdb-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tmdb-card:hover img {
  transform: scale(1.08);
}

.tmdb-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}

.tmdb-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.tmdb-card__meta span:last-child {
  color: #ffd700;
}

.pix-card {
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.92), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(31, 116, 255, 0.25);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.pix-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(229, 30, 42, 0.4), transparent 65%);
  transition: opacity 0.3s ease;
}

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

.pix-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pix-card__header img {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.pix-card__cta {
  display: grid;
  gap: 0.75rem;
}

.pix-card__cta button,
.pix-card__cta a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pix-card__cta button:hover,
.pix-card__cta a:hover {
  transform: translateY(-2px);
}

.pix-card__cta .primary {
  background: linear-gradient(135deg, #1f74ff, #1241ff);
  color: #fff;
  box-shadow: 0 15px 30px rgba(31, 116, 255, 0.35);
}

.pix-card__cta .primary:hover {
  box-shadow: 0 20px 38px rgba(31, 116, 255, 0.45);
}

.pix-card__cta .danger {
  background: transparent;
  border: 1px solid rgba(229, 30, 42, 0.6);
  color: #e51e2a;
}

.pix-card__cta .danger:hover {
  background: rgba(229, 30, 42, 0.1);
  box-shadow: 0 0 25px rgba(229, 30, 42, 0.3);
}

.pix-card__cta .outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd700;
}

.pix-card__cta .outline:hover {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.accent-gradient {
  background: linear-gradient(135deg, rgba(31, 116, 255, 0.95), rgba(229, 30, 42, 0.8));
}

.section-divider {
  position: relative;
  height: 1px;
  margin: 4rem 0;
  background: linear-gradient(90deg, transparent, rgba(31, 116, 255, 0.6), transparent);
}

.section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  border-radius: 999px;
  background: rgba(31, 116, 255, 0.15);
  box-shadow: 0 0 25px rgba(31, 116, 255, 0.35);
}

.hero-light {
  position: relative;
  overflow: hidden;
}

.hero-light::before,
.hero-light::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 116, 255, 0.4), rgba(31, 116, 255, 0));
  filter: blur(8px);
  opacity: 0.45;
}

.hero-light::before {
  top: -60px;
  left: -40px;
}

.hero-light::after {
  bottom: -80px;
  right: -20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 116, 255, 0.5);
  background: rgba(31, 116, 255, 0.1);
  color: #ffd700;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffd700;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.gradient-ring {
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(31, 116, 255, 0.9), rgba(229, 30, 42, 0.7));
}

.gradient-ring > span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  background: #000000;
  padding: 0.65rem 1.1rem;
}

.tagline {
  color: rgba(255, 215, 0, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.6em;
  font-size: 0.7rem;
}

.stat-card {
  background: rgba(26, 26, 26, 0.95);
  border-radius: 1rem;
  border: 1px solid rgba(31, 116, 255, 0.2);
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 12px 25px rgba(0, 0, 0, 0.35);
}

.stat-card strong {
  font-size: 2rem;
  color: #ffd700;
  display: block;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: #ffd700;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tooltip:hover::after {
  opacity: 1;
}
