/* ═══════════════════════════════════════════════════════════════════
   bwb-layout.css  —  Universal Header · Footer · Typography
   Add to EVERY page <head>:
   <link rel="stylesheet" href="/bwb-layout.css">
   ═══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts — same on every page ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Design tokens — single source of truth ─────────────────────── */
:root {
  /* Background depth layers */
  --void:     #03040a;
  --obsidian: #070b16;
  --abyss:    #0c1120;
  --deep:     #101729;
  --panel:    #151e32;
  --lift:     #1b253c;
  --raised:   #212d47;

  /* Borders */
  --b1: rgba(255,255,255,.055);
  --b2: rgba(255,255,255,.10);
  --b3: rgba(255,255,255,.17);
  --b4: rgba(255,255,255,.26);

  /* White opacity scale */
  --w85: rgba(255,255,255,.85);
  --w72: rgba(255,255,255,.72);
  --w60: rgba(255,255,255,.60);
  --w40: rgba(255,255,255,.40);
  --w25: rgba(255,255,255,.25);
  --w12: rgba(255,255,255,.12);
  --w06: rgba(255,255,255,.06);

  /* Brand — Indigo */
  --ind:    #4f46e5;
  --ind-h:  #4338ca;
  --ind-lt: #eef2ff;
  --ind-md: rgba(79,70,229,.15);
  --ind-g:  linear-gradient(135deg,#6366f1,#4f46e5,#4338ca);

  /* Accent colours — base, light bg, dark text (-h), medium tint */
  --gld:    #d97706;
  --gld-h:  #78350f;
  --gld-br: #fbbf24;
  --gld-lt: #fef3c7;
  --gld-md: rgba(217,119,6,.15);
  --gld-g:  linear-gradient(135deg,#fbbf24,#d97706);
  --em:     #059669;
  --em-h:   #064e3b;
  --em-lt:  #d1fae5;
  --em-md:  rgba(5,150,105,.14);
  --rs:     #e11d48;
  --rs-h:   #881337;
  --rs-lt:  #ffe4e6;
  --rs-md:  rgba(225,29,72,.14);
  --sky:    #0284c7;
  --sky-h:  #0c4a6e;
  --sky-lt: #e0f2fe;
  --sky-md: rgba(2,132,199,.14);
  --vio:    #7c3aed;
  --vio-h:  #3b0764;
  --vio-lt: #ede9fe;
  --vio-md: rgba(124,58,237,.14);
  --tel:    #0d9488;
  --tel-h:  #134e4a;
  --tel-lt: #ccfbf1;
  --tel-md: rgba(13,148,136,.14);

  /* Shadows */
  --s1: 0 2px 8px rgba(0,0,0,.10);
  --s2: 0 4px 20px rgba(0,0,0,.13);
  --s3: 0 8px 36px rgba(0,0,0,.18);
  --s4: 0 20px 60px rgba(0,0,0,.24);
  --s5: 0 40px 80px rgba(0,0,0,.34);

  /* Border radii */
  --rx:    4px;
  --rs2:   8px;
  --r:     13px;
  --rm:    18px;
  --rl:    24px;
  --rfull: 9999px;

  /* Fonts */
  --ff-d: 'Syne', sans-serif;        /* headings */
  --ff-b: 'DM Sans', sans-serif;     /* body */
  --ff-m: 'DM Mono', monospace;      /* code */

  /* Easing */
  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.4,.64,1);
}

/* ── Base reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* body styles intentionally NOT set here — each page manages its own colors */
body {
  font-family: var(--ff-b);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font-family: var(--ff-b); border: none; outline: none; background: none; }
input, select, textarea { font-family: var(--ff-b); }

/* ── Typography scale ────────────────────────────────────────────── */
/* Headings use Syne — clean, modern, geometric */
/* headings: font only, no color override to avoid conflicts with light-bg pages */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-d);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
}
h1 { font-size: clamp(28px, 5vw, 52px); letter-spacing: -1.5px; }
h2 { font-size: clamp(22px, 3.5vw, 38px); letter-spacing: -1px; }
h3 { font-size: clamp(17px, 2.5vw, 24px); letter-spacing: -.4px; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
h5 { font-size: 13px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; }

p { line-height: 1.75; }
p + p { margin-top: 12px; }
strong, b { font-weight: 700; }
em { color: var(--gld-br); font-style: normal; }
code { font-family: var(--ff-m); font-size: .88em; background: var(--w06); padding: 1px 5px; border-radius: 4px; color: #a5b4fc; }

/* Layout wrapper */
.bwb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .bwb-wrap { padding: 0 18px; } }
@media (max-width: 480px) { .bwb-wrap { padding: 0 14px; } }

/* ══════════════════════════════════════════════════════════════════
   UNIVERSAL HEADER / NAV
   ══════════════════════════════════════════════════════════════════ */
.bwb-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7,11,22,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--b1);
  height: 62px;
  transition: background .2s;
}
.bwb-nav.scrolled {
  background: rgba(7,11,22,.97);
  border-bottom-color: var(--b2);
}
.bwb-nav-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Logo ── */
.bwb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
}
.bwb-logo-img {
  width: 38px;
  height: 27px;
  object-fit: contain;
  animation: bwbLogoFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 3px 8px rgba(79,70,229,.35));
  transition: filter .25s;
}
.bwb-logo:hover .bwb-logo-img {
  filter: drop-shadow(0 3px 0 rgba(120,200,255,.7))
          drop-shadow(0 6px 0 rgba(70,160,230,.45))
          drop-shadow(0 0 24px rgba(100,180,255,.5))
          brightness(1.25);
}
@keyframes bwbLogoFloat {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-4px); }
  70%     { transform: translateY(-2px); }
}
.bwb-logo-text {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.7px;
  color: #fff;
  white-space: nowrap;
}
.bwb-logo-text em {
  color: var(--gld-br);
  font-style: normal;
}

