/* ==========================================================================
   i-Parts Vendi — Home page (loaded only on the home route, after custom.css)
   Section ids are kept for anchors/legacy hooks; id+class selectors below
   win over the old id-based rules in style.css / color.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section shell & headings
   -------------------------------------------------------------------------- */
section.home-section,
section.home-hero,
section.home-rail {
  position: relative;
  overflow: visible;
  margin: 0;
  background-color: transparent;
}
section.home-section { padding: var(--space-section) 0; }
section.home-section--tight { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0; }
section.home-section--canvas { background-color: var(--c-canvas); }

.home-heading { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.home-heading--center { margin-inline: auto; text-align: center; }
.home-heading__title { margin: 0; font-size: var(--text-h2); }
/* short accent bar above section titles (not inside dark panels or the device rail) */
.home-section:not(.home-section--tight) .home-heading__title::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: var(--space-5);
  border-radius: 4px;
  background: var(--gradient-accent);
}
.home-heading--center .home-heading__title::before { margin-inline: auto; }
.home-heading__sub,
.home-heading__intro {
  margin: var(--space-4) 0 0;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--c-text-muted);
}
.home-heading__intro p:last-child { margin-bottom: 0; }
.home-heading__description { margin-top: var(--space-4); color: var(--c-text-muted); }
.home-heading--center .home-heading__sub { margin-inline: auto; max-width: 56ch; }

.home-section__more { margin-top: var(--space-7); }

/* Shared arrow nudge on hover */
.btn svg, .home-cat-card__arrow svg { transition: transform var(--duration-normal) var(--ease-out-expo); }
.btn:hover svg { transform: translateX(3px); }
.btn svg { margin: -2px 0 0 var(--space-1); vertical-align: middle; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
section#showcase.home-hero {
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.5rem, 2rem + 6vw, 7.5rem) 0 clamp(9rem, 7rem + 6vw, 12.5rem);
  background: radial-gradient(120% 90% at 72% 0%, #11200e 0%, var(--c-ink-900) 52%, var(--c-ink-950) 100%) !important;
  color: #fff;
}
section#showcase.home-hero::before,
section#showcase.home-hero::after { display: none; }

.home-hero__backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}
.home-hero__glow--a {
  width: 50vw; height: 50vw;
  max-width: 780px; max-height: 780px;
  right: -8vw; top: -14vw;
  background: radial-gradient(circle, rgba(79, 219, 0, 0.6) 0%, rgba(79, 219, 0, 0) 65%);
  animation: home-aurora 18s ease-in-out infinite alternate;
}
.home-hero__glow--b {
  width: 38vw; height: 38vw;
  max-width: 560px; max-height: 560px;
  left: -14vw; bottom: -16vw;
  background: radial-gradient(circle, rgba(46, 174, 0, 0.36) 0%, rgba(46, 174, 0, 0) 70%);
  animation: home-aurora 24s ease-in-out -8s infinite alternate-reverse;
}
@keyframes home-aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-5%, 4%, 0) scale(1.1); }
  100% { transform: translate3d(4%, -3%, 0) scale(0.94); }
}
/* perspective grid floor fading into the horizon */
.home-hero__grid {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -2%;
  height: 62%;
  background-image:
    linear-gradient(rgba(140, 255, 74, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 255, 74, 0.14) 1px, transparent 1px);
  background-size: 76px 76px;
  transform: perspective(640px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 82%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 82%);
}
/* soft light cone from above the product */
.home-hero__beam {
  position: absolute;
  top: -40%;
  left: 70%;
  width: 70%;
  height: 140%;
  transform: translateX(-50%);
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(140, 255, 74, 0.12) 18deg, transparent 40deg);
  filter: blur(24px);
}

