/* =========================================================
   GLOBAL / POWER PAGES BASE CLEANUP
========================================================= */

html {
  overflow-y: scroll;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background: #f6faf8;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Keep Power Pages wrappers from fighting the theme */
#mainContent,
.wrapper-body,
main,
.content,
.page-copy {
  background: transparent !important;
  filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

header,
.navbar {
  margin-bottom: 0 !important;
}

/* =========================================================
   PERMANENT PAGE CONTAINER BACKGROUND - WHITE HONEYCOMB
========================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(circle at 12% 8%, rgba(0, 244, 156, 0.18), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(0, 168, 107, 0.10), transparent 28%),
    radial-gradient(circle at 48% 92%, rgba(0, 244, 156, 0.08), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f6faf8 48%, #eaf4f0 100%);

  animation: pageGlowShift 15s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg width='84' height='72' viewBox='0 0 84 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(0,0,0,0.12)' stroke-width='1.05'%3E%3Cpath d='M21 1 L42 13 L42 37 L21 49 L0 37 L0 13 Z'/%3E%3Cpath d='M63 1 L84 13 L84 37 L63 49 L42 37 L42 13 Z'/%3E%3Cpath d='M42 37 L63 49 L63 73 L42 85 L21 73 L21 49 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 82px;
  opacity: 0.55;

  animation: honeycombDrift 38s linear infinite;
}

@keyframes pageGlowShift {
  0% {
    filter: brightness(0.96);
    transform: scale(1);
  }

  100% {
    filter: brightness(1.05);
    transform: scale(1.014);
  }
}

@keyframes honeycombDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 192px 164px;
  }
}

/* =========================================================
   PAGE SECTIONING
========================================================= */

.row.sectionBlockLayout {
  position: relative;
  margin-left: auto !important;
  margin-right: auto !important;
}

.row.sectionBlockLayout:not(#homeSection) {
  width: min(1500px, 98vw);
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  border-radius: 28px;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(0, 244, 156, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 248, 0.92) 52%, rgba(235, 244, 240, 0.88));

  border: 1px solid rgba(0, 0, 0, 0.08);

  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.12),
    0 0 30px rgba(0, 244, 156, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.row.sectionBlockLayout:not(#homeSection)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg width='84' height='72' viewBox='0 0 84 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(0,0,0,0.08)' stroke-width='1'%3E%3Cpath d='M21 1 L42 13 L42 37 L21 49 L0 37 L0 13 Z'/%3E%3Cpath d='M63 1 L84 13 L84 37 L63 49 L42 37 L42 13 Z'/%3E%3Cpath d='M42 37 L63 49 L63 73 L42 85 L21 73 L21 49 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 72px;
  opacity: 0.34;
}

.row.sectionBlockLayout:not(#homeSection) > .container {
  position: relative;
  z-index: 2;
}

/* Hide empty Power Pages layout blocks if present */
.row.sectionBlockLayout.text-left:has(.container .columnBlockLayout:empty) {
  display: none !important;
}

/* =========================================================
   BANNER / SLIDE CONTAINER
========================================================= */

#homeSection {
  width: min(1500px, 98vw);
  height: clamp(410px, 42vw, 540px) !important;
  min-height: 410px !important;

  margin: 0 auto 24px auto !important;
  padding: 8px !important;

  position: relative;
  overflow: hidden;
  isolation: isolate;

  border-radius: 0 0 30px 30px;

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;

  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.26),
    0 0 40px rgba(0, 244, 156, 0.12);

  transition:
    background-image 1s ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

#homeSection {
  opacity: 0;
  visibility: hidden;
}

#homeSection.slide-ready {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 220ms ease,
    background-image 1s ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

/* Default slide overlay */
#homeSection::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(circle at 18% 8%, rgba(0, 244, 156, 0.20), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26) 50%, rgba(0, 0, 0, 0.70)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.36));

  opacity: 0.96;
}

/* Default banner honeycomb */
#homeSection::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg width='84' height='72' viewBox='0 0 84 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(0,244,156,0.19)' stroke-width='1.05'%3E%3Cpath d='M21 1 L42 13 L42 37 L21 49 L0 37 L0 13 Z'/%3E%3Cpath d='M63 1 L84 13 L84 37 L63 49 L42 37 L42 13 Z'/%3E%3Cpath d='M42 37 L63 49 L63 73 L42 85 L21 73 L21 49 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 78px;
  opacity: 0.34;

  animation: bannerHoneycombDrift 24s linear infinite;
}

