/*
 * AITopUp Taste Elevate — redesign-preserve polish (Neural Blue)
 * Design read: B2C AI commerce, premium dark-tech, existing CSS tokens
 * Dials: VARIANCE 8 / MOTION 6 / DENSITY 4
 */

/* ── Typography & rhythm ─────────────────────────────────────────────── */

.hero-copy__title,
.hero h1.hero-copy__title {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-copy__title .text-display {
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 52ch;
  line-height: 1.65;
  font-weight: 400;
}

.hero-stat__value,
.product-price .price-sale,
.product-price .woocommerce-Price-amount,
.tsum-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-title::after {
  width: 2.25rem;
  height: 2px;
  margin-top: 0.7rem;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.28);
}

.section-desc {
  max-width: 42ch;
  line-height: 1.6;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

/* ── Hero: asymmetric split desktop ──────────────────────────────────── */

@media (min-width: 1024px) {
  .hero--command {
    padding: clamp(2rem, 3vw, 2.75rem) 0 clamp(2rem, 3vw, 3rem);
    display: flex;
    align-items: center;
  }

  .hero--command__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
    width: 100%;
  }

  .hero-copy {
    text-align: left;
    margin: 0;
    max-width: none;
  }

  .hero-copy__title {
    text-align: left;
    font-size: clamp(2.25rem, 3.2vw, 3.25rem);
  }

  .hero--command .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .hero--command .hero-cta {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .hero-orbit-wrap {
    max-width: 26rem;
    margin: 0 0 0 auto;
  }
}

.hero-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.15rem;
  box-shadow: inset 0 1px 0 var(--glass-inset);
}

.hero-stat {
  border-radius: 0.75rem;
}

.hero-stat:active {
  transform: translateY(0) scale(0.99);
}

/* ── Cards & surfaces (tinted shadows) ─────────────────────────────── */

.need-card.glass {
  border-radius: calc(var(--radius) + 2px);
  box-shadow:
    0 1px 2px rgba(10, 14, 26, 0.22),
    0 10px 28px rgba(10, 14, 26, 0.14);
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease;
}

.need-card.glass:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(14, 165, 233, 0.1),
    0 18px 36px rgba(10, 14, 26, 0.2);
}

.need-card-title {
  letter-spacing: -0.015em;
}

.need-card-desc {
  line-height: 1.55;
  max-width: 36ch;
}

.product-card {
  box-shadow:
    0 1px 2px rgba(10, 14, 26, 0.18),
    0 12px 32px rgba(10, 14, 26, 0.12);
}

.product-card-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(to bottom, transparent, var(--card));
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 16px rgba(14, 165, 233, 0.08),
    0 22px 44px rgba(10, 14, 26, 0.22);
}

.product-card-body h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.testimonial-card.glass {
  border-radius: 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.testimonial-card.glass:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(10, 14, 26, 0.16),
    0 16px 40px rgba(14, 165, 233, 0.06);
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.step-card {
  border-radius: calc(var(--radius) + 2px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.step-card:hover {
  transform: translateY(-2px);
}

.step-num {
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.22);
}

/* ── Buttons & chips ─────────────────────────────────────────────────── */

.btn-primary-ultra:active {
  transform: scale(0.98);
}

.need-chip:active {
  transform: scale(0.98);
}

/* ── Section spacing ─────────────────────────────────────────────────── */

@media (min-width: 1024px) {
  .section {
    padding: clamp(4rem, 6vw, 5.5rem) 0;
  }
}

/* ── Light mode ──────────────────────────────────────────────────────── */

[data-theme="light"] .need-card.glass,
[data-theme="light"] .product-card {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 10px 28px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .product-card-image::after {
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.08));
}

/* ── Motion (honor reduced motion) ───────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .need-card.glass,
  .product-card,
  .testimonial-card.glass,
  .step-card {
    animation: taste-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .need-grid .need-card:nth-child(2) { animation-delay: 0.04s; }
  .need-grid .need-card:nth-child(3) { animation-delay: 0.08s; }
  .need-grid .need-card:nth-child(4) { animation-delay: 0.12s; }
}

@keyframes taste-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .need-card.glass,
  .product-card,
  .testimonial-card.glass,
  .step-card {
    animation: none;
  }
}
