/**
 * Black Label Bots — homepage (story + product grid + mega menu)
 */

/* Hamburger visible on desktop — Products live in mega menu only */
.blb-nav--mega .fx-ham {
  display: flex;
}

.blb-nav-links a.blb-nav-active {
  color: var(--blb-text);
}

.blb-launch-banner {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 999px;
  font-size: 13px;
  color: var(--blb-text-dim);
  background: rgba(201, 169, 97, 0.08);
}

.blb-launch-banner strong {
  color: var(--blb-gold);
  letter-spacing: 0.04em;
}

.blb-launch-banner a {
  color: var(--blb-sovereign, var(--blb-gold));
  text-decoration: none;
}

.blb-launch-banner a:hover {
  text-decoration: underline;
}

/* ── Mega menu overlay ───────────────────────────────── */
.mega-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  overflow-y: auto;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
}

.mega-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-title {
  font-family: var(--fx-font-display, var(--blb-font-display));
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 64px;
  background: linear-gradient(90deg, var(--fx-sovereign, #c9a961), var(--fx-ace, #c9a961));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.mega-cols.mega-cols--5,
.mega-cols[style*="repeat(5"] {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
  .mega-cols.mega-cols--5,
  .mega-cols[style*="repeat(5"] {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mega-col-title {
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--blb-line);
}

.mega-col a {
  display: block;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.mega-col a:hover {
  border-bottom-color: var(--blb-line);
}

.mega-link-name {
  font-family: var(--fx-font-display, var(--blb-font-display));
  font-size: 22px;
  font-weight: 600;
  color: var(--blb-text);
  margin-bottom: 4px;
  transition: color 0.2s;
}

.mega-col a:hover .mega-link-name {
  color: var(--blb-gold);
}

.mega-link-sub {
  font-size: 12px;
  color: var(--blb-text-mute);
  letter-spacing: 0.04em;
}

@media (max-width: 1000px) {
  .mega-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .mega-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mega-inner {
    padding: 100px 24px 60px;
  }
}

/* ── Homepage hero (HUD — no duplicate logo) ─────────── */
.blb-home-hero {
  padding: 8px 0 40px !important;
  text-align: left;
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
  min-height: 0 !important;
}

.blb-home-hero .fx-scene-hud-wrap {
  padding-top: 4px;
}

.blb-home-hero-core {
  max-width: 720px;
  padding: 8px 0 12px;
}

.blb-home-title {
  font-size: clamp(44px, 7vw, 76px) !important;
  max-width: none !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.02em !important;
}

.blb-home-title em {
  font-style: italic;
  color: var(--blb-gold);
}

.blb-home-hero .blb-home-tagline {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--blb-text-dim);
  max-width: 52ch;
  margin: 0 0 28px;
  line-height: 1.65;
}

.blb-home-cta {
  justify-content: flex-start;
}

.blb-home-orbit {
  opacity: 0.7;
}

.blb-home-rings {
  right: 8%;
  top: 20%;
  opacity: 0.4;
}

.blb-mark,
.blb-nav-logo .blb-mark,
.blb-nav-logo img.blb-mark {
  filter:
    drop-shadow(0 0 10px rgba(249, 226, 125, 0.55))
    drop-shadow(0 0 22px rgba(201, 169, 97, 0.35));
}

/* Tighter story — less air above than hero had */
.blb-home-story.blb-section {
  padding: 44px 0 80px;
  position: relative;
}

.blb-home-story.blb-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.35), transparent);
}

.blb-home-story .blb-section-label {
  font-family: var(--fx-font-mono, monospace);
  letter-spacing: 0.22em;
}

.blb-home-story .blb-lede {
  margin-bottom: 40px;
}

/* ── Product grid (6 cards) ──────────────────────────── */
.blb-home-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.blb-home-product {
  padding: 28px 24px;
  border: 1px solid var(--blb-line);
  background: linear-gradient(145deg, var(--blb-bg), rgba(201, 169, 97, 0.02));
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.blb-home-product::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(201, 169, 97, 0.04) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s;
  pointer-events: none;
}

.blb-home-product:hover {
  border-color: var(--blb-gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(201, 169, 97, 0.06);
}

.blb-home-product:hover::after {
  transform: translateX(100%);
}

.blb-home-product--sovereign {
  border-color: rgba(201, 169, 97, 0.35);
  background: linear-gradient(145deg, var(--blb-bg), rgba(201, 169, 97, 0.06));
}

.blb-home-product-price {
  font-family: var(--blb-font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--blb-gold);
  margin-bottom: 8px;
}

.blb-home-product h3 {
  font-family: var(--blb-font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}

.blb-home-product p {
  font-size: 14px;
  color: var(--blb-text-dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blb-home-product-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blb-gold);
}

/* ── Sovereign highlight block ───────────────────────── */
.blb-home-sovereign-msg {
  padding: 40px 36px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), transparent 60%);
  margin-top: 32px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(249, 226, 125, 0.12);
}

.blb-home-sovereign-msg::before {
  content: '◈';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 10px;
  color: var(--blb-gold);
  opacity: 0.4;
  letter-spacing: 0.2em;
}

.blb-home-sovereign-msg h3 {
  font-family: var(--blb-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--blb-gold);
  margin-bottom: 16px;
  line-height: 1.3;
}

.blb-home-sovereign-msg ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.blb-home-sovereign-msg li {
  font-size: 15px;
  color: var(--blb-text-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--blb-line);
}

.blb-home-sovereign-msg li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .blb-home-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .blb-home-products {
    grid-template-columns: 1fr;
  }
}

