/* ==========================================================================
   Page Styles
   Alpha & Lima - Site Vitrine
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Account for fixed nav */
  overflow: hidden;
  background: linear-gradient(135deg, #fafafa 0%, #f0eeff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(108, 92, 231, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__badge-icon {
  font-size: var(--text-lg);
}

.hero__badge-text {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.hero__title-highlight {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero__stats {
  display: flex;
  gap: var(--space-8);
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(108, 92, 231, 0.3));
}

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

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__image {
    order: -1;
    margin-bottom: var(--space-8);
  }

  .hero__image img {
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 60px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }

  .hero__stat {
    text-align: center;
  }
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
  background-color: var(--color-surface);
  padding: var(--space-24) 0;
}

.features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.features__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.features__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Animation classes */
.features__grid .card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.features__grid .card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Features Responsive */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
  position: relative;
  background: var(--color-primary-gradient);
  padding: var(--space-24) 0;
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cta__title {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-4);
}

.cta__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta .btn--store img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.cta .btn--store:hover img {
  opacity: 1;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal {
  padding-top: 120px;
  padding-bottom: var(--space-24);
  background-color: var(--color-background);
  min-height: 100vh;
}

.legal__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.legal__header {
  margin-bottom: var(--space-12);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  transition: color var(--transition-fast);
}

.legal__back:hover {
  color: var(--color-primary);
}

.legal__back svg {
  width: 16px;
  height: 16px;
}

.legal__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.legal__date {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.legal__content {
  background-color: var(--color-surface);
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.legal__content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.legal__content h2:first-child {
  margin-top: 0;
}

.legal__content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal__content p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.legal__content ul,
.legal__content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal__content li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
  list-style: disc;
}

.legal__content ol li {
  list-style: decimal;
}

.legal__content .warning {
  background-color: rgba(253, 203, 110, 0.2);
  border-left: 4px solid var(--color-warning);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

.legal__content .warning strong {
  color: var(--color-text);
}

/* Legal Responsive */
@media (max-width: 640px) {
  .legal {
    padding-top: 100px;
  }

  .legal__content {
    padding: var(--space-6);
  }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  background: linear-gradient(135deg, #fafafa 0%, #f0eeff 100%);
}

.error-page__container {
  max-width: 500px;
}

.error-page__code {
  font-size: 8rem;
  font-weight: var(--font-weight-bold);
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-page__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.error-page__message {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade variations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}

.animate-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

.animate-fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
