.brand-page {
  background:
    radial-gradient(circle at 78% 10%, rgba(7, 87, 255, 0.14), transparent 25%),
    radial-gradient(circle at 14% 34%, rgba(17, 221, 244, 0.05), transparent 22%),
    var(--void);
}

.brand-page code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.brand-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(100, 137, 194, 0.16);
  background: rgba(2, 6, 17, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand-nav {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-nav > a:first-child {
  display: block;
  width: 142px;
}

.brand-nav img {
  width: 100%;
  height: auto;
}

.brand-hero {
  display: grid;
  min-height: 720px;
  align-content: center;
  padding-block: 120px;
}

.brand-hero h1 {
  max-width: 1020px;
  margin: 28px 0 0;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 790;
  letter-spacing: -0.068em;
  line-height: 0.93;
  text-wrap: balance;
}

.brand-hero h1 span {
  color: #71819b;
}

.brand-hero > p:not(.eyebrow) {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
  text-wrap: pretty;
}

.brand-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 42px;
}

.brand-section {
  padding-block: 112px;
  border-top: 1px solid rgba(80, 121, 170, 0.16);
}

.brand-section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.33fr) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 58px;
}

.brand-section-heading > p {
  margin: 8px 0 0;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.lockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lockup-card {
  display: grid;
  min-height: 420px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(71, 113, 170, 0.26);
  border-radius: 24px;
}

.lockup-card > img {
  align-self: center;
  width: min(68%, 540px);
  height: auto;
  justify-self: center;
}

.lockup-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-top: 1px solid currentColor;
  border-top-color: rgba(98, 133, 180, 0.16);
  font-size: 14px;
}

.lockup-card > div a {
  color: var(--blue-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  transition: color 160ms ease;
}

.lockup-card > div a:hover {
  color: var(--cyan);
}

.dark-card {
  background:
    radial-gradient(circle at 50% 38%, rgba(7, 87, 255, 0.13), transparent 34%),
    #030914;
  color: var(--ink);
}

.light-card {
  background: #f7f9fd;
  color: #06101f;
}

.light-card > div {
  border-top-color: rgba(6, 16, 31, 0.12);
}

.light-card > div a {
  color: #0757ff;
}

.light-card > div a:hover {
  color: #033fbf;
}

.light-card :focus-visible {
  outline-color: #0757ff;
}

.mark-card > img {
  width: min(42%, 220px);
  max-height: 220px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.swatch-grid > div {
  display: grid;
  min-height: 230px;
  align-content: end;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(76, 121, 184, 0.24);
  border-radius: 18px;
  background: var(--swatch);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  color: white;
}

.swatch-void { --swatch: #020611; }
.swatch-ink { --swatch: #06101f; }
.swatch-electric { --swatch: #0757ff; }
.swatch-signal { --swatch: #078dff; }
.swatch-cyan { --swatch: #11ddf4; }
.swatch-white { --swatch: #f7f9fd; }

.swatch-grid strong,
.swatch-grid code {
  position: relative;
  z-index: 1;
}

.swatch-grid strong {
  font-size: 16px;
}

.swatch-grid code {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.swatch-grid .light-swatch {
  color: #06101f;
}

.swatch-grid .swatch-signal,
.swatch-grid .swatch-cyan {
  color: #06101f;
}

.swatch-grid .light-swatch code,
.swatch-grid .swatch-signal code,
.swatch-grid .swatch-cyan code {
  color: #06101f;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.usage-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 117, 180, 0.26);
  border-radius: 20px;
  background: rgba(5, 15, 31, 0.72);
}

.clearspace-demo,
.size-demo,
.mono-demo {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid rgba(72, 117, 180, 0.2);
  background:
    linear-gradient(rgba(35, 84, 154, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 84, 154, 0.08) 1px, transparent 1px),
    rgba(2, 8, 19, 0.7);
  background-size: 24px 24px;
}

.clearspace-demo > span {
  padding: 36px;
  border: 1px dashed rgba(17, 221, 244, 0.5);
}

.clearspace-demo img {
  width: 112px;
  height: auto;
}

.size-demo img {
  max-width: none;
  image-rendering: auto;
}

.mono-demo {
  background: #0757ff;
}

.mono-demo img {
  width: 64%;
  height: auto;
}

.usage-grid h3 {
  margin: 26px 26px 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.usage-grid p {
  margin: 12px 26px 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(76, 121, 184, 0.24);
  border-radius: 22px;
  background: #040a17;
}

.showcase-grid picture,
.showcase-grid img {
  display: block;
  width: 100%;
}

.showcase-grid img {
  height: auto;
  aspect-ratio: 1586 / 992;
  object-fit: cover;
}

.showcase-grid figcaption {
  padding: 18px 20px;
  border-top: 1px solid rgba(76, 121, 184, 0.18);
  color: var(--muted-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.downloads-section {
  padding-bottom: 150px;
}

.download-list {
  border-top: 1px solid rgba(93, 132, 188, 0.28);
}

.download-list a {
  display: grid;
  min-height: 76px;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 24px;
  border-bottom: 1px solid rgba(93, 132, 188, 0.2);
  color: var(--muted-strong);
  transition: color 160ms ease, padding-inline 180ms ease, background-color 180ms ease;
}

.download-list a:hover {
  padding-inline: 14px;
  background: rgba(7, 87, 255, 0.06);
  color: white;
}

.download-list code {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.brand-footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(93, 132, 188, 0.2);
  color: var(--muted);
  font-size: 14px;
}

.brand-footer a {
  color: var(--ink);
  transition: color 160ms ease;
}

.brand-footer a:hover {
  color: var(--cyan);
}

@media (max-width: 860px) {
  .brand-hero {
    min-height: 620px;
    padding-block: 92px;
  }

  .brand-section {
    padding-block: 84px;
  }

  .brand-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
  }

  .lockup-card {
    min-height: 330px;
  }

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

  .usage-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .brand-nav {
    min-height: 72px;
  }

  .brand-nav > a:first-child {
    width: 122px;
  }

  .brand-nav .button {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .brand-hero {
    min-height: 590px;
    padding-block: 78px;
  }

  .brand-hero h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .brand-hero .hero-actions {
    align-items: stretch;
  }

  .lockup-grid,
  .swatch-grid,
  .usage-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .usage-grid article:last-child {
    grid-column: auto;
  }

  .lockup-card {
    min-height: 300px;
  }

  .lockup-card > div {
    padding: 18px;
  }

  .swatch-grid > div {
    min-height: 170px;
  }

  .brand-footer {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
