/* ═══════════════════════════════════════════════════════════════════
   BeeZ landing page — hero variant ("Midnight Trading Floor")
   ───────────────────────────────────────────────────────────────────
   Loaded only when /beez renders; the rest of the page reuses
   public-homepage.css. Design intent: bold editorial headline, deep
   purple→black gradient, electric cyan punch, glass dashboard collage,
   atmospheric grain. Theme-aware via the site's CSS custom properties.
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,500;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --beez-cyan: #00E5FF;
  --beez-cyan-soft: rgba(0, 229, 255, 0.16);
  --beez-violet: #7300e7;
  --beez-violet-soft: rgba(115, 0, 231, 0.14);
  --beez-ink-0: #07030f;     /* deepest */
  --beez-ink-1: #100624;
  --beez-ink-2: #1d0a3a;
  --beez-ink-3: #2a1456;
  --beez-card-bg: rgba(20, 12, 40, 0.65);
  --beez-card-border: rgba(255, 255, 255, 0.08);
  --beez-card-border-hi: rgba(255, 255, 255, 0.16);
  --beez-text-mute: rgba(255, 255, 255, 0.62);
  --beez-text-soft: rgba(255, 255, 255, 0.78);
  --beez-text-hi: #fff;
}

/* ───────────────────────────────────────────────────────────────────
   The hero is intentionally always dark — even in light theme — so the
   cyan punch and figure silhouette read consistently. The rest of the
   page below switches with --background like normal.
   ─────────────────────────────────────────────────────────────────── */

.beez-home .public-header {
  /* Slight extra translucency over the hero's dark backdrop. */
  background: rgba(7, 3, 15, 0.45) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.beez-home .public-header.scrolled {
  background: rgba(7, 3, 15, 0.78) !important;
}

/* ─── HERO SHELL ────────────────────────────────────────────────── */

.beez-hero {
  position: relative;
  isolation: isolate;             /* new stacking ctx so atmos clips here */
  padding: 160px 0 120px;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(0, 229, 255, 0.10) 0%, transparent 55%),
    radial-gradient(120% 90% at 18% 82%, rgba(115, 0, 231, 0.18) 0%, transparent 60%),
    linear-gradient(155deg, var(--beez-ink-0) 0%, var(--beez-ink-1) 35%, var(--beez-ink-2) 75%, var(--beez-ink-0) 100%);
  color: var(--beez-text-hi);
  overflow: hidden;
}

@media (max-width: 980px) {
  .beez-hero { padding: 130px 0 80px; }
}

/* ─── ATMOSPHERIC LAYERS ────────────────────────────────────────── */

.beez-hero-atmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.beez-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.beez-hero-glow--cyan {
  width: 520px; height: 520px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.42) 0%, transparent 70%);
  animation: beezDriftA 22s ease-in-out infinite alternate;
}

.beez-hero-glow--violet {
  width: 640px; height: 640px;
  bottom: -200px; left: -120px;
  background: radial-gradient(circle, rgba(115, 0, 231, 0.55) 0%, transparent 65%);
  animation: beezDriftB 28s ease-in-out infinite alternate;
}

@keyframes beezDriftA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}

@keyframes beezDriftB {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, -40px, 0) scale(1.06); }
}

/* SVG-noise grain overlay: scoped, low-opacity, no extra HTTP request. */
.beez-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  pointer-events: none;
}

/* Faint geometric grid, 1px lines, fades from top. */
.beez-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 80%);
  pointer-events: none;
}

/* ─── CONTAINER GRID ────────────────────────────────────────────── */

.beez-hero-grid-2col {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 1100px) {
  .beez-hero-grid-2col { grid-template-columns: 1fr; gap: 56px; }
}

/* ─── COPY (LEFT) ───────────────────────────────────────────────── */

