/* BeeHive style proposal. Colors come from tokens.css. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(225, 182, 83, 0.16) 0%,
      rgba(225, 182, 83, 0.06) 24%,
      transparent 46%
    ),
    radial-gradient(
      circle at 8% 55%,
      rgba(246, 232, 190, 0.4) 0%,
      transparent 34%
    ),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 45%, #f8f4ea 100%);
  color: var(--bh-text);
  font-family: var(--bh-font);
  font-size: var(--bh-body);
  line-height: 1.6;
}

.bh-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bh-wrap {
  width: min(var(--bh-max), calc(100% - (var(--bh-gutter) * 2)));
  margin-inline: auto;
}

.bh-h1,
.bh-h2,
.bh-h3 {
  font-weight: 650;
  color: var(--bh-text);
}

.bh-h1 {
  margin: 0;
  font-size: var(--bh-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.bh-h2 {
  margin: 0 0 var(--space-6);
  font-size: var(--bh-h2);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.bh-h3 {
  margin: 0;
  font-size: var(--bh-h3);
  line-height: 1.25;
}

.bh-lead {
  margin: 0;
  font-size: var(--bh-lead);
  line-height: 1.65;
}

.bh-body {
  margin: 0;
  font-size: var(--bh-body);
  line-height: 1.6;
}

.bh-small {
  margin: 0;
  font-size: var(--bh-small);
  line-height: 1.5;
}

.bh-accent {
  color: var(--bh-gold-dark);
}

.bh-kicker {
  margin: 0 0 var(--space-3);
  color: var(--bh-text-soft);
  font-size: var(--bh-small);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bh-note {
  margin-top: var(--space-5);
  color: var(--bh-text-soft);
  max-width: 62ch;
}

.bh-masthead {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-7) var(--space-6);
  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(225, 182, 83, 0.22),
      rgba(246, 232, 190, 0.12) 30%,
      transparent 62%
    );
}

.bh-masthead__hex {
  display: none;
}

.bh-masthead .bh-lead {
  max-width: 38rem;
  margin-top: var(--space-4);
  color: var(--bh-text-soft);
}

.bh-section {
  border-top: 1px solid var(--bh-line);
  padding-block: var(--space-7);
}

#colors {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.72) 16%,
    rgba(255, 255, 255, 0.72) 84%,
    transparent 100%
  );
}

#type {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(247, 243, 233, 0.62) 18%,
    rgba(248, 244, 234, 0.48) 82%,
    transparent 100%
  );
}

#buttons {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.78) 16%,
    rgba(255, 255, 255, 0.78) 84%,
    transparent 100%
  );
}

#icons {
  background: radial-gradient(
    circle at 50% 42%,
    rgba(246, 232, 190, 0.55) 0%,
    rgba(225, 182, 83, 0.08) 46%,
    transparent 72%
  );
}

#for-businesses,
#for-partners {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(248, 244, 234, 0.42) 80%,
    transparent 100%
  );
}

#network {
  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(225, 182, 83, 0.14) 0%,
      rgba(246, 232, 190, 0.32) 38%,
      transparent 70%
    ),
    linear-gradient(180deg, transparent 0%, rgba(248, 244, 234, 0.35) 40%, transparent 100%);
}

.bh-swatches {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-swatch__chip {
  display: block;
  height: 72px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-md);
}

.bh-swatch__name {
  display: block;
  font-size: var(--bh-body);
  font-weight: 650;
}

.bh-swatch code,
.bh-swatch__hex {
  display: block;
  margin-top: var(--space-1);
  color: var(--bh-text-soft);
  font-family: var(--bh-font-mono);
  font-size: var(--bh-small);
}

.bh-chip-bg { background: var(--bh-bg); }
.bh-chip-surface { background: var(--bh-surface); }
.bh-chip-surface-soft { background: var(--bh-surface-soft); }
.bh-chip-text { background: var(--bh-text); }
.bh-chip-text-soft { background: var(--bh-text-soft); }
.bh-chip-gold { background: var(--bh-gold); }
.bh-chip-gold-dark { background: var(--bh-gold-dark); }
.bh-chip-honey { background: var(--bh-honey); }
.bh-chip-honey-light { background: var(--bh-honey-light); }
.bh-chip-line { background: var(--bh-line); }
.bh-chip-success { background: var(--bh-success); }

.bh-type-list {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-type-row {
  display: grid;
  gap: var(--space-2);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--bh-line);
}

.bh-type-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bh-type-label {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: var(--bh-small);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bh-type-row .bh-h1,
.bh-type-row .bh-h2,
.bh-type-row .bh-h3,
.bh-type-row .bh-lead,
.bh-type-row .bh-body,
.bh-type-row .bh-small {
  margin: 0;
  max-width: 62ch;
}

.bh-state-group + .bh-state-group {
  margin-top: var(--space-6);
}

.bh-state-heading {
  margin: 0 0 var(--space-4);
  font-size: var(--bh-body);
  font-weight: 650;
}

.bh-states {
  display: grid;
  gap: var(--space-5);
}

.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--bh-radius-sm);
  font: inherit;
  font-size: var(--bh-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.bh-btn--primary {
  background: var(--bh-gold);
  border-color: var(--bh-gold);
  color: var(--bh-text);
}

.bh-btn--primary:hover,
.bh-btn--primary.is-hover {
  background: color-mix(in srgb, var(--bh-gold) 78%, var(--bh-gold-dark));
  border-color: color-mix(in srgb, var(--bh-gold) 78%, var(--bh-gold-dark));
}

.bh-btn--secondary {
  background: var(--bh-surface);
  border-color: var(--bh-gold);
  color: var(--bh-text);
}

.bh-btn--secondary:hover,
.bh-btn--secondary.is-hover {
  background: var(--bh-surface-soft);
}

.bh-btn:focus {
  outline: none;
}

.bh-btn:focus-visible,
.bh-btn.is-focus {
  outline: 2px solid var(--bh-gold-dark);
  outline-offset: 3px;
}

.bh-icon-board {
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  box-shadow: var(--bh-shadow-soft);
  padding: var(--space-5) var(--space-4);
}

.bh-icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-icon-card {
  text-align: center;
}

.bh-icon-card__samples {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 88px;
}

.bh-icon-card h3 {
  margin: var(--space-4) 0 var(--space-1);
  font-size: var(--bh-body);
  font-weight: 650;
  line-height: 1.3;
}

.bh-icon-card p {
  margin: 0 auto;
  max-width: 18ch;
  color: var(--bh-text-soft);
  font-size: var(--bh-small);
  line-height: 1.45;
}

.bh-icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.bh-icon--lg {
  width: 48px;
  height: 48px;
}

.bh-icon-card__samples > i {
  font-size: 32px;
  color: var(--bh-gold-dark);
}

.bh-icon-hex > i {
  position: relative;
  z-index: 1;
  font-size: 28px;
  color: var(--bh-gold-dark);
}

.bh-icon-hex {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 72px;
  height: 78px;
}

.bh-icon-hex__plate {
  position: absolute;
  inset: 0;
  width: 72px;
  height: 78px;
  overflow: visible;
  filter: drop-shadow(0 8px 16px var(--bh-shadow-color));
}

.bh-icon-hex__plate polygon {
  stroke: var(--bh-gold);
  stroke-width: 1.25;
  stroke-linejoin: miter;
}

.bh-icon-hex .bh-icon {
  position: relative;
  width: 30px;
  height: 30px;
}

.bh-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 640px;
  padding: var(--space-6);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 239, 0.92));
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  box-shadow: var(--bh-shadow-soft);
}

.bh-card .bh-body {
  max-width: 48ch;
  color: var(--bh-text-soft);
}

.bh-card .bh-btn {
  margin-top: var(--space-2);
}

.bh-network {
  margin: 0;
}

.bh-network figcaption .bh-small {
  display: block;
  max-width: 46ch;
  margin-top: var(--space-2);
  color: var(--bh-text-soft);
}

.bh-network__stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 280px);
  margin-inline: auto;
}

.bh-network__spine {
  width: 1px;
  height: 28px;
  background: var(--bh-gold);
}

.bh-network__tree {
  display: flex;
  flex-direction: column;
  width: min(100%, 280px);
}

.bh-network__arm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  border-left: 1px solid var(--bh-gold);
}

.bh-network__arm::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: var(--space-5);
  height: 1px;
  background: var(--bh-gold);
}

.bh-network__stem {
  width: 1px;
  height: 28px;
  margin-left: calc(50% - 0.5px);
  background: var(--bh-gold);
}

.bh-node {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-4);
  text-align: center;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-md);
  box-shadow: var(--bh-shadow-soft);
}

.bh-node__name {
  display: block;
  font-size: var(--bh-small);
  font-weight: 650;
  line-height: 1.3;
}

.bh-node__meta {
  display: block;
  margin-top: var(--space-1);
  color: var(--bh-text-soft);
  font-size: var(--bh-small);
  line-height: 1.35;
}

.bh-node__hex {
  display: block;
  width: 36px;
  height: 39px;
  margin: 0 auto var(--space-2);
}

.bh-node__hex polygon {
  fill: var(--bh-surface);
  stroke: var(--bh-gold-dark);
  stroke-width: 1.5;
  stroke-linejoin: miter;
}

.bh-node__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: var(--space-1) auto var(--space-3);
  border: 1.5px solid var(--bh-gold-dark);
  border-radius: 50%;
}

.bh-node--platform {
  width: 100%;
  padding: var(--space-4);
  background: var(--bh-honey-light);
  border-color: var(--bh-gold);
}

.bh-node--platform .bh-node__name {
  font-size: var(--bh-body);
}

.bh-node--partner {
  background: var(--bh-surface-soft);
  box-shadow: none;
}

.bh-footer {
  border-top: 1px solid var(--bh-line);
  padding-block: var(--space-5);
  color: var(--bh-text-soft);
}

@media (min-width: 560px) {
  .bh-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bh-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .bh-network__stage {
    align-items: center;
    width: 100%;
  }

  .bh-node--platform {
    width: min(100%, 220px);
  }

  .bh-network__tree {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    width: min(100%, 760px);
    padding-top: var(--space-5);
  }

  .bh-network__arm {
    align-items: center;
    padding: var(--space-5) 0 0;
    border-left: 0;
  }

  .bh-network__arm::before,
  .bh-network__arm::after {
    content: "";
    position: absolute;
    background: var(--bh-gold);
  }

  .bh-network__arm::before {
    top: 0;
    left: 50%;
    width: 1px;
    height: var(--space-5);
    transform: translateX(-0.5px);
  }

  .bh-network__arm:first-child::after {
    top: 0;
    left: 50%;
    right: calc(var(--space-5) / -2);
    height: 1px;
  }

  .bh-network__arm:nth-child(2)::after {
    top: 0;
    left: calc(var(--space-5) / -2);
    right: calc(var(--space-5) / -2);
    height: 1px;
  }

  .bh-network__arm:last-child::after {
    top: 0;
    left: calc(var(--space-5) / -2);
    right: 50%;
    height: 1px;
  }

  .bh-network__stem {
    margin-left: 0;
  }

  .bh-node {
    width: min(100%, 180px);
  }
}

@media (min-width: 768px) {
  .bh-masthead {
    padding-block: var(--space-8) var(--space-7);
  }

  .bh-states {
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: start;
    gap: var(--space-6);
  }

  .bh-card {
    padding: var(--space-7);
  }

  .bh-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bh-type-row {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: var(--space-5);
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .bh-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bh-masthead__hex {
    display: block;
    position: absolute;
    top: -48px;
    right: max(0px, calc((100% - var(--bh-max)) / 2 - 20px));
    width: 260px;
    height: 282px;
    pointer-events: none;
  }

  .bh-masthead__hex polygon {
    fill: var(--bh-honey-light);
    stroke: var(--bh-gold);
    stroke-width: 1.25;
    stroke-linejoin: miter;
    opacity: 0.85;
  }
}

@media (min-width: 1100px) {
  .bh-section {
    padding-block: var(--space-8);
  }

  .bh-icon-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .bh-swatches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-btn {
    transition: none;
  }
}
