/* ==========================================================================
   Capitan Homepage — light mockup layout (brand palette preserved)
   indigo #6366F1 · violet · pink #EC4899 / #C026D3 · accent red
   ========================================================================== */

body[data-page="home"] .app-main > .section {
  padding-block: clamp(28px, 4.5vw, 52px);
}

body[data-page="home"] .app-main > .section.section--compact {
  padding-block: clamp(10px, 2vw, 20px);
}

body[data-page="home"] .app-main > .section.section--cta {
  padding-block: clamp(32px, 5vw, 60px);
}

/* ---- Section headers ---- */
body[data-page="home"] .section__header {
  margin-bottom: clamp(18px, 3vw, 28px);
}

body[data-page="home"] .section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

body[data-page="home"] .section__title {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.02em;
}

body[data-page="home"] .section__title::before {
  width: 5px;
  height: 72%;
  box-shadow: 0 0 14px var(--color-indigo-glow);
}

body[data-page="home"] .section__subtitle {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   HERO — full-bleed image + text overlay + single CTA
   ========================================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #0F172A;
}

.home-hero__viewport {
  position: relative;
  min-height: clamp(360px, 48vw, 600px);
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

/* Keep outgoing slide painted under the incoming one during fade */
.home-hero__slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide {
    transition: none;
  }
}

.home-hero__media {
  position: absolute;
  inset: 0;
  background: #0F172A;
}

.home-hero__media picture,
.home-hero__media img,
.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to left, rgba(5, 10, 28, 0.9) 0%, rgba(7, 13, 34, 0.72) 35%, rgba(7, 13, 34, 0.08) 72%),
    linear-gradient(0deg, rgba(5, 10, 28, 0.46) 0%, transparent 48%);
}

.home-hero__content {
  width: 100%;
  padding-block: clamp(36px, 6vw, 64px);
  color: #fff;
  max-width: var(--container-max);
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  max-width: 16ch;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.home-hero__text {
  margin: 0 0 22px;
  max-width: 44ch;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__cta {
  min-height: 48px;
  padding-inline: 26px;
  gap: 8px;
  background: linear-gradient(135deg, #EC4899 0%, #C026D3 45%, #7C3AED 100%);
  box-shadow: 0 12px 32px rgba(192, 38, 211, 0.35);
  border: none;
  color: #fff;
}

.home-hero__cta:hover {
  color: #fff;
  box-shadow: 0 16px 40px rgba(192, 38, 211, 0.42);
}

.home-hero__cta [data-lucide] {
  width: 18px;
  height: 18px;
}

.home-hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.home-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease, border-radius 200ms ease;
}

.home-hero__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

@media (max-width: 767px) {
  .home-hero__viewport {
    min-height: clamp(420px, 128vw, 560px);
  }

  .home-hero__overlay {
    background:
      linear-gradient(0deg, rgba(5, 10, 28, 0.96) 0%, rgba(5, 10, 28, 0.76) 42%, rgba(5, 10, 28, 0.08) 78%);
    align-items: flex-end;
  }

  .home-hero__media img,
  .home-hero__img {
    object-position: 28% center;
  }

  .home-hero__content {
    text-align: center;
    padding-block: 28px 40px;
  }

  .home-hero__title,
  .home-hero__text {
    margin-inline: auto;
    max-width: none;
  }

  .home-hero__cta {
    width: 100%;
    max-width: 280px;
  }

  .home-hero__dots {
    bottom: 12px;
  }
}

[data-theme="dark"] .home-hero {
  background: #0B1220;
}

/* ==========================================================================
   VISUAL CATEGORY BENTO
   ========================================================================== */
.home-cats {
  overflow: hidden;
}

.home-cats__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 18px;
}

.home-cats__header h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
}

.home-cats__eyebrow {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.home-cats__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-cats__all svg {
  width: 16px;
  height: 16px;
}

.home-cats__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.home-cats__item {
  position: relative;
  grid-column: span 3;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius-xl) + 2px);
  color: #fff;
  background: #111827;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.13);
  isolation: isolate;
  text-decoration: none;
  transition: transform 240ms var(--ease-out, ease), box-shadow 240ms ease;
}

.home-cats__item:nth-child(-n + 2) {
  grid-column: span 6;
  min-height: 280px;
}

.home-cats__item:hover {
  transform: translateY(-6px);
  color: #fff;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.24);
}

.home-cats__media,
.home-cats__shade {
  position: absolute;
  inset: 0;
}

.home-cats__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms var(--ease-out, ease);
}

.home-cats__item:hover .home-cats__media img {
  transform: scale(1.055);
}