.beez-hero-copy {
  font-family: 'Manrope', system-ui, sans-serif;
  animation: beezSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes beezSlideUp {
  0% { opacity: 0; transform: translate3d(0, 24px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

.beez-hero-title {
  font-family: 'Bricolage Grotesque', 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  color: var(--beez-text-hi);
  display: flex;
  flex-direction: column;
  gap: 0.04em;
}

.beez-hero-row {
  display: block;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .beez-hero-row { white-space: normal; }
  .beez-hero-title { font-size: clamp(38px, 11vw, 64px); }
}

.beez-hero-subtitle {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--beez-text-soft);
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 560px;
}

.beez-hero-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: beezWordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.beez-hero-word--1      { animation-delay: 0.05s; }
.beez-hero-word--2      { animation-delay: 0.18s; }
.beez-hero-word--3      { animation-delay: 0.31s; }
.beez-hero-word--succeed{ animation-delay: 0.44s; position: relative; }

.beez-hero-word--succeed {
  background: linear-gradient(180deg, #66f3ff 0%, #00E5FF 60%, #00b5cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 28px rgba(0, 229, 255, 0.45));
}

.beez-hero-underline {
  position: absolute;
  left: 0;
  bottom: -0.04em;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, transparent 0%, var(--beez-cyan) 35%, var(--beez-cyan) 70%, transparent 100%);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: beezUnderlineIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.7));
}

@keyframes beezWordIn {
  0%   { opacity: 0; transform: translate3d(0, 14px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes beezUnderlineIn {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.beez-hero-lede {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--beez-text-mute);
  max-width: 540px;
  margin: 0 0 30px;
}

.beez-hero-lede em {
  font-style: normal;
  color: var(--beez-text-hi);
  font-weight: 600;
}

/* ─── 4-STEP JOURNEY ───────────────────────────────────────────── */

.beez-journey {
  list-style: none;
  margin: 0 0 32px;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.beez-journey-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0;
  min-width: 0;
  flex: 0 1 auto;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: beezWordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.beez-journey-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--step-accent, var(--beez-cyan));
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 6px 16px -8px rgba(0,0,0,0.6);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.beez-journey-icon svg { width: 19px; height: 19px; }

.beez-journey-step:hover .beez-journey-icon {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--step-accent) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-accent) 14%, transparent),
              0 12px 30px -12px color-mix(in srgb, var(--step-accent) 65%, transparent);
}

.beez-journey-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.beez-journey-label {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--beez-text-hi);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.beez-journey-sub {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  color: var(--beez-text-mute);
  line-height: 1.35;
}

.beez-journey-chevron {
  /* Unicode "›" — clean, no SVG sizing footguns, scales with font-size. */
  flex: 0 0 auto;
  width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', 'Inter Tight', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.30);
  user-select: none;
  opacity: 0;
  animation: beezWordIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@media (max-width: 1180px) {
  .beez-journey-label { font-size: 13.5px; }
  .beez-journey-sub { font-size: 10.5px; }
  .beez-journey-icon { width: 34px; height: 34px; border-radius: 10px; }
  .beez-journey-icon svg { width: 17px; height: 17px; }
  .beez-journey { gap: 0 10px; }
}

@media (max-width: 980px) {
  .beez-journey { flex-wrap: wrap; gap: 16px 14px; }
}

@media (max-width: 720px) {
  .beez-journey-chevron { display: none; }
  .beez-journey {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }
}

/* ─── CTA ───────────────────────────────────────────────────────── */

.beez-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 24px;
}

.beez-hero-cta .beez-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--beez-cyan) 0%, #2bb6ff 100%);
  color: #07060f;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.25),
    0 14px 40px -14px rgba(0, 229, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.3s, filter 0.2s;
}

.beez-hero-cta .beez-cta-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.45),
    0 22px 50px -16px rgba(0, 229, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.beez-hero-cta .beez-cta-primary svg { transition: transform 0.2s; }
.beez-hero-cta .beez-cta-primary:hover svg { transform: translateX(3px); }

.beez-hero-cta .beez-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--beez-text-hi);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, border-color 0.2s;
}

.beez-hero-cta .beez-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ─── TRUST LINE ───────────────────────────────────────────────── */

.beez-trustline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--beez-text-mute);
}

.beez-trustline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.beez-trustline-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   STAGE (RIGHT) — Dashboard collage with silhouette
   ═══════════════════════════════════════════════════════════════════ */