@keyframes bannerHoneycombDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 180px 156px;
  }
}

#homeSection .container {
  position: relative;
  z-index: 10;

  height: 100%;
  max-width: 100% !important;

  padding-top: 0 !important;
  margin-top: 0 !important;
  column-gap: 0 !important;
}

/* =========================================================
   CATEGORY 0 THEMED SLIDE
   Stronger enterprise color shift: mint -> gray -> white
========================================================= */

#homeSection.theme-slide-category-0 {
  background-color: #00f49c !important;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.44), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(0, 0, 0, 0.10), transparent 26%),
    linear-gradient(
      115deg,
      #00f49c 0%,
      #00f49c 14%,
      #7f8a85 30%,
      #ffffff 48%,
      #9da7a2 64%,
      #00c37c 82%,
      #00f49c 100%
    ) !important;

  background-size:
    100% 100%,
    100% 100%,
    320% 320% !important;

  background-position:
    center,
    center,
    0% 50% !important;

  animation:
    enterpriseCategoryColorShift 1.45s linear infinite,
    enterpriseCategoryGlowPulse 2s ease-in-out infinite !important;

  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.24),
    0 0 58px rgba(0, 244, 156, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

/* Category 0 moving enterprise light band */
#homeSection.theme-slide-category-0::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      100deg,
      transparent 0%,
      transparent 14%,
      rgba(255, 255, 255, 0.86) 30%,
      rgba(127, 138, 133, 0.62) 44%,
      rgba(0, 244, 156, 0.34) 58%,
      transparent 76%,
      transparent 100%
    ),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 34%),
    radial-gradient(circle at 72% 38%, rgba(0, 244, 156, 0.18), transparent 30%),
    radial-gradient(circle at 20% 88%, rgba(0, 0, 0, 0.07), transparent 28%);

  background-size:
    230% 100%,
    auto,
    auto,
    auto;

  background-position:
    -120% 50%,
    center,
    center,
    center;

  opacity: 1;
  mix-blend-mode: soft-light;

  animation: enterpriseCategoryLightSweep 1.25s linear infinite !important;
}

/* Keep default ::after from fighting category 0. Honeycomb comes from real JS div. */
#homeSection.theme-slide-category-0::after {
  opacity: 0 !important;
  background-image: none !important;
}

/* JS-injected real honeycomb overlay */
#categoryZeroHoneycomb {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;

  opacity: 0.30;

  background-size: 96px 84px;
  background-position: center;

  background-image: url("data:image/svg+xml,%3Csvg width='84' height='72' viewBox='0 0 84 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='0.24' stroke-width='1.15'%3E%3Cpath d='M21 1 L42 13 L42 37 L21 49 L0 37 L0 13 Z'/%3E%3Cpath d='M63 1 L84 13 L84 37 L63 49 L42 37 L42 13 Z'/%3E%3Cpath d='M42 37 L63 49 L63 73 L42 85 L21 73 L21 49 Z'/%3E%3C/g%3E%3C/svg%3E");

  animation: bannerHoneycombDrift 34s linear infinite;
}

#homeSection.theme-slide-category-0 .container {
  position: relative;
  z-index: 10;
}

#homeSection.theme-slide-category-0 #slideTitle {
  font-size: clamp(54px, 8.5vw, 118px) !important;
  line-height: 0.94 !important;
  color: #04110d !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 28px rgba(0, 0, 0, 0.22) !important;
}

#homeSection.theme-slide-category-0 #slideSubtitle {
  font-size: clamp(22px, 3vw, 40px) !important;
  line-height: 1.16 !important;
  color: #06140f !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.58),
    0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

#homeSection.theme-slide-category-0 #slidePublicationDate {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.24) !important;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.22) !important;
}

@keyframes enterpriseCategoryColorShift {
  0% {
    background-position:
      center,
      center,
      0% 50%;
    filter: saturate(1.22) brightness(1);
  }

  20% {
    background-position:
      center,
      center,
      32% 50%;
    filter: saturate(1.06) brightness(1.03);
  }

  40% {
    background-position:
      center,
      center,
      58% 50%;
    filter: saturate(0.58) brightness(1.14);
  }

  60% {
    background-position:
      center,
      center,
      82% 50%;
    filter: saturate(0.86) brightness(1.10);
  }

  80% {
    background-position:
      center,
      center,
      100% 50%;
    filter: saturate(1.14) brightness(1.03);
  }

  100% {
    background-position:
      center,
      center,
      0% 50%;
    filter: saturate(1.22) brightness(1);
  }
}

