/* ============================================================
   EssenHub Hero — outclass first impression (2026)
   Dark SaaS clarity (Linear/Framer) + warm food accents
   Rules: keep ALL existing text; no laptop shell; mobile-first
   ============================================================ */

#top.section-premium-dark {
  --eh-green: #2ba16a;
  --eh-mint: #86eabb;
  --eh-amber: #f59e0b;
  --eh-depth: 1600px;
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  min-height: auto !important;
  padding-top: 5.5rem !important;
  padding-bottom: 3.75rem !important;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(43, 161, 106, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgba(246, 150, 40, 0.12), transparent 50%),
    radial-gradient(ellipse 55% 45% at 0% 70%, rgba(59, 130, 246, 0.1), transparent 55%) !important;
}

@media (min-width: 768px) {
  #top.section-premium-dark {
    padding-top: 6.5rem !important;
    padding-bottom: 4rem !important;
  }
}

@media (min-width: 1024px) {
  #top.section-premium-dark {
    min-height: min(92dvh, 900px) !important;
    padding-top: 7.25rem !important;
    padding-bottom: 4.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
}

/* Soft vignette — draws eye to center / CTA */
#top.section-premium-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, transparent 0%, rgba(7, 16, 32, 0.35) 100%);
}

/* Film grain — premium tactile feel */
#top.section-premium-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Aurora / mesh --- */
#top .eh-hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#top .eh-hero-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.6;
  will-change: transform;
}

#top .eh-hero-aurora__blob--a {
  width: min(78vw, 560px);
  height: min(78vw, 560px);
  top: -12%;
  right: -18%;
  background: radial-gradient(circle at 35% 35%, rgba(43, 161, 106, 0.75), transparent 68%);
  animation: eh-aurora-a 16s ease-in-out infinite;
}

#top .eh-hero-aurora__blob--b {
  width: min(58vw, 440px);
  height: min(58vw, 440px);
  bottom: 0;
  left: -16%;
  background: radial-gradient(circle at 60% 40%, rgba(59, 130, 246, 0.38), transparent 70%);
  animation: eh-aurora-b 20s ease-in-out infinite;
}

#top .eh-hero-aurora__blob--c {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  top: 48%;
  left: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.32), transparent 70%);
  animation: eh-aurora-c 12s ease-in-out infinite;
}

#top .eh-hero-aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 38%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 38%, #000 15%, transparent 72%);
  opacity: 0.5;
}

@keyframes eh-aurora-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-36px, 28px, 0) scale(1.12); }
}
@keyframes eh-aurora-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -22px, 0) scale(1.1); }
}
@keyframes eh-aurora-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(16px, 20px, 0); }
}

/* Content above effects */
#top > .relative.z-10,
#top > div.relative {
  position: relative;
  z-index: 2;
}

/* Entrance: invite scroll without touching copy */
#top.eh-hero-ready > .relative {
  animation: eh-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes eh-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   COPY COLUMN — typography & rhythm (text content unchanged)
   ============================================================ */
#top .eh-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 38rem;
}

/* Badge / eyebrow — long German line must wrap gracefully */
#top .eh-hero-copy > span.inline-flex,
#top .eh-hero-copy span.inline-flex.items-center.gap-2.text-xs {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  text-transform: none !important;
  font-size: clamp(0.72rem, 2.2vw, 0.86rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.45 !important;
  max-width: 100%;
  width: fit-content;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px !important;
  color: #d1fae5 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(43, 161, 106, 0.12)) !important;
  border: 1px solid rgba(134, 234, 187, 0.38) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Headline — clean, no box */
#top .eh-hero-copy h1 {
  margin-top: 1.1rem !important;
  font-size: clamp(1.85rem, 4.8vw, 3.15rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  font-weight: 800 !important;
  text-wrap: balance;
  max-width: 18ch;
}

#top .eh-hero-copy h1 .text-green {
  color: #86eabb !important;
  text-shadow: 0 0 28px rgba(134, 234, 187, 0.4);
}

/* Subcopy — secondary, readable, not competing with H1 */
#top .eh-hero-copy > p.mt-6.text-lg,
#top .eh-hero-copy p.text-lg {
  margin-top: 0.95rem !important;
  font-size: clamp(0.95rem, 1.6vw, 1.125rem) !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 34rem !important;
  text-wrap: pretty;
}

/* Price slogan — offer card */
#top .eh-hero-copy .hero-price-slogan,
#top .hero-price-slogan {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 0.7rem !important;
  width: 100%;
  max-width: 34rem !important;
  margin-top: 1.15rem !important;
  padding: 0.9rem 1.1rem !important;
  border-radius: 1rem !important;
  font-size: clamp(0.88rem, 1.5vw, 1rem) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(43, 161, 106, 0.28), rgba(246, 150, 40, 0.14)) !important;
  border: 1px solid rgba(134, 234, 187, 0.42) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#top .hero-price-slogan-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #86eabb !important;
}