/* ── Homepage Sovereign showcase (auto-play) ─────────── */
.blb-home-showcase {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--blb-bg) 0%, rgba(201, 169, 97, 0.04) 50%, var(--blb-bg) 100%);
  border-bottom: 1px solid var(--blb-line);
}

.blb-home-showcase h2 {
  max-width: 20ch;
}

.blb-home-showcase-lede {
  margin-bottom: 24px !important;
}

.blb-home-showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blb-home-showcase-phase {
  color: var(--blb-gold);
}

.blb-home-showcase-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6fbf7a;
}

.blb-home-showcase-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fbf7a;
  animation: demo-pulse-border 2s ease-in-out infinite;
}

.blb-home-showcase-stage {
  min-height: 460px;
  border: 1px solid rgba(201, 169, 97, 0.22);
  background: #050505;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(249, 226, 125, 0.06);
  overflow: hidden;
}

.blb-home-showcase-stage .sov-showcase {
  height: 100%;
  min-height: 460px;
  padding: 12px;
}

.blb-home-showcase-caption {
  font-size: 15px;
  line-height: 1.6;
  color: var(--blb-text-dim);
  margin: 16px 0 28px;
  min-height: 3em;
  padding-left: 14px;
  border-left: 2px solid var(--blb-gold-dim);
}

.blb-home-showcase-cta {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .blb-home-showcase-stage {
    min-height: 380px;
  }

  .blb-home-showcase-stage .sov-showcase {
    min-height: 380px;
  }

  .blb-home-showcase h2 {
    max-width: none;
  }
}

/* ── Story section ───────────────────────────────────── */
.blb-home-story h2 {
  max-width: 22ch;
}

.blb-story-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 48px 56px;
  align-items: start;
  margin-bottom: 56px;
}

.blb-story-prose {
  max-width: 68ch;
}

.blb-story-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--blb-text-dim);
  margin-bottom: 20px;
}

.blb-story-prose p:last-child {
  margin-bottom: 0;
}

.blb-story-open {
  font-size: 18px !important;
  color: var(--blb-text) !important;
}

.blb-story-close {
  padding-top: 8px;
  border-top: 1px solid var(--blb-line);
}

.blb-story-close strong {
  color: var(--blb-gold);
  font-weight: 600;
}

.blb-story-pull {
  margin: 0;
  padding: 32px 28px;
  border: 1px solid rgba(201, 169, 97, 0.25);
  background: linear-gradient(160deg, rgba(201, 169, 97, 0.08), transparent 55%);
  position: relative;
}

.blb-story-pull::before {
  content: "◈";
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 11px;
  color: var(--blb-gold);
  opacity: 0.6;
  letter-spacing: 0.2em;
}

.blb-story-pull p {
  font-family: var(--blb-font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--blb-text);
  margin: 0 0 20px;
  padding-top: 12px;
}

.blb-story-pull cite {
  display: block;
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
}

.blb-story-chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.blb-story-chapter {
  padding: 28px 24px;
  border: 1px solid var(--blb-line);
  background: linear-gradient(160deg, var(--blb-bg), rgba(201, 169, 97, 0.03));
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.blb-story-chapter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--blb-gold);
  opacity: 0.6;
}

.blb-story-chapter:hover {
  border-color: var(--blb-gold-dim);
  box-shadow: 0 0 28px rgba(201, 169, 97, 0.08);
}

.blb-story-chapter--ace {
  border-color: rgba(139, 58, 74, 0.35);
  background: linear-gradient(145deg, var(--blb-bg), rgba(139, 58, 74, 0.06));
}

.blb-story-chapter-num {
  font-family: var(--fx-font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blb-gold);
  margin-bottom: 16px;
}

.blb-story-chapter h3 {
  font-family: var(--blb-font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.blb-story-chapter p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--blb-text-dim);
  margin: 0;
}

.blb-story-versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.blb-story-versus-col {
  padding: 32px 28px;
  border: 1px solid var(--blb-line);
}

.blb-story-versus-col--rent {
  background: var(--blb-bg);
  opacity: 0.92;
}

.blb-story-versus-col--own {
  border-color: rgba(201, 169, 97, 0.35);
  background: linear-gradient(145deg, var(--blb-bg-2), rgba(201, 169, 97, 0.07));
}

.blb-story-versus-label {
  font-family: var(--fx-font-mono, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--blb-line);
}

.blb-story-versus-col--rent .blb-story-versus-label {
  color: var(--blb-text-mute);
}

.blb-story-versus-col--own .blb-story-versus-label {
  color: var(--blb-gold);
}

.blb-story-versus-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blb-story-versus-col li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--blb-text-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--blb-line);
  padding-left: 18px;
  position: relative;
}

.blb-story-versus-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--blb-text-mute);
}

.blb-story-versus-col--own li::before {
  background: var(--blb-gold);
}

.blb-story-versus-col li:last-child {
  border-bottom: none;
}

.blb-story-pillars {
  margin-top: 0;
}

@media (max-width: 1000px) {
  .blb-story-grid {
    grid-template-columns: 1fr;
  }

  .blb-story-chapters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blb-home-hero-core {
    text-align: center;
  }

  .blb-home-cta {
    justify-content: center;
  }

  .blb-home-hero .blb-home-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .blb-home-hero .fx-hud-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .blb-story-chapters,
  .blb-story-versus {
    grid-template-columns: 1fr;
  }

  .blb-home-story h2 {
    max-width: none;
  }

  .blb-home-story.blb-section {
    padding-top: 36px;
  }
}
