@import url("./brand-tokens.css");
:root {
  --bc-navy: var(--ui-navy);
  --bc-navy-hover: var(--ui-navy-hover);
  --bc-blue: var(--ui-blue);
  --bc-blue-soft: #e7f1ff;
  --bc-ink-muted: var(--ui-text);
  --bc-border: var(--ui-border);
  --bc-surface: var(--ui-white);
  --bc-surface-muted: var(--ui-surface);
  --bc-section-space: 76px;
  --bc-card-radius: 12px;
  --bc-control-radius: 8px;
}

html {
  scroll-behavior: smooth;
  background: var(--bc-surface);
}

body {
  overflow-x: hidden;
}

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

.bc-page-shell {
  width: 100% !important;
  min-width: 0 !important;
  overflow: clip;
}

.bc-site-nav {
  position: sticky !important;
  top: 0;
  z-index: 100 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(4, 22, 47, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.bc-site-nav > div {
  width: 100%;
  max-width: 1140px !important;
  height: 68px !important;
  padding-inline: 24px !important;
}

.bc-mobile-nav {
  display: none !important;
}

.bc-site-nav a {
  font-weight: 500 !important;
}

.bc-site-nav a[style*="background: var(--ui-ink)"],
.bc-site-nav a[style*="background: var(--ui-blue)"],
.bc-site-nav a[style*="background: var(--ui-link)"],
.bc-site-nav a[style*="background: #1E4FD0"],
.bc-site-nav > div:not(.bc-mobile-nav) > div:last-child > a:last-child,
.bc-hero a[style*="background: var(--ui-ink)"],
.bc-hero a[style*="background: var(--ui-blue)"],
.bc-hero a[style*="background: var(--ui-link)"],
.bc-hero a[style*="background: #1E4FD0"],
.bc-closing-cta a[style*="background: var(--ui-ink)"],
.bc-closing-cta a[style*="background: var(--ui-blue)"],
.bc-closing-cta a[style*="background: var(--ui-link)"],
.bc-closing-cta a[style*="background: #1E4FD0"],
.bc-hero a[style*="display: inline-flex"][style*="color: var(--ui-white)"],
.bc-closing-cta a[style*="display: inline-flex"][style*="color: var(--ui-white)"] {
  background: var(--ui-blue) !important;
  color: #fff !important;
  border-radius: var(--bc-control-radius) !important;
  box-shadow: none !important;
}

.bc-site-nav a[style*="background: var(--ui-ink)"]:hover,
.bc-site-nav a[style*="background: var(--ui-blue)"]:hover,
.bc-site-nav a[style*="background: var(--ui-link)"]:hover,
.bc-site-nav a[style*="background: #1E4FD0"]:hover,
.bc-site-nav > div:not(.bc-mobile-nav) > div:last-child > a:last-child:hover,
.bc-hero a[style*="color: var(--ui-white)"]:hover,
.bc-closing-cta a[style*="color: var(--ui-white)"]:hover {
  background: var(--ui-blue-hover) !important;
}

.bc-hero {
  overflow: hidden;
}

.bc-logo-cloud {
  align-items: center !important;
}

.bc-closing-cta {
  background: linear-gradient(180deg, var(--ui-blue-soft) 0%, #dce9ff 100%) !important;
  border-top: 1px solid rgba(20, 103, 245, 0.08);
}

.bc-site-footer {
  background: var(--bc-surface-muted) !important;
  border-top: 1px solid var(--bc-border) !important;
}

.bc-site-footer a {
  color: var(--bc-ink-muted) !important;
}

.bc-site-footer a:hover {
  color: var(--bc-navy) !important;
}

@media (max-width: 760px) {
  .bc-site-nav > div:not(.bc-mobile-nav) {
    display: none !important;
  }

  .bc-site-nav > .bc-mobile-nav {
    display: flex !important;
    height: 60px !important;
    padding: 0 16px !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .bc-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bc-navy) !important;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600 !important;
    letter-spacing: -0.3px;
  }

  .bc-mobile-mark {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1.5px dashed var(--bc-blue);
    border-radius: 999px;
    color: var(--bc-blue);
    font-size: 13px;
  }

  .bc-mobile-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .bc-mobile-menu {
    position: static;
  }

  .bc-mobile-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 9px 10px;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-control-radius);
    color: var(--bc-navy);
    font-size: 13px;
    font-weight: 600;
    background: #fff;
  }

  .bc-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .bc-site-nav .bc-mobile-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(260px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 10px;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-card-radius);
    box-shadow: 0 18px 48px rgba(4, 22, 47, 0.14);
  }

  .bc-mobile-menu-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--bc-navy) !important;
    font-size: 14px;
  }

  .bc-mobile-menu-panel a:hover {
    background: var(--bc-surface-muted);
  }

  .bc-mobile-cta {
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
    color: #fff !important;
    background: var(--ui-blue) !important;
    border-radius: var(--bc-control-radius);
  }

  .bc-page-shell,
  .bc-page-shell * {
    min-width: 0 !important;
    max-width: 100%;
  }

  .bc-page-shell > div:not(.bc-site-nav) {
    width: 100% !important;
  }

  .bc-page-shell [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .bc-page-shell [style*="grid-column"] {
    grid-column: auto !important;
  }

  .bc-page-shell [style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  .bc-hero [style*="display: flex"],
  .bc-hero [style*="display: grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .bc-hero [style*="text-align: left"] {
    text-align: center !important;
  }

  .bc-page-shell [style*="font-size: 62px"],
  .bc-page-shell [style*="font-size: 60px"],
  .bc-page-shell [style*="font-size: 58px"],
  .bc-page-shell [style*="font-size: 56px"],
  .bc-page-shell [style*="font-size: 54px"],
  .bc-page-shell [style*="font-size: 52px"],
  .bc-page-shell [style*="font-size: 48px"] {
    font-size: clamp(36px, 10vw, 44px) !important;
    line-height: 1.06 !important;
    letter-spacing: -1.2px !important;
  }

  .bc-page-shell [style*="font-size: 42px"],
  .bc-page-shell [style*="font-size: 40px"],
  .bc-page-shell [style*="font-size: 38px"],
  .bc-page-shell [style*="font-size: 36px"] {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  .bc-page-shell [style*="font-size: 34px"],
  .bc-page-shell [style*="font-size: 32px"],
  .bc-page-shell [style*="font-size: 30px"],
  .bc-page-shell [style*="font-size: 28px"] {
    font-size: 26px !important;
    line-height: 1.16 !important;
  }

  .bc-page-shell [style*="padding: 116px 24px"],
  .bc-page-shell [style*="padding: 108px 24px"],
  .bc-page-shell [style*="padding: 104px 24px"],
  .bc-page-shell [style*="padding: 96px 24px"],
  .bc-page-shell [style*="padding: 88px 24px"],
  .bc-page-shell [style*="padding: 80px 24px"],
  .bc-page-shell [style*="padding: 64px 24px"],
  .bc-page-shell [style*="padding: 56px 24px"],
  .bc-page-shell [style*="padding: 48px 24px"] {
    padding: 52px 18px !important;
  }

  .bc-page-shell [style*="padding: 52px 0"] {
    padding: 30px 0 !important;
  }

  .bc-page-shell img,
  .bc-page-shell svg {
    max-width: 100% !important;
    height: auto;
  }

  .bc-hero [style*="position: absolute"] {
    display: none !important;
  }

  .bc-hero [style*="height: 460px"] {
    display: none !important;
  }

  .bc-hero [style*="margin-bottom: 64px"] {
    margin-bottom: 0 !important;
  }

  .bc-hero [style*="height: 460px"] + div {
    margin-top: 18px !important;
  }

  .bc-page-shell .bc-logo-cloud {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    gap: 22px 28px !important;
  }

  .bc-page-shell .bc-logo-cloud > * {
    justify-self: center;
    max-width: 120px !important;
  }

  .bc-page-shell [style*="gap: 52px"][style*="flex-wrap: wrap"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 18px !important;
  }

  .bc-page-shell [style*="gap: 52px"][style*="flex-wrap: wrap"] > * {
    justify-self: center;
  }

  .bc-closing-cta [style*="display: flex"] {
    justify-content: center !important;
    gap: 12px !important;
  }

  .bc-site-footer > div,
  .bc-site-footer > div > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 28px !important;
  }

  .bc-site-footer [style*="gap: 72px"],
  .bc-site-footer [style*="gap: 64px"] {
    gap: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
