:root {
  --paper: #f5f3ee;
  --paper-deep: #ebe8e0;
  --ink: #18181c;
  --ink-soft: #5f5e65;
  --line: #d9d6cd;
  --white: #fffefa;
  --electric: #704cff;
  --pink: #e243ba;
  --lime: #cbff76;
  --shadow: 0 18px 50px rgba(26, 22, 36, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(
    rgba(30, 27, 40, 0.11) 0.7px,
    transparent 0.7px
  );
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
::selection {
  color: var(--ink);
  background: var(--lime);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}
.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  z-index: 100;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}
.eyebrow {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--electric);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.eyebrow__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e4bff, #fa5ac8);
  box-shadow: 0 0 0 4px rgba(112, 76, 255, 0.1);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  letter-spacing: -0.035em;
  line-height: 0.94;
}
h1 {
  margin-bottom: 26px;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 860;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 840;
}
h1 em,
h2 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(105deg, #6e4bff 5%, #d241c5 54%, #ff894b 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  display: block;
  width: 152px;
  height: auto;
}
.main-nav {
  display: flex;
  gap: 32px;
  margin-left: 80px;
  color: #77747b;
  font-size: 13px;
  font-weight: 650;
}
.main-nav a,
.footer-links a {
  transition: color 0.2s ease;
}
.main-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 17px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 760;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.header-cta:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  align-items: center;
  gap: 62px;
  min-height: 660px;
  padding: 78px 0 110px;
}
.hero__lede {
  max-width: 490px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.5;
}
.hero__lede strong {
  color: var(--ink);
  font-weight: 750;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 55px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 48px;
  padding: 13px 18px 13px 20px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.015em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 22, 36, 0.13);
}
.button--dark {
  color: var(--white);
  background: var(--ink);
}
.button--dark:hover {
  background: #36323e;
}
.text-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}
.text-link span {
  display: inline-block;
  margin-left: 8px;
  color: var(--electric);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.text-link:hover span {
  transform: translateX(4px);
}
.hero__proof {
  display: flex;
  gap: 30px;
  color: #8a878b;
  font-size: 13px;
  font-weight: 680;
}
.hero__proof span + span {
  position: relative;
}
.hero__proof span + span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -16px;
  width: 1px;
  height: 14px;
  background: var(--line);
}
.hero__proof b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.05em;
}

