/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(244,241,234,0.45) 0%, rgba(244,241,234,0.15) 45%, rgba(244,241,234,0.55) 100%),
    linear-gradient(to bottom, rgba(244,241,234,0.30) 0%, rgba(244,241,234,0.10) 30%, rgba(244,241,234,0.45) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  max-width: 880px;
}

/* Cyclic headline */
.headline {
  position: relative;
  height: clamp(56px, 10vw, 100px);
  width: 100%;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.headline .line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 4.6vw, 52px);
  line-height: 1.15;
  color: var(--fg);
  opacity: 0;
  transform: translateY(16px);
  animation: cycle 12s infinite;
  will-change: opacity, transform;
  padding: 0 8px;
  text-shadow: 0 1px 20px rgba(244, 241, 234, 0.9);
}

.headline .line:nth-child(1) { animation-delay: 0s; }
.headline .line:nth-child(2) { animation-delay: 3s; }
.headline .line:nth-child(3) { animation-delay: 6s; }
.headline .line:nth-child(4) { animation-delay: 9s; }

@keyframes cycle {
  0%   { opacity: 0; transform: translateY(16px); }
  3%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  25%  { opacity: 0; transform: translateY(-16px); }
  100% { opacity: 0; transform: translateY(-16px); }
}

/* Lead */
.lead {
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--muted-strong);
  max-width: 620px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 12px rgba(244,241,234,0.7);
  animation: fadeUp 0.8s ease 0.3s both;
}

/* Feature chips */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.45s both;
}

.feature {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* CTA */
.cta {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b8a9d9, #8fc9b8);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(168, 155, 200, 0.35);
  animation: fadeUp 0.8s ease 0.6s both;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(168, 155, 200, 0.5);
  color: #fff;
}

/* ================= Categories ================= */
.categories {
  padding: 80px 0;
}

.categories h2 {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(168, 155, 200, 0.25);
  border-color: var(--accent);
}

.category-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
}

/* ================= Animations ================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  .headline .line { animation: none; opacity: 1; transform: none; }
  .headline .line:nth-child(n+2) { display: none; }
  .lead, .features, .cta { animation: none; }
  #hex { display: none; }
  .hero { background: radial-gradient(circle at 50% 40%, #faf8f3 0%, #f4f1ea 70%); }
}

/* ================= Mobile ================= */
@media (max-width: 640px) {
  .categories { padding: 60px 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { padding: 24px 14px; }
}