/* GoedOnline — hero. Ingehouden, zakelijk. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-slate-950);
  color: #fff;
  padding-block: clamp(5.5rem, 11vw, 9rem) clamp(5rem, 10vw, 8rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
  opacity: 0.7;
}

.hero__bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 98, 217, .25) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
}

.hero__inner {
  display: grid;
  gap: var(--sp-9);
  align-items: center;
  position: relative;
}

@media (min-width: 1040px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-10);
  }
}

.hero__copy {
  --stack-space: var(--sp-5);
  position: relative;
  max-width: 36rem;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
  color: #fff;
  margin: 0;
}

.hero__title em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  color: var(--color-cobalt-300);
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .72);
  line-height: var(--lh-relaxed);
  max-width: 34rem;
  margin: 0;
}

.hero__cta {
  --cluster-gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .65);
  font-size: var(--fs-sm);
  font-weight: var(--weight-regular);
  align-items: center;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero__trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}

.hero__trust .stars {
  color: rgba(255, 255, 255, .25);
}

.hero__trust .stars__star.is-on {
  color: #E8BE5A;
}

/* Eyebrow on dark */
.eyebrow.on-dark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cobalt-400);
  box-shadow: 0 0 0 4px rgba(59, 98, 217, .25);
}

/* Visual: stacked browser-chromes */
.hero__visual {
  position: relative;
  perspective: 1600px;
  padding: var(--sp-4);
  min-height: 420px;
}

.hero__chrome {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  max-width: 560px;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, .65);
  transform-origin: 50% 50%;
  animation: hero-cycle 21s var(--ease-in-out) infinite;
  will-change: transform, opacity;
}

.hero__chrome--0 { animation-delay: 0s; z-index: 3; }
.hero__chrome--1 { animation-delay: -7s; z-index: 2; }
.hero__chrome--2 { animation-delay: -14s; z-index: 1; }

@keyframes hero-cycle {
  0%   { opacity: 1; transform: translate(0, 0) rotate(-1deg) scale(1); z-index: 3; }
  22%  { opacity: 1; transform: translate(0, 0) rotate(-1deg) scale(1); }
  33%  { opacity: 0.85; transform: translate(-28px, 24px) rotate(-3deg) scale(0.94); z-index: 2; }
  66%  { opacity: 0.55; transform: translate(28px, 44px) rotate(2.5deg) scale(0.88); z-index: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(-1deg) scale(1); z-index: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__chrome {
    animation: none;
    transform: none;
    position: relative;
    margin-bottom: var(--sp-4);
  }
  .hero__chrome--1, .hero__chrome--2 { display: none; }
}

@media (max-width: 720px) {
  .hero__visual {
    min-height: 300px;
  }
  .hero__chrome {
    max-width: 92%;
  }
}