@keyframes enterpriseCategoryGlowPulse {
  0% {
    box-shadow:
      0 32px 90px rgba(0, 0, 0, 0.24),
      0 0 42px rgba(0, 244, 156, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }

  50% {
    box-shadow:
      0 32px 90px rgba(0, 0, 0, 0.20),
      0 0 62px rgba(255, 255, 255, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.56);
  }

  100% {
    box-shadow:
      0 32px 90px rgba(0, 0, 0, 0.24),
      0 0 42px rgba(0, 244, 156, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
}

@keyframes enterpriseCategoryLightSweep {
  0% {
    background-position:
      -130% 50%,
      center,
      center,
      center;
    opacity: 0.35;
  }

  35% {
    opacity: 0.95;
  }

  70% {
    opacity: 0.65;
  }

  100% {
    background-position:
      160% 50%,
      center,
      center,
      center;
    opacity: 0.35;
  }
}

/* =========================================================
   SLIDE TEXT FIT / NO BLACK PLATES
========================================================= */

#slideText {
  position: relative;
  z-index: 11;

  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100% !important;
  max-width: 1180px;

  min-width: 0 !important;
  height: 100%;
  margin: 0 auto !important;

  padding: clamp(16px, 3vw, 34px) !important;

  transform: none !important;
  transition: transform 300ms ease;
}

#slideTitle,
#slideSubtitle {
  box-sizing: border-box;
  text-align: center;
  max-width: min(1100px, 94vw);
  overflow-wrap: anywhere;
  word-break: normal;

  background: transparent !important;
  box-shadow: none !important;
}

/* Title */
#slideTitle {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-weight: 900 !important;

  font-size: clamp(38px, 7vw, 94px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em;

  margin: 0 0 clamp(10px, 1.7vw, 18px) 0 !important;
  padding: 0 clamp(8px, 1.4vw, 18px) !important;

  color: #ffffff !important;

  text-shadow:
    0 0 22px rgba(0, 244, 156, 0.34),
    0 4px 24px rgba(0, 0, 0, 0.68);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Subtitle */
#slideSubtitle {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;

  font-size: clamp(16px, 2.35vw, 31px) !important;
  line-height: 1.22 !important;
  letter-spacing: 0.015em;

  max-width: min(900px, 92vw);
  margin: 0 auto !important;
  padding: 0 clamp(8px, 1.2vw, 16px) !important;

  color: rgba(255, 255, 255, 0.92) !important;

  text-shadow:
    0 0 18px rgba(0, 244, 156, 0.24),
    0 3px 18px rgba(0, 0, 0, 0.62);

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Publication date pill */
#slidePublicationDate {
  max-width: min(780px, 90vw);
  text-align: center;
  white-space: normal;

  margin-top: 12px !important;
  color: #001d14 !important;
  background: rgba(0, 244, 156, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 24px rgba(0, 244, 156, 0.28);
}

/* =========================================================
   NORMAL SLIDE BUTTON
========================================================= */

#slideText > a:not(#hubQA):not(#hubMVP) {
  position: relative;
  z-index: 12;

  max-width: min(360px, 88vw);
  white-space: normal;
  text-align: center;

  margin-top: 20px !important;
  padding: 12px 28px !important;

  border-radius: 999px !important;
  border: 1px solid rgba(0, 244, 156, 0.70) !important;

  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 242, 0.96)) !important;

  color: #07120f !important;
  text-decoration: none !important;
  font-weight: 900 !important;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.30),
    0 0 26px rgba(0, 244, 156, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}

/* =========================================================
   HUB SLIDE / CATEGORY 7
========================================================= */

#homeSection.hub-slide-active #slideTitle {
  font-size: clamp(34px, 5.6vw, 72px) !important;
}

#homeSection.hub-slide-active #slideSubtitle {
  font-size: clamp(15px, 2vw, 24px) !important;
}

#homeSection.hub-slide-active #hubWrap {
  max-width: min(1040px, 96vw);
  gap: clamp(16px, 2vw, 26px) !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(20px, 2.8vw, 34px) !important;
}

