/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, var(--glow-gold), transparent),
    radial-gradient(ellipse 60% 50% at 70% 60%, var(--glow-indigo), transparent);
  opacity: 0.15;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.hero__tagline {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: var(--space-xl);
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-lg);
  animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ════════════════════════════════════════════ */
/* WORKFLOW ANIMATION (Hero)                    */
/* ════════════════════════════════════════════ */
.workflow {
  position: relative;
  padding: var(--space-xl) 0 var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.workflow__stage {
  position: relative;
  width: 700px;
  height: 500px;
}

/* Step labels */
.wf-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-bright);
  opacity: 0;
  white-space: nowrap;
  text-align: center;
}

.wf-sublabel {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* User avatars */
.wf-user {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: 0;
}

.wf-user svg { width: 100%; height: 100%; }

.wf-user--1 { left: 200px; top: 180px; }
.wf-user--2 { left: 320px; top: 180px; }
.wf-user--3 { left: 440px; top: 180px; }

/* Calendar grid */
.wf-calendar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* Calendar cells (stagger in) */
.wf-cell {
  opacity: 0;
}

/* Availability dots (appear on calendar) */
.wf-dot {
  opacity: 0;
}

/* Clock / time picker */
.wf-clock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* Event card */
.wf-event {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  width: 280px;
}

.wf-event svg { width: 100%; height: auto; }

/* Progress connector line */
.wf-connector {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  opacity: 0;
}

/* CTA button */
.wf-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: var(--text-bright);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--glow-indigo);
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  white-space: nowrap;
  transition: box-shadow var(--transition-base);
}

.wf-cta:hover {
  box-shadow: 0 8px 40px var(--glow-indigo), 0 0 60px var(--glow-gold);
}

.wf-cta svg { width: 24px; height: 24px; flex-shrink: 0; }

@keyframes wfGlowPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--glow-indigo); }
  50% { box-shadow: 0 4px 40px var(--glow-indigo), 0 0 60px var(--glow-gold); }
}

.wf-cta--pulse { animation: wfGlowPulse 3s ease-in-out infinite; }

/* Workflow responsive */
@media (max-width: 768px) {
  .workflow__stage { width: 360px; height: 400px; }
  .wf-user { width: 48px; height: 48px; }
  .wf-user--1 { left: 80px; top: 160px; }
  .wf-user--2 { left: 155px; top: 160px; }
  .wf-user--3 { left: 230px; top: 160px; }
  .wf-event { width: 200px; }
}

/* ════════════════════════════════════════════ */
/* CONCEPT SECTIONS                             */
/* ════════════════════════════════════════════ */
.concept {
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.concept__label {
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.concept__desc {
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto var(--space-xl);
}

/* Stage — the animation playground */
.concept__stage {
  position: relative;
  width: 600px;
  height: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clock & Calendar shared */
.c-clock,
.c-calendar {
  position: absolute;
  width: 160px;
  height: 160px;
  opacity: 0;
}

.c-clock svg,
.c-calendar svg {
  width: 100%;
  height: 100%;
}

.c-clock { left: 40px; top: 50%; transform: translateY(-50%); }
.c-calendar { right: 40px; top: 50%; transform: translateY(-50%); }

/* CTA button inside concepts */
.concept__cta {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: var(--text-bright);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--glow-indigo);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.3);
  z-index: 2;
  transition: box-shadow var(--transition-base);
  white-space: nowrap;
}

.concept__cta:hover {
  box-shadow: 0 8px 40px var(--glow-indigo), 0 0 60px var(--glow-gold);
}

.concept__cta svg {
  width: 24px;
  height: 24px;
  display: inline;
  flex-shrink: 0;
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--glow-indigo); }
  50% { box-shadow: 0 4px 40px var(--glow-indigo), 0 0 60px var(--glow-gold); }
}

.concept__cta--pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ── Concept C: morphing bar ── */
.c-bar {
  position: absolute;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--indigo));
  border-radius: var(--radius-full);
  opacity: 0;
}

/* ── Concept D: thread SVG ── */
.c-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Concept B: particle canvas ── */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .concept__stage {
    width: 360px;
    height: 300px;
  }
  .c-clock, .c-calendar {
    width: 110px;
    height: 110px;
  }
  .c-clock { left: 10px; }
  .c-calendar { right: 10px; }
  .hero__title { font-size: var(--text-3xl); }
  .hero__tagline { font-size: var(--text-base); }
  .concept__cta { font-size: var(--text-base); padding: var(--space-sm) var(--space-lg); }
}

@media (max-width: 480px) {
  .concept__stage {
    width: 300px;
    height: 260px;
  }
  .c-clock, .c-calendar {
    width: 90px;
    height: 90px;
  }
  .hero__title { font-size: var(--text-2xl); }
}
