/* ═══════════════════════════════════════════════════════════════════
   Brand OS — Global CSS
   Multi-brand design system platform — brand.bader4business.com
   ═══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts (loaded via <link> in base template) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (platform defaults) ── */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Platform palette */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.15);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Typography */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --text-8xl: 96px;
  --text-9xl: 120px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-xslow: 800ms;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --nav-height: 60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ── Selection ── */
::selection { background: rgba(0,0,0,0.08); color: inherit; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; border-radius: 4px; }

/* ── Layout utilities ── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-10); }
@media (max-width: 768px) { .container, .container-wide { padding: 0 var(--space-5); } }

/* ── Typography ── */
.display-xl { font-family: var(--font-display); font-size: clamp(64px, 10vw, var(--text-9xl)); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; }
.display-lg { font-family: var(--font-display); font-size: clamp(48px, 7vw, var(--text-8xl)); font-weight: 700; line-height: 0.92; letter-spacing: -0.035em; }
.display-md { font-family: var(--font-display); font-size: clamp(36px, 5vw, var(--text-6xl)); font-weight: 600; line-height: 1.0; letter-spacing: -0.03em; }
.display-sm { font-family: var(--font-display); font-size: clamp(24px, 3vw, var(--text-4xl)); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
.label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.label-brand { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-8);
}
.nav__logo {
  display: flex; align-items: center; gap: var(--space-3);
  font-weight: 600; font-size: var(--text-sm); letter-spacing: -0.01em;
}
.nav__logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--color-text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0;
}
.nav__links { display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 450; color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}
.nav__link:hover { color: var(--color-text); background: rgba(0,0,0,0.04); }
.nav__link.active { color: var(--color-text); font-weight: 500; }
.nav__cta {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500;
  background: var(--color-text); color: #fff;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
@media (max-width: 640px) { .nav__links { display: none; } }

/* ── Brand bar (sub-nav for brand switching) ── */
.brand-bar {
  position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 99;
  height: 44px; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto; scrollbar-width: none;
}
.brand-bar::-webkit-scrollbar { display: none; }
.brand-bar__inner {
  display: flex; align-items: center; gap: var(--space-1);
  height: 100%; padding: 0 var(--space-8);
  max-width: var(--container-wide); margin: 0 auto; white-space: nowrap;
}
.brand-tab {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid transparent;
}
.brand-tab:hover { background: rgba(0,0,0,0.04); color: var(--color-text); }
.brand-tab.active { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.brand-tab-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.brand-tab-badge {
  font-size: 9px; font-weight: 600; padding: 1px 5px;
  border-radius: var(--radius-full); background: rgba(255,255,255,0.2);
}

/* ── Page wrapper (accounts for fixed nav + brand bar) ── */
.page-wrapper { padding-top: calc(var(--nav-height) + 44px); }

/* ── Hero sections ── */
.hero {
  min-height: calc(100vh - var(--nav-height) - 44px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-24) 0;
}
.hero--compact { min-height: auto; padding: var(--space-16) 0; }
.hero__label { margin-bottom: var(--space-6); }
.hero__headline { margin-bottom: var(--space-6); }
.hero__subheadline {
  font-size: clamp(16px, 2vw, var(--text-xl)); color: var(--color-text-muted);
  line-height: 1.55; max-width: 540px;
}
.hero__subheadline--wide { max-width: 640px; }
.hero__actions { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-10); flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 14px 28px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500; line-height: 1;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn--primary { background: var(--color-text); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn--ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.2); }
.btn--sm { padding: 10px 20px; font-size: var(--text-xs); }
.btn--lg { padding: 18px 36px; font-size: var(--text-base); }

/* ── Cards ── */
.card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__body { padding: var(--space-6); }
.card__label { margin-bottom: var(--space-2); }
.card__title { font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-2); letter-spacing: -0.02em; }
.card__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ── Brand grid ── */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-6); }
.brand-card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(0,0,0,0.1); }
.brand-card__preview {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.brand-card__preview-content {
  position: relative; z-index: 1; text-align: center;
}
.brand-card__logo { height: 40px; width: auto; }
.brand-card__body { padding: var(--space-5); }
.brand-card__sector { margin-bottom: var(--space-2); }
.brand-card__name { font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-2); letter-spacing: -0.02em; }
.brand-card__tagline { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); line-height: 1.5; }
.brand-card__footer { display: flex; align-items: center; justify-content: space-between; }
.brand-card__swatch { display: flex; gap: var(--space-2); }
.swatch-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }
.brand-card__status {
  font-size: var(--text-xs); font-weight: 500; padding: 3px 10px;
  border-radius: var(--radius-full);
}
.brand-card__status--active { background: rgba(0,200,83,0.1); color: #00C853; }
.brand-card__status--soon { background: rgba(0,0,0,0.06); color: var(--color-text-muted); }

/* ── Section ── */
.section { padding: var(--space-24) 0; }
.section--lg { padding: var(--space-32) 0; }
.section--sm { padding: var(--space-16) 0; }
.section--dark { background: var(--color-text); color: #fff; }
.section__header { margin-bottom: var(--space-16); }
.section__headline { margin-bottom: var(--space-4); }
.section__desc { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 560px; line-height: 1.6; }
.section--dark .section__desc { color: rgba(255,255,255,0.6); }

/* ── Token display ── */
.token-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.token-card {
  background: var(--color-surface); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); overflow: hidden;
}
.token-card__swatch { height: 80px; width: 100%; }
.token-card__body { padding: var(--space-4); }
.token-card__name { font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-1); }
.token-card__value { font-size: var(--text-xs); color: var(--color-text-muted); font-family: 'SF Mono', 'Fira Code', monospace; }
.token-card__desc { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); line-height: 1.4; }

/* ── Typography specimen ── */
.type-specimen {
  border-bottom: 1px solid var(--color-border); padding: var(--space-6) 0;
}
.type-specimen__label { margin-bottom: var(--space-3); }
.type-specimen__sample { margin-bottom: var(--space-2); }
.type-specimen__meta { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ── Component showcase ── */
.component-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }
.component-cell {
  background: var(--color-surface); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start;
}
.component-cell__label { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Divider ── */
.divider { height: 1px; background: var(--color-border); margin: var(--space-12) 0; }
.divider--dark { background: rgba(255,255,255,0.12); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-8);
  gap: var(--space-6); flex-wrap: wrap;
}
.footer__copy { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer__links { display: flex; gap: var(--space-5); }
.footer__link { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer__link:hover { color: var(--color-text); }

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ── Coming soon badge ── */
.badge-soon {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 500;
  background: rgba(0,0,0,0.06); color: var(--color-text-muted);
}

/* ── Color strip ── */
.color-strip {
  height: 6px; width: 100%;
  display: flex; overflow: hidden; border-radius: 0;
}

/* ── Table (design system table) ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: var(--text-xs); font-weight: 500;
  color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border);
}
.data-table td {
  padding: var(--space-4); border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,0,0,0.02); }

/* ── Spacer helpers ── */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ── Text helpers ── */
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ── Utility ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section, .section--lg, .section--sm { padding: var(--space-12) 0; }
  .hero { min-height: auto; padding: var(--space-16) 0; }
}

/* ── Scroll-reveal JS initialization ── */