.hero-art {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 9% 4% 5% 10%;
  z-index: -1;
  border-radius: 40% 60% 55% 45% / 43% 38% 62% 57%;
  background: linear-gradient(
    125deg,
    rgba(200, 174, 255, 0.34),
    rgba(255, 171, 227, 0.14) 48%,
    rgba(168, 242, 214, 0.22)
  );
  filter: blur(16px);
  transform: rotate(-7deg);
}
.hero-art__shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 35px rgba(44, 33, 82, 0.14);
  transform: rotate(-12deg);
}
.hero-art__shape--back {
  top: 40px;
  right: 4%;
  width: 68%;
  height: 250px;
  border-radius: 58% 42% 28% 72% / 35% 40% 60% 65%;
  background: linear-gradient(135deg, #c0ffcf 0%, #69b7ff 43%, #7052ee 100%);
  transform: rotate(13deg);
  filter: blur(24px);
}
.hero-art__shape--middle {
  top: 113px;
  left: 9%;
  width: 71%;
  height: 264px;
  border-radius: 32% 68% 70% 30% / 44% 31% 69% 56%;
  background: linear-gradient(116deg, #ffbc70 2%, #f35ac4 49%, #7147f5 100%);
  transform: rotate(-22deg);
  filter: blur(24px);
}
.hero-art__shape--front {
  filter: blur(24px);
  top: 116px;
  left: 21%;
  width: 63%;
  height: 290px;
  border-radius: 65% 35% 47% 53% / 32% 61% 39% 68%;
  background: linear-gradient(
    144deg,
    #6134df 0%,
    #ae50e8 28%,
    #ff84bb 62%,
    #ffe27b 100%
  );
  transform: rotate(17deg);
  overflow: hidden;
}
.hero-art__shape--front::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 30% 24%, white, transparent 18%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  mix-blend-mode: screen;
}
.hero-art__stamp {
  position: absolute;
  z-index: 1;
  top: 32px;
  left: 35px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffefb1;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.hero-art__caption {
  position: absolute;
  z-index: 1;
  right: 36px;
  bottom: 44px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 830;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-align: right;
}
.hero-art__note {
  position: absolute;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  width: 135px;
  color: #79757f;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-art__note span {
  color: var(--electric);
}
.hero-art__note--top {
  top: 29px;
  left: 2%;
  transform: rotate(-7deg);
}
.hero-art__note--bottom {
  right: 5%;
  bottom: 31px;
  transform: rotate(-7deg);
}
.hero-art__orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(112, 76, 255, 0.25);
  border-radius: 50%;
  transform: rotate(-30deg);
}
.hero-art__orbit--one {
  top: 2%;
  right: 6%;
  width: 150px;
  height: 310px;
}
.hero-art__orbit--two {
  top: 18%;
  left: 2%;
  width: 125px;
  height: 290px;
}
.hero-art__spark {
  position: absolute;
  color: var(--electric);
  font-size: 32px;
  font-weight: 200;
}
.hero-art__spark--one {
  top: 16%;
  right: 9%;
}
.hero-art__spark--two {
  bottom: 10%;
  left: 11%;
  color: #e64ab5;
  font-size: 26px;
}

.ticker {
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.ticker__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  gap: 22px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ticker i {
  color: var(--lime);
  font-style: normal;
  font-size: 16px;
}

.library {
  padding: 128px 0 144px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 62px;
}
.section-heading__aside {
  max-width: 260px;
  margin: 0 3% 5px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 380px);
  min-height: 45px;
  padding: 0 12px 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.search-box:focus-within {
  outline: 3px solid rgba(112, 76, 255, 0.18);
  border-color: var(--electric);
}
.search-box__icon {
  color: var(--electric);
  font-size: 22px;
  line-height: 0;
  transform: rotate(-15deg);
}
.search-box input {
  min-width: 0;
  flex: 1;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}
.search-box input::placeholder {
  color: #9b999d;
}
.search-box kbd {
  padding: 2px 6px;
  color: #9b999d;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
}
.filter-group,
.filter-scroll {
  display: flex;
  align-items: center;
  gap: 7px;
}
.filter-chip {
  padding: 8px 12px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border 0.2s ease;
}
.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}
.filter-scroll {
  max-width: 70%;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: thin;
}
.filter-scroll .filter-chip {
  border: 0;
  background: transparent;
}
.filter-scroll .filter-chip:hover,
.filter-scroll .filter-chip.is-active {
  color: var(--electric);
  background: rgba(112, 76, 255, 0.08);
}
.select-filters {
  display: flex;
  gap: 15px;
}
.select-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b888d;
  font-size: 13px;
  font-weight: 760;
}
.select-label select {
  padding: 7px 24px 7px 7px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
  font-weight: 780;
  text-transform: none;
  cursor: pointer;
}
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 19px;
}
.results-bar p {
  margin: 0;
  color: #8b888d;
  font-size: 13px;
}
.results-bar strong {
  color: var(--ink);
}
.clear-filters {
  padding: 0;
  color: var(--electric);
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 750;
}
.clear-filters span {
  display: inline-block;
  margin-left: 5px;
  font-size: 16px;
  line-height: 0;
  vertical-align: -1px;
}
.gradient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gradient-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e5e2da;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 0 rgba(24, 24, 28, 0.02);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.gradient-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.gradient-card__preview {
  position: relative;
  display: flex;
  align-items: end;
  width: 100%;
  min-height: 176px;
  padding: 15px;
  text-align: left;
  border: 0;
  background-color: #777;
  overflow: hidden;
}
.gradient-card__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    transparent 48%,
    rgba(255, 255, 255, 0.18)
  );
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.gradient-card:hover .gradient-card__preview::before {
  opacity: 0.85;
}
.gradient-card__preview--dark {
  color: var(--ink);
}
.gradient-card__preview-copy {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  background-color: rgb(255, 255, 255);
  border-radius: 32px;
  padding: 8px 12px;
}
.gradient-card__preview-name {
  max-width: 75%;
  font-size: 18px;
  font-weight: 830;
  margin-right: 4px;
  line-height: 1;
}
.gradient-card__preview-id {
  margin-top: 5px;
  opacity: 0.78;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.gradient-card__preview-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.gradient-card:hover .gradient-card__preview-mark {
  transform: rotate(45deg);
}
.gradient-card__body {
  padding: 17px 17px 14px;
}
.gradient-card__colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.gradient-card__color {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #76737a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 650;
}
.gradient-card__color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(24, 24, 28, 0.12);
  border-radius: 50%;
}
.gradient-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 20px;
  margin-bottom: 10px;
}
.gradient-card__tags span {
  padding: 3px 6px;
  color: #827e88;
  background: #f0eee8;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gradient-card__meta {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #9a979b;
  font-size: 10px;
}
.gradient-card__meta b {
  color: var(--ink);
  font-weight: 800;
}
.readability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #88858b;
  font-size: 13px;
}
.readability::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.readability--light::before {
  background: var(--white);
  border: 1px solid #bbb8b2;
}
.card-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding-top: 13px;
  border-top: 1px solid #ece9e2;
}
.copy-button {
  min-width: 0;
  padding: 4px 6px;
  color: #77747b;
  background: transparent;
  border: 1px solid rgb(194, 193, 193);
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.copy-button:hover,
.copy-button:focus-visible {
  color: var(--electric);
  background: #f1edff;
  outline: 0;
}
.loading-card {
  min-height: 340px;
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, #ece9e2 8%, #f8f6f1 18%, #ece9e2 33%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}
.empty-state {
  padding: 75px 20px;
  text-align: center;
}
.empty-state__mark {
  display: block;
  margin-bottom: 12px;
  color: var(--electric);
  font-size: 46px;
  line-height: 1;
}
.empty-state h3 {
  margin-bottom: 6px;
  font-size: 23px;
  letter-spacing: -0.04em;
}
.empty-state p {
  max-width: 350px;
  margin: 0 auto 22px;
  color: var(--ink-soft);
  font-size: 13px;
}
.noscript-note {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}
.noscript-note a {
  color: var(--electric);
  text-decoration: underline;
}

.docs {
  padding: 128px 0 140px;
  color: var(--white);
  background: #17171b;
}
.eyebrow--light {
  color: var(--lime);
}
.section-heading--light .section-heading__aside {
  color: #9b99a0;
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
  border: 1px solid #38373e;
  border-radius: var(--radius-md);
  background: #222126;
}
.doc-card--featured {
  background: linear-gradient(145deg, #2a2734, #202025 68%);
  border-color: #554c71;
}
.doc-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 51px;
  color: #8b8794;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}
.doc-card__topline span:first-child {
  color: var(--lime);
}
.doc-card h3 {
  margin-bottom: 11px;
  font-size: 24px;
  letter-spacing: -0.055em;
}
.doc-card p {
  min-height: 64px;
  margin-bottom: 20px;
  color: #a4a1a9;
  font-size: 12px;
  line-height: 1.6;
}
.doc-card code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.75;
}
.doc-card pre {
  min-height: 115px;
  margin: 0 0 24px;
  padding: 14px;
  overflow-x: auto;
  color: #e8e5ec;
  background: #18181c;
  border: 1px solid #36343c;
  border-radius: 9px;
}
.code-muted {
  color: #77737f;
}
.code-string {
  color: #c9ff8c;
}
.code-tag {
  color: #eaa5ff;
}
.code-key {
  color: #83cdfb;
}
.code-var {
  color: #ffadcf;
}
.code-number {
  color: #ffda86;
}
.doc-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--lime);
  font-size: 13px;
  font-weight: 790;
}
.doc-card__link span {
  font-size: 18px;
  transition: transform 0.2s ease;
}
.doc-card__link:hover span {
  transform: translateX(4px);
}

