/* ==========================================================================
   Afrodita Cleaning — home.css
   Hero + sekcije naslovnice
   ========================================================================== */

.home-hero {
  --hero-pad-top: clamp(3.25rem, 2.2rem + 3.5vw, 5.5rem);
  --hero-pad-bottom: clamp(2.5rem, 1.6rem + 2.5vw, 3.75rem);
  --hero-img-radius: var(--radius-xl);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(165deg, #0a101a 0%, var(--color-navy-900) 42%, #0d1728 100%);
  color: var(--color-text-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.9;
  will-change: transform;
  animation: home-hero-drift 18s var(--ease-out) infinite alternate;
}

.home-hero__glow--green {
  inset: -18% auto auto 48%;
  width: min(42rem, 78vw);
  height: min(42rem, 78vw);
  background: radial-gradient(circle, rgba(0, 211, 74, 0.18), transparent 68%);
}

.home-hero__glow--blue {
  inset: auto auto -28% -8%;
  width: min(34rem, 70vw);
  height: min(34rem, 70vw);
  background: radial-gradient(circle, rgba(30, 144, 255, 0.16), transparent 70%);
  animation-duration: 22s;
  animation-delay: -4s;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 10%, transparent 75%);
  opacity: 0.45;
}

.home-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  padding-block: var(--hero-pad-top) var(--hero-pad-bottom);
}

.home-hero__content {
  min-width: 0;
}

.home-hero__brand,
.home-hero__title,
.home-hero__lead,
.home-hero__actions {
  max-width: 38rem;
  animation: home-hero-rise 0.85s var(--ease-out) both;
}

.home-hero__brand {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  color: var(--color-white);
  animation-delay: 0.05s;
}

.home-hero__brand::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: var(--space-3);
  background: linear-gradient(90deg, var(--color-brand-green), rgba(30, 144, 255, 0.65));
}

.home-hero__title {
  margin: 0 0 var(--space-5);
  color: var(--color-white);
  font-size: clamp(2.15rem, 1.35rem + 3vw, 3.65rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation-delay: 0.14s;
}

.home-hero__lead {
  margin: 0 0 var(--space-7);
  color: var(--color-text-inverse-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  max-width: 36rem;
  animation-delay: 0.24s;
}

.home-hero__actions {
  animation-delay: 0.34s;
}

.home-hero__actions .btn--secondary {
  backdrop-filter: blur(4px);
}

.home-hero__media {
  min-width: 0;
  animation: home-hero-reveal 1.1s var(--ease-out) both;
  animation-delay: 0.18s;
}

.home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--hero-img-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 48px rgba(7, 11, 20, 0.45),
    0 0 0 1px rgba(0, 211, 74, 0.06);
}

/* --------------------------------------------------------------------------
   Hero cube 3D slider
   -------------------------------------------------------------------------- */
.hero-cube {
  --hero-cube-duration: 1400ms;
  --hero-cube-ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --hero-cube-depth: 280px;
  --hero-cube-dir: 1;
  position: relative;
}

.hero-cube__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  border-radius: var(--hero-img-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 48px rgba(7, 11, 20, 0.45),
    0 0 0 1px rgba(0, 211, 74, 0.06);
  background: #0a101c;
  transform-style: preserve-3d;
}

.hero-cube__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--hero-cube-depth) * -1));
}

.hero-cube__scene.is-turning {
  transition: transform var(--hero-cube-duration) var(--hero-cube-ease);
  transform:
    translateZ(calc(var(--hero-cube-depth) * -1))
    rotateY(calc(var(--hero-cube-dir) * -90deg));
}

.hero-cube__scene.is-reset {
  transition: none;
  transform: translateZ(calc(var(--hero-cube-depth) * -1));
}

.hero-cube__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hero-cube__face--front {
  transform: rotateY(0deg) translateZ(var(--hero-cube-depth));
}

.hero-cube__face--side {
  transform: rotateY(90deg) translateZ(var(--hero-cube-depth));
}

.hero-cube__img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.hero-cube.is-animating .hero-cube__viewport {
  box-shadow:
    0 28px 56px rgba(7, 11, 20, 0.55),
    0 0 0 1px rgba(0, 211, 74, 0.1),
    0 0 40px rgba(30, 144, 255, 0.08);
}

.hero-cube__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.hero-cube__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    background-color 0.3s var(--hero-cube-ease),
    transform 0.3s var(--hero-cube-ease),
    width 0.3s var(--hero-cube-ease);
}

.hero-cube__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-cube__dot.is-active {
  width: 1.35rem;
  background: var(--color-brand-green);
}

