@use 'variables' as *;
@use 'mixins' as *;

// ━━━ Marketing Page Styles ━━━

// Standard section spacing
.marketing-section {
  padding-block: 3.5rem;
}

// Dark grid hero background
.hero-dark-grid {
  position: relative;
  background: $dark-bg;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  }

  // Gradient orbs
  &::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba($primary, 0.15) 0%, transparent 70%);
    pointer-events: none;
  }

  // Force light text since background is always dark
  color: #fff;

  .text-medium-emphasis {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .text-disabled {
    color: rgba(255, 255, 255, 0.4) !important;
  }

  .text-high-emphasis {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  // Outlined buttons need visible borders on dark bg
  .v-btn--variant-outlined {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
  }
}

// Glass morphism cards — theme-aware
.glass-card {
  background: rgba(var(--v-theme-surface), 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
  border-radius: $radius-lg;
  transition: transform $transition-base, box-shadow $transition-base;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

// Animated gradient text — theme-aware
.hero-gradient-text {
  background: linear-gradient(135deg, rgb(var(--v-theme-primary)) 0%, $info 50%, rgb(var(--v-theme-primary)) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shine 3s ease infinite;
}

// Card hover effect
.feature-card-hover {
  transition: transform $transition-base, box-shadow $transition-base;

  &:hover {
    transform: translateY(-4px);
    box-shadow: $shadow-lg;
  }
}

// Fade-in-up animation
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s ease forwards;
}

// Alternating section background
.section-alt-bg {
  background-color: rgba(var(--v-theme-on-surface), var(--v-hover-opacity));
}

// Hero section
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: 88px 56px;
}

// Mega footer
.mega-footer {
  background: $dark-bg;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 64px;

  .footer-title {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
  }

  .footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color $transition-fast;
    display: block;
    padding-block: 4px;

    &:hover {
      color: rgba(255, 255, 255, 0.9);
    }
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-block: 24px;
    margin-top: 48px;
  }
}

// Scroll reveal utility
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  &.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