.home-hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.home-hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 1.3rem + 4.6vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #fff;
}
.home-hero__title br { display: none; }
/* the admin wraps the second line in a span: accent gradient */
.home-hero__title span {
  display: block;
  margin-top: 0.14em;
  padding-bottom: 0.06em;
  font-size: 0.6em;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #c9f7ae;
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__lead {
  margin: var(--space-6) 0 0;
  max-width: 44ch;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.home-hero__cta {
  padding: 1.125rem 2rem;
  font-size: 1.0625rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 0 0 6px rgba(79, 219, 0, 0.12), 0 18px 40px -12px rgba(79, 219, 0, 0.6);
}
.home-hero__cta:hover,
.home-hero__cta:focus { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 0 0 8px rgba(79, 219, 0, 0.16), 0 24px 48px -12px rgba(79, 219, 0, 0.7); }

.home-hero__visual { position: relative; isolation: isolate; }
.home-hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 219, 0, 0.32), transparent);
  filter: blur(34px);
  z-index: -2;
}
/* glow pool under the floating product */
.home-hero__visual::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -7%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 219, 0, 0.42), rgba(79, 219, 0, 0) 100%);
  filter: blur(10px);
  z-index: -1;
  animation: home-pool 8s ease-in-out infinite;
}
.home-hero__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 80px rgba(79, 219, 0, 0.06);
  z-index: -1;
  animation: home-orbit 36s linear infinite;
}
.home-hero__orbit::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.07);
}
.home-hero__orbit-dot {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(79, 219, 0, 0.18), 0 0 24px 4px rgba(79, 219, 0, 0.7);
}
@keyframes home-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

.home-hero__visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
  animation: home-float 8s ease-in-out infinite;
}
@keyframes home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes home-pool {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.86); opacity: 0.7; }
}

/* entrance */
.home-hero__copy > * { animation: ds-rise 900ms var(--ease-out-expo) both; }
.home-hero__copy > :nth-child(2) { animation-delay: 90ms; }
.home-hero__copy > :nth-child(3) { animation-delay: 180ms; }
.home-hero__copy > :nth-child(4) { animation-delay: 270ms; }
.home-hero__visual { animation: home-hero-in 1100ms var(--ease-out-expo) 140ms both; }
@keyframes home-hero-in {
  from { opacity: 0; transform: translateY(32px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .home-hero__layout { grid-template-columns: 1fr; }
  .home-hero__visual { max-width: 560px; margin: var(--space-4) auto 0; }
  .home-hero__beam { left: 50%; }
}
@media (max-width: 575.98px) {
  section#showcase.home-hero { padding-top: var(--space-7); }
  .home-hero__actions .btn { width: 100%; }
}

/* Hero search (when enabled in admin) */
.home-search { position: relative; width: 100%; max-width: 420px; margin: 0; }
.home-search .form-control {
  height: 56px;
  padding-left: 3rem;
  padding-right: 1.25rem;
  border-radius: var(--radius-pill);
  border-color: transparent;
  background: var(--c-canvas);
}
.home-search .form-control:focus { background: var(--c-surface); border-color: var(--c-accent); }
.home-search__icon { position: absolute; left: 1.125rem; top: 50%; transform: translateY(-50%); color: var(--c-ink-400); pointer-events: none; z-index: 1; }

.home-search--dark { margin-top: var(--space-6); }
.home-search--dark .form-control {
  padding-left: 1.25rem;
  padding-right: 3.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.home-search--dark .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.home-search__btn {
  position: absolute;
  right: 6px; top: 6px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
}

/* --------------------------------------------------------------------------
   Device rail (top devices) — floats over the hero edge
   -------------------------------------------------------------------------- */
section#showTopDevices.home-rail {
  z-index: 2;
  padding: 0;
  margin-top: calc(-1 * clamp(5rem, 4rem + 4vw, 7.5rem));
}
.home-rail__panel {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-5);
  /* gradient hairline border: accent at the corners, quiet in between */
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    linear-gradient(120deg, rgba(79, 219, 0, 0.7), rgba(11, 17, 13, 0.08) 30%, rgba(11, 17, 13, 0.08) 70%, rgba(79, 219, 0, 0.5)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.home-rail__label {
  flex: 0 0 auto;
  max-width: 9.5rem;
  margin: 0;
  padding-left: var(--space-2);
  font-family: var(--font-text);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-900);
}
.home-rail__list {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-rail__list::-webkit-scrollbar { display: none; }
.home-rail__list li { flex: 1 0 auto; scroll-snap-align: start; }
.home-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 84px;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  color: var(--c-ink-900);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.home-rail__item:hover, .home-rail__item:focus-visible { color: var(--c-ink-900); text-decoration: none; }
.home-rail__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-canvas);
  transition: transform var(--duration-normal) var(--ease-spring), background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-out-expo);
}
.home-rail__icon img { max-width: 30px; max-height: 30px; width: auto; height: auto; }
.home-rail__item:hover .home-rail__icon,
.home-rail__item:focus-visible .home-rail__icon {
  transform: translateY(-4px);
  background: var(--c-accent-soft);
  box-shadow: 0 0 0 1px rgba(79, 219, 0, 0.45), 0 10px 20px -8px rgba(79, 219, 0, 0.6);
}
.home-rail__name { font-size: var(--text-sm); font-weight: 600; line-height: 1.25; text-align: center; white-space: nowrap; }