.hero-cube__dot:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-green);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cube__scene,
  .hero-cube__scene.is-turning,
  .hero-cube__dot {
    transition: none !important;
  }
}

.home-hero__trust {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 20, 0.55);
  backdrop-filter: blur(10px);
}

.home-hero__trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: center;
  margin: 0;
  padding: 25px 0;
  list-style: none;
}

.home-hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-inverse-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  animation: home-hero-rise 0.8s var(--ease-out) both;
}

.home-hero__trust-item:nth-child(1) { animation-delay: 0.42s; }
.home-hero__trust-item:nth-child(2) { animation-delay: 0.5s; }
.home-hero__trust-item:nth-child(3) { animation-delay: 0.58s; }
.home-hero__trust-item:nth-child(4) { animation-delay: 0.66s; }

.home-hero__trust-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-brand-green);
  background: rgba(0, 211, 74, 0.1);
  border: 1px solid rgba(0, 211, 74, 0.18);
}

.home-hero__trust-icon svg {
  display: block;
}

/* --------------------------------------------------------------------------
   Shared section chrome
   -------------------------------------------------------------------------- */
.home-section {
  padding-block: var(--section-space);
  background: var(--color-surface);
}

.home-section--alt {
  background:
    linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
}

.home-section__header {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.home-section__header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: none;
}

.home-section__header--split > div {
  max-width: 40rem;
}

.home-section__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-green);
}

.home-section__eyebrow--on-dark {
  color: var(--color-brand-green);
}

.home-section__title {
  margin: 0 0 var(--space-3);
  color: var(--color-text);
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.home-section__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   1) Zašto mi — centrirani header + premium floating kartice
   -------------------------------------------------------------------------- */
.home-why {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 211, 74, 0.05), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(30, 144, 255, 0.05), transparent 50%),
    var(--color-surface);
}

.home-why__header {
  max-width: min(52rem, 100%);
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  text-align: center;
}

.home-why__header .home-section__title {
  margin-inline: auto;
  white-space: nowrap;
}

.home-why__header .home-section__text {
  margin-inline: auto;
  max-width: 36rem;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.15rem, 0.8rem + 1.4vw, 1.75rem);
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  border-radius: calc(var(--radius-xl) + 2px);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(0, 211, 74, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 211, 74, 0.18),
    0 0 8px rgba(0, 211, 74, 0.32),
    0 0 14px rgba(0, 211, 74, 0.14),
    0 8px 18px rgba(7, 11, 20, 0.04);
  transform: translateY(0);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 42%);
  opacity: 0.9;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(0, 211, 74, 0.22),
    0 0 10px rgba(0, 211, 74, 0.38),
    0 0 16px rgba(0, 211, 74, 0.16),
    0 10px 22px rgba(7, 11, 20, 0.05);
}

.why-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.why-card__index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-brand-green), var(--color-brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(7, 11, 20, 0.06);
}

.why-card__icon--green {
  color: #067a30;
  background: linear-gradient(145deg, rgba(0, 211, 74, 0.18), rgba(0, 211, 74, 0.05));
  border: 1px solid rgba(0, 211, 74, 0.24);
}

.why-card__icon--blue {
  color: #0b63c4;
  background: linear-gradient(145deg, rgba(30, 144, 255, 0.18), rgba(30, 144, 255, 0.05));
  border: 1px solid rgba(30, 144, 255, 0.24);
}

.why-card__title,
.why-card__text {
  position: relative;
  z-index: 1;
}

.why-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.why-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   2) Usluge — media kartice sa slikama
   -------------------------------------------------------------------------- */
.service-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem);
}

.service-media {
  --service-accent: var(--color-brand-green);
  --service-accent-soft: rgba(0, 211, 74, 0.14);
  --service-accent-border: rgba(0, 211, 74, 0.28);
  --service-accent-ink: #067a30;

  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid rgba(16, 24, 40, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 0 0 1px rgba(16, 24, 40, 0.04),
    0 0 10px rgba(16, 24, 40, 0.08),
    0 0 18px rgba(16, 24, 40, 0.05),
    0 8px 20px rgba(16, 24, 40, 0.06);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.service-media--blue {
  --service-accent: var(--color-brand-blue);
  --service-accent-soft: rgba(30, 144, 255, 0.14);
  --service-accent-border: rgba(30, 144, 255, 0.28);
  --service-accent-ink: #0b63c4;
}

.service-media:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(16, 24, 40, 0.06),
    0 0 12px rgba(16, 24, 40, 0.1),
    0 0 22px rgba(16, 24, 40, 0.06),
    0 12px 26px rgba(16, 24, 40, 0.08);
  border-color: rgba(16, 24, 40, 0.12);
  text-decoration: none;
  color: inherit;
}

.service-media:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(16, 24, 40, 0.06),
    0 0 12px rgba(16, 24, 40, 0.1),
    0 8px 20px rgba(16, 24, 40, 0.06),
    var(--focus-ring);
}

