/* ═══════════════════════════════════════════
   NEXMENT — home.css
   Hero, Bestsellers, Why, How It Works,
   Creator Banner, FAQ, Footer
═══════════════════════════════════════════ */

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
  50%       { box-shadow: 0 0 0 7px rgba(124,58,237,0); }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 24px 68px;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(124,58,237,0.13) 0%, transparent 70%);
  top: -100px; right: -120px;
}
.hero-orb-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(168,85,247,0.09) 0%, transparent 70%);
  bottom: -70px; left: -90px;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(124,58,237,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0; pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 660px; width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-pale);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
  animation: fadeUp 0.5s ease both;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
  animation: fadeUp 0.55s 0.07s ease both;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--accent) 10%, var(--accent-light) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desc */
.hero-desc {
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.75;
  animation: fadeUp 0.58s 0.13s ease both;
}

/* Search */
.hero-search {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.6s 0.18s ease both;
  margin-bottom: 20px;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-sm);
}
.search-icon {
  position: absolute; left: 18px;
  color: var(--text-muted); font-size: 14px;
  pointer-events: none; z-index: 1;
}
.hero-search-input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  padding: 13px 12px 13px 44px;
  min-width: 0;
}
.hero-search-input::placeholder { color: var(--text-muted); }
.hero-search-input::-webkit-search-cancel-button { display: none; }
.hero-search-btn {
  flex-shrink: 0;
  padding: 9px 20px;
  margin: 4px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.hero-search-btn:hover {
  background: var(--accent-mid);
  box-shadow: 0 4px 14px var(--accent-glow);
  transform: translateY(-1px);
}

/* Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.64s 0.24s ease both;
}

/* ══════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════ */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: var(--accent-pale);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.section-label.light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-footer-link {
  text-align: center;
  margin-top: 40px;
}

/* ══════════════════════════════════════════
   BESTSELLERS
══════════════════════════════════════════ */
.bestsellers { background: var(--bg); }

/* Products grid — responsive column count */
.products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Skeleton */
.product-skeleton {
  height: 320px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--surface-2) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.product-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
}
.product-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent-pale), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--accent-border);
}

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  gap: 10px;
}
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.product-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.product-buy-btn {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.product-buy-btn:hover {
  background: var(--accent-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Error state */
.products-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.products-error i { font-size: 28px; margin-bottom: 12px; color: var(--accent-border); }
.products-error p { font-size: 14px; }
.products-error a { color: var(--accent); font-weight: 600; }

/* ══════════════════════════════════════════
   WHY CHOOSE NEXMENT
══════════════════════════════════════════ */
.why-section { background: var(--bg-alt); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}
.why-icon {
  width: 48px; height: 48px;
  background: var(--accent-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-section { background: var(--bg); }

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}
.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.step-icon {
  width: 52px; height: 52px;
  background: var(--accent-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin: 0 auto 16px;
}
.step-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step-connector {
  font-size: 18px;
  color: var(--accent-border);
  padding: 0 8px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CREATOR BANNER
══════════════════════════════════════════ */
.creator-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 60%, #4c1d95 100%);
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.creator-orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px; right: -100px;
  pointer-events: none;
}
.creator-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.creator-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.creator-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  line-height: 1.7;
}
.creator-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.creator-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  background: #f5f3ff;
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq-section { background: var(--bg-alt); }
.faq-inner { max-width: 760px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--accent-border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
}
.faq-a.open {
  max-height: 300px;
}
.faq-a p {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-a a { color: var(--accent); font-weight: 600; }
.faq-a a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.72);
  padding: 60px 24px 0;
  margin-top: 0;
}
.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.footer-tagline {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 9px;
  transition: color 0.18s;
}
.footer-col a:hover { color: #fff; }

/* Bottom line */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
}
.footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}
.footer-made {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-made .fa-heart { color: #f87171; font-size: 11px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero { padding: calc(var(--nav-h) + 40px) 20px 52px; }
  .section { padding: 60px 20px; }

  .steps-grid { gap: 16px; }
  .step-connector { display: none; }
  .step-card { max-width: 100%; min-width: 160px; }

  .creator-inner { flex-direction: column; text-align: center; }
  .creator-text p { margin: 0 auto; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-tagline { max-width: 100%; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: calc(var(--nav-h) + 28px) 16px 44px; }
  .hero-title { letter-spacing: -0.8px; }
  .hero-search { max-width: 100%; }
  .hero-search-btn { padding: 9px 14px; font-size: 13px; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

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

  .faq-q { font-size: 13.5px; padding: 16px 16px; }
  .faq-a p { padding: 0 16px 14px; }

  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