@media (max-width: 991.98px) {
  .home-rail__panel { flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-4) var(--space-3); }
  .home-rail__label { max-width: none; padding: 0 var(--space-2); }
  .home-rail__list {
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .home-rail__list li { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   Categories / device cards
   -------------------------------------------------------------------------- */
section#showCategory.home-categories,
section#new_devicesection.home-categories { padding: var(--space-section) 0; }

.home-categories__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.home-categories__head .home-heading { margin-bottom: 0; }
.home-categories__head .home-search { flex: 0 1 380px; }

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-categories__grid > li { margin: 0; padding: 0; width: auto; max-width: none; }

.home-cat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge-light), var(--shadow-xs);
  color: var(--c-ink-900);
  text-decoration: none;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-standard);
}
.home-cat-card:hover, .home-cat-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(79, 219, 0, 0.45);
  box-shadow: var(--edge-light), var(--shadow-xl);
  color: var(--c-ink-900);
  text-decoration: none;
}
.home-cat-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--c-canvas) 68%);
}
.home-cat-card__media img {
  width: auto;
  max-width: 64%;
  max-height: 72%;
  object-fit: contain;
  mix-blend-mode: multiply; /* blends white photo backgrounds into the canvas */
  transition: transform 700ms var(--ease-out-expo);
}
.home-cat-card__media .fa { font-size: 3rem; color: var(--c-ink-700); }
.home-cat-card:hover .home-cat-card__media img { transform: translateY(-6px) scale(1.08); }

.home-cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2) var(--space-1);
}
.home-cat-card__title { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.home-cat-card__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-canvas);
  color: var(--c-ink-900);
  transition: background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-out-expo);
}
/* arrow points up-right at rest and straightens on hover */
.home-cat-card__arrow svg { transform: rotate(-45deg); transition: transform var(--duration-normal) var(--ease-spring); }
.home-cat-card:hover .home-cat-card__arrow,
.home-cat-card:focus-visible .home-cat-card__arrow { background: var(--c-accent); box-shadow: 0 8px 18px -6px var(--c-accent-glow); }
.home-cat-card:hover .home-cat-card__arrow svg,
.home-cat-card:focus-visible .home-cat-card__arrow svg { transform: none; }

