/* ================= BRAND / MARKETING MODAL (opened from the logo) ================= */
.brand-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--md-scrim);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.brand-modal-backdrop.open {
  display: flex;
  animation: bmFade 0.22s var(--md-ease);
}
.brand-modal-backdrop.open .brand-modal-dialog { animation: bmRise 0.32s var(--md-ease); }
@keyframes bmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmRise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .brand-modal-backdrop.open, .brand-modal-backdrop.open .brand-modal-dialog { animation: none; }
}
.brand-modal-dialog {
  position: relative;
  width: min(1040px, 95vw);
  max-height: 92vh;
  background: var(--md-surface);
  border: 1px solid var(--md-outline);
  border-radius: 22px;
  box-shadow: var(--md-elevation-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: text;
}
.bm-scroll { overflow-y: auto; }
.bm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--md-outline);
  background: var(--md-surface);
  color: var(--md-on-surface-variant);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.bm-close:hover { color: var(--md-on-surface); border-color: var(--md-primary); }
.bm-hero {
  position: relative;
  padding: 44px 48px 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--md-outline-variant);
}
.bm-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--brand-glow), transparent 62%);
  pointer-events: none;
}
.bm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--md-outline-variant) 1px, transparent 1px),
    linear-gradient(90deg, var(--md-outline-variant) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 10%, transparent 70%);
  pointer-events: none;
}
.bm-hero > * { position: relative; z-index: 1; }
.bm-brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.bm-brandline img { width: 44px; height: 44px; border-radius: 12px; filter: drop-shadow(0 4px 14px var(--brand-glow)); }
.bm-brandline .wm { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.bm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.bm-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.bm-headline {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 680px;
}
.bm-headline em {
  font-style: normal;
  background: var(--brand-wordmark-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bm-lede {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--md-on-surface-variant);
  max-width: 640px;
}
.bm-cta { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.bm-cta .md-btn { padding: 10px 18px; font-size: 13px; text-decoration: none; }
.bm-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--md-outline-variant);
  border-bottom: 1px solid var(--md-outline-variant);
}
.bm-pillar { background: var(--md-surface); padding: 22px 24px; }
.bm-pillar:first-child { padding-left: 48px; }
.bm-pillar .k { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--md-primary); }
.bm-pillar h4 { font-size: 14px; font-weight: 700; margin: 8px 0 6px; letter-spacing: -0.01em; }
.bm-pillar p { font-size: 12.5px; line-height: 1.55; color: var(--md-on-surface-variant); }
.bm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 48px 32px;
  gap: 16px;
}
.bm-stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.bm-stat .l { font-size: 11.5px; color: var(--md-on-surface-variant); margin-top: 2px; }
@media (max-width: 860px) {
  .bm-pillars, .bm-stats { grid-template-columns: repeat(2, 1fr); }
  .bm-hero { padding-left: 24px; padding-right: 24px; }
  .bm-pillar:first-child { padding-left: 24px; }
  .bm-stats { padding: 20px 24px; }
}
