/* =========================================================
   TopUpZone — Home Page Stylesheet
   Hero/banner, product thumbnails, features, steps,
   testimonials and FAQ. Loaded only on index.html.
   ========================================================= */

/* ---------- Hero / Banner ---------- */
.hero {
  --mx: 50%;
  --my: 30%;
  position: relative;
  background: #0b1220;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(120% 140% at 20% -10%, #14213f 0%, var(--navy-900) 46%, var(--navy-950) 100%);
  transition: background 0.25s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 70% at 30% 20%, #000 30%, transparent 90%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-block: 92px 84px;
  min-height: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 53px);
  color: var(--surface-0);
  max-width: 620px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--gold-400);
  position: relative;
  white-space: nowrap;
}

.hero p.lede {
  font-size: 17px;
  color: rgba(231, 237, 245, 0.72);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--surface-0);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-stats div span {
  font-size: 13px;
  color: var(--ink-300);
}

.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-visual-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.4));
}

/* ---------- Marquee ticker ---------- */
.marquee {
  position: relative;
  z-index: 1;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding-block: 16px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-300);
  white-space: nowrap;
}

.marquee-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-400);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--surface-50);
  border-bottom: 1px solid var(--border-100);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
}

.trust-item img {
  width: 20px;
  height: 20px;
}

/* ---------- Product thumbnails ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(47, 111, 237, 0.3);
}

.product-card.is-featured {
  border-color: rgba(245, 166, 35, 0.4);
}

.product-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.35);
}

.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: radial-gradient(120% 120% at 30% 20%, var(--surface-100), var(--surface-50));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}

.product-thumb img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.product-card:hover .product-thumb img {
  transform: scale(1.06) rotate(-2deg);
}

.product-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 17px;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.product-card p {
  font-size: 13.5px;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px dashed var(--border-100);
  padding-top: 14px;
}

.product-price span {
  font-size: 12px;
  color: var(--ink-500);
}

.product-price strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--navy-900);
}

/* ---------- Why us / features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-50);
  border: 1px solid var(--border-100);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(47, 111, 237, 0.28);
  background: var(--surface-0);
}

.feature-index {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--border-100);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon img {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 16.5px;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-500);
}

/* ---------- Audience (Cocok buat siapa) ---------- */
.audience {
  background: var(--surface-50);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  background: var(--surface-0);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.audience-card h3 {
  font-size: 16px;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 14px;
  color: var(--ink-500);
}

/* ---------- Steps (Cara Order) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 30px 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--surface-0);
  overflow: hidden;
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -22px;
  width: 22px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 6px, transparent 6px 10px);
  display: none;
}

@media (min-width: 861px) {
  .step-card:not(:last-child)::after {
    display: block;
  }
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-950);
  background: var(--gold-500);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: rgba(231, 237, 245, 0.68);
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--surface-50);
}

.testimonial-track-wrap {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s var(--ease);
  cursor: grab;
}

.testimonial-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.testimonial-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--surface-0);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 24px;
  user-select: none;
}

.testimonial-rating {
  font-size: 13px;
  color: var(--gold-500);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.testimonial-card p.quote {
  font-size: 14.5px;
  color: var(--ink-700);
  margin-bottom: 18px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--surface-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-user strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy-900);
}

.testimonial-user span {
  font-size: 12.5px;
  color: var(--ink-500);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.testimonial-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.testimonial-arrow:hover {
  background: var(--surface-100);
  border-color: var(--blue-500);
}

.testimonial-arrow svg {
  width: 16px;
  height: 16px;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-100);
  transition: background-color 0.15s ease, width 0.15s ease;
}

.testimonial-dot.is-active {
  background: var(--blue-500);
  width: 22px;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-100);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding-block: 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-900);
}

.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-100);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-700);
  transition: transform 0.2s ease;
}

.faq-icon::before {
  top: 50%;
  left: 5px;
  right: 5px;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--ink-500);
  padding-bottom: 20px;
  max-width: 640px;
}

/* ---------- Final CTA ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -80px;
  top: -100px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
}

.cta-banner h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--surface-0);
  max-width: 480px;
  position: relative;
}

.cta-banner p {
  color: var(--ink-300);
  margin-top: 10px;
  max-width: 460px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 56px 40px;
    text-align: left;
  }

  .hero-visual {
    max-width: 420px;
  }

  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card::after {
    display: none;
  }

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

  .testimonial-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .products-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .hero-stats {
    gap: 22px;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .cta-banner {
    padding: 32px 22px;
  }
}

@media (max-width: 460px) {
  .products-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
