/* =========================================
   Theme: Cyberpunk Neon
   ========================================= */

/* --- Glassmorphism Utilities --- */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

@supports not (backdrop-filter: blur(12px)) {
  .glass-card {
    background: rgba(15, 15, 35, 0.9);
  }
}

/* --- Neon Text Utilities --- */
.neon-text--cyan {
  color: #fff;
  text-shadow: var(--glow-cyan);
}

.neon-text--pink {
  color: #fff;
  text-shadow: var(--glow-pink);
}

.neon-text--green {
  color: #fff;
  text-shadow: var(--glow-green);
}

.neon-text--gold {
  color: #fff;
  text-shadow: var(--glow-gold);
}

/* --- Neon Border Utilities --- */
.neon-border {
  border: 1px solid var(--neon-cyan);
  box-shadow: inset 0 0 10px rgba(0,255,255,0.1), 0 0 10px rgba(0,255,255,0.3);
}

.neon-border--pink {
  border: 1px solid var(--neon-pink);
  box-shadow: inset 0 0 10px rgba(255,0,255,0.1), 0 0 10px rgba(255,0,255,0.3);
}

.neon-border--green {
  border: 1px solid var(--neon-green);
  box-shadow: inset 0 0 10px rgba(0,255,148,0.1), 0 0 10px rgba(0,255,148,0.3);
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Focus States (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.cta-button:focus-visible {
  outline: 3px solid var(--neon-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.2);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: -2px;
  border-radius: 16px;
}

.lang-toggle__link:focus-visible,
.footer-lang a:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.consent-banner__btn:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* --- Floating Pill Navigation --- */
.floating-nav {
  position: fixed;
  top: 1rem;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: 9999px;
  box-shadow: var(--glass-shadow), 0 0 20px rgba(0, 255, 255, 0.1);
  opacity: 1;
}

.floating-nav--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.floating-nav__logo {
  font-size: 1.5rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  line-height: 1;
}

.floating-nav__link {
  padding: 0.625rem 1rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.floating-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.floating-nav__link:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.floating-nav__cta {
  padding: 0.625rem 1.25rem;
  background: var(--neon-gold);
  color: #0F0F23;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.floating-nav__cta:hover {
  background: #FFE44D;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

.floating-nav__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Hide on very small screens if too cramped */
@media (max-width: 380px) {
  .floating-nav__link:nth-child(2),
  .floating-nav__link:nth-child(3) {
    display: none;
  }
}

/* Desktop: larger nav */
@media (min-width: 768px) {
  .floating-nav {
    gap: 0.5rem;
    padding: 0.625rem;
  }

  .floating-nav__link {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  .floating-nav__cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* --- Hero Section --- */
.section--hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.section--hero .container {
  padding-top: 4rem;
}

/* --- Utilities --- */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
}

.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin: 0 auto var(--space-lg);
  color: #fff;
  display: block;
  width: fit-content;
}

/* --- Hero Section Extras --- */
.hero__title span {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  list-style: none;
  counter-reset: step-counter;
}

.step {
  background: var(--glass-surface);
  border: var(--glass-border);
  backdrop-filter: var(--backdrop-blur);
  padding: var(--space-md);
  border-radius: 24px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.4);
}

.step::before {
  /* Neon glow effect on hover */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 255, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.step:hover::before { opacity: 1; }

.step__icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--neon-cyan);
  font-size: 2rem;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.step__text {
  font-size: 1.25rem;
  font-weight: 600;
}

/* --- Benefits (Why Practice) --- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.benefit-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: var(--space-md);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.benefit-card:hover {
  background: rgba(20, 20, 40, 0.8);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 255, 0.15);
}

.benefit-card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.benefit-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.benefit-card__desc {
  color: var(--color-text-muted);
}

/* --- Scroll Animation Initial States --- */
.step,
.benefit-card,
.phone-mockup,
.faq-item,
.section__title,
.gamification-card,
.stat-item,
.testimonial-card,
.trust-badge {
  opacity: 0;
}

/* Ensure elements are visible if JS fails */
@media (scripting: none) {
  .step,
  .benefit-card,
  .phone-mockup,
  .faq-item,
  .section__title,
  .gamification-card,
  .stat-item,
  .testimonial-card,
  .trust-badge {
    opacity: 1;
  }
}

/* --- Game Preview --- */
.phone-mockup {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 40px;
  border: 8px solid #1a1a1a;
  box-shadow: 0 0 0 2px #333, 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  background: #000;
}

.phone-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-mockup figcaption {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  padding: 1rem;
  font-size: 0.9rem;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Social Proof --- */
.social-proof__counter {
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-surface);
  border: var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s;
}

.faq-item:hover {
  background: rgba(255,255,255,0.05);
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none; /* Hide default marker */
  position: relative;
  padding-right: 3rem;
  font-size: 1.1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--neon-cyan);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item__answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0;
  font-size: 0.95rem;
}

/* --- Gamification Section --- */
.gamification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gamification-card {
  padding: var(--space-md);
  text-align: center;
  transition: all 0.3s ease;
}

.gamification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow), 0 0 30px rgba(0, 255, 255, 0.1);
}

.gamification-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gamification-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gamification-card__value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

.stat-item {
  padding: var(--space-md);
}

.stat-item__value {
  display: block;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial-card:hover {
  border-color: rgba(255, 0, 255, 0.3);
}

.testimonial-card__content {
  flex: 1;
}

.testimonial-card__content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  font-style: italic;
}

.testimonial-card__content p::before {
  content: '"';
  color: var(--neon-pink);
  font-size: 1.5rem;
  font-weight: bold;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-weight: 600;
  color: #fff;
}

.testimonial-card__meta {
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

/* --- Trust Section --- */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.trust-disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-sm);
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
}

/* --- Final CTA --- */
.section--cta {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.08));
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 0, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.section--cta .section__title {
  font-size: clamp(2rem, 6vw, 3rem);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cta-button--large {
  font-size: 1.25rem;
  padding: 1.25rem 3rem;
  width: 100%;
  max-width: 400px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3), 0 0 80px rgba(255, 215, 0, 0.1);
  }
}

.section__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* --- Sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(15, 15, 35, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 900;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.sticky-cta--visible {
  transform: translateY(0);
}

.sticky-cta .cta-button {
  width: 100%;
  max-width: 100%;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.footer-nav__link:hover {
  color: var(--neon-cyan);
}

.footer-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-cyan);
  transition: width 0.2s;
}

.footer-nav__link:hover::after {
  width: 100%;
}

.footer-lang {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-lang a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-lang a:hover {
  color: var(--neon-cyan);
}

.footer__copyright {
  opacity: 0.7;
  margin-top: 1rem;
}

.footer__brand {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Consent Banner --- */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  padding: var(--space-sm);
  z-index: 1000;
  animation: slide-up-fade 0.4s ease-out;
}

.consent-banner__content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 600px) {
  .consent-banner__content {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

.consent-banner__text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.consent-banner__actions {
  display: flex;
  gap: 0.75rem;
}

.consent-banner__btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consent-banner__btn--accept {
  background: var(--neon-cyan);
  color: #0F0F23;
}

.consent-banner__btn--accept:hover {
  background: #66FFFF;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.consent-banner__btn--decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.consent-banner__btn--decline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

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

  .hero__title span {
    animation: none;
  }

  .step:hover,
  .benefit-card:hover,
  .cta-button:hover {
    transform: none;
  }

  /* Show elements immediately without animation */
  .step,
  .benefit-card,
  .phone-mockup,
  .faq-item,
  .section__title {
    opacity: 1;
  }
}

/* --- Mobile / Responsive --- */
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}