.service-media__visual {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.service-media__visual picture {
  display: block;
  width: 100%;
}

.service-media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
  transition: transform 0.55s var(--ease-out);
}

.service-media:hover .service-media__img {
  transform: scale(1.02);
}

.service-media__badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  color: var(--service-accent-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.service-media__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  padding: var(--space-5);
}

.service-media__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.service-media__text {
  margin: 0;
  flex: 1;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.service-media__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--service-accent-ink);
}

.service-media__more svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.service-media:hover .service-media__more svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   3) Proces — centrirani header + horizontalni koraci
   -------------------------------------------------------------------------- */
.home-process {
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(30, 144, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.home-process__header {
  max-width: min(44rem, 100%);
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  text-align: center;
}

.home-process__header .home-section__title {
  margin-inline: auto;
}

.home-process__header .home-section__text {
  margin-inline: auto;
  max-width: 34rem;
}

.process-steps {
  --process-marker-size: 3.1rem;
  --process-gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);

  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--process-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: calc(100% / 8);
  right: calc(100% / 8);
  top: calc(var(--process-marker-size) / 2);
  height: 2px;
  background: linear-gradient(90deg, var(--color-brand-green), var(--color-brand-blue));
  opacity: 0.4;
  pointer-events: none;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
  min-width: 0;
}

.process-step__marker {
  display: flex;
  justify-content: center;
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--process-marker-size);
  height: var(--process-marker-size);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-white);
  border: 3px solid #ffffff;
}

.process-step__num--green {
  background: linear-gradient(145deg, var(--color-brand-green), #00a83c);
  box-shadow: 0 8px 20px rgba(0, 211, 74, 0.28);
}

.process-step__num--blue {
  background: linear-gradient(145deg, var(--color-brand-blue), #1576d9);
  box-shadow: 0 8px 20px rgba(30, 144, 255, 0.28);
}

.process-step__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  padding: clamp(1.25rem, 1rem + 0.9vw, 1.65rem);
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(217, 226, 236, 0.95);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 10px 28px rgba(16, 24, 40, 0.07),
    0 24px 48px rgba(16, 24, 40, 0.04);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.process-step__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.04),
    0 14px 34px rgba(16, 24, 40, 0.09),
    0 28px 56px rgba(16, 24, 40, 0.05);
}

.process-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
}

.process-step__icon--green {
  color: #067a30;
  background: linear-gradient(145deg, rgba(0, 211, 74, 0.16), rgba(0, 211, 74, 0.05));
  border: 1px solid rgba(0, 211, 74, 0.22);
}

.process-step__icon--blue {
  color: #0b63c4;
  background: linear-gradient(145deg, rgba(30, 144, 255, 0.16), rgba(30, 144, 255, 0.05));
  border: 1px solid rgba(30, 144, 255, 0.22);
}

.process-step__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.process-step__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   B2B band
   -------------------------------------------------------------------------- */
.home-b2b {
  padding-block: var(--section-space);
  background: var(--color-surface);
}

.home-b2b__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: var(--space-7);
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(135deg, #0b1220 0%, #121c2e 48%, #0f1a2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.home-b2b__title {
  margin: 0 0 var(--space-4);
  color: var(--color-white);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.home-b2b__text {
  margin: 0 0 var(--space-6);
  max-width: 36rem;
  color: var(--color-text-inverse-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.home-b2b__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-7);
  padding: 0;
  list-style: none;
}

.home-b2b__points li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.home-b2b__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--color-brand-green);
  background: rgba(0, 211, 74, 0.12);
}

.home-b2b__visual {
  position: relative;
  min-height: 16rem;
  display: grid;
  place-items: center;
}

.home-b2b__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.home-b2b__orb--green {
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(0, 211, 74, 0.28), transparent 68%);
  top: 8%;
  right: 8%;
}

.home-b2b__orb--blue {
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.24), transparent 70%);
  bottom: 4%;
  left: 10%;
}

.home-b2b__badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: min(100%, 14rem);
  aspect-ratio: 1;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* B2B logo slider — soft 3D flip */
