/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 4rem 2rem 3rem;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    var(--tt-hero-gradient-start) 0%,
    var(--tt-hero-gradient-end) 100%
  );
}

.heroGlow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(99, 102, 241, 0.04) 50%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.heroContent {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.heroBadge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ifm-color-primary);
  background: var(--tt-glow-color);
  border: 1px solid var(--ifm-color-primary-lightest);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

[data-theme='dark'] .heroBadge {
  border-color: rgba(129, 140, 248, 0.2);
}

.heroTitle {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

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

.heroSubtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--tt-text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.heroActions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.heroPrimary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ifm-color-primary), var(--ifm-color-primary-dark));
  border-radius: 0.625rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.heroPrimary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  color: #ffffff;
  text-decoration: none;
}

/* ========================================
   Categories Section
   ======================================== */
.categories {
  padding: 3.5rem 0 4.5rem;
}

.categoriesHeader {
  text-align: center;
  margin-bottom: 2.5rem;
}

.categoriesTitle {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.categoriesSubtitle {
  font-size: 1rem;
  color: var(--tt-text-muted);
}

.categoriesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ========================================
   Category Cards
   ======================================== */
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--tt-bg-surface-raised);
  border: 1px solid var(--tt-border-color);
  border-radius: 0.875rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ifm-color-primary), var(--ifm-color-primary-light));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  border-color: var(--ifm-color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--tt-glow-color);
  text-decoration: none;
  color: inherit;
}

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

.cardIcon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.cardTitle {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cardDescription {
  font-size: 0.875rem;
  color: var(--tt-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.cardArrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ifm-color-primary);
  transition: transform 0.2s ease;
}

.card:hover .cardArrow {
  transform: translateX(4px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
  .hero {
    min-height: 400px;
    padding: 3rem 1.25rem 2rem;
  }

  .heroTitle {
    font-size: 2.25rem;
  }

  .heroSubtitle {
    font-size: 1rem;
  }

  .categoriesGrid {
    grid-template-columns: 1fr;
  }
}
