/* ============================================
   FlowStash — Home Page
   Cinematic hero · Editorial sections
   ============================================ */

/* ── Hero Section ──
   Dramatic, typographic, generous space */
.hero {
  position: relative;
  text-align: center;
  padding: var(--space-40) 0 var(--space-24);
  overflow: hidden;
}

/* Subtle radial glow — cinematic ambiance */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 97, 45, 0.04) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 130%,
    rgba(232, 97, 45, 0.02) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-4);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-10);
  animation: fadeIn var(--duration-slow) var(--ease-cinematic) both;
  letter-spacing: var(--tracking-wide);
}

.hero__badge-dot {
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
  animation: fadeIn var(--duration-slower) var(--ease-cinematic) 100ms both;
}

.hero__title-accent {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #f09a6c 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-12);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn var(--duration-slower) var(--ease-cinematic) 250ms both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  animation: fadeIn var(--duration-slower) var(--ease-cinematic) 400ms both;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-24) 0 var(--space-16);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-3xl);
  }
}

/* ── Video Section ── */
.video-section {
  padding: var(--space-6) 0 var(--space-24);
}

.video-section__wrapper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.video-section__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  justify-content: center;
}

.video-section__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.video-section__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section__info {
  text-align: left;
}

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

.video-section__role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Value Props ── */
.value-props {
  padding: var(--space-20) 0;
}

.value-props__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.value-card {
  padding: var(--space-8);
  text-align: center;
  background: transparent;
  border: none;
}

.value-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.value-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: var(--text-xl);
}

.value-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

.value-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Featured Products ── */
.featured {
  padding: var(--space-20) 0;
}

.featured__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-10);
}

.featured__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

/* ── Author CTA ── */
.author-cta {
  padding: var(--space-20) 0;
}

.author-cta__card {
  padding: var(--space-16) var(--space-10);
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

/* Subtle top-edge glow */
.author-cta__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 97, 45, 0.15) 50%,
    transparent 100%
  );
}

.author-cta__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tighter);
}

.author-cta__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

/* ── How It Works ── */
.how-it-works {
  padding: var(--space-20) 0;
}

.how-it-works__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.step-card {
  text-align: center;
  padding: var(--space-6);
  background: transparent;
  border: none;
}

.step-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.step-card__number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
}

.step-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-tight);
}

.step-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Stats / Trust Bar ── */
.trust-bar {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-20);
}

.trust-stat {
  text-align: center;
}

.trust-stat__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: var(--tracking-tight);
}

.trust-stat__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .trust-bar__inner {
    gap: var(--space-10);
  }

  .trust-stat__value {
    font-size: var(--text-xl);
  }
}

@media (max-width: 480px) {
  .trust-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
