/* ============================================================================
 * beecore-core.css — Core product page (route-scoped)
 * ----------------------------------------------------------------------------
 * Every rule is scoped under .bc-core-page / html.core-route. No global
 * element selectors, no leaks into other routes.
 * Layers: scene canvas z0 -> soft veil z1 -> hero content z2.
 * ========================================================================== */

/* SPA safety: on /core the React Home shell never paints */
html.core-route #root { display: none !important; }

/* ------------------------------- page shell ------------------------------ */
/* P1-2 (2026-10-07): the page is now a plain container (hero child + below
   sections). The hero keeps the OLD page geometry (min-height + overflow
   hidden) inside .bc-core-hero so the scene canvas rect is unchanged. */
.bc-core-page {
  position: relative;
  margin-top: 65px;                              /* fixed global header */
  background: #fafafa;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------- hero (P1-2 wrapper) -------------------------- */
.bc-core-hero {
  position: relative;
  min-height: calc(100vh - 65px);
  overflow: hidden;
  background: #fbf9f5;
}

/* ------------------------------ scene layer ------------------------------ */
.bc-core-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;                          /* clicks reach hero root */
}
.bc-core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* soft overlay: press DETAIL near the headline only — must never wash out
   the Core sphere itself (v4: shader handles text suppression internally,
   veil reduced to a whisper so volume/fusion survive) */
.bc-core-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(38% 30% at 50% 47%,
              rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

/* ------------------------------ content layer ---------------------------- */
.bc-core-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 65px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 64px;
}

.bc-core-eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #9aa0a8;
}
.bc-core-eyebrow-dash {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: #d8d2c6;
}

.bc-core-title {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #101114;
}
.bc-core-title-accent {
  color: #f5b800;
}

.bc-core-sub {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  color: #6f7680;
}

/* --------------------------- environment buttons ------------------------- */
.bc-core-envs {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.bc-core-env {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.04);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #17181b;
  cursor: default;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bc-core-env svg {
  width: 18px;
  height: 18px;
  display: block;
}
.bc-core-env:hover {
  border-color: #ded9cd;
  box-shadow: 0 2px 6px rgba(16, 17, 20, 0.05);
}
.bc-core-env:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}

/* ---------------------------------- CTA ---------------------------------- */
.bc-core-cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: #f5b800;
  color: #101114;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.bc-core-cta-arrow {
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}
.bc-core-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.bc-core-cta:focus-visible {
  outline: 2px solid #101114;
  outline-offset: 3px;
}

/* --------------------- no-WebGL static fallback -------------------------- */
/* Soft static composition: same palette, no animation.                      */
.bc-core-page--static { background: #fbf9f5; }
.bc-core-page--static .bc-core-veil {
  background:
    radial-gradient(42% 34% at 50% 45%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 70%),
    radial-gradient(58% 44% at 50% 45%, rgba(241, 216, 170, 0.34), rgba(241, 216, 170, 0) 72%),
    radial-gradient(74% 58% at 50% 46%, rgba(233, 224, 208, 0.50), rgba(233, 224, 208, 0) 76%),
    linear-gradient(180deg, #fbf9f5 0%, #fdfcfa 100%);
}

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 900px) {
  .bc-core-content { padding: 40px 20px 56px; }
}
@media (max-width: 640px) {
  .bc-core-eyebrow { font-size: 11px; letter-spacing: 0.24em; gap: 10px; }
  .bc-core-eyebrow-dash { width: 18px; }
  .bc-core-title { font-size: clamp(34px, 10.5vw, 44px); }
  .bc-core-sub br { display: none; }
  .bc-core-envs { gap: 10px; }
  .bc-core-env { height: 42px; padding: 0 16px; font-size: 13px; }
  .bc-core-cta { height: 50px; padding: 0 26px; font-size: 15px; }
}

/* ===========================================================================
 * BELOW-HERO STORY (P1-2, 2026-10-07)
 * ---------------------------------------------------------------------------
 * Compact platform explanation: architecture flow -> building blocks ->
 * execution context -> gateway connection -> final CTA. BeeCore visual
 * language: #FAFAFA base, black/gray text, thin #EAEAEA borders, small
 * radius, yellow (#F5B800) as small accent only. No glass/gradient/icons.
 * ========================================================================= */

.bc-core-below { position: relative; z-index: 2; }

.bc-core-sec {
  max-width: 980px;
  margin: 0 auto;
  padding: 52px 24px 0;
  box-sizing: border-box;
}
.bc-core-sec--cta { padding-bottom: 76px; }

.bc-core-sec-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #9aa0a8;
}
.bc-core-sec h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #101114;
}
.bc-core-sec-lede {
  margin: 0 0 28px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: #6f7680;
}

/* --- Section 1: architecture flow + runtime (2 cols desktop / stack) ---- */
.bc-core-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.bc-core-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #ffffff;
  padding: 22px;
  box-sizing: border-box;
}
.bc-core-flow-node {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #17181b;
}
.bc-core-flow-node--gateway {
  background: #f5b800;                 /* the one gold accent */
  border-color: #f5b800;
}
.bc-core-flow-arrow {
  text-align: center;
  color: #b9b2a4;
  font-size: 14px;
  line-height: 1;
  padding: 7px 0;
}
.bc-core-runtime {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #ffffff;
  padding: 22px;
  box-sizing: border-box;
}
.bc-core-runtime-title {
  font-size: 14px;
  font-weight: 700;
  color: #101114;
  margin-bottom: 6px;
}
.bc-core-runtime-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bc-core-runtime-list li {
  padding: 9px 0;
  border-top: 1px solid #f1eee7;
  font-size: 14px;
  color: #3f4550;
}
.bc-core-runtime-list li:first-child { border-top: 0; }

/* --- Sections 2/3: card grids ------------------------------------------- */
.bc-core-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bc-core-block,
.bc-core-xrow {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}
.bc-core-block h3,
.bc-core-xrow h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #101114;
}
.bc-core-block p,
.bc-core-xrow p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6f7680;
}
.bc-core-block a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #B77900;
  text-decoration: none;
}
.bc-core-block a:hover { text-decoration: underline; }
.bc-core-block a:focus-visible,
.bc-core-chip-link:focus-visible,
.bc-core-btn:focus-visible {
  outline: 2px solid #F5B800;
  outline-offset: 2px;
}

/* --- Section 4: gateway link chips --------------------------------------- */
.bc-core-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bc-core-chip-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #ffffff;
  color: #17181b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.bc-core-chip-link:hover { border-color: #ded9cd; }

/* --- Final CTA ------------------------------------------------------------ */
.bc-core-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.bc-core-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.bc-core-btn--primary {
  background: #f5b800;
  color: #101114;
}
.bc-core-btn--primary:hover { filter: brightness(1.04); }
.bc-core-btn--ghost {
  border: 1px solid #eaeaea;
  background: #ffffff;
  color: #17181b;
}
.bc-core-btn--ghost:hover { border-color: #ded9cd; }

/* --- below-hero responsive ------------------------------------------------ */
@media (max-width: 820px) {
  .bc-core-cols { grid-template-columns: 1fr; }
  .bc-core-blocks { grid-template-columns: 1fr; }
  .bc-core-sec { padding: 40px 20px 0; }
  .bc-core-sec--cta { padding-bottom: 56px; }
}
