/* JK Ventures — Homepage Hero (Netzwerk-Design) */
.jk-home-hero {
  --jk-navy-0: #050d1a;
  --jk-navy-1: #0a1628;
  --jk-navy-2: #12233a;
  --jk-gold: #c9a84c;
  --jk-gold-soft: rgba(201, 168, 76, 0.55);
  --jk-ink: #f4f1ea;
  --jk-muted: rgba(244, 241, 234, 0.72);
  --jk-font-serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --jk-font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--jk-navy-0) 0%, var(--jk-navy-1) 48%, #081422 100%);
  color: var(--jk-ink);
  font-family: var(--jk-font-sans);
}

.jk-home-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.jk-home-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 40% 35%, #000 0%, transparent 72%);
}

.jk-home-hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(58%, 520px);
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.38;
  mix-blend-mode: screen;
  filter: saturate(0.95) contrast(1.05);
}

.jk-home-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 62%) var(--my, 38%),
    rgba(201, 168, 76, 0.14),
    transparent 55%
  );
  transition: background 0.18s ease-out;
}

.jk-home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7.5rem 1.25rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.jk-home-hero__copy {
  max-width: 36rem;
}

.jk-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(244, 241, 234, 0.78);
  font-weight: 500;
}

.jk-home-hero__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--jk-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
  flex-shrink: 0;
}

.jk-home-hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--jk-font-serif);
  font-weight: 560;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #f7f4ec;
  max-width: 16ch;
}

.jk-home-hero__title.jk-gradient-text {
  background: linear-gradient(90deg, #c9a84c 0%, #e0c36a 48%, #f3e6c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.jk-home-hero__rotate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.55rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: rgba(244, 241, 234, 0.78);
  font-weight: 400;
}

.jk-home-hero__word-wrap {
  position: relative;
  display: inline-grid;
  min-width: 8.5ch;
  height: 1.35em;
  overflow: hidden;
  vertical-align: baseline;
}

.jk-home-hero__word {
  grid-area: 1 / 1;
  color: var(--jk-gold);
  font-weight: 600;
  transition: opacity 0.45s ease, transform 0.45s ease;
  white-space: nowrap;
}

.jk-home-hero__word.is-out {
  opacity: 0;
  transform: translateY(-0.55em);
}

.jk-home-hero__word.is-in {
  opacity: 1;
  transform: translateY(0);
}

.jk-home-hero__word.is-enter {
  opacity: 0;
  transform: translateY(0.55em);
}

.jk-home-hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--jk-muted);
  max-width: 34rem;
}

.jk-home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2.25rem;
}

.jk-home-hero__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #d4b45a 0%, var(--jk-gold) 55%, #b8943d 100%);
  color: #0a1220;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.jk-home-hero__btn-primary:hover {
  transform: scale(1.035);
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.4),
    0 14px 32px rgba(201, 168, 76, 0.38),
    0 0 36px rgba(201, 168, 76, 0.28);
}

.jk-home-hero__btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(244, 241, 234, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.35rem 0;
}

.jk-home-hero__btn-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: rgba(201, 168, 76, 0.85);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.jk-home-hero__btn-ghost:hover::after {
  transform: scaleX(1);
}

.jk-home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jk-home-hero__stat {
  min-width: 0;
}

.jk-home-hero__stat.jk-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.4rem;
  padding: 0.85rem 0.8rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.jk-home-hero__stat-value {
  display: block;
  font-family: var(--jk-font-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  color: #f7f4ec;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.jk-home-hero__stat-label {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(244, 241, 234, 0.62);
}

/* Network map */
.jk-home-hero__map {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-left: auto;
  aspect-ratio: 1.05 / 1;
}

.jk-home-hero__map-frame {
  position: absolute;
  inset: 4% 2% 6% 4%;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 48% 42%, rgba(201, 168, 76, 0.08), transparent 42%),
    linear-gradient(160deg, rgba(18, 35, 58, 0.55), rgba(8, 16, 30, 0.25));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.18);
}

.jk-home-hero__map svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.jk-map-line {
  fill: none;
  stroke: rgba(201, 168, 76, 0.55);
  stroke-width: 1.35;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  animation: jk-map-dash 3.4s linear infinite;
}

.jk-map-node {
  transform-box: fill-box;
  transform-origin: center;
}

.jk-map-node__pulse {
  fill: rgba(201, 168, 76, 0.22);
  animation: jk-map-pulse 3.6s ease-out infinite;
}

.jk-map-node__core {
  fill: #d7bc6a;
  stroke: rgba(255, 245, 214, 0.55);
  stroke-width: 1;
}

.jk-map-node--hub .jk-map-node__core {
  fill: var(--jk-gold);
  stroke: rgba(255, 250, 230, 0.75);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.55));
}

.jk-map-node--hub .jk-map-node__pulse {
  fill: rgba(201, 168, 76, 0.28);
}

.jk-map-label {
  fill: rgba(244, 241, 234, 0.78);
  font-family: var(--jk-font-sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.jk-map-label--hub {
  fill: #f0e2b5;
  font-weight: 600;
  font-size: 12px;
}

.jk-map-node:nth-child(1) .jk-map-node__pulse { animation-delay: 0s; }
.jk-map-node:nth-child(2) .jk-map-node__pulse { animation-delay: 0.6s; }
.jk-map-node:nth-child(3) .jk-map-node__pulse { animation-delay: 1.2s; }
.jk-map-node:nth-child(4) .jk-map-node__pulse { animation-delay: 1.8s; }
.jk-map-node:nth-child(5) .jk-map-node__pulse { animation-delay: 2.4s; }
.jk-map-node:nth-child(6) .jk-map-node__pulse { animation-delay: 3s; }
.jk-map-node:nth-child(7) .jk-map-node__pulse { animation-delay: 3.6s; }

@keyframes jk-map-dash {
  to { stroke-dashoffset: -48; }
}

@keyframes jk-map-pulse {
  0% { transform: scale(0.55); opacity: 0.7; }
  70% { transform: scale(2.35); opacity: 0; }
  100% { transform: scale(2.35); opacity: 0; }
}

/* Load reveal — progressive enhancement */
.js-home-hero .jk-hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-home-hero .jk-hero-reveal.is-in {
  opacity: 1;
  transform: none;
}

.js-home-hero .jk-home-hero__map {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}

.js-home-hero .jk-home-hero__map.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .jk-map-line,
  .jk-map-node__pulse {
    animation: none !important;
  }
  .js-home-hero .jk-hero-reveal,
  .js-home-hero .jk-home-hero__map {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .jk-home-hero__word {
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .jk-home-hero {
    min-height: auto;
  }

  .jk-home-hero__inner {
    grid-template-columns: 1fr;
    padding: 6.5rem 1.15rem 3.25rem;
    gap: 2rem;
  }

  .jk-home-hero__title {
    max-width: none;
  }

  .jk-home-hero__map {
    max-width: 28rem;
    margin: 0 auto;
    opacity: 0.82;
  }

  .jk-home-hero__map-frame {
    inset: 0;
  }
}

@media (max-width: 640px) {
  .jk-home-hero__skyline {
    opacity: 0.28;
    height: 48%;
  }

  .jk-home-hero__stats {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .jk-home-hero__map {
    opacity: 0.55;
    max-width: 22rem;
  }

  .jk-map-label {
    font-size: 10px;
  }

  .jk-home-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}