.downloads {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 110px;
  padding-top: 140px;
  padding-bottom: 150px;
}
.download-intro > p:not(.eyebrow) {
  max-width: 315px;
  margin: 22px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
}
.download-list {
  border-top: 1px solid var(--line);
}
.download-item {
  display: grid;
  grid-template-columns: 47px 1fr 20px;
  align-items: center;
  gap: 17px;
  min-height: 75px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.2s ease,
    background 0.2s ease;
}
.download-item:hover {
  padding-inline: 12px;
  background: rgba(255, 255, 255, 0.54);
}
.download-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  color: var(--electric);
  background: #ede8ff;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}
.download-item b,
.download-item small {
  display: block;
}
.download-item b {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}
.download-item small {
  margin-top: 3px;
  color: #8b888d;
  font-size: 10px;
}
.download-item__arrow {
  color: var(--electric);
  font-size: 19px;
}

.site-footer {
  padding: 32px 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand--footer .brand__logo {
  width: 122px;
}
.site-footer p {
  margin: 0;
  color: #8c898d;
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 22px;
  color: #656269;
  font-size: 13px;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 17, 22, 0.64);
  backdrop-filter: blur(8px);
}
.modal-backdrop[hidden] {
  display: none;
}
.detail-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  animation: modal-in 0.25s ease both;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: rgba(24, 24, 28, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-size: 23px;
  line-height: 1;
}
.detail-modal__preview {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 210px;
  padding: 20px 22px;
  color: var(--white);
  background: linear-gradient(120deg, #704cff, #ef63bc);
}
.detail-modal__preview-label,
.detail-modal__preview-id {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}
.detail-modal__preview-label {
  opacity: 0.8;
}
.detail-modal__preview-id {
  font-size: 12px;
}
.detail-modal__body {
  padding: 28px;
}
.detail-modal__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.detail-modal__heading .eyebrow {
  margin-bottom: 11px;
}
.detail-modal__heading h2 {
  font-size: 42px;
}
.detail-modal__angle {
  margin: 26px 0 0;
  color: #89868c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}
.detail-modal__swatches {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}
.detail-swatch {
  flex: 1;
  min-width: 0;
  padding-top: 28px;
  border-radius: 6px;
}
.detail-swatch small {
  display: block;
  margin-top: 8px;
  color: #858188;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}
.contrast-guidance {
  margin: 0 0 20px;
  padding: 10px 12px;
  color: #5e5a64;
  background: #ebe8e0;
  border-radius: 7px;
  font-size: 13px;
}
.contrast-guidance strong {
  color: var(--ink);
}
.detail-code {
  padding: 15px;
  overflow-x: auto;
  color: #eae7ef;
  background: #1b1a1f;
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.7;
}
.detail-code__line {
  white-space: nowrap;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.detail-actions .copy-button {
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}
.detail-actions .copy-button:hover {
  color: var(--electric);
  border-color: var(--electric);
}
.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  max-width: min(320px, calc(100% - 44px));
  padding: 11px 15px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 920px) {
  :root {
    --shell: min(100% - 36px, 700px);
  }
  .main-nav {
    margin-left: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 60px;
  }
  .hero__copy {
    max-width: 600px;
  }
  .hero-art {
    width: min(100%, 580px);
    min-height: 420px;
    margin: -6px auto 0;
  }
  .gradient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .doc-card {
    min-height: 0;
  }
  .downloads {
    grid-template-columns: 1fr;
    gap: 58px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
  .section-heading__aside {
    margin: 0;
  }
  .ticker__track {
    justify-content: flex-start;
    overflow: hidden;
  }
}
@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 32px);
    --radius-md: 15px;
  }
  .site-header {
    height: 76px;
  }
  .brand__logo {
    width: 126px;
  }
  .main-nav {
    display: none;
  }
  .header-cta {
    padding: 9px 11px;
    font-size: 10px;
  }
  .header-cta span:first-child {
    display: none;
  }
  .hero {
    min-height: 0;
    padding: 59px 0 70px;
  }
  .hero h1 {
    font-size: clamp(52px, 16vw, 76px);
  }
  .hero__lede {
    font-size: 16px;
  }
  .hero__actions {
    align-items: start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 42px;
  }
  .hero__proof {
    gap: 20px;
  }
  .hero__proof span + span::before {
    left: -11px;
  }
  .hero-art {
    min-height: 325px;
  }
  .hero-art__shape--back {
    top: 24px;
    height: 175px;
  }
  .hero-art__shape--middle {
    top: 77px;
    height: 195px;
  }
  .hero-art__shape--front {
    top: 81px;
    height: 211px;
  }
  .hero-art__stamp {
    top: 22px;
    left: 25px;
    width: 38px;
    height: 38px;
    font-size: 10px;
  }
  .hero-art__caption {
    right: 22px;
    bottom: 25px;
    font-size: 14px;
  }
  .hero-art__note {
    width: 110px;
    font-size: 7px;
  }
  .hero-art__note--top {
    top: 8px;
  }
  .hero-art__note--bottom {
    bottom: 2px;
  }
  .ticker__track {
    min-height: 56px;
    gap: 17px;
    font-size: 12px;
  }
  .ticker i {
    font-size: 12px;
  }
  .library,
  .docs {
    padding-top: 82px;
    padding-bottom: 88px;
  }
  .section-heading {
    margin-bottom: 40px;
  }
  .section-heading h2,
  .downloads h2 {
    font-size: 48px;
  }
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-box {
    width: 100%;
  }
  .filter-group {
    overflow-x: auto;
  }
  .filter-row {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }
  .filter-scroll {
    max-width: 100%;
  }
  .select-filters {
    justify-content: space-between;
  }
  .select-label {
    flex: 1;
    justify-content: space-between;
  }
  .select-label select {
    width: 68px;
  }
  .gradient-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gradient-card__preview {
    min-height: 185px;
  }
  .doc-card__topline {
    margin-bottom: 30px;
  }
  .downloads {
    gap: 44px;
    padding-top: 88px;
    padding-bottom: 98px;
  }
  .download-item {
    gap: 10px;
  }
  .download-item__icon {
    width: 35px;
  }
  .site-footer__inner {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
  .detail-modal__body {
    padding: 22px 18px;
  }
  .detail-modal__heading h2 {
    font-size: 34px;
  }
  .detail-modal__preview {
    min-height: 180px;
  }
  .detail-actions .copy-button {
    flex: 1 1 calc(50% - 8px);
  }
}
span.detail-swatch > small {
  background-color: white;
  padding: 4px 8px;
  border-radius: 4px;
}
