/* =========================================================
   HAEGL HERO SECTION — 3D Particle Sculpture & 3D Depth Flip
   Extracted into dedicated static stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   Hero Section Container & Layout
   --------------------------------------------------------- */
.haegl-unified-hero-wrap {
  width: 100%;
  background: #080808 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.haegl-hero {
  --hero-red: #d4002a;
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-height, 80px) + 20px);
  min-height: calc(100dvh - var(--header-height, 80px) + 20px);
  margin-bottom: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--header-height, 80px) + 2.5vh) 5vw 24px;
  background: radial-gradient(ellipse 65% 82% at 70% 50%, #b80024 0%, #600818 45%, #13030b 88%);
  user-select: none;
  -webkit-user-select: none;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  color: #fff;
  box-sizing: border-box;
}

/* Background 3D WebGL Canvas */
.haegl-hero canvas.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: pan-y;
  z-index: 1;
  pointer-events: none !important;
}

/* ---------------------------------------------------------
   Left Column: Content & 3D Depth Flip Typography
   --------------------------------------------------------- */
.haegl-hero .hero-content-col {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}

.haegl-hero .hero-content-col * {
  pointer-events: auto;
}

/* Studio Badge */
.haegl-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.haegl-hero .hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 10px #ff4d6d;
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 1; }
}

/* 3D Depth Flip Stage — Fixed Anchor Stage */
.haegl-hero .depth-flip-stage {
  position: relative;
  width: 100%;
  min-height: 185px;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: block;
}

/* Both phrase layers are anchored to the exact same top-left origin */
.haegl-hero .depth-phrase-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform-style: preserve-3d;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.haegl-hero .depth-phrase-layer.layer-active {
  opacity: 1;
  pointer-events: auto;
}

.haegl-hero .depth-line {
  font-family: "Bricolage Grotesque", system-ui, sans-serif !important;
  font-size: clamp(38px, 5.2vw, 84px) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.04em !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff;
  display: block;
  white-space: nowrap;
  overflow: visible;
  transform-style: preserve-3d;
}

.haegl-hero .depth-line.line-highlight {
  color: #ffd3da;
  text-shadow: 0 0 40px rgba(255, 77, 109, 0.35);
}

.haegl-hero .flip-word {
  display: inline-block;
  white-space: nowrap;
  transform-style: preserve-3d;
}

/* Individual 3D Flip Character */
.haegl-hero .flip-char {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.haegl-hero .flip-space {
  display: inline-block;
  width: 0.28em;
}

/* Subtitle */
.haegl-hero .hero-sub {
  font-family: "Bricolage Grotesque", system-ui, sans-serif !important;
  font-size: clamp(16px, 1.45vw, 19px) !important;
  line-height: 1.55 !important;
  opacity: 0.92;
  max-width: 500px;
  margin: 4px 0 10px;
  color: #ffffff;
  font-weight: 400;
}

.haegl-hero .text-effect-word {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

/* CTA Buttons */
.haegl-hero .hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.haegl-hero .btn-hero {
  font-family: "Space Mono", monospace !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 999px !important;
  padding: 13px 28px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease !important;
  border: 1.5px solid transparent !important;
}

.haegl-hero .btn-hero:hover {
  transform: translateY(-2px) scale(1.02);
}

.haegl-hero .btn-hero-solid {
  background: #ffffff !important;
  color: #d4002a !important;
  border-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.haegl-hero .btn-hero-solid:hover {
  background: #ffe9ec !important;
  box-shadow: 0 12px 30px rgba(212, 0, 42, 0.3);
}

.haegl-hero .btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.haegl-hero .btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #ffffff !important;
}

/* ---------------------------------------------------------
   6. Trust & Recognition Deck Showcase (Recognised & Funded + Powered By)
   Creative Dual-Deck Showcase: 100% Zero Layout Shift & Zero Height Change
   --------------------------------------------------------- */
.haegl-hero .hero-powered-box,
.haegl-hero .hero-trust-box {
  margin-top: 14px;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

/* Glassmorphic Header & Switcher Tabs */
.haegl-hero .hero-powered-header,
.haegl-hero .hero-trust-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.haegl-hero .hero-trust-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 3px 6px;
  margin: 0;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s ease;
  outline: none;
}

.haegl-hero .hero-trust-tab:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.6);
}

