/* ===========================
   My Inner Window - Homepage
   =========================== */

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(45, 212, 191, 0.06) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

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

.hero__quote {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-tight);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero__quote span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Scroll Indicator ---- */
.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeUp 0.8s ease forwards 0.8s;
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---- Tests Section ---- */
.tests-section {
  background: var(--bg-primary);
}

.test-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.test-card .card__icon {
  font-size: 1.5rem;
}

.test-card .card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
}

.test-card .card__duration {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---- Test Card Highlight (on scroll-to) ---- */
.card--highlight {
  animation: cardPulse 0.8s ease;
}

@keyframes cardPulse {
  0% { transform: scale(1); box-shadow: var(--shadow-card); }
  40% { transform: scale(1.03); box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(45, 212, 191, 0.15); }
  100% { transform: scale(1); box-shadow: var(--shadow-card); }
}

/* ---- How It Works ---- */
.how-section {
  background: var(--bg-secondary);
}

.step {
  text-align: center;
  padding: var(--space-xl);
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-button);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: white;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-glow);
}

.step__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.step__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(45, 212, 191, 0.05));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-banner h2 {
  margin-bottom: var(--space-md);
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-4xl) var(--space-lg) var(--space-3xl);
  }

  .hero__quote {
    font-size: var(--fs-2xl);
  }

  .hero__scroll {
    display: none;
  }
}
