/**
 * Home Page Styles
 * Professional, Apple-inspired product showcase
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0;
  overflow: hidden;
}

.hero__background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(29, 78, 216, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .hero__gradient {
  background: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(29, 78, 216, 0.03) 0%, transparent 50%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--theme-text-primary);
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: var(--leading-relaxed);
  color: var(--theme-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero__video {
  max-width: 900px;
  margin: 0 auto;
}

.hero__video .video-container {
  box-shadow: var(--theme-shadow-xl);
  border: 1px solid var(--theme-border-subtle);
}

/* ========================================
   PRODUCTS SHOWCASE
   ======================================== */

.products-showcase {
  background: var(--theme-bg-secondary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.product-showcase-card {
  position: relative;
  background: var(--theme-bg-elevated);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.product-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  border-radius: inherit;
}

.product-showcase-card:hover::before {
  opacity: 1;
}

.product-showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-border-medium);
  box-shadow: var(--theme-shadow-xl);
}

.product-showcase-card__badge {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 2;
}

.product-showcase-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  background: var(--theme-bg-tertiary);
  position: relative;
}

.product-showcase-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-showcase-card:hover .product-showcase-card__image img {
  transform: scale(1.05);
}

.product-showcase-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-showcase-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-showcase-card__name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-3);
}

.product-showcase-card__value {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex: 1;
}

.product-showcase-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--theme-border-subtle);
}

.product-showcase-card__price {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-showcase-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--theme-accent-primary);
  font-weight: var(--font-semibold);
  transition: gap var(--transition-fast);
}

.product-showcase-card:hover .product-showcase-card__cta {
  gap: var(--space-3);
}

.product-showcase-card__cta svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   SOCIAL PROOF / STATS
   ======================================== */

.social-proof {
  background: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.stat-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--theme-border-medium);
  box-shadow: var(--theme-shadow-md);
  transform: translateY(-4px);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: var(--radius-xl);
  color: var(--theme-accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card__icon svg {
  width: 100%;
  height: 100%;
}

.stat-card__value {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
  font-weight: var(--font-medium);
}

/* ========================================
   QUICK LINKS
   ======================================== */

.quick-links {
  background: var(--theme-bg-secondary);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.quick-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--theme-bg-elevated);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  transition: all var(--transition-base);
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  border-radius: inherit;
}

.quick-link-card:hover::before {
  opacity: 1;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-border-medium);
  box-shadow: var(--theme-shadow-lg);
}

.quick-link-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: var(--radius-xl);
  color: var(--theme-accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-link-card__icon svg {
  width: 100%;
  height: 100%;
}

.quick-link-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-3);
}

.quick-link-card__description {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex: 1;
}

.quick-link-card__arrow {
  display: inline-flex;
  align-items: center;
  color: var(--theme-accent-primary);
  transition: transform var(--transition-fast);
}

.quick-link-card:hover .quick-link-card__arrow {
  transform: translateX(4px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--theme-bg-secondary);
  border-top: 1px solid var(--theme-border-subtle);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-16);
}

.footer__brand {
  max-width: 400px;
}

.footer__logo {
  width: 80px;
  height: auto;
  margin-bottom: var(--space-4);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer__logo:hover {
  opacity: 1;
}

.footer__description {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--theme-text-primary);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--theme-text-tertiary);
  line-height: var(--leading-relaxed);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
}

.footer__column-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--theme-text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--theme-accent-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .hero__actions {
    flex-direction: column;
  }
  
  .hero__actions .btn {
    width: 100%;
  }
  
  .product-grid,
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.hero__content,
.hero__video,
.product-showcase-card,
.stat-card,
.quick-link-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.hero__content {
  animation-delay: 0.1s;
}

.hero__video {
  animation-delay: 0.2s;
}

.product-showcase-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-showcase-card:nth-child(2) {
  animation-delay: 0.2s;
}

.product-showcase-card:nth-child(3) {
  animation-delay: 0.3s;
}

.product-showcase-card:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__video,
  .product-showcase-card,
  .stat-card,
  .quick-link-card {
    animation: none;
  }
}