.beez-hero-stage {
  position: relative;
  height: clamp(440px, 56vw, 560px);
  animation: beezSlideUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@media (max-width: 1100px) {
  .beez-hero-stage { height: clamp(420px, 80vw, 520px); margin-top: 12px; }
}

.beez-hero-stage-inner {
  position: absolute;
  inset: 0;
}

.beez-hero-spotlight {
  position: absolute;
  inset: -10% -8% 4% -8%;
  background:
    radial-gradient(60% 50% at 70% 28%, rgba(0, 229, 255, 0.32) 0%, transparent 65%),
    radial-gradient(70% 60% at 25% 75%, rgba(115, 0, 231, 0.26) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.beez-hero-figure {
  position: absolute;
  right: -2%;
  bottom: -6%;
  height: 92%;
  width: auto;
  z-index: 1;
  filter:
    drop-shadow(-30px 0 60px rgba(0, 229, 255, 0.25))
    drop-shadow(20px 30px 60px rgba(0, 0, 0, 0.6))
    saturate(0.85)
    contrast(1.05);
  pointer-events: none;
  user-select: none;
  /* Slight inversion so the figure reads as a deeper midnight rather than
     pure black; reads more cinematic against the cyan rim. */
  mix-blend-mode: normal;
}

@media (max-width: 1100px) {
  .beez-hero-figure { right: 2%; bottom: -2%; height: 80%; }
}

/* ─── DASHBOARD CARDS ───────────────────────────────────────────── */

.beez-card {
  position: absolute;
  z-index: 2;
  background: linear-gradient(155deg, rgba(28, 16, 56, 0.78) 0%, rgba(14, 8, 30, 0.62) 100%);
  border: 1px solid var(--beez-card-border);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 48px -22px rgba(0, 0, 0, 0.7),
    0 4px 12px -4px rgba(0, 229, 255, 0.12);
  color: var(--beez-text-hi);
  font-family: 'Manrope', system-ui, sans-serif;
  opacity: 0;
  animation: beezCardIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes beezCardIn {
  0%   { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.97); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.beez-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.beez-card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--beez-text-mute);
}

.beez-card-title--xs { font-size: 10.5px; letter-spacing: 0.1em; }

.beez-card-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.beez-card-pill--up   { color: #4ade80; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35); }
.beez-card-pill--down { color: #fb7185; background: rgba(244, 63, 94, 0.12);  border: 1px solid rgba(244, 63, 94, 0.35); }

.beez-card-value {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  color: var(--beez-text-hi);
}

.beez-card-value strong { font-weight: 800; }

.beez-card-sub {
  font-size: 11.5px;
  color: var(--beez-text-mute);
}

.beez-card-chart {
  margin: 10px -4px 0;
  height: 56px;
}

.beez-spark { width: 100%; height: 100%; display: block; }

.beez-card-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Card 1 — Portfolio ── */
.beez-card--portfolio {
  top: 0; left: 0;
  width: 64%;
  animation-delay: 0.35s;
}

/* ── Card 2 — Risk ── */
.beez-card--risk {
  top: 4%; right: 0;
  width: 36%;
  min-width: 178px;
  animation-delay: 0.5s;
  padding: 12px 14px;
}

.beez-risk-num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  margin: 4px 0 1px;
  color: #fbbf24;
  letter-spacing: -0.02em;
}

.beez-risk-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0 8px;
  overflow: hidden;
}

.beez-risk-bar-fill {
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80 0%, #fbbf24 60%, #fb7185 100%);
}

.beez-risk-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--beez-text-mute);
}

/* ── Card 3 — Allocation ── */
.beez-card--alloc {
  top: 38%; left: 4%;
  width: 56%;
  animation-delay: 0.65s;
}

.beez-alloc-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}

.beez-alloc-donut {
  width: 80px; height: 80px;
}

.beez-alloc-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.35));
}

.beez-alloc-legend {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 11.5px;
  display: grid;
  gap: 4px;
  color: var(--beez-text-soft);
}

.beez-alloc-legend li {
  display: flex; align-items: center;
  gap: 8px;
}

