/* === Hero section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 14rem;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 1200px 450px at 8% 35%, rgba(228, 54, 99, 0.30), transparent),
    linear-gradient(180deg, rgba(14, 14, 14, 0) 72%, rgba(14, 14, 14, 0.12) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -12%;
  width: min(58vw, 920px);
  height: clamp(240px, 28vw, 420px);
  background: radial-gradient(
    ellipse at 24% 76%,
    rgba(228, 54, 99, 0.18) 0%,
    rgba(228, 54, 99, 0.11) 28%,
    rgba(228, 54, 99, 0.04) 52%,
    transparent 76%
  );
  filter: blur(16px);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 15vw, 220px);
  background: linear-gradient(180deg, rgba(13, 12, 15, 0) 0%, rgba(13, 12, 15, 0.05) 56%, rgba(13, 12, 15, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__characters video,
.hero__characters img {
  -webkit-mask-image: linear-gradient(to bottom, white 65%, transparent 95%);
  mask-image: linear-gradient(to bottom, white 65%, transparent 95%);
}


/* === Syrup drip video at top === */
.hero__syrup {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}


.hero__syrup video {
  width: 100%;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.85;
  filter: brightness(0.7);
  -webkit-mask-image: linear-gradient(to bottom, white 40%, transparent 70%);
  mask-image: linear-gradient(to bottom, white 40%, transparent 70%);
}

/* === Main hero grid === */
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* === Left column (text) === */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero__super {
  font-family: var(--font-label);
  font-size: var(--text-label-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.hero__title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--on-surface-bright);
}

.hero__title span {
  display: block;
}

.hero__title .gradient-text {
  display: inline;
  font-size: inherit;
}


.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--on-surface);
  max-width: 520px;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.hero__cta {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* === Right column (visual) === */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% 8%;
  height: clamp(280px, 34vw, 500px);
  background: radial-gradient(
    ellipse at 72% 78%,
    rgba(13, 12, 15, 0.82) 0%,
    rgba(13, 12, 15, 0.58) 34%,
    rgba(13, 12, 15, 0.16) 56%,
    transparent 76%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

/* Laser grid behind characters */
.hero__visual::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    linear-gradient(rgba(228, 54, 99, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 54, 99, 0.35) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse 45% 45% at 50% 50%, black 15%, transparent 65%);
  mask-image: radial-gradient(ellipse 45% 45% at 50% 50%, black 15%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero__characters {
  position: relative;
  z-index: 1;
  width: 100%;
  transform: scale(1.5);
  transform-origin: center center;
}

.hero__characters picture {
  display: block;
  width: 100%;
}

.hero__characters video,
.hero__characters img {
  width: 100%;
  display: block;
}

/* === Character name labels === */
.hero__character-labels {
  position: absolute;
  bottom: 28%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 8%;
  pointer-events: none;
  z-index: 2;
}

.hero__character-name {
  font-family: var(--font-label);
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.3em 0.7em;
  border-radius: 4px;
  white-space: nowrap;
}

.hero__character-name--left {
  transform: translateX(-5%);
}

.hero__character-name--right {
  transform: translateX(5%);
}

/* === Scattered logos === */
.hero__logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__logo {
  position: absolute;
  opacity: 0.5;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.hero__logo:hover {
  opacity: 0.8;
  pointer-events: auto;
}

.hero__logo--1 {
  top: 5%;
  right: 8%;
  width: 120px;
  --float-rotate: -8deg;
  --float-duration: 5s;
  --float-delay: 0s;
}

.hero__logo--2 {
  top: 15%;
  left: 5%;
  width: 95px;
  --float-rotate: 12deg;
  --float-duration: 4.5s;
  --float-delay: 0.5s;
}

.hero__logo--3 {
  bottom: 20%;
  right: 3%;
  width: 130px;
  --float-rotate: -5deg;
  --float-duration: 6s;
  --float-delay: 1s;
}

.hero__logo--4 {
  bottom: 25%;
  left: -2%;
  width: 90px;
  --float-rotate: 15deg;
  --float-duration: 4s;
  --float-delay: 1.5s;
}

.hero__logo--5 {
  top: 40%;
  right: 45%;
  width: 75px;
  --float-rotate: -10deg;
  --float-duration: 5.5s;
  --float-delay: 0.8s;
}

/* === Math formula overlay === */
.hero__math-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__formula {
  position: absolute;
  font-family: 'Georgia', serif;
  font-style: italic;
  color: var(--on-surface);
  opacity: 0.03;
  font-size: clamp(1rem, 2vw, 1.5rem);
  white-space: nowrap;
}

/* === Responsive === */
@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__subtitle {
    margin: 0 auto;
  }

  .hero__badges {
    justify-content: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero__logo--2,
  .hero__logo--4,
  .hero__logo--5 {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: var(--space-5xl);
  }

  .hero__logos {
    display: none;
  }
}
