/* Homepage — premium single-brand storefront */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-page {
  background: var(--color-bg-deep);
  font-family: var(--font-display);
}

/* Hero */
.home-hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
}
.home-hero .container {
  position: relative;
  z-index: 1;
}
.home-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.home-hero-title-wrap {
  margin-bottom: 1rem;
}
.home-hero-title-line {
  display: block;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}
.home-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}
.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
.home-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

/* Search block */
.home-search-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 0.5rem;
}
.home-search-wrap .search-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 13, 22, 0.85);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-search-wrap .search-form input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.home-search-wrap .search-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Featured categories grid */
.home-categories-section {
  padding: var(--space-section) 0;
}
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.home-cat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(18, 16, 26, 0.9);
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.home-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-glow);
}
.home-cat-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: #1a1825;
}
.home-cat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.home-cat-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
  margin: 0 0 1rem;
}
.home-cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-faint);
}
.home-cat-meta span.price {
  color: #a5b4fc;
  font-weight: 600;
}

/* Popular products section */
.home-popular-section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-border-subtle);
}
.home-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* How it works */
.home-how-section {
  padding: var(--space-section) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
  border-top: 1px solid var(--color-border-subtle);
}
.home-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.home-how-step {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(14, 12, 21, 0.85);
  border: 1px solid var(--color-border-subtle);
  text-align: left;
}
.home-how-step .step-num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient-brand);
  margin-bottom: 1rem;
}
.home-how-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.home-how-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Stats strip */
.home-stats-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--color-border-subtle);
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .home-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.home-stat-item {
  text-align: center;
  padding: 1.25rem;
}
.home-stat-item i {
  font-size: 1.75rem;
  color: #818cf8;
  margin-bottom: 0.75rem;
  display: block;
}
.home-stat-val {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.home-stat-label {
  font-size: 0.9rem;
  color: #60a5fa;
  margin-top: 0.35rem;
}

/* Why us / value */
.home-value-section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-border-subtle);
}
.home-value-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .home-value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* FAQ — advanced accordion */
.home-faq-section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-border-subtle);
}
.home-faq-section .section-label {
  color: #a5b4fc;
}
.home-faq-section .section-title-home {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}
.home-faq-section #faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 680px;
  margin: 0 auto;
}
.faq-item {
  background: rgba(18, 16, 26, 0.9);
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.25);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}
.faq-question:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 2px;
}
.faq-question-text {
  flex: 1;
  line-height: 1.4;
}
.faq-chevron {
  flex-shrink: 0;
  color: #818cf8;
  transition: transform 0.25s ease;
}
.faq-question.is-open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  border-top: 1px solid var(--color-border-subtle);
}
.faq-answer-inner {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.faq-answer-inner p {
  margin: 0 0 0.75rem;
}
.faq-answer-inner p:last-child {
  margin-bottom: 0;
}
.faq-answer-inner a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer-inner a:hover {
  color: #a5b4fc;
}
@media (max-width: 640px) {
  .faq-question {
    padding: 1rem 1.125rem;
    font-size: 0.95rem;
  }
  .faq-answer-inner {
    padding: 0.875rem 1.125rem 1rem;
    font-size: 0.9rem;
  }
  .home-support-card {
    padding: 1.5rem 1.25rem;
  }
  .home-support-actions {
    flex-direction: column;
  }
  .home-support-or {
    display: none;
  }
}

/* Support — clean CTA, no decorative shapes */
.home-support-section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-border-subtle);
}
.home-support-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 2rem;
  background: rgba(18, 16, 26, 0.85);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}
.home-support-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.home-support-slogan {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.home-support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.home-support-or {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Final CTA */
.home-cta-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  margin: 0 1rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.12) 50%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  text-align: center;
}
.home-cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
}
.home-cta-section p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

/* Swiper overrides for homepage */
.home-popular-section .swiper-products {
  padding-bottom: 3rem;
}
.home-popular-section .swiper-button-next,
.home-popular-section .swiper-button-prev {
  color: #818cf8;
}