.beez-alloc-legend li span {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.beez-alloc-legend em {
  margin-left: auto;
  font-style: normal;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  color: var(--beez-text-hi);
}

/* ── Card 4 — Cash Flow ── */
.beez-card--flow {
  bottom: 6%; left: 0;
  width: 50%;
  animation-delay: 0.8s;
}

.beez-flow-row {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--beez-text-soft);
}

.beez-flow-row strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  color: var(--beez-text-hi);
}

.beez-flow-row--neg strong { color: #fb7185; }

.beez-flow-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.beez-flow-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--beez-cyan) 0%, #2bb6ff 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* ── Card 5 — Backtest tag ── */
.beez-card--backtest {
  bottom: 14%; right: 4%;
  width: 36%;
  min-width: 160px;
  animation-delay: 0.95s;
  padding: 11px 14px;
}

.beez-backtest-num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  margin: 2px 0 6px;
  color: #4ade80;
}

.beez-card--backtest .beez-card-chart {
  margin: 4px 0 0;
  height: 38px;
}

/* ─── Responsive: smaller stage cards ──────────────────────────── */

@media (max-width: 980px) {
  .beez-card--portfolio { width: 70%; }
  .beez-card--risk      { width: 38%; }
  .beez-card--alloc     { width: 60%; top: 40%; }
  .beez-card--flow      { width: 54%; }
  .beez-card--backtest  { width: 38%; }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — collapse the absolute-positioned dashboard collage into a
   normal vertical stack. The figure + spotlight are decorative-only,
   so they hide. Header buttons tighten so they don't wrap.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  /* Hero shell — tighter padding, room for stacked cards */
  .beez-home .beez-hero { padding: 110px 0 70px; }

  /* The stage no longer needs a fixed height — it grows with content. */
  .beez-home .beez-hero-stage {
    height: auto !important;
    margin-top: 28px;
  }
  .beez-home .beez-hero-stage-inner {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    inset: auto !important;
  }

  /* Hide the silhouette + spotlight — purely decorative; they get
     cropped strangely when the stage shrinks. */
  .beez-home .beez-hero-figure,
  .beez-home .beez-hero-spotlight { display: none !important; }

  /* Every dashboard card becomes a normal-flow full-width tile.
     Scoping under .beez-home + each card class beats any earlier
     media-query rule (.beez-card--portfolio { width: 70% } at 980px). */
  .beez-home .beez-card,
  .beez-home .beez-card--portfolio,
  .beez-home .beez-card--risk,
  .beez-home .beez-card--alloc,
  .beez-home .beez-card--flow,
  .beez-home .beez-card--backtest {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    padding: 13px 14px;
    border-radius: 14px;
    animation-delay: 0.3s !important;
    transform: none !important;
  }

  .beez-home .beez-card-value { font-size: 20px; }
  .beez-home .beez-risk-num { font-size: 32px; }
  .beez-home .beez-backtest-num { font-size: 22px; }
  .beez-home .beez-card--backtest .beez-card-chart { height: 44px; }
}

/* Header tightens: narrow viewports were making "Sign in" wrap to two
   lines and "Start free →" likewise. Smaller padding + 12px font, no
   wrapping. */
@media (max-width: 540px) {
  .beez-home .public-header .container { gap: 10px; }
  .beez-home .public-header img { height: 38px !important; }
  .beez-home .public-header a {
    padding: 7px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
    line-height: 1.1;
  }
}