#homeSection.hub-slide-active #hubWrap a {
  box-sizing: border-box;

  min-width: min(420px, 92vw) !important;
  max-width: min(500px, 92vw) !important;
  min-height: 132px !important;

  padding: 24px 26px 22px 26px !important;
  gap: 18px !important;

  align-items: center !important;
  overflow: visible !important;

  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(242, 248, 246, 0.92) 48%, rgba(230, 240, 236, 0.97)) !important;

  border: 1px solid rgba(0, 244, 156, 0.34) !important;

  box-shadow:
    12px 14px 0 rgba(210, 224, 219, 0.22),
    0 16px 32px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(0, 244, 156, 0.18) !important;
}

#homeSection.hub-slide-active #hubWrap a::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 13px;
  pointer-events: none;

  border: 1px solid rgba(0, 244, 156, 0.22);
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 244, 156, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 22%, rgba(0, 244, 156, 0.08) 78%, transparent);
}

#homeSection.hub-slide-active #hubWrap a > div:first-child {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border-radius: 16px !important;
  font-size: 27px !important;
}

#homeSection.hub-slide-active #hubWrap a > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
}

#homeSection.hub-slide-active #hubWrap a > div:nth-child(2) > div:first-child {
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

#homeSection.hub-slide-active #hubWrap a > div:nth-child(2) > div:nth-child(2) {
  font-size: clamp(14px, 1.2vw, 16px) !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

#homeSection.hub-slide-active #hubWrap a > div:nth-child(2) > div:nth-child(3) {
  font-size: clamp(14px, 1.1vw, 16px) !important;
  line-height: 1.15 !important;
}

/* Badge created inline in JS */
#homeSection.hub-slide-active #hubWrap a div[style*="top: -12px"] {
  top: -14px !important;
  left: 18px !important;
}

/* =========================================================
   METRIC / PERFORMANCE SLIDE
========================================================= */

#homeSection.metrics-slide-active {
  background-image: none !important;
  background-color: transparent !important;
}

#homeSection.metrics-slide-active::before {
  background:
    radial-gradient(circle at top left, rgba(0, 244, 156, 0.24), transparent 34%),
    radial-gradient(circle at 80% 30%, rgba(0, 244, 156, 0.10), transparent 26%),
    linear-gradient(135deg, rgba(5, 5, 5, 0.97), rgba(14, 14, 14, 0.98) 52%, rgba(24, 24, 24, 0.96));
}

#homeSection.metrics-slide-active #slideText {
  justify-content: flex-start !important;
  height: auto !important;
  padding-top: clamp(44px, 5vw, 68px) !important;
  padding-bottom: 0 !important;
}

#homeSection.metrics-slide-active #slideTitle {
  font-size: clamp(30px, 5vw, 64px) !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}


#homeSection.metrics-slide-active #slideSubtitle {
  font-size: clamp(14px, 1.55vw, 18px) !important;
  margin-bottom: 0 !important;
}

#homeSection.metrics-slide-active #slideTitle {
  color: #04110d !important;
}

/* Mount area for metric cards */
#bannerHexMount {
  position: absolute;
  left: 50%;
  bottom: clamp(95px, 8vw, 130px);
  transform: translateX(-50%);
  z-index: 12;

  width: 100% !important;
  max-width: 1260px;

  display: flex;
  justify-content: center;

  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}

#bannerHexMount .floating-hex-container {
  pointer-events: auto;
}

/* The old container is now the metric card container */
.floating-hex-container,
.metric-card-container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;

  width: min(1220px, 94vw);
  margin: 0 auto !important;

  display: none;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;

  gap: clamp(14px, 2vw, 24px);

  z-index: 12;
}

/* =========================================================
   NEW METRIC CARD SHAPE SYSTEM
========================================================= */

