:root {
  --bh-indigo: #5a5fca;
  --bh-indigo-deep: #4f46e5;
  --bh-orange: #f37e05;
  --bh-ink: #2d2d41;
  --bh-muted: #6b7280;
  --bh-cream: #fefcf9;
  --bh-line: rgba(90, 95, 202, 0.22);
  --bh-font: "DM Sans", system-ui, sans-serif;
  --bh-display: "Fraunces", Georgia, serif;
  --bh-radius: 12px;
  --bh-max: 1120px;
}

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

html { scroll-behavior: smooth; }

body.bh-body {
  margin: 0;
  font-family: var(--bh-font);
  color: var(--bh-ink);
  background: var(--bh-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bh-indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.bh-skip {
  position: absolute; left: -999px; top: 0; z-index: 100000;
  background: #fff; padding: .75rem 1rem;
}
.bh-skip:focus { left: 1rem; top: 1rem; }

.bh-container {
  width: min(100% - 2rem, var(--bh-max));
  margin-inline: auto;
}

/* Header */
.bh-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254, 252, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bh-line);
}
.bh-header__inner {
  width: min(100% - 2rem, var(--bh-max));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.bh-brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.bh-brand__logo { width: 40px; height: 40px; object-fit: contain; }
.bh-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.bh-brand__name { font-weight: 800; letter-spacing: .04em; font-size: .95rem; }
.bh-brand__tag { font-size: .75rem; color: var(--bh-muted); }
.bh-nav { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.bh-nav__link, .bh-header__nav a { color: var(--bh-ink); font-weight: 600; text-decoration: none; }
.bh-header__nav { display: flex; align-items: center; gap: 1rem; }
.bh-nav-toggle {
  display: none; background: #fff; border: 1px solid var(--bh-line); border-radius: 10px;
  padding: .55rem .65rem; cursor: pointer; line-height: 0;
}
.bh-nav-toggle__bar {
  display: block; width: 20px; height: 2px; background: var(--bh-ink); margin: 4px 0;
  border-radius: 2px;
}
.bh-nav-toggle[aria-expanded="true"] {
  border-color: var(--bh-indigo);
  background: rgba(90, 95, 202, 0.08);
}

/* Buttons */
.bh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .7rem 1.15rem; border-radius: 10px;
  font-weight: 700; border: 2px solid transparent; cursor: pointer;
  text-decoration: none !important; font-family: inherit; font-size: .95rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bh-btn:hover { transform: translateY(-1px); }
.bh-btn--primary { background: var(--bh-indigo); color: #fff; }
.bh-btn--accent { background: var(--bh-orange); color: #fff; }
.bh-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.bh-btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.bh-btn--ghost-dark { background: transparent; color: #e5e7eb; border-color: rgba(255,255,255,.2); }
.bh-btn--light { background: #fff; color: var(--bh-ink); border-color: var(--bh-line); }

/* Hero */
.bh-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #5a5fca 0%, #4f46e5 50%, #6366f1 100%);
  padding: 4rem 0 4.5rem;
}
.bh-hero__bg {
  position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle at 20% 20%, #fff 1px, transparent 1px);
  background-size: 28px 28px;
  animation: bh-hero-drift 8s ease-in-out infinite;
}
@keyframes bh-hero-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -6px, 0) scale(1.03); }
}
@keyframes bh-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.bh-hero__text { animation: bh-rise .7s ease-out both; }
.bh-hero__visual { animation: bh-rise .85s ease-out .12s both; position: relative; }
.bh-hero__inner { position: relative; z-index: 1; }
.bh-hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
}
.bh-eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; font-size: .75rem; opacity: .9; margin: 0 0 .75rem;
}
.bh-hero__title {
  font-family: var(--bh-display); font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12; margin: 0 0 1rem; font-weight: 700;
}
.bh-hero__lead { font-size: 1.1rem; opacity: .95; margin: 0 0 1.25rem; max-width: 36rem; }
.bh-hero__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bh-pill {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: .3rem .75rem; font-weight: 700; font-size: .85rem;
}
.bh-hero__proof { margin: 0 0 1.5rem; font-weight: 600; opacity: .92; }
.bh-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.bh-hero__badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  background: rgba(17,24,39,.75); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .35rem .65rem; border-radius: 8px;
}
.bh-hero__mockup {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .35);
  border: 1px solid rgba(255,255,255,.2); background: #111827;
  transition: transform .35s ease, box-shadow .35s ease;
}
.bh-hero__mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(17, 24, 39, .42);
}
.bh-hero__mockup img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.bh-hero__placeholder { min-height: 280px; display: grid; place-items: center; color: #fff; opacity: .7; }

/* Sections */
.bh-section { padding: 4rem 0; }
.bh-section--alt { background: #f4f2ff; }
.bh-section__title {
  font-family: var(--bh-display); font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 .75rem; text-align: center; color: var(--bh-ink);
}
.bh-section__lead {
  text-align: center; color: var(--bh-muted); max-width: 40rem; margin: 0 auto 2rem;
}
.bh-section__lead--left { text-align: left; margin-left: 0; }

.bh-tools {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.bh-tool {
  background: #fff; border: 1px solid var(--bh-line); border-radius: var(--bh-radius);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .65rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bh-tool:hover {
  border-color: rgba(90, 95, 202, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(45, 45, 65, 0.08);
}
.bh-tool__title { margin: 0; font-size: 1.1rem; }
.bh-tool__desc { margin: 0; color: var(--bh-muted); flex: 1; font-size: .95rem; }
.bh-tool__link { font-weight: 700; }

.bh-split {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
}
.bh-checklist { margin: 1.25rem 0 0; padding-left: 1.1rem; }
.bh-checklist li { margin-bottom: .55rem; }
.bh-stat-card {
  background: linear-gradient(160deg, #2d2d41, #1a1a2e); color: #fff;
  border-radius: 16px; padding: 1.75rem;
}
.bh-stat-card__kicker {
  display: inline-block; background: var(--bh-orange); color: #fff;
  font-size: .75rem; font-weight: 800; padding: .3rem .55rem; border-radius: 6px; margin: 0 0 .75rem;
}
.bh-stat-card__value {
  font-family: var(--bh-display); font-size: 3.5rem; margin: 0; line-height: 1;
}
.bh-stat-card__text { opacity: .9; margin: .75rem 0 1.25rem; }

.bh-cta {
  background: linear-gradient(135deg, #2d2d41 0%, #1a1a2e 100%);
  color: #fff; padding: 4rem 0; text-align: center;
}
.bh-cta__title { font-family: var(--bh-display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 .75rem; }
.bh-cta__lead { opacity: .9; margin: 0 0 1.5rem; }
.bh-cta__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Page */
.bh-page-hero {
  background: linear-gradient(135deg, #5a5fca, #4f46e5); color: #fff; padding: 3rem 0 2.5rem;
}
.bh-page-hero h1 { margin: 0 0 .5rem; font-family: var(--bh-display); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.bh-page-hero__lead { margin: 0; opacity: .95; max-width: 40rem; }
.bh-prose { max-width: 48rem; }
.bh-prose h2, .bh-prose h3 { font-family: var(--bh-display); }

/* Contact */
.bh-contact {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: start;
}
.bh-contact__form-wrap,
.bh-contact__info {
  background: #fff; border: 1px solid var(--bh-line); border-radius: 16px; padding: 1.5rem;
}
.bh-form { display: grid; gap: 1rem; }
.bh-field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.bh-field input,
.bh-field textarea {
  width: 100%; border: 2px solid #e5e7eb; border-radius: 10px;
  padding: .7rem .85rem; font: inherit; background: #fff;
}
.bh-field input:focus,
.bh-field textarea:focus { outline: none; border-color: var(--bh-indigo); }
.bh-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }
.bh-alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.bh-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bh-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bh-alert--info { background: rgba(90,95,202,.08); color: var(--bh-indigo); border: 1px solid rgba(90,95,202,.2); }
.bh-contact__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }

.bh-posts { display: grid; gap: 1rem; }
.bh-post-card {
  background: #fff; border: 1px solid var(--bh-line); border-radius: 12px; padding: 1.25rem;
}
.bh-post-card__title { margin: 0 0 .35rem; font-size: 1.25rem; }
.bh-post-card__meta { color: var(--bh-muted); font-size: .9rem; margin: 0 0 .5rem; }

/* Footer */
.bh-footer {
  background: linear-gradient(135deg, #2d2d41 0%, #1a1a2e 100%);
  color: rgba(255,255,255,.9); margin-top: auto;
}
.bh-footer__inner {
  width: min(100% - 2rem, var(--bh-max));
  margin: 0 auto;
  padding: 2.5rem 0 1.25rem;
}
.bh-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem;
}
.bh-footer__brand-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.bh-footer__name { display: block; font-weight: 800; letter-spacing: .04em; }
.bh-footer__tag { display: block; font-size: .8rem; opacity: .75; }
.bh-footer__desc { opacity: .85; margin: 0 0 1rem; }
.bh-footer__cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.bh-footer__col-title { font-weight: 800; margin-bottom: .65rem; }
.bh-footer__link, .bh-footer__nav a {
  display: block; color: rgba(255,255,255,.85); margin-bottom: .4rem; text-decoration: none;
}
.bh-footer__link:hover, .bh-footer__nav a:hover { color: #fff; text-decoration: underline; }
.bh-footer__bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; opacity: .85;
}
.bh-footer__bottom a { color: #fff; }

/* Cookies */
.bh-cookie {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 99999;
  max-width: 420px; width: calc(100% - 2rem);
}
.bh-cookie__panel {
  padding: 1rem 1.25rem; background: #111827; color: #e5e7eb;
  border-radius: 12px; border: 1px solid rgba(90,95,202,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: grid; gap: 1rem;
}
.bh-cookie__title { font-weight: 800; color: var(--bh-indigo); margin-bottom: .25rem; }
.bh-cookie__text { margin: 0; font-size: .95rem; color: #9ca3af; }
.bh-cookie__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bh-cookie-modal {
  position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.bh-cookie-modal__panel {
  background: #fff; color: var(--bh-ink); border-radius: 14px; width: min(100%, 440px);
  padding: 1.25rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.bh-cookie-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.bh-cookie-modal__head h2 { margin: 0; font-size: 1.2rem; }
.bh-cookie-modal__close { border: 0; background: none; font-size: 1.5rem; cursor: pointer; }
.bh-cookie-check { display: block; margin-bottom: .75rem; font-weight: 600; }
.bh-cookie-modal__foot { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

@media (max-width: 900px) {
  .bh-hero__grid,
  .bh-tools,
  .bh-split,
  .bh-contact,
  .bh-footer__grid { grid-template-columns: 1fr; }
  .bh-tools { grid-template-columns: 1fr 1fr; }
  .bh-nav-toggle { display: block; }
  .bh-header__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bh-cream); border-bottom: 1px solid var(--bh-line);
    padding: 1rem; flex-direction: column; align-items: stretch;
  }
  .bh-header__nav.is-open { display: flex; }
  .bh-nav { flex-direction: column; align-items: stretch; }
}

@media (max-width: 600px) {
  .bh-tools { grid-template-columns: 1fr; }
  .bh-hero { padding: 2.75rem 0 3rem; }
  .bh-hero__actions .bh-btn { width: 100%; }
  .bh-cookie {
    left: .5rem; right: .5rem; bottom: .5rem; width: auto; max-width: none;
  }
  .bh-cookie__panel { padding: .85rem 1rem; }
  .bh-cookie__actions .bh-btn { flex: 1 1 auto; justify-content: center; }
  .bh-footer__cta .bh-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-hero__bg,
  .bh-hero__text,
  .bh-hero__visual,
  .bh-hero__mockup,
  .bh-tool { animation: none !important; transition: none !important; }
}