@media (max-width: 380px) {
  /* Smallest pocket-phone fallback */
  .beez-hero { padding: 100px 0 56px; }
  .beez-hero-title { font-size: clamp(34px, 12vw, 56px); }
  .beez-hero-cta { gap: 10px; }
  .beez-hero-cta .beez-cta-primary,
  .beez-hero-cta .beez-cta-secondary {
    padding: 12px 16px;
    font-size: 13.5px;
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Light-theme adjustments — Beez hero stays dark, but the page below
   needs the regular light-theme treatment. The site's existing
   public-homepage.css already handles those sections; we only need to
   make sure no Beez-specific selector accidentally bleeds into them.
   (None do — every selector is .beez-* scoped.)
   ═══════════════════════════════════════════════════════════════════ */

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .beez-hero-glow--cyan,
  .beez-hero-glow--violet,
  .beez-hero-eyebrow-dot,
  .beez-hero-word,
  .beez-hero-underline,
  .beez-hero-copy,
  .beez-hero-stage,
  .beez-card,
  .beez-journey-step {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   POST-HERO SECTIONS — 3 PILLARS, ADVANCED TOOLS, FINAL CTA BAND
   Reference-matching composition. Same midnight-trading-floor theme
   as the hero (always dark, regardless of site theme toggle).
   ═══════════════════════════════════════════════════════════════════ */

.beez-pillars,
.beez-advanced,
.beez-final {
  position: relative;
  background:
    linear-gradient(180deg, var(--beez-ink-0) 0%, var(--beez-ink-1) 100%);
  color: var(--beez-text-hi);
  font-family: 'Manrope', system-ui, sans-serif;
  isolation: isolate;
  overflow: hidden;
}

.beez-pillars { padding: 80px 0 60px; }
.beez-advanced { padding: 30px 0 60px; }
.beez-final { padding: 30px 0 100px; }

/* Soft violet wash behind the pillar grid. */
.beez-pillars-atmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.beez-pillars-glow {
  position: absolute;
  width: 80%; height: 70%;
  top: -10%; left: 10%;
  background: radial-gradient(circle, rgba(115, 0, 231, 0.32) 0%, transparent 60%);
  filter: blur(90px);
}

/* ─── 3 PILLARS GRID ───────────────────────────────────────────── */

.beez-pillars-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1080px) {
  .beez-pillars-grid { grid-template-columns: 1fr; gap: 18px; }
}

.beez-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(45, 22, 88, 0.55) 0%, rgba(20, 10, 38, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.18);
  text-decoration: none;
  color: var(--beez-text-hi);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s, box-shadow 0.3s;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.beez-pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--pillar-accent) 35%, transparent) 0%,
    transparent 40%,
    color-mix(in srgb, var(--pillar-accent) 12%, transparent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.beez-pillar:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pillar-accent) 55%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 0 1px color-mix(in srgb, var(--pillar-accent) 30%, transparent),
    0 38px 70px -30px color-mix(in srgb, var(--pillar-accent) 55%, transparent);
}

.beez-pillar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.beez-pillar-num {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--pillar-accent);
  background: color-mix(in srgb, var(--pillar-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pillar-accent) 45%, transparent);
  flex-shrink: 0;
}

.beez-pillar-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--pillar-accent);
  margin: 0;
}

.beez-pillar-tagline {
  text-align: center;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--beez-text-soft);
  margin: 0 auto 22px;
  max-width: 32ch;
}

.beez-pillar-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 520px) {
  .beez-pillar-body { grid-template-columns: 1fr; }
}

/* ─── PILLAR MOCKUPS ────────────────────────────────────────────── */

.beez-pillar-mockup {
  display: flex;
  align-items: stretch;
}

.beez-mock {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(13, 6, 26, 0.7) 0%, rgba(28, 14, 60, 0.4) 100%);
  padding: 14px;
  position: relative;
  overflow: hidden;
  min-height: 178px;
}

/* Academy mockup — graduation cap + play button. */
.beez-mock--academy {
  background: linear-gradient(155deg, rgba(168, 85, 247, 0.22) 0%, rgba(115, 0, 231, 0.36) 100%);
  display: grid;
  place-items: center;
}

.beez-mock-cap {
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 6px 20px rgba(168, 85, 247, 0.55));
}

.beez-mock-play {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(168, 85, 247, 0.7);
  color: #fff;
  padding-left: 2px;
}

/* Labs mockup — EMI calculator. */
.beez-mock--labs {
  font-family: 'Manrope', system-ui, sans-serif;
}

.beez-mock-labs-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--beez-text-mute);
  margin-bottom: 8px;
}

.beez-mock-labs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: var(--beez-text-mute);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.beez-mock-labs-row strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  color: var(--beez-text-hi);
  font-size: 12px;
}

.beez-mock-labs-row--strong strong { color: var(--beez-cyan); }