.metric-card {
  position: relative;

  flex: 1 1 clamp(190px, 20vw, 270px);
  max-width: 300px;
  min-width: 185px;
  min-height: clamp(150px, 15vw, 190px);

  color: #07120f;

  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(-6deg) translateZ(0);

  animation: metricFloatSoft 5s ease-in-out infinite;

  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

.metric-card:nth-child(even) {
  transform: perspective(900px) rotateX(0deg) rotateY(6deg) translateZ(0);
}

.metric-card:nth-child(2) {
  animation-delay: 0.16s;
}

.metric-card:nth-child(3) {
  animation-delay: 0.32s;
}

.metric-card:nth-child(4) {
  animation-delay: 0.48s;
}

.metric-card:nth-child(5) {
  animation-delay: 0.64s;
}

.metric-card:nth-child(6) {
  animation-delay: 0.80s;
}

.metric-card-inner {
  position: relative;

  min-height: clamp(150px, 15vw, 190px);
  height: 100%;
  padding: clamp(20px, 2.1vw, 30px);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;

  overflow: hidden;

  border-radius: 24px;

  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );

  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.82) 30%, rgba(232, 240, 237, 0.98)),
    linear-gradient(145deg, #ffffff 0%, #f2f6f4 54%, #ffffff 100%);

  border: 1px solid rgba(255, 255, 255, 0.90);

  box-shadow:
    14px 16px 0 rgba(210, 224, 219, 0.28),
    0 20px 36px rgba(255, 255, 255, 0.12),
    0 22px 44px rgba(0, 244, 156, 0.14),
    0 8px 18px rgba(180, 195, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -22px 32px rgba(0, 244, 156, 0.05);

  transition:
    transform 240ms ease,
    filter 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

/* Patterned surface */
.metric-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='84' height='72' viewBox='0 0 84 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(0,244,156,0.42)' stroke-width='1.22'%3E%3Cpath d='M21 1 L42 13 L42 37 L21 49 L0 37 L0 13 Z'/%3E%3Cpath d='M63 1 L84 13 L84 37 L63 49 L42 37 L42 13 Z'/%3E%3Cpath d='M42 37 L63 49 L63 73 L42 85 L21 73 L21 49 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 62px 54px;
  opacity: 0.46;
  pointer-events: none;
}

/* Inner glass frame */
.metric-card-inner::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;

  border-radius: 17px;

  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );

  border: 1px solid rgba(0, 244, 156, 0.26);

  background:
    radial-gradient(circle at 18% 12%, rgba(0, 244, 156, 0.20), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.52), transparent 20%, transparent 50%, rgba(0, 244, 156, 0.13) 72%, transparent),
    linear-gradient(135deg, rgba(0, 244, 156, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.08);

  box-shadow:
    inset 0 0 30px rgba(0, 244, 156, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);

  pointer-events: none;
}

.metric-card:hover .metric-card-inner {
  transform: translateY(-8px);
  border-color: rgba(0, 244, 156, 0.70);

  box-shadow:
    18px 20px 0 rgba(218, 230, 226, 0.38),
    0 26px 48px rgba(255, 255, 255, 0.18),
    0 30px 60px rgba(0, 244, 156, 0.24),
    0 0 38px rgba(0, 244, 156, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -22px 32px rgba(0, 244, 156, 0.08);
}

.metric-card-title,
.metric-card-value,
.metric-card-trend,
.metric-card-helper {
  position: relative;
  z-index: 2;
}

.metric-card-title {
  color: #101010;
  font-weight: 900;
  font-size: clamp(16px, 1.55vw, 24px);
  line-height: 1.05;
  letter-spacing: -0.035em;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(0, 244, 156, 0.08);
}

.metric-card-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 10px 0 0;
  border-radius: 999px;

  background: linear-gradient(90deg, #00f49c, rgba(0, 244, 156, 0));
  box-shadow: 0 0 16px rgba(0, 244, 156, 0.42);
}

.metric-card-value,
.white-text {
  color: #06100d !important;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(0, 244, 156, 0.12);
}

.metric-card-trend {
  margin-top: 2px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 5px 9px;
  border-radius: 999px;

  color: #001d14;
  background: rgba(0, 244, 156, 0.88);

  border: 1px solid rgba(0, 244, 156, 0.42);

  box-shadow:
    0 8px 18px rgba(0, 244, 156, 0.16),
    0 0 18px rgba(0, 244, 156, 0.34);

  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.metric-card-trend svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Down state */
.metric-card-down .metric-card-trend {
  color: #ffffff;
  background: rgba(25, 25, 25, 0.86);
  border-color: rgba(255, 255, 255, 0.24);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 16px rgba(255, 255, 255, 0.10);
}

.metric-card-helper {
  color: rgba(15, 15, 15, 0.68);
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 800;
  line-height: 1.2;
}

/* Fuel gets slightly different accent */
.metric-card-fuel .metric-card-inner {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.84) 30%, rgba(226, 238, 234, 0.98)),
    linear-gradient(145deg, #ffffff 0%, #f2f6f4 54%, #ffffff 100%);
}

.metric-card-fuel .metric-card-title::after {
  background: linear-gradient(90deg, #ffffff, #00f49c, rgba(0, 244, 156, 0));
}

/* Soft card float */
@keyframes metricFloatSoft {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

/* =========================================================
   LEGACY HEX CLASS FALLBACK
========================================================= */

.floating-hex-container .hex {
  flex: 1 1 clamp(190px, 20vw, 270px);
  max-width: 300px;
  min-width: 185px;
}

.hex {
  position: relative;
  min-height: clamp(150px, 15vw, 190px);
  border-radius: 24px;

  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );

  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.82) 30%, rgba(232, 240, 237, 0.98)),
    linear-gradient(145deg, #ffffff 0%, #f2f6f4 54%, #ffffff 100%);

  box-shadow:
    14px 16px 0 rgba(210, 224, 219, 0.28),
    0 20px 36px rgba(255, 255, 255, 0.12),
    0 22px 44px rgba(0, 244, 156, 0.14);

  animation: metricFloatSoft 5s ease-in-out infinite;
}

.hex-content {
  position: relative;
  z-index: 2;

  height: 100%;
  min-height: clamp(150px, 15vw, 190px);
  padding: clamp(20px, 2.1vw, 30px);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  color: #101010;
  font-weight: 900;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
  #homeSection {
    height: clamp(460px, 60vw, 600px) !important;
  }

  .metric-card {
    flex-basis: clamp(180px, 30vw, 260px);
  }

  #slideTitle {
    font-size: clamp(34px, 7vw, 76px) !important;
  }

  #slideSubtitle {
    font-size: clamp(15px, 2.6vw, 26px) !important;
  }

  #bannerHexMount {
    bottom: 78px;
  }
}

