/* ============================================================
   CORTEXIUM AI DESIGN SYSTEM — Full Platform Stylesheet
   Aesthetic: Technical, Architectural, Swiss Typography, Zero-Slop
   Signature: Carbon Black (#09090b), Flame Orange (#ff4500), Hairline 1px Borders
   ============================================================ */

:root {
  --bb-bg: #09090b;
  --bb-bg-subtle: #0d0d11;
  --bb-surface: #121217;
  --bb-surface-card: #15151c;
  --bb-surface-hover: #1a1a23;
  --bb-surface-active: #20202c;
  --bb-border: #23232d;
  --bb-border-subtle: #191922;
  --bb-border-light: #2d2d3a;
  --bb-border-highlight: #3d3d4e;
  
  --bb-text: #f4f4f5;
  --bb-text-muted: #a1a1aa;
  --bb-text-dim: #71717a;
  
  --bb-orange: #ff4500;
  --bb-orange-hover: #e03e00;
  --bb-orange-subtle: rgba(255, 69, 0, 0.12);
  --bb-orange-border: rgba(255, 69, 0, 0.35);
  --bb-orange-glow: rgba(255, 69, 0, 0.22);
  
  --bb-green: #10b981;
  --bb-green-subtle: rgba(16, 185, 129, 0.12);
  --bb-blue: #3b82f6;
  --bb-purple: #a855f7;
  --bb-red: #ef4444;
  
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, monospace;
  
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.cortexium-landing {
  font-family: var(--font-sans);
  background: var(--bb-bg);
  color: var(--bb-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Technical Background Grid */
.bb-grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-size: 32px 32px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Announcement Top Bar */
.bb-announcement-bar {
  background: #0d0d12; border-bottom: 1px solid var(--bb-border);
  padding: 8px 16px; font-family: var(--font-mono); font-size: 11px;
  color: var(--bb-text-muted); text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; z-index: 101;
}
.bb-announcement-bar a {
  color: var(--bb-orange); text-decoration: none; font-weight: 600;
}
.bb-announcement-bar a:hover { text-decoration: underline; }

/* ============ NAVIGATION ============ */
.bb-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bb-border);
}
.bb-nav-container {
  max-width: 1240px; margin: 0 auto;
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.bb-brand-group {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
}
.bb-logo-mark {
  width: 24px; height: 24px; background: var(--bb-orange);
  border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 900; color: #000;
}
.bb-brand-title {
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; color: #fff;
}
.bb-brand-tag {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--bb-orange);
  background: var(--bb-orange-subtle); border: 1px solid var(--bb-orange-border);
  padding: 1px 6px; border-radius: var(--radius-xs); margin-left: 2px;
}

.bb-nav-menu {
  display: flex; align-items: center; gap: 28px;
}
.bb-nav-menu a {
  color: var(--bb-text-muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color 0.15s ease;
}
.bb-nav-menu a:hover { color: #fff; }

.bb-nav-right {
  display: flex; align-items: center; gap: 14px;
}
.bb-nav-link-subtle {
  font-family: var(--font-mono); font-size: 12px; color: var(--bb-text-muted);
  text-decoration: none; padding: 6px 10px; border-radius: var(--radius-xs);
  transition: color 0.15s;
}
.bb-nav-link-subtle:hover { color: #fff; }

/* ============ TECHNICAL BUTTONS ============ */
.btn-bb-primary {
  background: var(--bb-orange); color: #000;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  border: none; border-radius: var(--radius-xs); padding: 8px 16px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s ease;
}
.btn-bb-primary:hover { background: var(--bb-orange-hover); }

.btn-bb-secondary {
  background: var(--bb-surface); color: var(--bb-text);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--bb-border); border-radius: var(--radius-xs); padding: 8px 16px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s ease;
}
.btn-bb-secondary:hover {
  background: var(--bb-surface-hover); border-color: var(--bb-border-light); color: #fff;
}
.btn-bb-lg { padding: 12px 24px; font-size: 13.5px; }

/* ============ HERO SECTION ============ */
.bb-hero {
  position: relative; z-index: 1; padding: 72px 24px 70px;
}
.bb-hero-wrap {
  max-width: 1200px; margin: 0 auto; text-align: left;
}
.bb-hero-meta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--bb-orange); background: var(--bb-orange-subtle); border: 1px solid var(--bb-orange-border);
  padding: 4px 10px; border-radius: var(--radius-xs); margin-bottom: 22px;
}
.bb-hero-headline {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: #fff; max-width: 940px; margin-bottom: 20px;
}
.bb-hero-headline .accent-orange { color: var(--bb-orange); }
.bb-hero-sub {
  font-size: clamp(16px, 1.8vw, 18.5px); line-height: 1.6; color: var(--bb-text-muted);
  max-width: 740px; margin-bottom: 32px;
}

.bb-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 48px;
}