/* ── Nav links ── */
.bwb-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.bwb-nl {
  position: relative;
  color: var(--w40);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--rs2);
  cursor: pointer;
  transition: color .12s, background .12s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
}
.bwb-nl:hover { color: #fff; background: var(--w06); }
.bwb-nl.active { color: #fff; background: var(--ind-md); }
.bwb-nch { font-size: 9px; opacity: .5; transition: transform .15s; }
.bwb-nl:hover .bwb-nch { transform: rotate(180deg); }

/* ── Nav right ── */
.bwb-nav-r {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.bwb-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--rfull);
  background: var(--em-md);
  border: 1px solid rgba(5,150,105,.2);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}
.bwb-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: bwbPulse 2s infinite;
}
@keyframes bwbPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .4; }
}
.bwb-nav-login {
  color: var(--w40);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--rs2);
  transition: .13s;
  cursor: pointer;
  text-decoration: none;
}
.bwb-nav-login:hover { color: #fff; background: var(--w06); }

/* ── CTA button in nav ── */
.bwb-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r);
  background: var(--ind-g);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 #312e81, var(--ind-sh);
}
.bwb-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #312e81, 0 12px 32px rgba(79,70,229,.45);
}
.bwb-nav-cta:active { transform: translateY(0); box-shadow: 0 2px 0 #312e81; }

/* ── Hamburger (mobile) ── */
.bwb-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
}
.bwb-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--w60);
  transition: all .25s;
}
.bwb-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
.bwb-burger.open span:nth-child(2) { opacity: 0; }
.bwb-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }

