/* ===========================================================
   Homepage — v4 identity
   =========================================================== */

/* ---- Shared homepage primitives ---- */
/* Consistent vertical rhythm between content sections. */
.hp-sec {
  padding-block: var(--space-9);
}
@media (min-width: 700px) {
  .hp-sec {
    padding-block: var(--space-10);
  }
}
.band-mist {
  background: var(--color-bg-alt);
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}
.eyebrow__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  margin-right: 8px;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.sec-head h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  margin: 0.35rem 0 0;
}
.link-arrow {
  color: var(--color-fg);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
}
.link-arrow svg {
  transition: transform 0.2s var(--ease-out);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---- Buttons (v4 pill variants) ---- */
.btn--grad {
  color: #fff;
  background: var(--grad-strong);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px -8px rgba(147, 69, 244, 0.55);
}
.btn--grad:hover {
  box-shadow: 0 13px 28px -8px rgba(147, 69, 244, 0.7);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-fg);
  border-radius: var(--radius-pill);
}
.btn--ghost:hover {
  border-color: var(--color-fg);
}

/* ---- Hero ---- */
.hero-v4 {
  background: var(--color-bg-alt);
}
.hcar {
  position: relative;
  overflow: hidden;
}
.hslides {
  display: flex;
  transition: transform 0.62s var(--ease-in-out);
  will-change: transform;
}
.hslide {
  flex: 0 0 100%;
  min-width: 100%;
}
.hslide__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding-block: 64px 74px;
}
.hcopy {
  max-width: 560px;
}
.hcopy .eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}
.hcopy h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
.hero-v4__sub {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin: 20px 0 0;
  max-width: 46ch;
}
.hero-v4__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hvis {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  background:
    radial-gradient(120% 120% at 78% 12%, color-mix(in srgb, var(--c1) 20%, transparent), transparent 55%),
    radial-gradient(120% 120% at 16% 88%, color-mix(in srgb, var(--c3) 18%, transparent), transparent 55%),
    linear-gradient(160deg, var(--color-surface), var(--color-bg-alt2));
  display: grid;
  place-items: center;
}
.hvis__glow {
  position: absolute;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  filter: blur(46px);
  background: var(--grad);
  opacity: 0.3;
  top: 18%;
  left: 20%;
  animation: hero-float 9s ease-in-out infinite alternate;
}
@keyframes hero-float {
  to {
    transform: translate(26px, -22px) scale(1.08);
  }
}
.hvis__img,
.hvis__logo {
  position: relative;
  z-index: 2;
  max-width: 62%;
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(21, 25, 40, 0.22));
}
/* Admin slide photos fill the whole frame instead of floating. */
.hvis__img--cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

/* Carousel controls — hidden until JS marks the carousel ready */
.harrow,
.hdots {
  opacity: 0;
  pointer-events: none;
}
.hcar.is-ready .harrow,
.hcar.is-ready .hdots {
  opacity: 1;
  pointer-events: auto;
}
.harrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  backdrop-filter: blur(6px);
  color: var(--color-fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.16s var(--ease-out), border-color var(--transition);
}
.harrow--prev {
  left: 14px;
}
.harrow--next {
  right: 14px;
}
.harrow:hover {
  border-color: var(--color-fg);
}
.harrow:active {
  transform: translateY(-50%) scale(0.93);
}
.hdots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 8px;
}
.hdots button {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-muted-2);
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s, width 0.25s var(--ease-out), background 0.2s;
}
.hdots button.is-on {
  opacity: 1;
  width: 26px;
  background: var(--grad);
}
@media (max-width: 940px) {
  .harrow {
    display: none;
  }
}

/* ---- Stats ---- */
.stats-v4 {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.stats-v4__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-block: 34px;
}
.stat-v4 {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
}
.stat-v4__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-v4__l {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.stat-v4 + .stat-v4 {
  border-left: 1px solid var(--color-border);
}
@media (max-width: 560px) {
  .stats-v4__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .stat-v4 + .stat-v4 {
    border-left: none;
  }
}

/* ---- Categories grid ---- */
.catgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ct {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-fg);
  transition: transform 0.24s var(--ease-out), box-shadow 0.26s var(--ease-out),
    border-color 0.24s;
}
.ct::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.26s var(--ease-out);
}
.ct:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ct:hover::after {
  transform: scaleY(1);
}
.ct:hover .ct__thumb img {
  transform: scale(1.07);
}
.ct__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.ct__thumb {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 13px;
  overflow: hidden;
  background: var(--color-surface);
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
}
.ct__thumb img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s var(--ease-out);
}
.ct__placeholder {
  color: var(--color-primary);
  font-size: var(--fs-24);
}
.ct__txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ct__txt h3 {
  font-size: 1.08rem;
  margin: 0;
}
.ct__go {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-fg);
}
.ct__go svg {
  transition: transform 0.2s var(--ease-out);
}
.ct:hover .ct__go svg {
  transform: translateX(4px);
}

/* ---- Brands marquee ---- */
.brands-v4 {
  background: var(--color-surface);
  padding-block: 46px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.brands-v4__head {
  text-align: center;
  margin-bottom: 26px;
}
.brands-v4__head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0.4rem 0 0;
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}
.brand-chip {
  height: 70px;
  min-width: 172px;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  display: grid;
  place-items: center;
  padding: 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-fg);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow 0.26s var(--ease-out);
}
.brand-chip:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
}
.brand-chip__logo {
  max-width: 128px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---- About + contact ---- */
.about-v4__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.about-v4__lead .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.about-v4__lead h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0;
  text-wrap: balance;
}
.about-v4__body {
  color: var(--color-muted);
  font-size: 1rem;
  margin: 16px 0 0;
  max-width: 52ch;
  line-height: 1.7;
}
.about-v4__feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.about-v4__feats li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  font-weight: 500;
}
.about-v4__feats .ck {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-strong);
}
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}
.contact-card h3 {
  font-size: 1.15rem;
  margin: 6px 0 18px;
}
.contact-card__row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.contact-card__row:first-of-type {
  border-top: none;
}
.contact-card__ci {
  color: var(--color-primary);
  flex: 0 0 auto;
  margin-top: 2px;
}
.contact-card__row a {
  font-weight: 600;
  color: var(--color-fg);
}
.contact-card__btn {
  width: 100%;
  margin-top: 20px;
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .hslide__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hvis {
    order: -1;
    aspect-ratio: 16 / 9;
  }
  .about-v4__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .catgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .catgrid {
    grid-template-columns: 1fr;
  }
  .sec-head {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track,
  .hvis__glow {
    animation: none;
  }
  .hslides {
    transition: none;
  }
}
