/**
 * Bot Daddy Life — Design Tokens + Unified Founders Shell
 * Locked frontend version:
 * - single hamburger / drawer nav on desktop and mobile
 * - one shared shell for founders pages
 * - keeps the blue page background
 */

:root {
  --bg-primary: #121416;
  --bg-secondary: #16181b;
  --bg-panel: #1c1f23;

  --text-primary: #e6e8eb;
  --text-secondary: #a9afb7;
  --text-tertiary: #7a8088;

  --brand-blue: #7aa2ff;
  --brand-red: #c46a6a;
  --brand-dot: #9aa0a6;

  --border-soft: #2a2e34;
  --glow-blue: rgba(122, 162, 255, 0.25);

  --font-primary: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: "Fraunces", Georgia, serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 14px;
  --radius-2xl: 18px;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  --page-max: 980px;
  --nav-max: 1180px;
}

/* =========================================================
   Base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    linear-gradient(
      to bottom,
      #001428 0%,
      #0a1e3a 25%,
      #1a3a5c 40%,
      #4a8fc8 48%,
      #a8d8ff 52%,
      #4a8fc8 56%,
      #2d5a88 65%,
      #1e4570 80%,
      #14324a 100%
    );
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.55;
}

body.bd-menu-open {
  overflow: hidden;
}

a {
  color: rgba(200, 240, 255, 0.88);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

a:visited {
  color: rgba(200, 240, 255, 0.88);
}

a:hover {
  color: #c8f0ff;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  color: rgba(230, 232, 235, 0.92);
}

/* =========================================================
   Shell
   ========================================================= */

#bd-nav-slot,
#founders-nav-slot {
  position: relative;
  z-index: 20;
  width: min(100%, var(--nav-max));
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 40px) 0;
}

.content,
.bd-page-shell,
.bd-page,
.bd-shell,
.bd-container,
main.bd-page-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
}

.content,
.bd-page-shell,
.bd-page,
.bd-shell,
.bd-container,
main.bd-page-shell {
  padding: 18px clamp(16px, 3vw, 40px) 40px;
}

/* =========================================================
   Brand
   ========================================================= */

.bd-brand,
a.bd-brand,
#bdBrand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--brand-blue) !important;
  text-shadow: 0 0 20px var(--glow-blue);
}

.bd-dot {
  color: var(--brand-dot) !important;
}

.bd-life {
  color: var(--brand-red) !important;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bd-brand:hover,
a.bd-brand:hover,
#bdBrand:hover {
  color: #90b0ff !important;
}

/* =========================================================
   Typography
   ========================================================= */

h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem);
  line-height: 1.08;
  color: #c8f0ff;
  margin: 0 0 16px;
}

h2 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  line-height: 1.25;
  color: rgba(200, 240, 255, 0.95);
  margin: 0 0 12px;
}

h3 {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(200, 240, 255, 0.92);
  margin: 0 0 10px;
}

p,
li,
label,
td,
th,
input,
select,
button {
  font-family: var(--font-primary);
}

p,
li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(216, 228, 240, 0.86);
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px 20px;
  padding: 0;
}

li {
  margin: 0 0 8px;
}

.bd-muted,
.muted,
.bd-dim {
  color: rgba(216, 228, 240, 0.72);
}

.bd-subtle {
  color: rgba(216, 228, 240, 0.78);
}

/* =========================================================
   Unified single nav
   ========================================================= */

.bd-nav,
nav.bd-nav,
nav.bd-founders-nav {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}

.bd-founders-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 52px !important;
}

.bd-founders-desktop-nav,
.bd-nav-links,
.founders-nav-links,
.founders-nav {
  display: none !important;
}

.bd-menu-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 auto !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #eaf3ff !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.bd-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.bd-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(5, 8, 12, 0.56) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999 !important;
  display: none !important;
}

.bd-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: min(88vw, 360px) !important;
  height: 100vh !important;
  padding: 18px 18px 24px !important;
  background: linear-gradient(180deg, rgba(24, 28, 35, 0.98), rgba(16, 19, 24, 0.985)) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34) !important;
  z-index: 1000 !important;
  overflow-y: auto !important;
  display: none !important;
}

.bd-drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.bd-drawer-title {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

.bd-menu-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #eaf3ff !important;
  font-size: 1.25rem !important;
  cursor: pointer !important;
}

.bd-drawer-links {
  display: grid !important;
  gap: 4px !important;
}

.bd-drawer-links a {
  display: block !important;
  padding: 12px 10px !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  border: 1px solid transparent !important;
}

.bd-drawer-links a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.bd-drawer-links a.active,
.bd-drawer-links a[aria-current="page"] {
  background: rgba(122, 162, 255, 0.14) !important;
  border-color: rgba(122, 162, 255, 0.24) !important;
  color: #e7eeff !important;
}

body.bd-menu-open .bd-drawer-overlay {
  display: block !important;
}

body.bd-menu-open .bd-drawer {
  display: block !important;
}

/* =========================================================
   Cards / utility
   ========================================================= */

.bd-card,
.card {
  background: rgba(8, 24, 40, 0.34);
  border: 1px solid rgba(200, 240, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.bd-note {
  background: rgba(8, 24, 40, 0.28);
  border: 1px solid rgba(200, 240, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
}

.bd-btn,
a.bd-btn,
button.bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf3ff;
  text-decoration: none;
  cursor: pointer;
}

.bd-btn:hover,
a.bd-btn:hover,
button.bd-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.bd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   Intro block
   ========================================================= */

.bd-intro {
  margin: 1rem 0 1.25rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.bd-intro .subtitle {
  margin: 0 0 0.75rem 0;
  color: rgba(216, 228, 240, 0.82);
  font-size: 0.98rem;
  line-height: 1.35;
}

.bd-intro h2 {
  margin: 0.75rem 0 0.35rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(200, 240, 255, 0.72);
}

.bd-intro ul {
  margin: 0.25rem 0 0 1.15rem;
  color: rgba(216, 228, 240, 0.82);
}

.bd-intro li {
  margin: 0.25rem 0;
}

/* =========================================================
   KV rows
   ========================================================= */

.bd-kv {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, auto);
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.bd-kv .k {
  color: rgba(200, 240, 255, 0.8);
  opacity: 0.95;
}

.bd-kv .v {
  text-align: right;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
}

.bd-kv .v.long {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   Tables
   ========================================================= */

.bd-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bd-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.bd-table-wrap th,
.bd-table-wrap td {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.bd-table-wrap thead th {
  border-top: 0;
  color: rgba(200, 240, 255, 0.92);
}

/* =========================================================
   Hub cards
   ========================================================= */

.hub-card {
  display: block;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
}

.hub-card:hover {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}

.hub-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 6px;
}

.hub-sub {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

/* =========================================================
   Footer
   ========================================================= */

.bd-footer {
  margin-top: 24px;
  padding: 16px 24px;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  overflow: hidden;
}

.bd-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {
  .content,
  .bd-page-shell,
  .bd-page,
  .bd-shell,
  .bd-container,
  main.bd-page-shell {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .bd-card,
  .card,
  .bd-note {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  #bd-nav-slot,
  #founders-nav-slot {
    padding-top: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .content,
  .bd-page-shell,
  .bd-page,
  .bd-shell,
  .bd-container,
  main.bd-page-shell {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 28px;
  }

  h1 {
    margin-bottom: 1.15rem;
  }

  .bd-kv {
    grid-template-columns: 1fr;
  }

  .bd-kv .v {
    text-align: left;
  }

  .bd-table-wrap th,
  .bd-table-wrap td {
    padding: 9px 10px;
  }
}
