/* Hero */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, oklch(0.550 0.180 353.3 / 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: hero-glow 10s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, oklch(0.400 0.100 280 / 0.05) 0%, transparent 60%);
  pointer-events: none;
  animation: hero-glow-alt 12s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { opacity: 0.5; transform: translate(0, 0) scale(1); }
  to { opacity: 1; transform: translate(2%, 2%) scale(1.08); }
}

@keyframes hero-glow-alt {
  from { opacity: 0.3; transform: translate(0, 0) scale(1); }
  to { opacity: 0.6; transform: translate(-2%, -1%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  max-width: 45ch;
  line-height: 1.9;
}

@media (max-width: 1024px) {
  .hero__desc {
    margin-inline: auto;
  }
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero__actions {
    justify-content: center;
  }
}

.hero__visual {
  position: relative;
  perspective: 1200px;
}

.hero__screenshot {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 25px 80px oklch(0 0 0 / 0.5),
    0 0 0 1px oklch(1 0 0 / 0.05),
    0 0 60px oklch(0.550 0.180 353.3 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.06);
  transform: rotateY(-2deg) rotateX(1deg);
  transition: transform var(--duration-slower) var(--ease-out-expo);
  position: relative;
}

.hero__screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.03) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}

.hero__screenshot:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero__screenshot img {
  width: 100%;
  height: auto;
}

/* Floating decorative elements */
.hero__visual::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 10% 20%, oklch(0.550 0.180 353.3 / 0.06) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, oklch(0.400 0.100 280 / 0.04) 0%, transparent 25%);
  pointer-events: none;
  z-index: -1;
}

/* Pain points section */
.pain-points {
  background: var(--bg-base);
  position: relative;
}

.pain-points::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-md);
}

.pain-point {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-slow) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.pain-point::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.pain-point:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.pain-point:hover::after {
  transform: scaleX(1);
}

.pain-point__problem {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.pain-point__solution {
  font-size: var(--text-base);
  color: var(--brand-primary-light);
  font-weight: 700;
}

/* Modules showcase */
.modules-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--space-md);
}

.module-card {
  display: block;
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--duration-slow) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--brand-primary-ghost), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
}

.module-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px oklch(0 0 0 / 0.3), 0 0 0 1px var(--border-glow);
  color: inherit;
}

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

.module-card__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: oklch(0.550 0.180 353.3 / 0.08);
  border: 1px solid oklch(0.550 0.180 353.3 / 0.15);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  color: var(--brand-primary-light);
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.module-card:hover .module-card__icon {
  background: oklch(0.550 0.180 353.3 / 0.15);
  box-shadow: 0 0 20px oklch(0.550 0.180 353.3 / 0.15);
}

.module-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: var(--space-xs);
}

.module-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.module-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-primary-light);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--duration-normal) var(--ease-out-quart);
}

.module-card:hover .module-card__link {
  gap: var(--space-sm);
}

/* Product screenshots carousel section */
.product-showcase {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-section);
}

.product-showcase::before,
.product-showcase::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: var(--z-above);
  pointer-events: none;
}

.product-showcase::before {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), transparent);
}

.product-showcase::after {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), transparent);
}

.product-showcase__track {
  display: flex;
  gap: var(--space-md);
  animation: scroll-right 50s linear infinite;
  width: max-content;
  padding-block: var(--space-md);
}

@keyframes scroll-right {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase__track { animation: none; flex-wrap: wrap; width: auto; }
  .product-showcase::before, .product-showcase::after { display: none; }
}

.product-showcase__item {
  flex: 0 0 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.product-showcase__item:hover {
  border-color: var(--border-glow);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.product-showcase__item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top right;
}

/* Numbers / Social proof */
.social-proof {
  background: var(--bg-base);
  position: relative;
}

.social-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, oklch(0.550 0.180 353.3 / 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, oklch(0.400 0.100 280 / 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.social-proof__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
  text-align: center;
  position: relative;
}

/* CTA section */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 30%, oklch(0.550 0.180 353.3 / 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at center 70%, oklch(0.400 0.100 280 / 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  margin-bottom: var(--space-lg);
}

.cta-section__desc {
  font-size: var(--text-lg);
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Divider lines between sections */
.section--divided {
  border-top: 1px solid var(--border-subtle);
}
