@font-face {
  font-display: swap;
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  src: url("/assets/makebold/fonts/inter-tight.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Inter Tight";
  font-style: italic;
  font-weight: 100 900;
  src: url("/assets/makebold/fonts/inter-tight-italic.ttf") format("truetype");
}

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

:root {
  --mb-black: #040605;
  --mb-red: #982407;
  --mb-red-bright: #bd3410;
  --mb-gray: #787878;
  --mb-paper: #f7f4ef;
  --mb-cream: #eee8df;
  --mb-ink: #161615;
  --mb-muted: #5f5c58;
  --mb-line: rgba(4, 6, 5, 0.14);
  --mb-line-dark: rgba(247, 244, 239, 0.16);
  --mb-radius: 8px;
  --mb-shadow: 0 20px 60px rgba(4, 6, 5, 0.16);
  --mb-font: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mb-paper);
  color: var(--mb-ink);
  font-family: var(--mb-font);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  background: rgba(152, 36, 7, 0.09);
  border-radius: 4px;
  color: var(--mb-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0.08rem 0.28rem;
}

.site-nav {
  align-items: center;
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid var(--mb-line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  left: 0;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.brand-link,
.footer-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 2.6rem;
  width: auto;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  line-height: 1;
}

.brand-name {
  color: var(--mb-black);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-byline {
  color: var(--mb-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a,
.footer-links a {
  color: var(--mb-muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
footer a:hover {
  color: var(--mb-red);
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  padding: 8.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(152, 36, 7, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(152, 36, 7, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, black 0%, transparent 82%);
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
}

.hero::after {
  background: var(--mb-red);
  clip-path: polygon(74% 0, 100% 0, 100% 58%, 84% 50%);
  content: "";
  inset: 0;
  opacity: 0.95;
  pointer-events: none;
  position: absolute;
}

.hero-inner,
.section,
.band-inner {
  margin: 0 auto;
  max-width: 76rem;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) 22rem;
}

.hero-copy {
  align-self: center;
}

.hero-mark {
  align-self: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius);
  box-shadow: var(--mb-shadow);
  display: grid;
  justify-items: center;
  padding: 2rem;
}

.hero-mark img {
  height: auto;
  max-width: 18rem;
  width: 100%;
}

.eyebrow,
.section-label {
  color: var(--mb-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  color: var(--mb-black);
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 1rem 0 1.35rem;
  max-width: 10ch;
}

h1 em {
  color: var(--mb-red);
  font-style: normal;
}

.lead,
.hero-sub,
.section-desc,
.desc,
.card p,
.api-desc,
.section p {
  color: var(--mb-muted);
}

.hero-sub,
.lead {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.75;
  max-width: 64ch;
}

.hero-tagline {
  color: var(--mb-black);
  font-size: 1.02rem;
  font-weight: 850;
  margin-top: 1.1rem;
}

.actions,
.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 2rem;
}

.btn {
  align-items: center;
  border-radius: var(--mb-radius);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 850;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--mb-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--mb-red-bright);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--mb-line);
  color: var(--mb-black);
}

.btn-outline:hover {
  border-color: var(--mb-red);
  color: var(--mb-red);
}

.stats-bar {
  border-bottom: 1px solid var(--mb-line);
  border-top: 1px solid var(--mb-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem;
  max-width: 76rem;
  position: relative;
  z-index: 1;
}

.stat {
  border-right: 1px solid var(--mb-line);
  padding: 1.35rem 1rem;
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  color: var(--mb-red);
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.05;
}

.stat-label {
  color: var(--mb-muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.section,
.band-inner {
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem);
}

.band {
  background: var(--mb-black);
  color: var(--mb-paper);
}

.band .section-desc,
.band .lead,
.band p,
.band .desc {
  color: rgba(247, 244, 239, 0.72);
}

.band .section-title,
.band h2,
.band h3 {
  color: var(--mb-paper);
}

.section-title {
  color: var(--mb-black);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0.75rem 0 1rem;
  max-width: 14ch;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 68ch;
}

.split,
.flagship {
  align-items: start;
  display: grid;
  gap: 3rem;
  grid-template-columns: 0.9fr 1.1fr;
}

.pill-list,
.flow,
.diagram {
  display: grid;
  gap: 0.75rem;
}

.pill,
.flow-row,
.diagram-row {
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius);
  font-weight: 800;
  padding: 0.85rem 1rem;
}

.band .pill,
.band .flow-row,
.band .diagram-row {
  border-color: var(--mb-line-dark);
}

.pill {
  background: rgba(152, 36, 7, 0.07);
  color: var(--mb-black);
}

.band .pill {
  background: rgba(152, 36, 7, 0.22);
  color: var(--mb-paper);
}

.statement {
  color: var(--mb-black);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
}

.brand-panel,
.card,
.api-card {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius);
  box-shadow: 0 10px 30px rgba(4, 6, 5, 0.06);
}

.band .brand-panel,
.band .card,
.band .api-card {
  background: rgba(247, 244, 239, 0.06);
  border-color: var(--mb-line-dark);
  box-shadow: none;
}

.brand-panel,
.card,
.api-card {
  padding: 1.35rem;
}

.flow-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0;
}

.flow-inline span,
.badge,
.tag,
.meta-pill {
  border-radius: var(--mb-radius);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.1;
  padding: 0.35rem 0.6rem;
}

.flow-inline span,
.tag,
.meta-pill {
  background: rgba(152, 36, 7, 0.09);
  color: var(--mb-red);
}

.flow-inline b {
  color: var(--mb-red);
}

.api-grid,
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 2rem;
}

.api-route,
.tagline,
.pattern {
  color: var(--mb-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.api-name,
.name,
.card h3,
.category-header h3 {
  color: var(--mb-black);
  font-size: 1.05rem;
  font-weight: 900;
}

.band .api-name,
.band .name,
.band .card h3,
.band .category-header h3 {
  color: var(--mb-paper);
}

.badge {
  background: rgba(152, 36, 7, 0.1);
  color: var(--mb-red);
  margin-top: 0.8rem;
  width: fit-content;
}

.category {
  margin-top: 3rem;
}

.category-header {
  border-bottom: 1px solid var(--mb-line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: 0.8rem;
}

.band .category-header {
  border-color: var(--mb-line-dark);
}

.category-header p {
  color: var(--mb-muted);
  font-size: 0.94rem;
  max-width: 52rem;
}

.band .category-header p {
  color: rgba(247, 244, 239, 0.68);
}

.inventory-card {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  min-height: 18rem;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.inventory-card:hover {
  border-color: var(--mb-red);
  transform: translateY(-2px);
}

.card-top {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.icon {
  align-items: center;
  background: rgba(152, 36, 7, 0.1);
  border-radius: var(--mb-radius);
  display: flex;
  font-size: 1.15rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.meta-row,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.desc {
  flex: 1;
  font-size: 0.92rem;
}

.links a {
  color: var(--mb-red);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

footer {
  background: var(--mb-black);
  color: var(--mb-paper);
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem);
}

.footer-inner {
  align-items: start;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 76rem;
}

.footer-brand .brand-name {
  color: var(--mb-paper);
}

.footer-brand .brand-logo {
  background: var(--mb-paper);
  border-radius: var(--mb-radius);
  padding: 0.22rem;
}

.footer-brand .brand-byline,
footer p,
footer a {
  color: rgba(247, 244, 239, 0.68);
}

footer p {
  font-size: 0.88rem;
  margin-top: 0.65rem;
  max-width: 34rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  list-style: none;
}

.copyright {
  border-top: 1px solid var(--mb-line-dark);
  font-size: 0.76rem;
  margin: 2rem auto 0;
  max-width: 76rem;
  opacity: 0.75;
  padding-top: 1.25rem;
}

@media (max-width: 920px) {
  .hero-inner,
  .split,
  .flagship {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    justify-self: start;
    max-width: 22rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--mb-line);
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .site-nav {
    padding: 0.75rem 1rem;
  }

  .brand-logo {
    height: 2.25rem;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero::after {
    clip-path: polygon(82% 0, 100% 0, 100% 34%, 90% 30%);
  }

  .hero-actions,
  .actions,
  .action-row,
  .btn {
    width: 100%;
  }

  .footer-inner,
  .category-header {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:not(:last-child) {
    border-bottom: 1px solid var(--mb-line);
  }
}