/* Bento: the first category is the featured tile (dark, two columns by two rows) */
.home-categories__grid.category { grid-auto-flow: dense; }
.home-categories__grid.category > li:first-child { grid-column: span 2; grid-row: span 2; }
.home-categories__grid.category > li:first-child .home-cat-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-4);
  border-color: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(80% 70% at 50% 38%, rgba(79, 219, 0, 0.3) 0%, transparent 62%),
    linear-gradient(160deg, var(--c-ink-800) 0%, var(--c-ink-950) 100%);
  box-shadow: var(--edge-light-dark), var(--shadow-lg);
  color: #fff;
}
.home-categories__grid.category > li:first-child .home-cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}
.home-categories__grid.category > li:first-child .home-cat-card:hover { border-color: rgba(79, 219, 0, 0.5); box-shadow: var(--shadow-glow); }
.home-categories__grid.category > li:first-child .home-cat-card__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; background: transparent; }
.home-categories__grid.category > li:first-child .home-cat-card__media img {
  max-width: 62%;
  max-height: 82%;
  mix-blend-mode: normal;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
.home-categories__grid.category > li:first-child .home-cat-card__foot { padding: var(--space-5) var(--space-3) var(--space-3); }
.home-categories__grid.category > li:first-child .home-cat-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.home-categories__grid.category > li:first-child .home-cat-card__arrow { width: 52px; height: 52px; background: var(--c-accent); color: var(--c-on-accent); }

@media (max-width: 991.98px) {
  .home-categories__head { flex-direction: column; align-items: stretch; }
  .home-categories__head .home-search { flex-basis: auto; max-width: none; }
  .home-categories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-categories__grid.category > li:first-child { grid-column: 1 / -1; grid-row: auto; }
  .home-categories__grid.category > li:first-child .home-cat-card__media { min-height: 220px; }
}
/* tablet: four across, so the tiles under the featured one fill whole rows */
@media (min-width: 768px) and (max-width: 991.98px) {
  .home-categories__grid.category { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .home-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cat-card { padding: var(--space-2); border-radius: var(--radius-md); }
  .home-cat-card__media { border-radius: var(--radius-sm); }
  .home-cat-card__foot { padding: var(--space-3) var(--space-1) var(--space-1); }
  .home-cat-card__title { font-size: var(--text-sm); }
  .home-cat-card__arrow { width: 28px; height: 28px; }
  .home-cat-card__arrow svg { width: 14px; height: 14px; }
  .home-categories__grid.category > li:first-child .home-cat-card { padding: var(--space-3); }
  .home-categories__grid.category > li:first-child .home-cat-card__media { min-height: 180px; }
  .home-categories__grid.category > li:first-child .home-cat-card__title { font-size: var(--text-xl); }
  .home-categories__grid.category > li:first-child .home-cat-card__arrow { width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   Dark panels: CTA banner, newsletter, free content
   -------------------------------------------------------------------------- */
section.have_question_banner.home-section,
section#ready_to_start.home-section { background-color: transparent; padding-inline: 0; }

.home-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2rem, 1rem + 3.5vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--c-ink-800) 0%, var(--c-ink-950) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-xl);
  color: rgba(255, 255, 255, 0.75);
}
.home-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 219, 0, 0.4), transparent 65%);
  animation: home-aurora 16s ease-in-out infinite alternate;
}
.home-panel > :not(.ds-grain) { position: relative; z-index: 1; }
.home-panel .home-heading { margin-bottom: 0; }
.home-panel .home-heading__title { color: #fff; }
.home-panel .home-heading__sub,
.home-panel .home-heading__intro { color: rgba(255, 255, 255, 0.68); }

.home-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.home-cta .home-heading__title { font-size: var(--text-h3); }
.home-cta__btn { flex: 0 0 auto; }
@media (max-width: 767.98px) {
  .home-cta { flex-direction: column; align-items: flex-start; }
  .home-cta__btn { width: 100%; }
}

.home-newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-6); }
.home-newsletter .home-heading__title { font-size: var(--text-h3); }
.home-newsletter__form {
  display: flex;
  gap: var(--space-2);
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.home-newsletter__form .form-control {
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
}
.home-newsletter__form .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.home-newsletter__form .form-control:focus { box-shadow: none; }
.home-newsletter__form .btn { flex: 0 0 auto; padding-block: 0.75rem; }
@media (max-width: 767.98px) {
  .home-newsletter { grid-template-columns: 1fr; }
}

/* Free content (admin HTML authored with inline white text): light panel
   so it doesn't stack a third dark block between newsletter and footer */
.home-heading--prose { max-width: 820px; }
.home-panel.home-content__panel {
  background: linear-gradient(180deg, var(--c-canvas) 0%, var(--c-surface) 100%);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-text-muted);
}
.home-panel.home-content__panel::before { display: none; }
.home-content__panel h2 { color: var(--c-ink-900) !important; font-size: var(--text-h2); margin-bottom: var(--space-6); }
.home-content__panel h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 0 auto var(--space-5);
  border-radius: 4px;
  background: var(--gradient-accent);
}
.home-content__panel h6,
.home-content__panel p {
  font-family: var(--font-text);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--c-text-muted);
}
.home-content__panel p { text-align: left; }
.home-content__panel span { color: inherit !important; }
.home-content__panel a { color: var(--c-accent-ink) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.home-content__panel img { max-width: 100% !important; height: auto; margin-top: var(--space-5); }

/* --------------------------------------------------------------------------
   Brands
   -------------------------------------------------------------------------- */
section#select_brand.home-brands { padding: var(--space-section) 0; }
.home-brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-brands__grid > li { flex: 0 0 180px; margin: 0; padding: 0; width: auto; height: auto; }
/* brand images are square 200x200 artboards with the logo centred on white:
   multiply drops the white so the logo sits on the tile colour */
.home-brands__tile {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--c-canvas);
  transition: background-color var(--duration-normal) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-out-expo), transform var(--duration-normal) var(--ease-out-expo);
}
.home-brands__tile img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter var(--duration-normal) var(--ease-standard), opacity var(--duration-normal) var(--ease-standard), transform var(--duration-slow) var(--ease-out-expo);
}
.home-brands__tile:hover, .home-brands__tile:focus-visible {
  background: var(--c-surface);
  border-color: rgba(79, 219, 0, 0.4);
  box-shadow: var(--edge-light), var(--shadow-lg);
  transform: translateY(-4px);
}
.home-brands__tile:hover img, .home-brands__tile:focus-visible img { filter: none; opacity: 1; transform: scale(1.08); }
@media (max-width: 575.98px) {
  .home-brands__grid { gap: var(--space-2); }
  .home-brands__grid > li { flex-basis: calc((100% - var(--space-2) * 2) / 3); }
  .home-brands__tile { aspect-ratio: 1 / 1; border-radius: var(--radius-md); }
  .home-brands__tile img { width: 72px; height: 72px; }
}