/* Demo readiness pill */
#top .eh-hero-copy .demo-pulse-badge {
  margin-top: 0.85rem !important;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  line-height: 1.35 !important;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem) !important;
  padding: 0.65rem 1.05rem !important;
  box-shadow:
    0 0 0 1px rgba(43, 161, 106, 0.4),
    0 0 28px rgba(43, 161, 106, 0.22) !important;
}

/* CTA row */
#top .eh-hero-copy .mt-9.flex {
  width: 100%;
  margin-top: 1.35rem !important;
  gap: 0.75rem !important;
}

#top .eh-hero-copy .mt-9 .nav-demo-cta {
  position: relative;
  overflow: hidden;
  font-weight: 700 !important;
  box-shadow:
    0 14px 36px rgba(43, 161, 106, 0.45),
    0 0 0 1px rgba(134, 234, 187, 0.3) !important;
}

#top .eh-hero-copy .mt-9 .nav-demo-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: eh-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

#top .eh-hero-copy .mt-9 a[href="#pricing"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#top .eh-hero-copy .mt-9 a[href="#pricing"]:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

/* Trust notes */
#top .eh-hero-copy .mt-10 {
  margin-top: 1.1rem !important;
  gap: 0.55rem 0.85rem !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.82rem !important;
}

#top .eh-hero-copy .mt-10 > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Mobile copy polish --- */
@media (max-width: 767px) {
  #top .eh-hero-copy {
    max-width: 100%;
    width: 100%;
  }

  #top .eh-hero-copy > span.inline-flex,
  #top .eh-hero-copy span.inline-flex.items-center.gap-2.text-xs {
    font-size: 0.74rem !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 1rem !important;
    line-height: 1.4 !important;
  }

  #top .eh-hero-copy h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.3rem) !important;
    line-height: 1.12 !important;
    margin-top: 0.95rem !important;
    max-width: none;
  }

  #top .eh-hero-copy > p.mt-6.text-lg,
  #top .eh-hero-copy p.text-lg {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin-top: 0.85rem !important;
    color: rgba(255, 255, 255, 0.74) !important;
  }

  #top .eh-hero-copy .hero-price-slogan,
  #top .hero-price-slogan {
    margin-top: 1rem !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 0.95rem !important;
  }

  #top .eh-hero-copy .demo-pulse-badge {
    width: 100%;
    justify-content: center !important;
    margin-top: 0.75rem !important;
    font-size: 0.8rem !important;
  }

  #top .eh-hero-copy .mt-9.flex {
    flex-direction: column !important;
    gap: 0.65rem !important;
    margin-top: 1.2rem !important;
  }

  #top .eh-hero-copy .mt-9.flex > a {
    width: 100%;
    justify-content: center !important;
    min-height: 3.2rem;
    border-radius: 999px !important;
    font-size: 0.98rem !important;
  }

  #top .eh-hero-copy .mt-10 {
    margin-top: 0.95rem !important;
    font-size: 0.75rem !important;
    width: 100%;
  }

  #top .eh-hero-copy .mt-10 > span {
    flex: 1 1 auto;
    justify-content: center;
    text-align: left;
  }

  #top .grid {
    gap: 1.75rem !important;
  }

  /* Product stage fills phone width */
  #top .eh-hero-3d {
    max-width: min(100%, 22.5rem) !important;
    margin-top: 0.35rem !important;
  }

  #top .hero-visual-stage {
    min-height: clamp(14.5rem, 58vw, 20rem) !important;
  }

  #top .hero-money-glow-wrap {
    margin-top: 0.85rem !important;
  }

  #top .eh-scroll-cue {
    bottom: 0.65rem;
  }
}

/* --- Desktop copy polish --- */
@media (min-width: 1024px) {
  #top .eh-hero-copy {
    max-width: 40rem;
    padding-right: 0.5rem;
  }

  #top .eh-hero-copy h1 {
    font-size: clamp(2.55rem, 3.4vw, 3.35rem) !important;
    line-height: 1.06 !important;
    max-width: 16ch;
  }

  #top .eh-hero-copy > p.mt-6.text-lg {
    font-size: 1.125rem !important;
    max-width: 36rem !important;
  }

  #top .eh-hero-copy .mt-9.flex {
    flex-wrap: wrap;
  }

  #top .eh-hero-copy .mt-9 .nav-demo-cta:hover {
    box-shadow: 0 18px 44px rgba(43, 161, 106, 0.55) !important;
    transform: translateY(-1px);
  }
}