.home-cats__shade {
  z-index: 1;
  background:
    linear-gradient(to left, rgba(6, 10, 27, 0.92) 0%, rgba(6, 10, 27, 0.55) 48%, rgba(6, 10, 27, 0.04) 82%),
    linear-gradient(0deg, rgba(6, 10, 27, 0.7), transparent 55%);
}

.home-cats__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: min(65%, 290px);
  height: 100%;
  min-height: inherit;
  padding: clamp(16px, 2.5vw, 26px);
}

.home-cats__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background var(--transition-fast);
}

.home-cats__item:hover .home-cats__icon {
  background: rgba(255, 255, 255, 0.22);
}

.home-cats__icon [data-lucide] {
  width: 19px;
  height: 19px;
}

.home-cats__label {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.home-cats__description {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.home-cats__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
}

.home-cats__cta svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.home-trust__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 6px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.home-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  min-width: 0;
}

.home-trust__item + .home-trust__item {
  border-inline-start: 1px solid rgba(99, 102, 241, 0.1);
}

.home-trust__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
}

.home-trust__icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.home-trust__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-trust__text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

.home-trust__text span {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   BANNERS / PRODUCTS / CARDS
   ========================================================================== */
body[data-page="home"] .banner-grid {
  gap: clamp(14px, 2vw, 20px);
}

body[data-page="home"] .promo-banner {
  min-height: 210px;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-page="home"] .promo-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(99, 102, 241, 0.26);
}

body[data-page="home"] .promo-banner__content {
  min-height: 210px;
  padding: clamp(16px, 2.5vw, 24px);
}

body[data-page="home"] .home-products .section__title::before {
  background: linear-gradient(180deg, #16A34A, #15803D);
}

/* Bestsellers — single green deal strip (one product per slide, horizontal) */
.deal-strip {
  --deal-green: #16A34A;
  --deal-green-dark: #15803D;
  --deal-green-soft: rgba(22, 163, 74, 0.12);
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 6px;
  padding: clamp(10px, 1.8vw, 16px);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #F4FBF6 100%);
  border: 1px solid rgba(22, 163, 74, 0.18);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.08);
  overflow: hidden;
}

.deal-strip__viewport {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(148px, 22vw, 190px);
  overflow: hidden;
}

.deal-strip__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: clamp(12px, 2.2vw, 22px);
  align-items: center;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.deal-strip__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.deal-strip__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: clamp(120px, 20vw, 168px);
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(22, 163, 74, 0.1);
  overflow: hidden;
  text-decoration: none;
}

.deal-strip__img,
.deal-strip__media picture,
.deal-strip__media img {
  width: 100%;
  height: 100%;
  max-height: clamp(120px, 20vw, 168px);
  object-fit: contain;
  display: block;
}

.deal-strip__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--deal-green);
  opacity: 0.4;
}

.deal-strip__placeholder i,
.deal-strip__placeholder svg {
  width: 40px;
  height: 40px;
}

.deal-strip__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding-inline: 2px 8px;
  min-width: 0;
}

.deal-strip__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--deal-green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}

.deal-strip__badge--soft {
  background: var(--deal-green-soft);
  color: var(--deal-green-dark);
}

.deal-strip__name {
  color: #0B1220;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-strip__name:hover {
  color: var(--deal-green-dark);
}

.deal-strip__cat {
  margin: 0;
  color: #6B7280;
  font-size: 12.5px;
}

.deal-strip__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 4px;
}

.deal-strip__old {
  color: #9CA3AF;
  font-size: 12.5px;
  text-decoration: line-through;
}

.deal-strip__price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--deal-green) 0%, var(--deal-green-dark) 100%);
  color: #fff !important;
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
  font-variant-numeric: tabular-nums;
}

.deal-strip__price:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.deal-strip__price .btn__cart-icon,
.deal-strip__price .btn__cart-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.deal-strip__cta--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.deal-strip__nav {
  grid-row: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #4B5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
  z-index: 2;
}

.deal-strip__nav:hover {
  color: var(--deal-green-dark);
  background: var(--deal-green-soft);
  transform: scale(1.04);
}

.deal-strip__nav svg,
.deal-strip__nav i {
  width: 18px;
  height: 18px;
}

.deal-strip__nav--prev { grid-column: 1; }
.deal-strip__nav--next { grid-column: 3; }

.deal-strip__dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 12px;
}

.deal-strip__dot {
  width: 16px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.22);
  padding: 0;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.deal-strip__dot.is-active {
  width: 26px;
  background: var(--deal-green);
}

.hm-link--green {
  color: #15803D;
}

