/* FB Ecosystem: a readable architecture map, progressively enhanced with route exploration. */
.ecosystem-section { position: relative; overflow: clip; border-block: 1px solid #30242a; background: radial-gradient(ellipse at 18% 30%, #43162138, transparent 57%), #121214; }
.ecosystem-section > .section { padding-block: 85px 70px; }
.eco-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: end; margin-bottom: 32px; }
.eco-heading h2 { font-size: clamp(46px, 5.5vw, 76px); max-width: 570px; margin: 0; }
.eco-heading .eyebrow { color: #ed9aa6; font-size: 9px; }
.eco-intro { color: #b7b4bf; line-height: 1.9; font-size: 14px; margin: 0 0 3px; max-width: 55ch; }
.eco-routes { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.eco-routes a { display: flex; align-items: center; gap: 11px; min-height: 47px; padding: 10px 17px; background: #1b191d; border: 1px solid #373139; border-radius: 5px; color: #bdb8c4; font-size: 11px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.eco-routes a:hover { color: #fff; border-color: #8b4955; }
.eco-route-number { font-size: 10px; color: #8f8997; font-variant-numeric: tabular-nums; }
.eco-routes .icon { width: 14px; height: 14px; margin-left: 7px; }
.eco-routes [aria-selected=true] { background: #321e25; border-color: #b14b5c; color: #fff; }
.eco-routes [aria-selected=true] .eco-route-number { color: #ff8195; }
.eco-explorer { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 25px; align-items: start; }
.eco-diagram { margin: 0; min-width: 0; }
.eco-board { position: relative; isolation: isolate; padding: 22px 18px 18px; border: 1px solid #3d3039; border-radius: 13px; background: linear-gradient(#ffffff02 1px, transparent 1px), linear-gradient(90deg, #ffffff02 1px, transparent 1px), radial-gradient(ellipse at 40% 0, #4d203830, transparent 75%), #17161a; background-size: 24px 24px, 24px 24px, auto, auto; }
.eco-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; pointer-events: none; color: #d96076; }
.eco-connections g path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: opacity .3s, stroke .3s; }
.eco-connections .eco-backbone { stroke-width: 2; }
.eco-connections .eco-control { stroke: #e7b177; stroke-dasharray: 5 4; }
.eco-connections .eco-standby-feed { opacity: .35; stroke-dasharray: 3 5; }
.eco-team-label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #a99eac; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.eco-team-label .icon { width: 15px; height: 15px; }
.eco-team-nodes { display: grid; grid-template-columns: 1.18fr 1fr; gap: 54px; align-items: stretch; }
.eco-node { position: relative; z-index: 2; min-width: 0; border: 1px solid #4e3945; background: #211b23; border-radius: 7px; transition: background .2s, border-color .2s, box-shadow .25s; }
.eco-node:focus-within, .eco-node:hover { border-color: #ff8097; }
.eco-node strong, .eco-node small { display: block; overflow-wrap: anywhere; }
.eco-node strong { color: #f6f1f6; font-size: 14px; font-weight: 700; line-height: 1.35; }
.eco-node small { margin-top: 5px; color: #b1a7b6; font-size: 9px; line-height: 1.5; }
.eco-hub, .eco-pitwall, .eco-calc, .eco-replay { display: flex; flex-direction: column; align-items: stretch; }
.eco-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 190px; overflow: hidden; background: #101115; border-bottom: 1px solid #43323f; border-radius: 6px 6px 0 0; }
.eco-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eco-hub .eco-preview { aspect-ratio: 2 / 1; }
.eco-preview > .icon { position: absolute; right: 6px; bottom: 6px; width: 23px; height: 23px; padding: 4px; border: 1px solid #77707e; border-radius: 4px; color: #fff; background: #15151de8; transition: background .2s; }
.eco-preview:hover > .icon, .eco-preview:focus-visible > .icon { background: #a42b46; }
.eco-node-caption:hover strong { color: #ffb1c2; }
.eco-node-caption { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 10px; min-height: 70px; flex: 1; }
.eco-node-caption > span { min-width: 0; }
.eco-hub .eco-node-caption, .eco-pitwall .eco-node-caption { justify-content: start; padding-inline: 15px; min-height: 76px; }
.eco-hub { border-color: #a24659; background: linear-gradient(115deg, #3a202e, #241b25); box-shadow: 0 0 32px #e52e4a0b; }
.eco-hub .eco-hub-logo { width: 28px; height: 34px; flex-shrink: 0; }
.eco-hub strong { font-size: 21px; letter-spacing: -.04em; }
.eco-hub .eco-node-caption > .icon { width: 13px; height: 13px; margin-left: auto; color: #dd7a90; }
.eco-live-caption { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 6px; height: 65px; padding-top: 32px; font-size: 8px; color: #cb8b9a; pointer-events: none; }
.eco-live-caption > span { width: 5px; height: 5px; background: #de6980; border-radius: 50%; }
.eco-cars { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; align-items: stretch; }
.eco-car { min-width: 0; padding: 14px 12px 12px; background: #21181d80; border: 1px solid #58303e; border-top: 2px solid #b64a61; border-radius: 8px; transition: border-color .25s, background .25s; }
.eco-car-heading { position: relative; z-index: 2; display: flex; align-items: start; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; min-height: 51px; padding-bottom: 15px; }
.eco-car-heading h3 { font-family: var(--heading); text-transform: uppercase; letter-spacing: .02em; font-size: 17px; line-height: 1.25; margin: 0; padding-right: 4px; color: #efc2cc; background: #21191f; }
.eco-car-heading h3 span { color: #ff718c; margin-left: 3px; }
.eco-car-heading p { margin: 3px 0 0; font-size: 8px; color: #b4a3b1; max-width: 170px; line-height: 1.5; }
.eco-drivers { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.eco-car-1 .eco-drivers { grid-template-columns: minmax(0, 1fr); }
.eco-car-2 .eco-drivers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eco-driver-lane { min-width: 0; }
.eco-calc { background: #2b1c28; }
.eco-calc .eco-preview, .eco-replay .eco-preview { max-height: 130px; }
.eco-calc strong { font-size: 15px; }
.eco-local-link { position: relative; height: 36px; color: #bc5971; }
.eco-local-link > span { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: currentColor; }
.eco-live-link > span::before { content: ''; position: absolute; top: 3px; left: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(45deg); }
.eco-control-line { position: absolute; left: calc(50% + 8px); top: 0; width: 1px; height: 100%; color: #e7b177; background: repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 6px); }
.eco-control-line::after { content: ''; position: absolute; bottom: 4px; left: -3px; width: 6px; height: 6px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.eco-standby .eco-live-link { opacity: .35; }
.eco-standby .eco-live-link > span { background: repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 6px); }
.eco-standby .eco-live-link > span::before { display: none; }
.eco-driver-node { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 87px; padding: 10px; background: #17171d; border: 1px solid #46404e; border-radius: 6px; }
.eco-driver-node > .icon { width: 22px; height: 22px; color: #c5b5c9; }
.eco-driver-node strong { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; }
.eco-driver-node small { display: block; font-size: 8px; color: #9c95a7; margin-bottom: 3px; }
.eco-driver-node em { display: block; font-size: 8px; font-style: normal; line-height: 1.4; color: #91c5b0; margin-top: 5px; }
.eco-standby .eco-driver-node { border-style: dashed; }
.eco-standby .eco-driver-node em { color: #c4a47e; }
.eco-file-link { height: 42px; color: #7b9fb1; }
.eco-file-link > span { background: repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 6px); }
.eco-file-link > span::after { content: ''; position: absolute; bottom: 4px; left: -3px; width: 6px; height: 6px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.eco-file-link > small { position: absolute; left: calc(50% + 8px); top: 12px; font-size: 8px; color: #90a9b8; }
.eco-replay { text-align: center; background: #1a2028; border-color: #3e5265; }
.eco-replay .eco-preview { border-color: #3e5265; }
.eco-replay:hover, .eco-replay:focus-within { border-color: #8abfda; }
.eco-replay strong { font-size: 12px; }
.eco-replay small { color: #94a7b9; font-size: 8px; }
.eco-diagram figcaption { margin-top: 15px; }
.eco-legend { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-bottom: 11px; }
.eco-legend > span { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #bdb4c2; }
.eco-legend i { width: 18px; height: 0; border-top: 2px solid #d96076; }
.eco-legend i.eco-legend-file { border-top: 2px dashed #7b9fb1; }
.eco-legend i.eco-legend-control { border-top: 2px dashed #e7b177; }
.eco-diagram figcaption p { margin: 0; font-size: 10px; line-height: 1.7; color: #928a9b; }
.eco-story { min-width: 0; }
.eco-panel { padding: 27px 25px; margin-bottom: 18px; border: 1px solid #39313e; border-radius: 10px; background: linear-gradient(160deg, #242027, #18171c); scroll-margin-top: 110px; }
.eco-panel-kicker { color: #ee8b9e; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 18px; }
.eco-panel h3 { font: 700 34px/1.12 var(--heading); text-wrap: balance; margin-bottom: 18px; }
.eco-panel-body { color: #c0b7c6; font-size: 13px; line-height: 1.9; margin-bottom: 22px; }
.eco-panel ul { padding: 0; list-style: none; display: grid; gap: 14px; margin: 0 0 25px; }
.eco-panel li { display: flex; gap: 10px; align-items: start; color: #b0a8b8; font-size: 12px; line-height: 1.8; }
.eco-panel li .icon { width: 13px; height: 13px; color: #dd829a; margin-top: 3px; }
.eco-panel .text-link { font-size: 11px; gap: 10px; color: #f0b6c4; }
.eco-panel .text-link .icon { width: 16px; height: 16px; }
.eco-enhanced .eco-story { display: grid; }
.eco-enhanced .eco-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(6px); margin-bottom: 0; pointer-events: none; transition: opacity .23s, transform .23s, visibility .23s; }
.eco-enhanced .eco-panel.is-active { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.eco-enhanced[data-eco-mode=live] .eco-hub, .eco-enhanced[data-eco-mode=live] .eco-pitwall, .eco-enhanced[data-eco-mode=live] .eco-calc { border-color: #c5627b; box-shadow: 0 0 20px #b93a580d; }
.eco-enhanced[data-eco-mode=swaps] .eco-car-2 { border-color: #ec8298; background: #3e213042; }
.eco-enhanced[data-eco-mode=swaps] .eco-car-2 .eco-driver-node { border-color: #d27693; background: #29202e; }
.eco-enhanced[data-eco-mode=analysis] .eco-replay { border-color: #9fc9e1; box-shadow: 0 0 22px #81b6d31b; }
.eco-enhanced[data-eco-mode=analysis] .eco-file-link { color: #b8e2fa; }
.eco-enhanced[data-eco-mode=analysis] .eco-connections { color: #72515d; }
.eco-enhanced[data-eco-mode=analysis] .eco-live-link { color: #72515d; }
.eco-enhanced[data-eco-mode=analysis] .eco-control { stroke: #776653; }
.eco-enhanced[data-eco-mode=analysis] .eco-control-line { color: #776653; }
.eco-benefits { margin-top: 40px; padding-top: 30px; border-top: 1px solid #342b37; }
.eco-benefits > h3 { font-family: var(--heading); font-size: 30px; margin-bottom: 25px; }
.eco-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 32px; }
.eco-benefit { display: flex; align-items: start; gap: 12px; }
.eco-benefit-index { font: 700 19px/1.35 var(--heading); color: #925366; }
.eco-benefit h4 { margin: 0 0 7px; font-size: 13px; font-weight: 600; color: #e0d8e4; line-height: 1.6; }
.eco-benefit p { margin: 0; color: #a299ad; font-size: 12px; line-height: 1.8; }
.eco-extensions { margin-top: 35px; padding: 22px 0; border-block: 1px solid #342b37; }
.eco-extensions > h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #ac9fb5; margin: 0 0 15px; }
.eco-extensions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.eco-extensions a { display: flex; align-items: center; gap: 20px; }
.eco-extensions strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.eco-extensions small { display: block; font-size: 11px; color: #9f94a9; line-height: 1.7; }
.eco-extensions a > .icon { color: #bf829a; width: 16px; height: 16px; margin-left: auto; }
.eco-extensions a:hover strong { color: #ff9cb2; }
.eco-footer { display: flex; align-items: center; gap: 35px; margin-top: 26px; }
.eco-footer .button { flex-shrink: 0; }
.eco-footer p { color: #a39aad; font-size: 11px; line-height: 1.8; margin: 0; }
@media (max-width: 1100px) {
  .eco-explorer { grid-template-columns: minmax(0, 1fr); }
  .eco-story { margin-top: 3px; }
  .eco-panel { padding: 25px; }
  .eco-panel-body { max-width: 80ch; }
  .eco-panel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .eco-heading { gap: 30px; }
  .eco-benefit-grid { gap: 22px; }
}
@media (max-width: 700px) {
  .ecosystem-section > .section { padding-block: 55px 45px; }
  .eco-heading { grid-template-columns: 1fr; gap: 20px; }
  .eco-heading h2 { font-size: 48px; }
  .eco-heading .eyebrow { font-size: 8px; }
  .eco-intro { font-size: 13px; }
  .eco-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .eco-routes a { padding: 10px 8px; flex-direction: column; align-items: start; justify-content: start; gap: 5px; font-size: 10px; line-height: 1.5; }
  .eco-routes .icon { display: none; }
  .eco-board { padding: 15px 10px 10px; }
  .eco-team-nodes { gap: 26px; grid-template-columns: 1.1fr 1fr; }
  .eco-team-label { font-size: 8px; margin-bottom: 11px; }
  .eco-hub .eco-node-caption, .eco-pitwall .eco-node-caption { padding: 10px 8px; gap: 7px; min-height: 74px; }
  .eco-preview { max-height: 106px; }
  .eco-preview > .icon { right: 3px; bottom: 3px; width: 17px; height: 17px; padding: 3px; }
  .eco-hub .eco-hub-logo { width: 21px; height: 27px; }
  .eco-hub strong { font-size: 17px; }
  .eco-hub .eco-node-caption > .icon { display: none; }
  .eco-pitwall strong { font-size: 12px; }
  .eco-node small { font-size: 8px; }
  .eco-live-caption { height: 55px; padding-top: 28px; font-size: 7px; }
  .eco-cars { gap: 8px; }
  .eco-car { padding: 10px 6px 7px; border-radius: 5px; }
  .eco-car-heading { min-height: 47px; padding-bottom: 11px; }
  .eco-car-heading h3 { font-size: 14px; }
  .eco-car-heading p { display: none; }
  .eco-drivers { gap: 8px; }
  .eco-calc { text-align: center; }
  .eco-calc .eco-node-caption { padding: 10px 4px; min-height: 47px; }
  .eco-calc .eco-preview, .eco-replay .eco-preview { max-height: 90px; }
  .eco-calc strong { font-size: 13px; }
  .eco-calc small { display: none; }
  .eco-driver-node { flex-direction: column; gap: 6px; min-height: 111px; padding: 10px 3px; text-align: center; }
  .eco-driver-node .icon { width: 20px; height: 20px; }
  .eco-driver-node strong { font-size: 11px; overflow-wrap: anywhere; }
  .eco-local-link { height: 32px; }
  .eco-file-link { height: 38px; }
  .eco-replay .eco-node-caption { padding: 10px 4px; min-height: 57px; }
  .eco-replay strong { font-size: 11px; }
  .eco-replay small { display: none; }
  .eco-legend { column-gap: 14px; }
  .eco-legend > span { font-size: 8px; }
  .eco-diagram figcaption p { font-size: 10px; }
  .eco-panel { padding: 23px 20px; }
  .eco-panel h3 { font-size: 32px; }
  .eco-panel ul { grid-template-columns: 1fr; gap: 13px; }
  .eco-benefit-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .eco-benefit { gap: 9px; }
  .eco-benefit h4 { font-size: 12px; }
  .eco-benefit p { font-size: 12px; }
  .eco-extensions > div { grid-template-columns: 1fr; gap: 23px; }
  .eco-footer { flex-direction: column; align-items: start; gap: 18px; }
}
@media (max-width: 380px) {
  .eco-hub .eco-hub-logo { display: none; }
  .eco-hub strong { font-size: 15px; }
  .eco-pitwall strong { font-size: 11px; }
  .eco-team-nodes { gap: 23px; }
  .eco-benefit-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ecosystem-section *, .ecosystem-section *::before, .ecosystem-section *::after { transition: none !important; animation: none !important; }
}
