.home-technology {
  --tech-onyx: #0b0b0b;
  --tech-stone: #f5f3ef;
  --tech-green: #00e676;
  --tech-forest: #086441;
  --tech-ink: #3d5046;
  background: var(--tech-stone);
  color: var(--tech-onyx);
  scroll-margin-top: 100px;
}
.home-technology :focus-visible { outline: 2px solid #08744a; outline-offset: 4px; }
.technology-ecosystem {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 4vw, 58px);
  border: 1px solid #c9ddd0;
  border-radius: 24px;
  background: linear-gradient(153deg, #fff 15%, #f5f8f4 58%, #e7f5ec 100%);
  box-shadow: 0 14px 38px #183c2513;
}
.technology-ecosystem::before {
  position: absolute;
  inset: 12px 0 auto auto;
  z-index: -1;
  width: min(35%, 410px);
  aspect-ratio: 1.13;
  background: #117149;
  mask: url("assets/competitions/mamba-mark.webp") top right / 95% auto no-repeat;
  opacity: .065;
  pointer-events: none;
  content: "";
}
.technology-intro { max-width: 980px; margin: 0 auto clamp(28px, 3.45vw, 48px); text-align: center; }
.technology-intro .eyebrow { justify-content: center; color: var(--tech-forest); }
.technology-intro h2 {
  margin: 14px 0 16px;
  font-size: clamp(33px, 4.6vw, 69px);
  line-height: 1.02;
  letter-spacing: -.057em;
  text-transform: none;
  text-wrap: balance;
}
.technology-intro h2 em { color: var(--tech-forest); font-style: normal; }
.technology-intro > p:not(.eyebrow) { max-width: 74ch; margin: 0 auto; color: var(--tech-ink); line-height: 1.54; font-size: clamp(15px, 1.25vw, 18px); }
.technology-intro > p.technology-lead { margin-bottom: 7px; color: var(--tech-onyx); font-weight: 700; }
.technology-rail-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  margin: 0 0 15px;
  color: var(--tech-forest);
  font-size: clamp(.68rem, .94vw, .88rem);
  line-height: 1.4;
  letter-spacing: .145em;
  text-align: center;
  text-transform: uppercase;
}
.technology-rail-title::before, .technology-rail-title::after {
  flex: 1 1 32px;
  max-width: 175px;
  height: 1px;
  background: #82bfa1;
  content: "";
}
.technology-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
/* The detail strip shares a grid cell across products so the bridge stays in place. */
.home-technology [hidden] { display: none !important; }
.technology-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 20px);
  border: 1px solid #2f8059;
  border-radius: 11px;
  background: linear-gradient(140deg, #195737, #0d3123);
  color: #f5fff9;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #b1ffcf2e, 0 5px 13px #102e2136;
}
.technology-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.technology-card-heading img { display: block; width: auto; height: 30px; max-width: 105px; padding: 2px; border-radius: 5px; background: #f5f3ef; object-fit: contain; }
.technology-card--boost .technology-card-heading img { background: #0b0b0b; }
.technology-card-heading strong { font-size: clamp(15px, 1.29vw, 20px); letter-spacing: -.025em; }
.technology-description { font-size: .85rem; line-height: 1.4; color: #daf1e3; }
.technology-card:is(:hover, :focus-visible, [aria-pressed="true"]) {
  border-color: #50f49a;
  box-shadow: 0 0 0 1px #50f49a, 0 0 13px #00e67649, 0 8px 16px #102e212b;
}
.technology-card[aria-pressed="true"] { background: linear-gradient(140deg, #216446, #10412d); }
.technology-card:focus-visible { outline-offset: 3px; }
.technology-product-details {
  display: grid;
  margin-top: 12px;
  border: 1px solid #b4d8c3;
  border-radius: 8px;
  background: #ecf8ef;
  color: #17422d;
}
.technology-product-detail {
  grid-area: 1 / 1;
  display: grid;
  align-content: center;
  min-height: 56px;
  padding: 6px 14px;
  visibility: hidden;
}
.technology-product-detail.is-selected { visibility: visible; }
.technology-product-detail p { margin: 4px 0; font-size: .86rem; line-height: 1.42; }
.technology-product-detail strong { color: #093a24; margin-right: 5px; }
.technology-bridge { position: relative; height: 40px; overflow: hidden; pointer-events: none; }
.technology-bridge-branches {
  position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 20px;
  border: 1px solid #83b99a; border-top: 0; border-radius: 0 0 8px 8px;
}
.technology-bridge-branches::before, .technology-bridge-branches::after {
  position: absolute; top: 0; width: 1px; height: 20px; background: #83b99a; content: "";
}
.technology-bridge-branches::before { left: 33.3%; }
.technology-bridge-branches::after { right: 33.3%; }
.technology-bridge-stem { position: absolute; height: 26px; top: 19px; left: 50%; width: 1px; background: #56a97c; }
.technology-bridge-stem::after {
  position: absolute; top: 0; left: -2px; width: 5px; height: 11px; opacity: 0;
  border-radius: 5px; background: var(--tech-green); box-shadow: 0 0 9px #00e6767c; content: "";
}
.technology-platforms { scroll-margin-top: 105px; }
.technology-platform-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.technology-platform-grid li { min-width: 0; }
.technology-platform {
  display: grid; grid-template-rows: 28px auto auto; align-content: start; justify-items: center; align-items: center;
  gap: 4px; min-height: 82px; height: 100%; padding: 9px 3px 7px;
  border: 1px solid #d8e6dc; border-radius: 8px; background: #fff;
  color: var(--tech-onyx); text-decoration: none; text-align: center;
}
.technology-platform img { display: block; width: auto; height: auto; max-height: 26px; max-width: 90%; }
.technology-platform--snap img { padding: 3px; border-radius: 5px; background: #fffc00; }
.technology-platform strong { font-size: .71rem; }
.technology-platform small { font-size: .62rem; color: var(--tech-forest); line-height: 1.2; }
.technology-platform:hover, .technology-platform:focus-visible { border-color: #319566; }
.technology-ecosystem[data-current-product="boost"] .technology-platform--whatsapp {
  border-color: #087b48; background: #ebfff3; box-shadow: 0 0 0 1px #087b48;
}
.technology-ecosystem[data-current-product="boost"] .technology-bridge-stem { background: #087b48; width: 2px; }
.technology-close { margin-top: 23px; text-align: center; }
.technology-close p { margin: 0 0 14px; font-size: clamp(1rem, 1.5vw, 1.35rem); letter-spacing: -.027em; }
.technology-close p strong { color: var(--tech-forest); }
.technology-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.technology-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-align: center; }
@media (max-width: 1100px) {
  .technology-platform-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 865px) {
  .technology-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technology-bridge-branches { inset-inline: 25%; }
  .technology-bridge-branches::before, .technology-bridge-branches::after { display: none; }
}
@media (max-width: 590px) {
  .technology-ecosystem { padding-inline: 14px; border-radius: 16px; }
  .technology-card { padding-inline: 10px; }
  .technology-card-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .technology-platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@keyframes tech-entrance { from { opacity: .25; transform: translateY(11px); } }
@keyframes tech-transfer { 0% { opacity: 0; transform: translateY(-9px); } 22%, 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(24px); } }
@keyframes tech-route-pulse {
  from { background-position: 100% 100%; }
  to { background-position: 50% 100%; }
}
@keyframes tech-route-glow { 40%, 75% { background-size: 55px 1px; } }
@keyframes tech-watermark { from { transform: translate(10px,-7px); opacity: .035; } }
@media (prefers-reduced-motion: no-preference) {
  .technology-ecosystem.is-visible .technology-enter { animation: tech-entrance .55s ease both; }
  .technology-ecosystem.is-visible .technology-owned { animation-delay: .09s; }
  .technology-ecosystem.is-visible .technology-platforms { animation-delay: .16s; }
  .technology-ecosystem.is-visible .technology-close { animation-delay: .23s; }
  .technology-ecosystem.is-visible .technology-bridge-branches {
    background: linear-gradient(90deg, transparent, #00e676, transparent) 50% 100% / 0 1px no-repeat;
    animation: tech-route-pulse .8s ease-in 2, tech-route-glow .8s ease-in 2;
  }
  .technology-ecosystem.is-visible .technology-bridge-stem::after { animation: tech-transfer .95s .4s ease-in-out 2; }
  .technology-ecosystem.is-visible::before { animation: tech-watermark 1.4s ease-out both; }
  .technology-card, .technology-platform, .technology-actions a span { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .technology-actions a:hover span { transform: translateX(4px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .technology-card:hover { transform: translateY(-4px); }
  .technology-platform:hover { transform: translateY(-2px); }
}