.beez-mock-labs-btn {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--beez-cyan) 0%, #2bb6ff 100%);
  color: #07060f;
  border: none;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: default;
  box-shadow: 0 8px 18px -8px rgba(0, 229, 255, 0.55);
}

/* Sandbox mockup — portfolio simulation. */
.beez-mock--sandbox {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.beez-mock-sand-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--beez-text-mute);
}

.beez-mock-sand-meta {
  font-size: 11px;
  color: var(--beez-text-mute);
  margin-top: 8px;
}

.beez-mock-sand-num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #4ade80;
  line-height: 1;
}

.beez-mock-sand-vs {
  font-size: 11px;
  color: var(--beez-text-mute);
}

.beez-mock-sand-vs strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #4ade80;
  font-weight: 600;
}

.beez-mock-sand-chart {
  margin-top: auto;
  height: 50px;
}

/* ─── PILLAR BULLETS ───────────────────────────────────────────── */

.beez-pillar-bullets {
  list-style: none;
  margin: 0;
  padding: 14px 4px 4px;
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 12.5px;
  color: var(--beez-text-soft);
}

.beez-pillar-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.35;
}

.beez-pillar-bullet-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pillar-accent);
  flex-shrink: 0;
  box-shadow: 0 0 10px color-mix(in srgb, var(--pillar-accent) 70%, transparent);
}

/* ═══════════════════════════════════════════════════════════════════
   ADVANCED TOOLS
   ═══════════════════════════════════════════════════════════════════ */

.beez-advanced-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(45, 22, 88, 0.55) 0%, rgba(20, 10, 38, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.18);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.beez-advanced-num {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13.5px;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.beez-advanced-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #c084fc;
  margin: 0;
}

.beez-advanced-sub {
  margin-left: auto;
  font-size: 13px;
  color: var(--beez-text-mute);
  flex: 1 1 auto;
  text-align: right;
  min-width: 280px;
}

@media (max-width: 720px) {
  .beez-advanced-sub { text-align: left; margin-left: 0; }
}

.beez-advanced-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1180px) { .beez-advanced-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .beez-advanced-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .beez-advanced-grid { grid-template-columns: 1fr; } }

.beez-tool {
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(28, 14, 60, 0.55) 0%, rgba(13, 6, 26, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  opacity: 0;
  animation: beezWordIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.beez-tool:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(160deg, rgba(45, 22, 88, 0.7) 0%, rgba(13, 6, 26, 0.9) 100%);
}

.beez-tool-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #c084fc;
  margin-bottom: 12px;
}

.beez-tool-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #c084fc;
  margin: 0 0 6px;
  line-height: 1.25;
  min-height: 28px;
}

.beez-tool-desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--beez-text-mute);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BOTTOM CTA BAND
   ═══════════════════════════════════════════════════════════════════ */

.beez-final-bar {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr;
  align-items: center;
  gap: 30px;
  padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(45, 22, 88, 0.55) 0%, rgba(20, 10, 38, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 980px) {
  .beez-final-bar { grid-template-columns: 1fr; gap: 24px; }
}

.beez-final-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.beez-final-target {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(0, 229, 255, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  flex-shrink: 0;
}

.beez-final-copy h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--beez-text-hi);
}

.beez-final-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--beez-text-mute);
}

.beez-final-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.beez-final-mid-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--beez-text-mute);
}

.beez-final-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--beez-cyan) 0%, #2bb6ff 100%);
  color: #07060f;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.25),
    0 14px 36px -14px rgba(0, 229, 255, 0.7);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.3s;
}

.beez-final-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.45),
    0 18px 44px -14px rgba(0, 229, 255, 0.85);
}

.beez-final-right {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .beez-final-right { justify-content: flex-start; flex-wrap: wrap; }
}

.beez-final-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.beez-final-trust-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #c084fc;
}

.beez-final-trust-text {
  display: grid;
  gap: 0;
  line-height: 1.2;
}

.beez-final-trust-text strong {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--beez-text-hi);
}

.beez-final-trust-text span {
  font-size: 11px;
  color: var(--beez-text-mute);
}
