/* BeeCore Homepage Section 3 — Multi-Provider Infrastructure + 3D Globe
   All selectors scoped under .bc-section-three. No globals touched. */

/* Section shell — flex column: header (full-width badge) + main (invisible two-column grid) */
#root > .page > .bc-section-three {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 96px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
  box-sizing: border-box;
}

/* Full-width header wrapper — centers badge relative to entire section container */
#root > .page > .bc-section-three .bc-section-three__header {
  width: 100%;
  text-align: center;
}

/* Invisible main layout — two-column grid (left content + right globe). NO border/background/shadow. */
#root > .page > .bc-section-three .bc-section-three__main {
  width: 100%;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 64px;
}

/* --- LEFT: content --- */
#root > .page > .bc-section-three .bc-section-three__content {
  min-width: 0;
}

/* BADGE — HERO BADGE GOLD STANDARD (centered by parent __header text-align:center) */
#root > .page > .bc-section-three .bc-section-three__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: normal;
  color: rgb(180, 83, 9);
  background: rgb(255, 248, 225);
  border: 0.67px solid rgb(245, 230, 184);
  box-shadow: rgba(0, 0, 0, 0.04) 0px 1px 2px;
  margin-bottom: 0;
  white-space: nowrap;
}
#root > .page > .bc-section-three .bc-section-three__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5b800;
}

/* Headline — UNIFIED S2-S7 TOKEN */
#root > .page > .bc-section-three .bc-section-three__title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(28px, 2.4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: #181818;
}
#root > .page > .bc-section-three .bc-section-three__title span {
  color: #181818;
  /* Inline yellow accent — same font-size/weight as parent H2 */
}

/* Descriptions */
#root > .page > .bc-section-three .bc-section-three__desc {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 10px;
  max-width: 480px;
}
#root > .page > .bc-section-three .bc-section-three__desc-secondary {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 40px;
  max-width: 480px;
}

/* Capability items — flex with text-driven width caps + equal spacers that center dividers between groups */
#root > .page > .bc-section-three .bc-section-three__caps {
  display: flex;
  align-items: flex-start;
  overflow: visible;
}
#root > .page > .bc-section-three .bc-section-three__cap {
  flex: 0 0 auto;
  padding: 0 0 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Spacers absorb remaining space EQUALLY — ensures dividers land at exact midpoint between text boundaries */
#root > .page > .bc-section-three .bc-section-three__spacer {
  flex: 1 1 0;
  min-width: 0;
}
/* Vertical divider — 1px thin, light gray, stretches to content height */
#root > .page > .bc-section-three .bc-section-three__divider {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  background: #eef1f5;
  /* Don't extend all the way to bottom; stop above the yellow line area */
  height: calc(100% - 24px);
  margin-top: 0;
}
#root > .page > .bc-section-three .bc-section-three__cap-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
  white-space: nowrap;
}
#root > .page > .bc-section-three .bc-section-three__cap-desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  white-space: nowrap;   /* force single-line per user spec */
}
/* Yellow accent underline — LEFT EDGE aligned with title/desc LEFT EDGE (no centering!) */
#root > .page > .bc-section-three .bc-section-three__cap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #f5b700;
  border-radius: 1px;
}

/* --- RIGHT: globe container --- */
#root > .page > .bc-section-three .bc-section-three__globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#root > .page > .bc-section-three .bc-section-three__globe {
  width: 100%;
  height: 100%;
  position: relative;
}
#root > .page > .bc-section-three canvas.bc-section-three__canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: pan-y;
}
#root > .page > .bc-section-three canvas.bc-section-three__canvas:active {
  cursor: grabbing;
}

/* Subtle glow around globe */
#root > .page > .bc-section-three .bc-section-three__globe-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(148,163,184,0.08) 0%,
    rgba(148,163,184,0.03) 40%,
    transparent 70%
  );
  z-index: 0;
}

/* Soft floating shadow beneath the globe (static — does not rotate) */
#root > .page > .bc-section-three .bc-section-three__globe-shadow {
  position: absolute;
  bottom: 1%;
  left: 50%;
  width: 38%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(31, 41, 55, 0.28) 0%,
    rgba(31, 41, 55, 0.16) 35%,
    rgba(31, 41, 55, 0.07) 60%,
    rgba(31, 41, 55, 0) 78%
  );
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

/* Static CSS fallback sphere (when WebGL unavailable) */
#root > .page > .bc-section-three .bc-section-three__fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 35%,
    #ffffff 0%,
    #f1f5f9 35%,
    #e2e8f0 70%,
    #cbd5e1 100%
  );
  position: relative;
  box-shadow:
    inset -20px -20px 60px rgba(71,85,105,0.08),
    inset 15px 15px 40px rgba(255,255,255,0.6);
}
#root > .page > .bc-section-three .bc-section-three__fallback .fb-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b700;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(245,183,0,0.5);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  #root > .page > .bc-section-three {
    gap: 40px;
    padding: 0 32px 72px;
  }
  #root > .page > .bc-section-three .bc-section-three__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  #root > .page > .bc-section-three .bc-section-three__globe-wrap {
    max-width: 420px;
    margin: 0 auto;
  }
  #root > .page > .bc-section-three .bc-section-three__content {
    max-width: 100%;
    text-align: center;
  }
  /* Badge stays centered via __header text-align:center — works in all viewports */
  #root > .page > .bc-section-three .bc-desc-break {
    display: none;
  }
  #root > .page > .bc-section-three .bc-section-three__desc,
  #root > .page > .bc-section-three .bc-section-three__desc-secondary {
    margin-left: auto;
    margin-right: auto;
  }
  /* Tablet/mobile: hide flex spacers+dividers; caps still flex row but no fake dividers */
  #root > .page > .bc-section-three .bc-section-three__spacer,
  #root > .page > .bc-section-three .bc-section-three__divider {
    display: none;
  }
  #root > .page > .bc-section-three .bc-section-three__cap {
    flex: 1 1 0;
    text-align: center;
  }
  /* Yellow line center-aligns with cap on centered layout */
  #root > .page > .bc-section-three .bc-section-three__cap::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  #root > .page > .bc-section-three {
    padding: 0 24px 56px;
    gap: 40px;
  }
  #root > .page > .bc-section-three .bc-section-three__globe-wrap {
    max-width: 320px;
  }
  /* Mobile: single column */
  #root > .page > .bc-section-three .bc-section-three__caps {
    flex-direction: column;
  }
  #root > .page > .bc-section-three .bc-section-three__cap {
    border-top: 1px solid #eef1f5;
    padding: 20px 0 16px;
    text-align: left;
  }
  /* Mobile yellow line: left-aligned with content (no padding) */
  #root > .page > .bc-section-three .bc-section-three__cap::after {
    left: 0;
    transform: none;
  }
  #root > .page > .bc-section-three .bc-section-three__title {
    font-size: 28px;
  }
}