.b2b-logo-slider {
  --b2b-flip-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --b2b-flip-duration: 1.6s;

  position: relative;
  z-index: 1;
  width: min(100%, 18rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.b2b-logo-slider__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3.2;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.b2b-logo-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: rotateY(48deg) translateZ(-56px) scale(0.94);
  filter: blur(1.5px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    opacity var(--b2b-flip-duration) var(--b2b-flip-ease),
    transform var(--b2b-flip-duration) var(--b2b-flip-ease),
    filter var(--b2b-flip-duration) var(--b2b-flip-ease),
    visibility var(--b2b-flip-duration) var(--b2b-flip-ease);
  pointer-events: none;
  z-index: 1;
}

.b2b-logo-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) translateZ(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 3;
}

.b2b-logo-slider__slide.is-exit {
  opacity: 0;
  visibility: visible;
  transform: rotateY(-48deg) translateZ(-56px) scale(0.94);
  filter: blur(1.5px);
  z-index: 2;
  pointer-events: none;
}

.b2b-logo-slider__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 10px 28px rgba(7, 11, 20, 0.22),
    0 2px 8px rgba(7, 11, 20, 0.12);
  transform: translateZ(0);
}

.b2b-logo-slider__frame picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.b2b-logo-slider__frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.b2b-logo-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.b2b-logo-slider__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    background-color 0.35s var(--b2b-flip-ease),
    transform 0.35s var(--b2b-flip-ease);
}

.b2b-logo-slider__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.b2b-logo-slider__dot.is-active {
  background: var(--color-brand-green);
  transform: scale(1.2);
}

.b2b-logo-slider__dot:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-green);
}

@media (prefers-reduced-motion: reduce) {
  .b2b-logo-slider__slide,
  .b2b-logo-slider__slide.is-active,
  .b2b-logo-slider__slide.is-exit {
    transition: none;
    transform: none;
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.home-cta {
  padding-block: 50px;
  background: linear-gradient(180deg, #eef3f9 0%, #f7fafc 100%);
}

.home-cta__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.home-cta__copy {
  max-width: 34rem;
}

.home-cta__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.15rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.home-cta__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.home-cta__actions {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Motion keyframes
   -------------------------------------------------------------------------- */
@keyframes home-hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-hero-reveal {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes home-hero-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2.5%, 3%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__glow,
  .home-hero__media,
  .home-hero__brand,
  .home-hero__title,
  .home-hero__lead,
  .home-hero__actions,
  .home-hero__trust-item {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .home-hero__layout {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .home-hero__title {
    max-width: 16ch;
  }

  .home-hero__media {
    order: -1;
    max-width: 36rem;
    margin-inline: auto;
    width: 100%;
  }

  .home-hero__trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-why__header .home-section__title {
    white-space: normal;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-8);
  }

  .process-steps::before {
    display: none;
  }

  .process-step:nth-child(-n+2)::after {
    content: '';
    position: absolute;
    left: calc(50% + (var(--process-marker-size) / 2) + 8px);
    right: calc(-0.5 * var(--process-gap) - 8px);
    top: calc(var(--process-marker-size) / 2);
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand-green), var(--color-brand-blue));
    opacity: 0.35;
    pointer-events: none;
  }

  .process-step:nth-child(2)::after {
    display: none;
  }

  .service-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-b2b__panel {
    grid-template-columns: 1fr;
  }

  .home-b2b__visual {
    min-height: 12rem;
  }
}

@media (max-width: 768px) {
  .home-hero__title {
    max-width: none;
    font-size: clamp(2rem, 1.55rem + 3.5vw, 2.75rem);
  }

  .home-hero__actions {
    width: 100%;
  }

  .home-hero__actions .btn {
    width: 100%;
  }

  .home-hero__img {
    --hero-img-radius: var(--radius-lg);
    aspect-ratio: 16 / 11;
  }

  .hero-cube__viewport {
    --hero-img-radius: var(--radius-lg);
    aspect-ratio: 16 / 11;
  }

  .service-media-grid,
  .why-cards,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step:nth-child(-n+2)::after {
    display: none;
  }

  .home-section__header--split .btn {
    width: 100%;
  }

  .home-cta__panel {
    flex-direction: column;
    align-items: stretch;
  }

  .home-cta__actions {
    width: 100%;
  }

  .home-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .home-hero__trust-list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: 25px;
  }

  .home-hero__img {
    --hero-img-radius: var(--radius-md);
  }

  .hero-cube__viewport {
    --hero-img-radius: var(--radius-md);
  }

  .home-b2b__points {
    flex-direction: column;
    align-items: stretch;
  }
}