/* ── Mobile drawer ── */
.bwb-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,8,20,.97);
  z-index: 800;
  overflow-y: auto;
  padding: 76px 20px 40px;
  flex-direction: column;
  gap: 4px;
}
.bwb-drawer.open { display: flex; }
.bwb-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--w72);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.bwb-drawer-link:hover, .bwb-drawer-link:active {
  background: var(--ind-md);
  border-color: rgba(99,102,241,.3);
  color: #fff;
}
.bwb-drawer-icon { font-size: 19px; width: 28px; text-align: center; flex-shrink: 0; }
.bwb-drawer-section {
  font-size: 10px;
  font-weight: 700;
  color: var(--w25);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 16px 4px;
}
.bwb-drawer-divider {
  height: 1px;
  background: var(--b1);
  margin: 6px 0;
}
.bwb-drawer-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--b1);
}
.bwb-drawer-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--w06);
  border: 1px solid var(--b2);
  color: var(--w60);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: .15s;
}
.bwb-drawer-close:hover { background: var(--w12); color: #fff; }

@media (max-width: 900px) {
  .bwb-nav-links { display: none; }
  .bwb-live-badge { display: none; }
  .bwb-burger { display: flex; }
  .bwb-nav-in { padding: 0 18px; }
}
@media (max-width: 520px) {
  .bwb-nav-login { display: none; }
  .bwb-logo-text { font-size: 17px; }
}

/* ══════════════════════════════════════════════════════════════════
   UNIVERSAL FOOTER
   ══════════════════════════════════════════════════════════════════ */
.bwb-footer {
  background: var(--void);
  border-top: 1px solid var(--b1);
  padding: 72px 0 28px;
  margin-top: auto;
}
.bwb-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.bwb-footer-brand { max-width: 240px; }
.bwb-footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}
.bwb-footer-brand-logo img {
  width: 44px; height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(79,70,229,.3));
}
.bwb-footer-brand-name {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.6px;
  color: #fff;
}
.bwb-footer-brand-name em { color: var(--gld-br); font-style: normal; }
.bwb-footer-tagline {
  font-size: 13px;
  color: var(--w25);
  line-height: 1.75;
  margin-bottom: 20px;
}
.bwb-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--em-md);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: var(--rfull);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
}
.bwb-fc-title {
  font-family: var(--ff-d);
  font-size: 10px;
  font-weight: 700;
  color: var(--w60);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.bwb-fc-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bwb-fc-links a {
  font-size: 13px;
  color: var(--w40);
  text-decoration: none;
  transition: color .12s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bwb-fc-links a:hover { color: var(--w85); }

/* Footer bottom bar */
.bwb-footer-bottom {
  border-top: 1px solid var(--b1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bwb-footer-copy {
  font-size: 12px;
  color: var(--w25);
}
.bwb-footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.bwb-footer-legal a {
  font-size: 12px;
  color: var(--w25);
  text-decoration: none;
  transition: color .12s;
}
.bwb-footer-legal a:hover { color: var(--w60); }

/* Footer responsive */
@media (max-width: 1000px) {
  .bwb-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .bwb-footer-brand { grid-column: span 3; max-width: 100%; }
}
@media (max-width: 640px) {
  .bwb-footer { padding: 48px 0 24px; }
  .bwb-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bwb-footer-brand { grid-column: span 2; }
  .bwb-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 400px) {
  .bwb-footer-grid { grid-template-columns: 1fr; }
  .bwb-footer-brand { grid-column: span 1; }
}

/* ══════════════════════════════════════════════════════════════════
   PAGE SHELL — ensures footer sticks to bottom
   ══════════════════════════════════════════════════════════════════ */
html, body { min-height: 100vh; }
body {
  display: flex;
  flex-direction: column;
}
main, .main-content, .page-content,
#page-body, .content-wrap {
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════════
   UTILITY CLASSES used across pages
   ══════════════════════════════════════════════════════════════════ */
.bwb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r);
  font-family: var(--ff-b);
  font-weight: 700;
  font-size: 13px;
  transition: all .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.bwb-btn-primary {
  background: var(--ind-g);
  color: #fff;
  box-shadow: 0 4px 0 #312e81;
}
.bwb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #312e81, 0 12px 28px rgba(79,70,229,.4);
}
.bwb-btn-ghost {
  background: var(--w06);
  color: var(--w72);
  border: 1px solid var(--b2);
}
.bwb-btn-ghost:hover { background: var(--w12); color: #fff; }

.bwb-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--rfull);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}
.bwb-tag-ind { background: var(--ind-md); color: #a5b4fc; border: 1px solid rgba(99,102,241,.2); }
.bwb-tag-gld { background: var(--gld-md); color: var(--gld-br); border: 1px solid rgba(217,119,6,.2); }
.bwb-tag-grn { background: var(--em-md);  color: #6ee7b7; border: 1px solid rgba(5,150,105,.2); }
.bwb-tag-red { background: var(--rs-md);  color: #fda4af; border: 1px solid rgba(225,29,72,.2); }

/* Section spacing */
.bwb-section { padding: 80px 0; }
@media (max-width: 768px) { .bwb-section { padding: 52px 0; } }
@media (max-width: 480px) { .bwb-section { padding: 36px 0; } }

/* Section eyebrow */
.bwb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ind);
  margin-bottom: 14px;
}
.bwb-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--ind-g);
  border-radius: 2px;
}

/* Divider */
.bwb-divider {
  height: 1px;
  background: var(--b1);
  margin: 40px 0;
}
