/* ==========================================================================
   Emby Technology — Sections
   ========================================================================== */

/* ---------- Generic section ---------- */
.section {
  position: relative;
  padding-block: clamp(6rem, 12vw, 10rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  align-items: end;
}

.section__head .label {
  grid-column: 1 / -1;
}

.section__head .h2 {
  grid-column: 1 / 9;
}

.section__head .lead {
  grid-column: 9 / -1;
}

@media (max-width: 960px) {
  .section__head .h2,
  .section__head .lead {
    grid-column: 1 / -1;
  }
}

/* ---------- 01 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem;
  align-items: center;
  padding-block: clamp(2rem, 6vh, 5rem);
}

.hero__content {
  position: relative;
  z-index: 2;
  grid-column: 1 / 8;
  grid-row: 1;
}

.hero__eyebrow {
  margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.hero__tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75em;
}

.hero__tags i {
  font-style: normal;
}

/* Sized so each line always fits on one row: "Build Smarter." / "Grow Faster." */
.hero__title {
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  font-size: min(15vw, clamp(3.25rem, 7.4vw, 8.75rem));
}

.hero__title .line {
  white-space: nowrap;
}

.hero__lead {
  margin-bottom: clamp(2rem, 4.5vh, 3rem);
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 1;
  justify-self: end;
  width: min(44vw, 640px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* Soft brand glow behind the mark */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 204, 255, 0.16) 0%, rgba(1, 87, 244, 0.06) 45%, transparent 70%);
  filter: blur(20px);
}

/* Orbit rings */
.hero__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hero__orbit--inner {
  inset: 17%;
  border-style: dashed;
  border-color: var(--line-strong);
  animation: spin 80s linear infinite;
}

.hero__orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(1, 87, 244, 0.12);
}

/* The logo turns slowly; the wrapper carries the idle spin so the scroll scene can own the spokes */
.hero__spin {
  position: relative;
  width: 58%;
  height: 58%;
}

.hero__mark {
  width: 100%;
  height: 100%;
}

.hero__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
}

.scroll-cue__line {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  animation: cue 2.4s var(--ease-in-out) infinite;
}

@keyframes cue {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .hero__inner {
    align-content: center;
    row-gap: clamp(1.75rem, 5vh, 3rem);
  }

  /* Title leads on small screens; the tagline follows as tags */
  .hero__content {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
  }

  .hero__title {
    order: -1;
    font-size: min(15vw, clamp(3.25rem, 12vw, 6.5rem));
    margin-bottom: 1.25rem;
  }

  .hero__eyebrow {
    margin-bottom: 1.5rem;
  }

  .hero__eyebrow .dot,
  .hero__tags i {
    display: none;
  }

  .hero__tags {
    gap: 0.4rem;
  }

  .hero__tags span {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }

  .hero__tags span:first-child {
    border-color: transparent;
    background: var(--navy);
    color: #fff;
  }

  .hero__lead {
    margin-bottom: 1.75rem;
  }

  .hero__visual {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(62vw, 340px);
  }
}

@media (max-width: 560px) {
  .hero__inner {
    padding-block: 1.75rem 1rem;
  }

  .hero__actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .hero__actions .btn {
    --btn-h: 48px;
    padding-left: 1.1rem;
    font-size: 0.875rem;
  }

  .hero__actions .btn--ghost {
    padding-right: 1.1rem;
  }

  .hero__actions .btn__icon {
    width: 34px;
    height: 34px;
  }

  .hero__bottom .label:last-child {
    display: none;
  }
}

/* ---------- 01 Hero — scroll scene ---------- */
.hero__mark line {
  stroke: url(#emby-gradient-hero);
}

/* The scene layer only exists when JS builds the scroll scene */
.hero__scene {
  display: none;
}

.scene-on .hero__scene {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
}

.hero__statement {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero__statement-label {
  white-space: nowrap;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero__statement-sep {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero__statement-title {
  font-size: clamp(2.25rem, 5.2vw, 5rem);
  line-height: 0.98;
}

.hero__cap {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
}

.hero__cap span {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 1.5rem;
  padding-inline: 0.4rem;
  border-radius: 999px;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--blue);
}

@media (max-width: 767px) {
  .hero__caps {
    display: none;
  }
}