.hm-link--green:hover {
  color: #166534;
}

@media (max-width: 767px) {
  .deal-strip {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 12px;
  }

  .deal-strip__viewport {
    grid-column: 1;
    min-height: 300px;
  }

  .deal-strip__slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    align-content: start;
    transform: translateY(10px);
  }

  .deal-strip__slide.is-active {
    transform: translateY(0);
  }

  .deal-strip__media {
    min-height: 160px;
  }

  .deal-strip__body {
    align-items: stretch;
  }

  .deal-strip__pricing {
    flex-direction: column;
    align-items: stretch;
  }

  .deal-strip__price {
    width: 100%;
  }

  .deal-strip__nav {
    position: absolute;
    top: 88px;
    width: 34px;
    height: 34px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  }

  .deal-strip__nav--prev { right: 10px; left: auto; grid-column: auto; }
  .deal-strip__nav--next { left: 10px; right: auto; grid-column: auto; }

  .deal-strip__dots {
    grid-column: 1;
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deal-strip__slide {
    transition: none;
  }
}
body[data-page="home"] .product-card:hover .product-card__image picture img {
  transform: scale(1.05);
}

body[data-page="home"] .product-card__price {
  color: var(--color-accent-dark);
}

body[data-page="home"] .service-card {
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: calc(var(--radius-lg) + 2px);
}

body[data-page="home"] .service-card:hover {
  border-color: rgba(99, 102, 241, 0.24);
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.12);
}

body[data-page="home"] .service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(192, 38, 211, 0.08));
}

body[data-page="home"] .blog-card {
  padding: 14px;
  border-radius: calc(var(--radius-lg) + 2px);
}

body[data-page="home"] .blog-card:hover {
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.12);
}

body[data-page="home"] .blog-card__image {
  margin-bottom: 14px;
  overflow: hidden;
}

body[data-page="home"] .blog-card:hover .blog-card__image img,
body[data-page="home"] .blog-card:hover .blog-card__image .blog-card__img {
  transform: scale(1.04);
}

body[data-page="home"] .blog-card__image img,
body[data-page="home"] .blog-card__image .blog-card__img {
  transition: transform 420ms var(--ease-out);
}

/* Testimonials */
.testimonial-card {
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: calc(var(--radius-lg) + 2px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset-inline-end: -20px;
  top: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  pointer-events: none;
}

.testimonial-card__stars {
  color: #F59E0B;
  letter-spacing: 2px;
  font-size: 14px;
}

.testimonial-card__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
}

.testimonial-card__name {
  font-size: 13px;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

/* CTA */
body[data-page="home"] .cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 4vw, 40px);
  border-radius: calc(var(--radius-xl) + 4px);
  border: 1px solid rgba(99, 102, 241, 0.16);
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 70% at 90% 80%, rgba(236, 72, 153, 0.08), transparent 50%),
    #fff;
  box-shadow: 0 24px 56px rgba(99, 102, 241, 0.08);
}

.cta-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary-dark);
  border: 1px solid rgba(99, 102, 241, 0.16);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.cta-banner__eyebrow [data-lucide] {
  width: 14px;
  height: 14px;
}

body[data-page="home"] .cta-banner h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 10px;
}

.cta-banner__text {
  color: var(--color-text-muted);
  font-size: clamp(14px, 1.5vw, 16px);
  margin-bottom: 24px;
  max-width: 42ch;
  margin-inline: auto;
  line-height: 1.7;
}

.cta-banner__actions {
  gap: 12px;
}

.cta-banner__actions .btn {
  min-height: 46px;
  padding-inline: 24px;
}

/* ==========================================================================
   DARK MODE — same layout, richer surfaces (brand colors kept)
   ========================================================================== */
[data-theme="dark"] .home-hero {
  background: #0B1220;
}

[data-theme="dark"] .home-hero__title {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

[data-theme="dark"] .home-cats__item,
[data-theme="dark"] .home-trust__bar,
[data-theme="dark"] .testimonial-card {
  background: rgba(26, 35, 50, 0.85);
  border-color: rgba(129, 140, 248, 0.16);
}

.home-seo-links__box {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: calc(var(--radius-xl) + 2px);
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.08), transparent 40%),
    #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.home-seo-links__head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
}

.home-seo-links__head p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.home-seo-links__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-seo-links__grid a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: var(--radius-full);
  color: var(--color-text);
  background: rgba(99, 102, 241, 0.05);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.home-seo-links__grid a:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .home-seo-links__box {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.16), transparent 40%),
    rgba(26, 35, 50, 0.9);
  border-color: rgba(129, 140, 248, 0.18);
}