/* Metric Strip (Hairline Grid) */
.bb-metrics-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--bb-border); background: var(--bb-surface);
  border-radius: var(--radius-sm); margin-bottom: 54px;
}
.bb-metric-col {
  padding: 24px 28px; border-right: 1px solid var(--bb-border);
}
.bb-metric-col:last-child { border-right: none; }
.bb-metric-num {
  font-family: var(--font-mono); font-size: 30px; font-weight: 800; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.bb-metric-num span { color: var(--bb-orange); }
.bb-metric-label { font-size: 13.5px; font-weight: 600; color: var(--bb-text); margin-bottom: 2px; }
.bb-metric-sub { font-size: 12px; color: var(--bb-text-dim); line-height: 1.4; }

/* ============ INTERACTIVE PLAYGROUND (HERO MOCKUP) ============ */
.bb-hero-playground {
  border: 1px solid var(--bb-border); border-radius: var(--radius-md);
  background: var(--bb-surface); overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
}
.bb-playground-top {
  height: 40px; background: #0c0c10; border-bottom: 1px solid var(--bb-border);
  padding: 0 16px; display: flex; align-items: center; justify-content: space-between;
}
.bb-window-dots { display: flex; gap: 6px; }
.bb-w-dot { width: 9px; height: 9px; border-radius: 50%; }
.bb-w-dot.red { background: #ef4444; }
.bb-w-dot.yellow { background: #f59e0b; }
.bb-w-dot.green { background: #10b981; }

.bb-playground-tabs { display: flex; gap: 2px; }
.bb-p-tab {
  background: none; border: none; font-family: var(--font-mono); font-size: 11px;
  color: var(--bb-text-dim); padding: 6px 12px; border-radius: var(--radius-xs); cursor: pointer;
}
.bb-p-tab.active { background: var(--bb-surface); color: var(--bb-orange); font-weight: 600; }

.bb-playground-body {
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 380px;
}
.bb-editor-pane {
  background: #09090b; border-right: 1px solid var(--bb-border); padding: 20px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; overflow-x: auto;
}
.bb-editor-pane pre { margin: 0; }
.tok-kw { color: #f43f5e; font-weight: 600; }
.tok-fn { color: #38bdf8; }
.tok-str { color: #a3e635; }
.tok-prop { color: #e2e8f0; }
.tok-com { color: #52525b; font-style: italic; }
.tok-acc { color: var(--bb-orange); font-weight: 700; }

.bb-telemetry-pane {
  background: #0d0d12; display: flex; flex-direction: column;
}
.bb-pane-header {
  padding: 10px 16px; border-bottom: 1px solid var(--bb-border);
  font-family: var(--font-mono); font-size: 11px; color: var(--bb-text-dim);
  display: flex; justify-content: space-between;
}
.bb-live-feed {
  flex: 1; padding: 16px; font-family: var(--font-mono); font-size: 11.5px;
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
}
.bb-feed-item { color: var(--bb-text-muted); line-height: 1.5; }
.bb-feed-item.active { color: #fff; }
.bb-tag-mono { font-weight: 700; color: var(--bb-blue); }
.bb-tag-mono.orange { color: var(--bb-orange); }
.bb-tag-mono.green { color: var(--bb-green); }

.bb-playground-tools { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--bb-text-dim); }
.bb-node-label { white-space: nowrap; }
.bb-copy-code, .bb-run-curl {
  border: 1px solid var(--bb-border-light); background: #17171d; color: var(--bb-text-muted);
  border-radius: var(--radius-xs); padding: 5px 8px; font: 600 9px var(--font-mono); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.bb-copy-code:hover { color: #fff; border-color: var(--bb-orange); }
.bb-run-curl { background: var(--bb-orange); color: #09090b; border-color: var(--bb-orange); }
.bb-run-curl:hover { background: #ff6a35; }
.bb-run-curl:disabled { opacity: .55; cursor: wait; }
.bb-terminal-action { padding: 10px 12px; border-top: 1px solid var(--bb-border); background: #09090b; }
.bb-terminal-action > code { display: block; color: #d4d4d8; font: 10px/1.5 var(--font-mono); overflow-wrap: anywhere; margin-bottom: 8px; }
.bb-terminal-action > code::before { content: ">_ "; color: var(--bb-orange); font-weight: 700; }
.bb-terminal-buttons { display: flex; gap: 6px; }
.bb-command-result {
  display: block; margin-top: 11px; padding: 11px 12px; min-height: 116px;
  color: #d4d4d8; background: #0c0d10; border: 1px solid #27272e;
  border-radius: 6px; overflow: auto;
}
.bb-cli-response-head { display:flex; align-items:center; gap:7px; color:#71717a; font:600 9px var(--font-mono); letter-spacing:.09em; }
.bb-cli-dot { width:7px; height:7px; border-radius:50%; background:var(--bb-green); box-shadow:0 0 8px rgba(16,185,129,.45); }
.bb-cli-dot.is-loading { background:var(--bb-orange); animation:cli-pulse 1s ease-in-out infinite; }
.bb-cli-http { margin-left:auto; padding:3px 6px; color:var(--bb-green); background:rgba(16,185,129,.08); border-radius:3px; letter-spacing:.03em; }
.bb-cli-json { margin:9px 0 0; white-space:pre; overflow:visible; color:#cbd5e1; font:10px/1.6 var(--font-mono); }
.bb-cli-json code { font:inherit; }
.bb-cli-json .json-key { color:#7dd3fc; }
.bb-cli-json .json-literal { color:#fbbf24; }
.bb-cli-json .json-number { color:#a3e635; }
.bb-command-result.is-error { border-color:rgba(255,123,114,.35); }
.bb-command-result.is-error .bb-cli-dot { background:#ff7b72; box-shadow:0 0 8px rgba(255,123,114,.4); }
.bb-command-result.is-error .bb-cli-http { color:#ff7b72; background:rgba(255,123,114,.08); }
@keyframes cli-pulse { 50% { opacity:.35; transform:scale(.78); } }
@media (max-width: 768px) { .bb-node-label { display: none; } }

/* ============ SECTION COMMON STYLES ============ */
.bb-section {
  position: relative; z-index: 1; padding: 88px 24px; max-width: 1200px; margin: 0 auto;
}
.bb-section-header { margin-bottom: 48px; text-align: left; }
.bb-section-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--bb-orange); text-transform: uppercase; margin-bottom: 12px; display: inline-block;
}
.bb-section-title {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: -0.02em; color: #fff;
  line-height: 1.15; margin-bottom: 12px;
}
.bb-section-sub {
  font-size: 16px; color: var(--bb-text-muted); max-width: 680px; line-height: 1.6;
}

/* ============ CORE PRIMITIVES GRID (4 QUADRANTS) ============ */
.bb-primitives-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--bb-border); background: var(--bb-surface);
  border-radius: var(--radius-sm); overflow: hidden;
}
.bb-primitive-card {
  padding: 38px 34px; border-right: 1px solid var(--bb-border); border-bottom: 1px solid var(--bb-border);
  transition: background 0.15s ease;
}
.bb-primitive-card:nth-child(2n) { border-right: none; }
.bb-primitive-card:nth-last-child(-n+2) { border-bottom: none; }
.bb-primitive-card:hover { background: var(--bb-surface-hover); }

.bb-prim-id {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--bb-orange);
  margin-bottom: 14px;
}
.bb-prim-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.bb-prim-desc { font-size: 14.5px; color: var(--bb-text-muted); line-height: 1.65; margin-bottom: 20px; }
.bb-prim-code {
  background: #09090b; border: 1px solid var(--bb-border); border-radius: var(--radius-xs);
  padding: 10px 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--bb-text-dim);
}

/* ============ STEP EXECUTION WORKFLOW ============ */
.bb-steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.bb-step-card {
  border: 1px solid var(--bb-border); background: var(--bb-surface);
  border-radius: var(--radius-sm); padding: 28px 24px;
}
.bb-step-idx {
  font-family: var(--font-mono); font-size: 13px; font-weight: 800; color: var(--bb-orange);
  margin-bottom: 16px;
}
.bb-step-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.bb-step-desc { font-size: 13.5px; color: var(--bb-text-muted); line-height: 1.6; }

/* ============ TEMPLATES DIRECTORY ============ */
.bb-templates-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.bb-template-card {
  border: 1px solid var(--bb-border); background: var(--bb-surface);
  border-radius: var(--radius-sm); padding: 24px 20px; display: flex; flex-direction: column;
  transition: all 0.15s ease;
}
.bb-template-card:hover {
  border-color: var(--bb-border-light); background: var(--bb-surface-hover); transform: translateY(-2px);
}
.bb-template-card.active-tpl {
  border-color: var(--bb-orange);
}
.bb-tpl-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.bb-tpl-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 2px; background: var(--bb-orange-subtle); color: var(--bb-orange);
}
.bb-tpl-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.bb-tpl-desc { font-size: 13px; color: var(--bb-text-muted); line-height: 1.55; margin-bottom: 18px; flex: 1; }
.bb-tpl-footer {
  border-top: 1px solid var(--bb-border); padding-top: 14px;
}
.btn-tpl {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--bb-text);
  background: #09090b; border: 1px solid var(--bb-border); padding: 6px 12px;
  border-radius: var(--radius-xs); width: 100%; text-align: center; cursor: pointer;
  transition: all 0.15s;
}
.btn-tpl:hover { border-color: var(--bb-orange); color: var(--bb-orange); }

/* ============ INTEGRATION STACK ============ */
.bb-integ-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.bb-integ-tile {
  border: 1px solid var(--bb-border); background: var(--bb-surface);
  border-radius: var(--radius-xs); padding: 16px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.15s;
}
.bb-integ-tile:hover { border-color: var(--bb-orange); }
.bb-integ-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.bb-integ-status { font-family: var(--font-mono); font-size: 10.5px; color: var(--bb-green); }

/* ============ PRICING MATRIX ============ */
.bb-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bb-price-card {
  border: 1px solid var(--bb-border); background: var(--bb-surface);
  border-radius: var(--radius-sm); padding: 32px 26px; display: flex; flex-direction: column;
  position: relative;
}
.bb-price-card.featured {
  border-color: rgba(255, 69, 0, .58); background: linear-gradient(165deg, #191510 0%, #111115 58%, #101014 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 69, 0, .08);
}
.bb-price-card-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--bb-orange-subtle); color: #ff875f; font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 5px 8px;
  border: 1px solid var(--bb-orange-border); border-radius: var(--radius-xs);
}
.bb-p-tier { font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #fff; margin-bottom: 8px; }
.bb-price-card.featured .bb-p-tier { color: #fff; }
.bb-p-desc { font-size: 13px; color: var(--bb-text-muted); min-height: 38px; margin-bottom: 20px; }
.bb-price-card.featured .bb-p-val { text-shadow: 0 0 24px rgba(255,69,0,.16); }
.bb-price-card .btn-bb-primary, .bb-price-card .btn-bb-secondary { justify-content: center; width: 100%; min-height: 42px; }
.bb-p-features li span { color: var(--bb-orange); font-family: var(--font-mono); }
.bb-price-card:not(.featured) { background: linear-gradient(160deg, #141418 0%, #101014 100%); }
.bb-price-card:not(.featured):hover { border-color: var(--bb-border-highlight); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .bb-price-card:not(.featured):hover { transform: none; } }
.bb-p-desc { font-size: 13px; color: var(--bb-text-muted); min-height: 38px; margin-bottom: 20px; }
.bb-p-cost {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px;
  font-family: var(--font-mono);
}
.bb-p-val { font-size: 38px; font-weight: 800; color: #fff; }
.bb-p-unit { font-size: 13px; color: var(--bb-text-dim); }

.bb-p-features {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; color: var(--bb-text-muted); margin-bottom: 30px; flex: 1;
}
.bb-p-features li { display: flex; gap: 8px; }
.bb-p-features li strong { color: #fff; }

/* ============ FAQ ACCORDION ============ */
.bb-faq-list { display: flex; flex-direction: column; gap: 10px; }
.bb-faq-row {
  border: 1px solid var(--bb-border); background: var(--bb-surface);
  border-radius: var(--radius-xs); overflow: hidden;
}
.bb-faq-row summary {
  padding: 18px 20px; font-weight: 700; font-size: 15px; color: #fff;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.bb-faq-row summary::-webkit-details-marker { display: none; }
.bb-faq-icon {
  font-family: var(--font-mono); font-size: 16px; color: var(--bb-orange);
}
.bb-faq-row[open] .bb-faq-icon { transform: rotate(45deg); }
.bb-faq-body {
  padding: 0 20px 20px; font-size: 14px; color: var(--bb-text-muted); line-height: 1.65;
}

/* ============ BOTTOM CALL TO ACTION ============ */
.bb-bottom-cta {
  border: 1px solid var(--bb-border); background: #0c0c10;
  border-radius: var(--radius-sm); padding: 54px 40px; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.bb-cta-left h2 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.bb-cta-left p { font-size: 15px; color: var(--bb-text-muted); max-width: 600px; }

/* ============ FOOTER ============ */
.bb-footer {
  border-top: 1px solid var(--bb-border); background: #070709; padding: 60px 24px 32px;
  position: relative; z-index: 1;
}
.bb-footer-container { max-width: 1200px; margin: 0 auto; }
.bb-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.bb-footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 12px; }
.bb-footer-desc { font-size: 13px; color: var(--bb-text-dim); line-height: 1.6; max-width: 300px; margin-bottom: 18px; }
.bb-status-pill {
  font-family: var(--font-mono); font-size: 11px; color: var(--bb-green);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px; border-radius: var(--radius-xs);
}
.bb-footer-col h4 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #fff;
  text-transform: uppercase; margin-bottom: 16px;
}
.bb-footer-col a {
  display: block; color: var(--bb-text-dim); text-decoration: none; font-size: 13px;
  margin-bottom: 10px; transition: color 0.15s;
}
.bb-footer-col a:hover { color: var(--bb-text); }

.bb-footer-bottom {
  border-top: 1px solid var(--bb-border-subtle); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--bb-text-dim);
}
.bb-footer-legal { display: flex; gap: 16px; }
.bb-footer-legal a { color: var(--bb-text-dim); text-decoration: none; }
.bb-footer-legal a:hover { color: #fff; }

/* Restrained motion: reveal the interface without distracting from the content. */
@keyframes cx-rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cx-status-pulse {
  0%, 100% { opacity: .65; box-shadow: 0 0 0 0 rgba(255,69,0,.22); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(255,69,0,0); }
}
.bb-hero-meta-pill { animation: cx-rise-in .55s ease-out both; }
.bb-hero-headline { animation: cx-rise-in .65s .06s ease-out both; }
.bb-hero-sub { animation: cx-rise-in .65s .12s ease-out both; }
.bb-hero-actions { animation: cx-rise-in .65s .18s ease-out both; }
.bb-logo-mark, .bb-logo-icon { transition: transform .22s ease, filter .22s ease; }
.bb-brand-group:hover .bb-logo-mark, .bb-brand-link:hover .bb-logo-icon {
  transform: translateY(-2px); filter: drop-shadow(0 0 7px var(--bb-orange-glow));
}
.bb-hero-playground, .bb-primitive-card, .bb-template-card, .bb-integ-tile, .bb-price-card {
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.bb-step-card:hover, .bb-primitive-card:hover, .bb-template-card:hover { transform: translateY(-3px); }
.bb-hero-meta-pill > span:first-child { animation: cx-status-pulse 2.4s ease-in-out infinite; }
.bb-tag-mono.green { animation: cx-status-pulse 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .bb-metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .bb-primitives-grid { grid-template-columns: 1fr; }
  .bb-primitive-card { border-right: none !important; border-bottom: 1px solid var(--bb-border) !important; }
  .bb-playground-body { grid-template-columns: 1fr; }
  .bb-templates-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-pricing-grid { grid-template-columns: 1fr; }
  .bb-bottom-cta { flex-direction: column; align-items: flex-start; }
  .bb-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .bb-nav-menu { display: none; }
  .bb-metrics-strip { grid-template-columns: 1fr; }
  .bb-metric-col { border-right: none !important; border-bottom: 1px solid var(--bb-border); }
  .bb-steps-grid { grid-template-columns: 1fr; }
  .bb-templates-grid { grid-template-columns: 1fr; }
  .bb-integ-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-footer-grid { grid-template-columns: 1fr; }
}