@keyframes eh-shine {
  0%, 55% { transform: translateX(-120%); }
  75% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* Money strip */
#top .hero-money-glow {
  animation: none !important;
  max-width: min(100%, 28rem);
  margin-inline: auto;
  padding: 0.95rem 1.2rem !important;
  border-radius: 1.2rem !important;
  background:
    linear-gradient(145deg, rgba(185, 28, 28, 0.94), rgba(220, 38, 38, 0.88) 48%, rgba(234, 88, 12, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#top .hero-money-glow-text {
  font-weight: 800 !important;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem) !important;
  line-height: 1.35 !important;
}

#top .hero-money-glow-dot {
  animation: none !important;
}

#top .demo-pulse-badge {
  box-shadow:
    0 0 0 1px rgba(43, 161, 106, 0.4),
    0 0 28px rgba(43, 161, 106, 0.25) !important;
}

/* ---- 3D product stage ---- */
#top .eh-hero-3d {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  transform-style: preserve-3d;
  transform: perspective(var(--eh-depth)) rotateY(-5deg) rotateX(3deg);
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.55));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  animation: eh-float-y 7.5s ease-in-out infinite;
}

/* Soft halo under stage */
#top .eh-hero-3d::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6%;
  height: 28%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(43, 161, 106, 0.35), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

@media (min-width: 1024px) {
  #top .eh-hero-3d {
    max-width: 36rem;
    transform: perspective(var(--eh-depth)) rotateY(-12deg) rotateX(6deg);
  }
  #top .eh-hero-3d.is-tilting {
    transition: transform 0.08s ease-out;
    animation: none;
  }
}

@keyframes eh-float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

#top .hero-visual-stage {
  min-height: clamp(15rem, 48vw, 23rem) !important;
  transform-style: preserve-3d;
  border-radius: 1.5rem;
}

#top .hero-visual-glow {
  background: radial-gradient(
    ellipse at 50% 38%,
    rgba(43, 161, 106, 0.48),
    rgba(59, 130, 246, 0.14) 42%,
    transparent 68%
  ) !important;
  filter: blur(10px) !important;
}

#top .hero-visual-ring {
  transform-style: preserve-3d;
}

#top .hero-visual-ring--outer {
  transform: translateZ(-56px);
  border-color: rgba(134, 234, 187, 0.28) !important;
  box-shadow: 0 0 60px rgba(43, 161, 106, 0.18);
}

#top .hero-visual-ring--inner {
  transform: translateZ(-28px);
}

#top .hero-visual-chip {
  transform: translateZ(48px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

#top .eh-hero-3d img,
#top .eh-hero-3d .brand-logo-img--xl {
  transform: translateZ(64px);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.45));
}

/* Floating story chips */
#top .eh-hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

#top .eh-hero-floater {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #ecfdf5;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

#top .eh-hero-floater span.dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
  flex-shrink: 0;
}

#top .eh-hero-floater--a {
  top: 4%;
  left: -2%;
  animation: eh-floater 5.5s ease-in-out infinite;
}
#top .eh-hero-floater--b {
  top: 14%;
  right: -4%;
  animation: eh-floater 6.4s ease-in-out infinite 0.35s;
}
#top .eh-hero-floater--c {
  bottom: 20%;
  left: -4%;
  animation: eh-floater 7s ease-in-out infinite 0.7s;
}

@keyframes eh-floater {
  0%, 100% { transform: translateY(0) translateZ(36px); }
  50% { transform: translateY(-10px) translateZ(36px); }
}

@media (max-width: 640px) {
  #top .eh-hero-floater--c { display: none; }
  #top .eh-hero-floater {
    font-size: 0.64rem;
    padding: 0.4rem 0.62rem;
  }
  #top .eh-hero-floater--a { left: 0; }
  #top .eh-hero-floater--b { right: 0; }
}

/* Scroll invite — reduces bounce */
#top .eh-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

#top .eh-scroll-cue:hover,
#top .eh-scroll-cue:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

#top .eh-scroll-cue__mouse {
  width: 1.3rem;
  height: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  position: relative;
}

#top .eh-scroll-cue__wheel {
  position: absolute;
  top: 0.32rem;
  left: 50%;
  width: 0.26rem;
  height: 0.42rem;
  margin-left: -0.13rem;
  border-radius: 999px;
  background: var(--eh-mint);
  animation: eh-scroll-wheel 1.55s ease-in-out infinite;
}

@keyframes eh-scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0.12; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (min-width: 1024px) {
  #top .eh-scroll-cue { bottom: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  #top .eh-hero-3d,
  #top .eh-hero-floater,
  #top .eh-hero-aurora__blob,
  #top .eh-scroll-cue__wheel,
  #top.eh-hero-ready > .relative,
  #top .eh-hero-copy .mt-9 .nav-demo-cta::after,
  #top .mt-9 .nav-demo-cta::after,
  #top .mt-9 a.bg-brand::after {
    animation: none !important;
  }
  #top .eh-hero-3d {
    transform: none !important;
  }
}