[data-theme="dark"] .home-seo-links__grid a {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.18);
  color: #e2e8f0;
}

[data-theme="dark"] .home-trust__item + .home-trust__item {
  border-inline-start-color: rgba(129, 140, 248, 0.14);
}

[data-theme="dark"] body[data-page="home"] .product-card,
[data-theme="dark"] body[data-page="home"] .cta-banner {
  background: rgba(26, 35, 50, 0.9);
  border-color: rgba(129, 140, 248, 0.18);
}

[data-theme="dark"] body[data-page="home"] .product-card__price {
  color: #FCA5A5;
}

[data-theme="dark"] .cta-banner__eyebrow {
  background: rgba(99, 102, 241, 0.18);
  color: #C7D2FE;
  border-color: rgba(129, 140, 248, 0.28);
}

[data-theme="dark"] body[data-page="home"] .cta-banner {
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 70% at 90% 80%, rgba(236, 72, 153, 0.12), transparent 50%),
    rgba(26, 35, 50, 0.9);
}

/* ==========================================================================
   RESPONSIVE (non-hero sections)
   ========================================================================== */
@media (max-width: 1024px) {
  .home-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cats__item,
  .home-cats__item:nth-child(-n + 2) {
    grid-column: span 1;
    min-height: 240px;
  }

  .home-trust__bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-trust__item:nth-child(2) {
    border-inline-start: none;
  }

  .home-trust__item:nth-child(n + 3) {
    border-top: 1px solid rgba(99, 102, 241, 0.1);
  }
}

@media (max-width: 767px) {
  .home-cats__header {
    align-items: center;
    margin-bottom: 14px;
  }

  .home-cats__header h2 {
    font-size: 21px;
  }

  .home-cats__all {
    font-size: 11px;
  }

  .home-cats__grid {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .home-cats__item,
  .home-cats__item:nth-child(-n + 2) {
    grid-column: auto;
    min-height: 230px;
  }

  .home-cats__content {
    width: 72%;
    padding: 18px;
  }

  .home-cats__label {
    font-size: 21px;
  }

  .home-trust__bar {
    grid-template-columns: 1fr;
  }

  .home-trust__item,
  .home-trust__item + .home-trust__item {
    border-inline-start: none;
  }

  .home-trust__item + .home-trust__item {
    border-top: 1px solid rgba(99, 102, 241, 0.1);
  }

  body[data-page="home"] .promo-banner,
  body[data-page="home"] .promo-banner__content {
    min-height: 168px;
  }

  .cta-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cats__media img,
  body[data-page="home"] .product-card:hover .product-card__image .product-card__img,
  body[data-page="home"] .product-card:hover .product-card__image picture img,
  body[data-page="home"] .blog-card:hover .blog-card__image img,
  body[data-page="home"] .blog-card:hover .blog-card__image .blog-card__img {
    transform: none;
  }
}



/* ==========================================================================
   HOME BELOW-FOLD REDESIGN (hm-*) — hero + home-cats untouched
   ========================================================================== */

body[data-page="home"] {
  --hm-ink: #0B1220;
  --hm-muted: #5C6570;
  --hm-line: rgba(15, 23, 42, 0.08);
  --hm-surface: #ffffff;
  --hm-bg: #F6F7F9;
  --hm-accent: #E11D48;
  --hm-radius: 18px;
  --hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-section {
  padding-block: clamp(28px, 4.5vw, 48px);
}

.hm-head {
  margin-bottom: 18px;
}

.hm-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--hm-ink);
  line-height: 1.3;
}

.hm-head p {
  margin: 0;
  font-size: 14px;
  color: var(--hm-muted);
  line-height: 1.6;
}

.hm-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hm-link {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hm-accent);
  text-decoration: none;
}

.hm-link:hover { text-decoration: underline; }

.hm-muted {
  color: var(--hm-muted);
  font-size: 14px;
}

/* Trust */
.hm-trust {
  padding-block: clamp(16px, 2.5vw, 24px);
}

.hm-trust__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
}

.hm-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
}

.hm-trust__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #F3F5F7;
  color: var(--hm-ink);
}

.hm-trust__icon svg,
.hm-trust__icon [data-lucide] {
  width: 17px;
  height: 17px;
}

.hm-trust__item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--hm-ink);
  margin-bottom: 2px;
}

.hm-trust__item span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--hm-muted);
}

/* Topics */
.hm-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-topics__list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: var(--hm-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.hm-topics__list a:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
}