.haegl-hero .hero-trust-label {
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: color 0.25s ease;
  white-space: nowrap;
}

.haegl-hero .hero-trust-tab:hover .hero-trust-label {
  color: rgba(255, 255, 255, 0.85);
}

.haegl-hero .hero-trust-tab.active .hero-trust-label {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.35);
}

.haegl-hero .hero-trust-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.haegl-hero .hero-trust-pulse,
.haegl-hero .hero-powered-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.haegl-hero .hero-trust-pulse.gold {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.haegl-hero .hero-trust-pulse.red,
.haegl-hero .hero-powered-pulse {
  background: #ff4d6d;
  box-shadow: 0 0 10px #ff4d6d;
}

.haegl-hero .hero-trust-tab.active .hero-trust-pulse {
  opacity: 1;
  box-shadow: 0 0 10px currentColor, 0 0 16px currentColor;
  animation: badgePulse 2s infinite ease-in-out;
}

.haegl-hero .hero-powered-label {
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Logos Deck / Grid Container */
.haegl-hero .hero-powered-logos,
.haegl-hero .hero-trust-deck {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;
}

.haegl-hero .hero-powered-logos,
.haegl-hero .hero-trust-deck.active {
  display: flex;
  animation: trustFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes trustFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Recognised & Funded By Partner Badges: Clean, Uniform, Even Enamel Badges */
.haegl-hero .hero-partner-card {
  flex: 1 1 0px;
  min-width: 78px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 6px 8px;
  box-sizing: border-box;
}

.haegl-hero .hero-partner-card:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.38), 0 0 14px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: #ffffff;
}

.haegl-hero .hero-partner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.haegl-hero .hero-partner-card:hover::after {
  opacity: 1;
}

.haegl-hero .hero-partner-card img {
  display: block;
  flex-shrink: 0;
  max-width: 86%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.haegl-hero .hero-partner-card.tall img {
  max-height: 32px;
  max-width: 80%;
}

.haegl-hero .hero-partner-card.wide img {
  max-height: 24px;
  max-width: 90%;
}

.haegl-hero .hero-partner-card:hover img {
  transform: scale(1.05);
}

.haegl-hero .hero-platform-icon {
  flex: 1 1 0px;
  min-width: 78px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 6px 10px;
}

.haegl-hero .hero-platform-icon:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 10px 24px rgba(212, 0, 42, 0.35), 0 0 14px rgba(255, 77, 109, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.haegl-hero .hero-platform-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 77, 109, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.haegl-hero .hero-platform-icon:hover::after {
  opacity: 1;
}

.haegl-hero .hero-platform-icon svg {
  display: block;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 26px;
  transition: transform 0.28s ease, filter 0.28s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.haegl-hero .hero-platform-icon:hover svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.85));
}

.haegl-hero .hero-platform-icon.aws svg {
  width: 44px;
  height: 28px;
}

.haegl-hero .hero-platform-icon.google svg {
  width: 28px;
  height: 28px;
}

.haegl-hero .hero-platform-icon.azure svg {
  width: 25px;
  height: 25px;
}

.haegl-hero .hero-platform-icon.nvidia svg {
  width: 30px;
  height: 30px;
}

.haegl-hero .hero-platform-icon.cloudflare svg {
  width: 32px;
  height: 32px;
}

.haegl-hero .hero-platform-icon.razorpay svg {
  width: 28px;
  height: 28px;
}

/* ---------------------------------------------------------
   Under-the-Dots Creative Floating HUD
   Ultra-sleek, lightweight, non-clumsy minimalist display
   --------------------------------------------------------- */
.haegl-hero .sculpture-hud {
  position: absolute;
  left: var(--sculpture-cx, 78.5%);
  transform: translateX(-50%);
  bottom: clamp(26px, 4.5vh, 42px);
  width: min(520px, calc(42vw - 12px));
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  z-index: 10;
  pointer-events: auto;
  text-align: center;
  transition: opacity 0.3s ease;
}

/* Floating Glassmorphic Pill Tag */
.haegl-hero .hud-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(20, 3, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.haegl-hero .hud-pill:hover {
  background: rgba(20, 3, 8, 0.82);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 16px 45px rgba(212, 0, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.haegl-hero .hud-icon {
  font-size: 14px;
  line-height: 1;
  color: #ff6685;
  flex-shrink: 0;
}

.haegl-hero .hud-name {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.haegl-hero .hud-dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.haegl-hero .hud-caption {
  color: #ffd3da;
  font-size: 12.5px;
  font-weight: 450;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  opacity: 0.95;
  flex-shrink: 0;
}

/* Minimalist Segment Progress Controls */
.haegl-hero .hud-segments {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.haegl-hero .hud-segment-btn {
  flex: 1;
  height: 28px;
  padding: 0 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  user-select: none;
  transition: transform 0.2s ease;
}

.haegl-hero .hud-segment-btn:hover {
  transform: translateY(-1px);
}

.haegl-hero .hud-segment-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.haegl-hero .hud-segment-btn:hover .hud-segment-bar {
  background: rgba(255, 255, 255, 0.5);
}

.haegl-hero .hud-segment-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #ff4d6d, #ffffff);
  border-radius: 999px;
}

.haegl-hero .hud-segment-btn.active .hud-segment-bar {
  background: rgba(255, 255, 255, 0.35);
}

.haegl-hero .hud-segment-btn.active .hud-segment-bar-fill {
  animation: hudFill var(--dur, 4.2s) linear forwards;
}

@keyframes hudFill {
  from { width: 0; }
  to { width: 100%; }
}

.haegl-hero .hud-segment-label {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s ease;
  text-transform: uppercase;
}

.haegl-hero .hud-segment-btn:hover .hud-segment-label {
  color: rgba(255, 255, 255, 0.9);
}

.haegl-hero .hud-segment-btn.active .hud-segment-label {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Desktop: mobile canvas zone is hidden */
.haegl-hero .hero-mobile-canvas-zone {
  display: none;
}

/* ---------------------------------------------------------
   Responsive & Mobile Adaptations — Universal Mobile Fit
   --------------------------------------------------------- */
@media (max-width: 900px) {
  /* The unified wrap covers mobile screens gracefully with zero clipping */
  .haegl-unified-hero-wrap {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: #080808 !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .haegl-hero {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: calc(var(--header-height, 70px) + clamp(4px, 1.2vh, 10px)) !important;
    padding-bottom: clamp(4px, 1vh, 10px) !important;
    padding-left: clamp(14px, 4vw, 24px) !important;
    padding-right: clamp(14px, 4vw, 24px) !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    width: 100% !important;
    transition: padding-top 0.25s ease;
  }

  body.has-intern-banner .haegl-hero {
    padding-top: calc(var(--header-height, 70px) + var(--intern-banner-height-mb, 36px) + clamp(4px, 1.2vh, 10px)) !important;
  }

  /* Pinned bottom marquee flush with bottom viewport edge */
  .haegl-platform-marquee {
    flex: 0 0 auto !important;
    margin-top: auto !important;
    width: 100% !important;
    padding: 0 !important;
    background: #080808 !important;
    z-index: 5 !important;
  }

  .haegl-platform-marquee .haegl-tech-marquee {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Flatten content col so children can be ordered with the canvas spacer & HUD */
  .haegl-hero .hero-content-col {
    display: contents !important;
  }

  /* 1. TOP: Studio Badge */
  .haegl-hero .hero-badge {
    order: 1 !important;
    margin: 0 auto clamp(2px, 0.7vh, 6px) !important;
    padding: 5px clamp(10px, 3vw, 14px) !important;
    font-size: clamp(10px, 2.7vw, 11.5px) !important;
    letter-spacing: 0.01em !important;
    pointer-events: auto !important;
    max-width: 92% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 0 !important;
  }

  /* 2. TOP: "Custom Software. Smarter with AI." */
  .haegl-hero .depth-flip-stage {
    order: 2 !important;
    width: 100% !important;
    min-height: clamp(56px, 14vw, 74px) !important;
    margin: 0 auto clamp(2px, 0.7vh, 6px) !important;
    text-align: center !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
  }

  .haegl-hero .depth-phrase-layer {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .haegl-hero .depth-line {
    font-size: clamp(23px, 6.8vw, 34px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* 3. MIDDLE: 3D Particle Sculpture Visual Zone (Scales proportionally to fill vertical height) */
  .haegl-hero .hero-mobile-canvas-zone {
    display: block !important;
    width: 100% !important;
    height: clamp(120px, 16.5vh, 185px) !important;
    flex: 0 1 clamp(120px, 16.5vh, 185px) !important;
    pointer-events: none !important;
    order: 3 !important;
    margin: 0 auto !important;
  }

  /* 4. BELOW PARTICLES: HUD Discipline Pill & Segment Controls */
  .haegl-hero .sculpture-hud {
    order: 4 !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: min(390px, 94vw) !important;
    margin: 0 auto clamp(4px, 0.9vh, 9px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: clamp(4px, 0.9vh, 8px) !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  .haegl-hero .hud-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: fit-content !important;
    max-width: 88vw !important;
    padding: 6px 18px !important;
    border-radius: 999px !important;
    background: rgba(22, 3, 9, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, background 0.25s ease !important;
  }

  .haegl-hero .hud-name {
    font-size: clamp(11px, 2.8vw, 12.5px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    white-space: nowrap !important;
  }

  .haegl-hero .hud-icon {
    font-size: clamp(13px, 3.4vw, 15px) !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  .haegl-hero .hud-dot-sep,
  .haegl-hero .hud-caption {
    display: none !important;
  }

  .haegl-hero .hud-segments {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: min(360px, 94vw) !important;
    gap: clamp(3px, 1.2vw, 6px) !important;
    box-sizing: border-box !important;
  }

  .haegl-hero .hud-segment-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 22px !important;
    padding: 0 1px !important;
  }

  .haegl-hero .hud-segment-label {
    font-size: clamp(7.5px, 2.1vw, 8.5px) !important;
    letter-spacing: clamp(0.1px, 0.4vw, 0.4px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: center !important;
  }

  /* 5. BOTTOM: Description Text */
  .haegl-hero .hero-sub {
    order: 5 !important;
    font-size: clamp(12px, 3.2vw, 13.5px) !important;
    line-height: 1.44 !important;
    max-width: min(440px, 92vw) !important;
    text-align: center !important;
    margin: 0 auto clamp(4px, 1vh, 12px) !important;
    opacity: 0.88 !important;
    position: relative !important;
    z-index: 25 !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
    transition: opacity 0.2s ease;
  }

  /* 6. BOTTOM: CTA Buttons */
  .haegl-hero .hero-cta {
    order: 6 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(8px, 2.5vw, 14px) !important;
    margin: 0 auto clamp(4px, 1vh, 12px) !important;
    width: 100% !important;
    max-width: min(380px, 94vw) !important;
    position: relative !important;
    z-index: 60 !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
  }

  .haegl-hero .btn-hero {
    flex: 0 1 auto !important;
    padding: 9px clamp(12px, 3.8vw, 20px) !important;
    font-size: clamp(11.5px, 3vw, 13px) !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 61 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -webkit-tap-highlight-color: rgba(212, 0, 42, 0.2);
  }

  .haegl-hero .btn-hero,
  .haegl-hero .btn-hero * {
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  /* 7. BOTTOM: Trust Showcase Box (Recognised & Funded + Powered By) */
  .haegl-hero .hero-powered-box,
  .haegl-hero .hero-trust-box {
    order: 7 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: min(400px, 94vw) !important;
    align-items: center !important;
    padding: clamp(6px, 1vh, 10px) clamp(8px, 2vw, 12px) !important;
    background: rgba(20, 3, 8, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 35 !important;
    pointer-events: auto !important;
  }

  .haegl-hero .hero-trust-tab {
    position: relative !important;
    z-index: 36 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  .haegl-hero .hero-powered-header,
  .haegl-hero .hero-trust-header {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
  }

  .haegl-hero .hero-powered-label,
  .haegl-hero .hero-trust-label {
    font-size: clamp(8.5px, 2.4vw, 10px) !important;
    letter-spacing: 1.1px !important;
  }

  .haegl-hero .hero-powered-logos,
  .haegl-hero .hero-trust-deck.active {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .haegl-hero .hero-platform-icon,
  .haegl-hero .hero-partner-card {
    min-width: 0 !important;
    height: clamp(34px, 4.4vh, 40px) !important;
    padding: 3px 6px !important;
  }

  .haegl-hero .hero-partner-card img {
    max-height: clamp(20px, 2.6vh, 24px) !important;
    max-width: 86% !important;
  }
}

/* Compact adaptation for short mobile screens (e.g. iPhone SE, height <= 720px) */
@media (max-width: 900px) and (max-height: 720px) {
  .haegl-hero {
    padding-top: calc(var(--header-height, 65px) + 4px) !important;
    padding-bottom: 4px !important;
  }

  body.has-intern-banner .haegl-hero {
    padding-top: calc(var(--header-height, 65px) + var(--intern-banner-height-mb, 34px) + 4px) !important;
  }

  .haegl-hero .hero-badge {
    margin-bottom: 2px !important;
    padding: 3px 10px !important;
    font-size: 10px !important;
  }

  .haegl-hero .depth-flip-stage {
    min-height: 52px !important;
    margin-bottom: 2px !important;
  }

  .haegl-hero .depth-line {
    font-size: 22px !important;
  }

  .haegl-hero .hero-mobile-canvas-zone {
    height: clamp(120px, 18vh, 150px) !important;
    flex: 0 0 clamp(120px, 18vh, 150px) !important;
  }

  .haegl-hero .sculpture-hud {
    margin-bottom: 4px !important;
    gap: 4px !important;
  }

  .haegl-hero .hero-sub {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 5px !important;
    max-width: 310px !important;
  }

  .haegl-hero .btn-hero {
    padding: 7px 14px !important;
    font-size: 11px !important;
  }

  .haegl-hero .hero-powered-box,
  .haegl-hero .hero-trust-box {
    padding: 5px 8px !important;
  }

  .haegl-hero .hero-partner-card {
    height: 32px !important;
  }

  .haegl-hero .hero-partner-card img {
    max-height: 19px !important;
  }
}

/* Ultra-compact screens (width <= 360px) */
@media (max-width: 360px) {
  .haegl-hero .depth-line {
    font-size: 22px !important;
  }

  .haegl-hero .hero-mobile-canvas-zone {
    height: 155px !important;
    flex: 0 0 155px !important;
  }

  .haegl-hero .hud-segments {
    max-width: 290px !important;
    gap: 2.5px !important;
  }

  .haegl-hero .hud-segment-label {
    font-size: 7px !important;
    letter-spacing: 0.1px !important;
  }

  .haegl-hero .hero-sub {
    font-size: 12px !important;
    max-width: 290px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haegl-hero * {
    animation: none !important;
    transition: none !important;
  }
}