@media (max-width: 760px) {
  #homeSection {
    width: 100%;
    border-radius: 0 0 24px 24px;
    height: 640px !important;
  }

  #slideText {
    justify-content: flex-start !important;
    padding-top: 38px !important;
  }

  #slideTitle {
    font-size: clamp(30px, 10vw, 52px) !important;
    -webkit-line-clamp: 3;
  }

  #slideSubtitle {
    font-size: clamp(14px, 4vw, 20px) !important;
    -webkit-line-clamp: 4;
  }

  #homeSection.hub-slide-active #hubWrap {
    gap: 14px !important;
  }

  #homeSection.hub-slide-active #hubWrap a {
    min-width: min(340px, 90vw) !important;
    max-width: min(440px, 90vw) !important;
    min-height: 128px !important;
    padding: 22px 22px 20px 22px !important;
  }

  #bannerHexMount {
    bottom: 48px;
  }

  .floating-hex-container,
  .metric-card-container {
    width: 94vw;
    gap: 12px;
  }

  .metric-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 150px;
    max-width: none;
    min-height: 138px;
    transform: none !important;
  }

  .metric-card-inner {
    min-height: 138px;
    padding: 17px;
    border-radius: 20px;

    clip-path: polygon(
      0 0,
      calc(100% - 18px) 0,
      100% 18px,
      100% 100%,
      18px 100%,
      0 calc(100% - 18px)
    );
  }

  .metric-card-title {
    font-size: 13px;
  }

  .metric-card-value,
  .white-text {
    font-size: clamp(24px, 8vw, 34px);
  }

  .row.sectionBlockLayout:not(#homeSection) {
    width: 96vw;
    border-radius: 22px;
  }
}

@media (max-width: 460px) {
  #homeSection {
    height: 680px !important;
  }

  #homeSection.metrics-slide-active #slideText {
    padding-top: 30px !important;
  }

  .metric-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 138px;
  }

  .metric-card-inner {
    padding: 13px;
  }

  .metric-card-title {
    font-size: 12px;
  }

  .metric-card-value,
  .white-text {
    font-size: 26px;
  }

  .metric-card-trend {
    font-size: 10px;
    padding: 4px 8px;
  }

  .metric-card-trend svg {
    width: 14px;
    height: 14px;
  }
}

/* =========================================================
   ACCESSIBILITY: REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  #homeSection::after,
  #homeSection.theme-slide-category-0,
  #homeSection.theme-slide-category-0::before,
  #categoryZeroHoneycomb,
  .metric-card,
  .hex {
    animation: none !important;
  }

  #homeSection,
  #slideText,
  #hubWrap a,
  #slideText > a,
  .metric-card-inner {
    transition: none !important;
  }
}