/* Banners */
.hm-banners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hm-banner {
  position: relative;
  min-height: 168px;
  border-radius: var(--hm-radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  background: #111827;
  isolation: isolate;
  transition: transform 180ms var(--hm-ease);
}

.hm-banner:hover {
  transform: translateY(-2px);
  color: #fff;
}

.hm-banner__bg,
.hm-banner picture,
.hm-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hm-banner__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(11, 18, 32, 0.88) 0%, rgba(11, 18, 32, 0.25) 55%, rgba(11, 18, 32, 0.1) 100%);
}

.hm-banner__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  width: 100%;
}

.hm-banner__copy em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
}

.hm-banner__copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
}

.hm-banner__copy small {
  font-size: 12.5px;
  opacity: 0.8;
  line-height: 1.5;
}

.hm-banner__copy > span {
  margin-top: 8px;
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 700;
  align-items: center;
}

/* Products */
.hm-products__grid,
.hm-recent .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="home"] .hm-products .product-card,
body[data-page="home"] .hm-recent .product-card {
  padding: 12px;
  border-radius: var(--hm-radius);
  border: 1px solid var(--hm-line);
  box-shadow: none;
  background: var(--hm-surface);
  gap: 10px;
  transition: transform 180ms var(--hm-ease), box-shadow 180ms ease, border-color 180ms ease;
}

body[data-page="home"] .hm-products .product-card:hover,
body[data-page="home"] .hm-recent .product-card:hover {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

body[data-page="home"] .hm-products .product-card__name,
body[data-page="home"] .hm-recent .product-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14.5px;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="home"] .hm-products .product-card .btn,
body[data-page="home"] .hm-recent .product-card .btn {
  border-radius: 12px;
  min-height: 40px;
  font-weight: 800;
  box-shadow: none;
}

/* Services */
.hm-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hm-service {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: var(--hm-radius);
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms var(--hm-ease);
}

.hm-service:hover {
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
  color: inherit;
}

.hm-service__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #F3F5F7;
  color: var(--hm-ink);
}

.hm-service__icon svg,
.hm-service__icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.hm-service__body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--hm-ink);
}

.hm-service__body small {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hm-muted);
}

.hm-service__arrow {
  width: 16px;
  height: 16px;
  color: var(--hm-muted);
}

/* Blog */
.hm-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hm-post {
  display: flex;
  flex-direction: column;
  border-radius: var(--hm-radius);
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms var(--hm-ease), box-shadow 180ms ease;
}

.hm-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  color: inherit;
}

.hm-post__media {
  aspect-ratio: 16 / 10;
  background: #EEF1F4;
  overflow: hidden;
}

.hm-post__img,
.hm-post__media picture,
.hm-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-post__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #94A3B8;
}

.hm-post__placeholder svg,
.hm-post__placeholder [data-lucide] {
  width: 28px;
  height: 28px;
}

.hm-post__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.hm-post__body em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-accent);
}

.hm-post__body strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--hm-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-post__body small {
  font-size: 12.5px;
  color: var(--hm-muted);
}

/* Quotes */
.hm-quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hm-quote {
  margin: 0;
  padding: 20px;
  border-radius: var(--hm-radius);
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
}

.hm-quote blockquote {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--hm-ink);
}

.hm-quote figcaption {
  font-size: 13px;
  font-weight: 800;
  color: var(--hm-muted);
}

/* CTA */
.hm-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 32px);
  border-radius: calc(var(--hm-radius) + 4px);
  background: var(--hm-ink);
  color: #fff;
}

.hm-cta__copy span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
}

.hm-cta__copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
}

.hm-cta__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.hm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hm-cta__primary,
.hm-cta__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
}

.hm-cta__primary {
  background: var(--hm-accent);
  color: #fff;
}

.hm-cta__primary:hover { color: #fff; filter: brightness(1.05); }

.hm-cta__ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hm-cta__ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 1024px) {
  .hm-trust__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-banners__grid { grid-template-columns: 1fr; }
  .hm-products__grid,
  .hm-recent .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-blog__grid,
  .hm-quotes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .hm-trust__row { grid-template-columns: 1fr; }
  .hm-products__grid,
  .hm-recent .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-services__grid,
  .hm-blog__grid,
  .hm-quotes__grid { grid-template-columns: 1fr; }
  .hm-head--row { flex-direction: column; align-items: flex-start; }
  .hm-cta__box { grid-template-columns: 1fr; }
  .hm-cta__actions { justify-content: stretch; }
  .hm-cta__primary,
  .hm-cta__ghost { flex: 1 1 calc(50% - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-banner,
  .hm-service,
  .hm-post,
  body[data-page="home"] .hm-products .product-card {
    transition: none;
  }
}
