/* ==========================================================================
   Section: .hero-genny2  —  myGenny hero: Privatkunden + Schweizer Broker
   Fully namespaced. Independent of .hero and .hero-genny.
   Design canvas: 1920 x 800, 300px side gutters (1320px content).
   Assets at /i2/: genny2-mesh.png  genny2-laptop.png  genny2-wordmark.png
   ========================================================================== */

.hero-genny2 {
  --hg2-coral: #f48360;
  --hg2-noire: #1d1d1d;
  --hg2-noire-75: #404040;

  position: relative;
  height: 800px;
  padding: 80px 0 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  font-family: "Poppins", sans-serif;
  color: #fff;
}

/* ── Decoration ──────────────────────────────────────────────────────────── */
.hero-genny2__glow {
  position: absolute;
  left: 16%;
  top: -14%;
  width: 88%;
  aspect-ratio: 2144 / 2043;
  background: url("/i2/genny2-mesh.png") center/contain no-repeat;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero-genny2__mesh {
  position: absolute;
  left: 45%;
  top: -35px;
  width: 55%;
  aspect-ratio: 2144 / 2043;
  background: url("/i2/genny2-mesh.png") center/contain no-repeat;
  z-index: 1;
  pointer-events: none;
}
.hero-genny2__device {
  position: absolute;
  left: 61%;
  bottom: -2%;
  width: 33%;
  aspect-ratio: 1600 / 1195;
  background: url("/i2/genny2-laptop.png") center bottom/contain no-repeat;
  z-index: 2;
  pointer-events: none;
}

/* ── Content ─────────────────────────────────────────────────────────────── */
.hero-genny2__content {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-genny2__logo {
  display: block;
  width: 276px;
  height: auto;
}

.hero-genny2__heading {
  margin: 48px 0 40px;
  font-weight: 500;
  font-size: clamp(36px, 3.4vw, 64px);
  line-height: 110%;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-genny2__cards {
  display: flex;
  gap: 24px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.hero-genny2__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 536px;
  min-height: 295px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.hero-genny2__card--private {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-genny2__card--broker {
  background: linear-gradient(104.12deg, rgba(244, 131, 96, 0.55) 0%, rgba(21, 15, 13, 0.32) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background-origin: border-box; /* stop the gradient tiling under the border (coral edge line) */
}

.hero-genny2__card-body {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 24px;
}
.hero-genny2__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.hero-genny2__card-title {
  margin: 0;
  font-weight: 500;
  font-size: 32px;
  line-height: 110%;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-genny2__card-text {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.8);
}

.hero-genny2__tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(244, 131, 96, 0.16);
  font-weight: 600;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hg2-coral);
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.hero-genny2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.hero-genny2__btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 6px 6px 6px 16px;
  border-radius: 32px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease;
}
.hero-genny2__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.hero-genny2__btn-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 32px;
  transition: transform 0.2s ease;
}
.hero-genny2__btn:hover .hero-genny2__btn-icon {
  transform: translateX(2px);
}

/* live market — grey pill, coral icon */
.hero-genny2__btn--live {
  background: var(--hg2-noire-75);
  color: #fff;
}
.hero-genny2__btn--live:hover {
  background: #4d4d4d;
}
.hero-genny2__btn--live .hero-genny2__btn-icon {
  background: var(--hg2-coral);
  color: var(--hg2-noire);
}

/* upcoming market — dark pill, "BALD" badge, no icon */
.hero-genny2__btn--soon {
  padding: 14px 16px;
  background: var(--hg2-noire);
  color: #fff;
  cursor: default;
}
.hero-genny2__badge {
  position: absolute;
  top: -4px;
  right: 20px;
  display: flex;
  align-items: center;
  height: 15px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--hg2-coral);
  font-weight: 600;
  font-size: 10px;
  line-height: 15px;
  text-transform: uppercase;
  color: #000;
}

/* primary — coral pill, dark icon */
.hero-genny2__btn--primary {
  background: var(--hg2-coral);
  color: var(--hg2-noire);
}
.hero-genny2__btn--primary:hover {
  background: #f79574;
}
.hero-genny2__btn--primary .hero-genny2__btn-icon {
  background: var(--hg2-noire);
  color: var(--hg2-coral);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1500px) {
  .hero-genny2__device {
    left: auto;
    right: -2%;
    width: 38%;
  }
}

@media (max-width: 1200px) {
  .hero-genny2 {
    height: auto;
    padding: 72px 0 360px;
  }
  .hero-genny2__cards {
    align-self: stretch;
  }
  .hero-genny2__card {
    flex: 1 1 0;
    width: auto;
  }
  .hero-genny2__device {
    right: 50%;
    transform: translateX(50%);
    bottom: -40px;
    width: min(620px, 80%);
  }
  .hero-genny2__mesh {
    left: 30%;
    top: auto;
    bottom: -20%;
    width: 75%;
  }
}

@media (max-width: 760px) {
  .hero-genny2 {
    padding: 56px 0 260px;
  }
  .hero-genny2__logo {
    width: 200px;
  }
  .hero-genny2__heading {
    margin: 28px 0 28px;
  }
  .hero-genny2__cards {
    flex-direction: column;
    gap: 16px;
  }
  .hero-genny2__card {
    flex: none;
    width: 100%;
    min-height: 0;
    padding: 20px;
    gap: 24px;
  }
  .hero-genny2__card-body {
    gap: 16px;
  }
  .hero-genny2__card-title {
    font-size: 26px;
  }
  .hero-genny2__card-head {
    align-items: flex-start;
    gap: 12px;
  }
  .hero-genny2__actions {
    gap: 14px 12px;
  }
  .hero-genny2__device {
    width: 110%;
    bottom: -30px;
  }
  .hero-genny2__mesh {
    left: 10%;
    width: 120%;
    bottom: -12%;
  }
  .hero-genny2__glow {
    left: 0;
    width: 140%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-genny2__btn,
  .hero-genny2__btn-icon {
    transition: none;
  }
}
