main {
  flex: 1;
  padding: 60px 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
}

.hero {
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin: 0 0 16px 0;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #c084fc, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  letter-spacing: -1px;
}

body.loaded .hero h1 {
  animation: futuristicReveal 0.9s var(--matrix-ease) forwards;
  animation-delay: 0.25s;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
}

body.loaded .hero p {
  animation: futuristicReveal 0.9s var(--matrix-ease) forwards;
  animation-delay: 0.35s;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: rgba(15, 10, 25, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 45px 35px 30px 35px;
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body.loaded .card:nth-child(1) {
  animation: futuristicReveal 1s var(--matrix-ease) forwards;
  animation-delay: 0.48s;
}

body.loaded .card:nth-child(2) {
  animation: futuristicReveal 1s var(--matrix-ease) forwards;
  animation-delay: 0.58s;
}

body.loaded .card:nth-child(3) {
  animation: futuristicReveal 1s var(--matrix-ease) forwards;
  animation-delay: 0.68s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.2));
}

.card-icon svg {
  color: var(--primary);
}

.card h3 {
  margin: 0 0 14px 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.card-text .text-line {
  display: block;
  width: 100%;
}

.card-text .text-line:first-child {
  margin-bottom: 6px;
}

.card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 11px 24px;
  border-radius: 14px;
  width: 100%;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  main {
    padding: 40px 24px;
    gap: 45px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 30px 16px;
    gap: 40px;
  }
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
  }
  .hero p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card {
    padding: 35px 24px 25px 24px;
    border-radius: 22px;
    background: rgba(15, 10, 25, 0.5);
  }
  .card-icon {
    font-size: 42px;
    margin-bottom: 18px;
  }
  .card h3 {
    font-size: 20px;
  }
  .card p {
    font-size: 13.8px;
    margin-bottom: 24px;
  }
  .card-btn {
    padding: 12px 20px;
    font-size: 13px;
    border-radius: 12px;
  }
}