/* --------------------------------------------------------------------------
   Why choose us — editorial split
   -------------------------------------------------------------------------- */
section#whyChoose.home-why {
  overflow: hidden;
  isolation: isolate;
  padding: var(--space-section) 0;
  background: linear-gradient(180deg, var(--c-ink-950) 0%, var(--c-ink-900) 100%);
  color: rgba(255, 255, 255, 0.7);
}
section#whyChoose.home-why > .site-container { position: relative; z-index: 1; }
.home-why__glow {
  position: absolute;
  z-index: -1;
  width: 980px;
  height: 980px;
  left: -360px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 219, 0, 0.24), transparent 62%);
  pointer-events: none;
  animation: home-aurora 20s ease-in-out infinite alternate;
}
.home-why .home-heading__title { color: #fff; }
.home-why .home-heading__sub,
.home-why .home-heading__intro,
.home-why .home-heading__description { color: rgba(255, 255, 255, 0.64); }
/* the intro CTA sits on dark: accent instead of ink */
.home-why__intro .btn-ink {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: 0 18px 40px -14px rgba(79, 219, 0, 0.6);
}
.home-why__intro .btn-ink:hover, .home-why__intro .btn-ink:focus { background: var(--c-accent-strong); color: var(--c-on-accent); }

.home-why__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.home-why__intro { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.home-why__intro .home-heading { margin-bottom: var(--space-7); }
.home-why__list { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0; list-style: none; counter-reset: home-why; }
.home-why__item.ds-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6) 6rem var(--space-6) var(--space-6);
  overflow: hidden;
  counter-increment: home-why;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--edge-light-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.home-why__item.ds-card:hover { transform: translateX(6px); border-color: rgba(79, 219, 0, 0.4); }
/* large outlined index in the corner */
.home-why__item::before {
  content: counter(home-why, decimal-leading-zero);
  position: absolute;
  right: var(--space-5);
  top: var(--space-4);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transition: -webkit-text-stroke-color var(--duration-normal) var(--ease-standard);
}
.home-why__item:hover::before { -webkit-text-stroke-color: rgba(79, 219, 0, 0.8); }
.home-why__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 12px 24px -10px rgba(79, 219, 0, 0.55);
}
.home-why__icon img { width: 34px; height: 34px; object-fit: contain; }
.home-why__icon .fa, .home-why__icon [class*="fa-"] { font-size: 1.5rem; color: var(--c-accent-ink); }
.home-why__title { margin: 0 0 var(--space-2); font-size: var(--text-xl); line-height: 1.25; color: #fff; }
.home-why__text { margin: 0; color: rgba(255, 255, 255, 0.62); }
.home-why__title br, .home-why__text br { display: none; }
@media (max-width: 991.98px) {
  .home-why__layout { grid-template-columns: 1fr; }
  .home-why__intro { position: static; }
}
@media (max-width: 575.98px) {
  .home-why__item.ds-card { flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
  .home-why__item.ds-card .home-why__title { padding-right: 0; }
  .home-why__item::before { font-size: 2.25rem; }
  .home-why__intro .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   How it works — numbered steps
   -------------------------------------------------------------------------- */
section#how-it-works.home-steps { padding: var(--space-section) 0; background-color: var(--c-canvas); }
.home-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}
.home-steps__item {
  position: relative;
  padding: var(--space-6);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge-light), var(--shadow-sm);
  counter-increment: home-step;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo), border-color var(--duration-fast) var(--ease-standard);
}
.home-steps__item:hover { transform: translateY(-6px); border-color: rgba(79, 219, 0, 0.45); box-shadow: var(--edge-light), var(--shadow-xl); }
/* connector between steps: accent line with a travelling pulse */
.home-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.75rem;
  right: calc(-1 * var(--space-5) - 1px);
  width: calc(var(--space-5) + 2px);
  height: 2px;
  background: linear-gradient(90deg, rgba(79, 219, 0, 0.2), var(--c-accent), rgba(79, 219, 0, 0.2));
  background-size: 200% 100%;
  animation: home-pulse 2.4s linear infinite;
}
@keyframes home-pulse { to { background-position: -200% 0; } }
.home-steps__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-7); }
.home-steps__num::before {
  content: counter(home-step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2.5rem + 2vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-ink-300);
  transition: -webkit-text-stroke-color var(--duration-normal) var(--ease-standard);
}
/* the number fills with the accent gradient on hover */
.home-steps__num { position: relative; display: inline-block; }
.home-steps__num::after {
  content: counter(home-step, decimal-leading-zero);
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2.5rem + 2vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 600ms var(--ease-out-expo);
}
.home-steps__item:hover .home-steps__num::before { -webkit-text-stroke-color: transparent; }
.home-steps__item:hover .home-steps__num::after { clip-path: inset(0 0 0 0); }
.home-steps__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff 0%, var(--c-canvas) 75%);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.home-steps__item:hover .home-steps__icon { transform: rotate(-8deg) scale(1.06); }
.home-steps__icon img { width: 44px; height: 44px; object-fit: contain; }
.home-steps__title { margin: 0 0 var(--space-2); font-size: var(--text-xl); line-height: 1.25; }
.home-steps__text { margin: 0; color: var(--c-text-muted); }
@media (max-width: 991.98px) {
  .home-steps__list { grid-template-columns: 1fr; gap: var(--space-3); }
  .home-steps__item:not(:last-child)::after {
    top: auto; bottom: calc(-1 * var(--space-3) - 1px); right: auto; left: 3rem;
    width: 2px; height: calc(var(--space-3) + 2px);
    background: linear-gradient(180deg, rgba(79, 219, 0, 0.2), var(--c-accent), rgba(79, 219, 0, 0.2));
    background-size: 100% 200%;
    animation: none;
  }
  .home-steps__top { margin-bottom: var(--space-4); }
}

/* --------------------------------------------------------------------------
   Reviews (section toggled in admin)
   -------------------------------------------------------------------------- */
.home-review { margin: 0 var(--space-2); height: 100%; }
.home-review__title { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-2); }
.home-review__text { margin: 0; color: var(--c-text-muted); }
.home-review__author { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); font-weight: 700; font-size: var(--text-sm); }
.home-review__author img { width: 40px; height: 40px; object-fit: cover; }
