:root {
  --ink: #16181d;
  --ink-soft: #5f636b;
  --muted: #8b9098;
  --line: #e6e8ec;
  --line-strong: #d9dce2;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --blue: #365cf5;
  --blue-dark: #2447d8;
  --green: #159a70;
  --orange: #ed7d31;
  --shadow: 0 18px 60px rgba(28, 34, 51, 0.08);
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin: 0 auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  background: transparent;
  border-radius: 6px;
}

.announcement {
  min-height: 40px;
  color: #fff;
  background: #1c1f25;
}

.announcement.is-hidden {
  display: none;
}

.announcement__inner {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
}

.announcement__inner p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 10px;
}

.announcement__inner p span {
  color: #c8cbd2;
}

.announcement__inner > a {
  color: #98b1ff;
  font-weight: 600;
}

.announcement__inner > a:hover {
  color: #fff;
}

.announcement__dot {
  width: 7px;
  height: 7px;
  background: #7da2ff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(125, 162, 255, 0.15);
}

.announcement__close {
  position: absolute;
  right: 0;
  width: 32px;
  height: 32px;
  color: #bfc2ca;
}

.announcement__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(222, 225, 231, 0.85);
  box-shadow: 0 8px 24px rgba(25, 29, 40, 0.05);
}

.site-header__inner {
  display: grid;
  min-height: 72px;
  min-width: 0;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  display: block;
  width: 142px;
  height: auto;
}

.brand__mark {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 4px;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: #ffe761;
  border-radius: 8px;
  transform: rotate(-5deg);
}

.brand__mark i {
  display: block;
  background: var(--ink);
  border-radius: 2px;
}

.brand__mark i:nth-child(2),
.brand__mark i:nth-child(3) {
  background: var(--blue);
}

.brand__name {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.brand__name span {
  color: var(--blue);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.desktop-nav a {
  position: relative;
  padding: 9px 17px;
  color: #3f434a;
  font-size: 15px;
  border-radius: 8px;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: #f4f5f7;
}

.desktop-nav a.is-active {
  color: var(--ink);
  font-weight: 700;
  background: #f0f1f3;
}

.header-action {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.header-action:hover {
  background: #2d3037;
  transform: translateY(-1px);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(255, 246, 235, 0.95) 0%, rgba(255, 255, 255, 0.97) 40%, rgba(235, 249, 255, 0.96) 72%, rgba(246, 242, 255, 0.94) 100%);
  border-bottom: 1px solid #f0f1f3;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(62, 83, 132, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 83, 132, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, #000 38%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 480px;
  padding-top: 74px;
  padding-bottom: 50px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero h1 {
  width: 100%;
  max-width: 900px;
  margin: 0;
  color: #0c0d10;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span {
  color: var(--blue);
}

.hero__description {
  width: 100%;
  max-width: 720px;
  margin: 20px auto 0;
  color: #6e737c;
  font-size: 17px;
  line-height: 1.8;
}

.project-search {
  display: grid;
  width: min(100%, 940px);
  min-height: 62px;
  margin-top: 40px;
  padding: 6px;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dfe2e8;
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(43, 54, 85, 0.08);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.project-search:focus-within {
  border-color: #91a8ff;
  box-shadow: 0 16px 50px rgba(43, 54, 85, 0.1), 0 0 0 4px rgba(54, 92, 245, 0.08);
}

.project-search__icon {
  display: grid;
  color: #787e88;
  place-items: center;
}

.project-search input {
  width: 100%;
  height: 48px;
  padding: 0 10px 0 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.project-search input::placeholder {
  color: #a7abb2;
}

.project-search button {
  height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.project-search button:hover {
  background: #2d3037;
}

.hero__stats {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #747983;
  font-size: 13px;
}

.hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero__stats span + span::before {
  width: 3px;
  height: 3px;
  margin-right: 18px;
  background: #b9bdc5;
  border-radius: 50%;
  content: "";
}

.hero__stats strong {
  color: #31353c;
}

.projects-section {
  padding: 74px 0 100px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2,
.about-band h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-heading > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading > p strong {
  color: var(--ink);
}

.project-toolbar {
  display: flex;
  min-height: 70px;
  margin-top: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-tabs button {
  min-height: 38px;
  padding: 0 16px;
  color: #686d76;
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
}

.filter-tabs button:hover {
  color: var(--ink);
  background: #f5f6f8;
}

.filter-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: #eef0f3;
  font-weight: 700;
}

.sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-control select {
  min-width: 126px;
  height: 40px;
  padding: 0 34px 0 12px;
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  font-size: 13px;
}

.sort-control select:focus {
  border-color: #8fa6ff;
  box-shadow: 0 0 0 3px rgba(54, 92, 245, 0.08);
}

.sort-control > span {
  position: absolute;
  right: 10px;
  color: #797e87;
  pointer-events: none;
}

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

.project-loading {
  display: flex;
  min-height: 280px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #8a8f98;
  font-size: 13px;
}

.project-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 254px;
  padding: 24px;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card::after {
  position: absolute;
  right: -35px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, transparent 25%, var(--project-soft) 25% 45%, transparent 45% 58%, var(--project-soft) 58% 74%, transparent 74%);
  content: "";
  opacity: 0.6;
  transform: rotate(-12deg);
  pointer-events: none;
}

.project-card:hover {
  z-index: 2;
  border-color: #cfd4df;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-card:focus-within {
  border-color: #8da5ff;
  box-shadow: 0 0 0 4px rgba(54, 92, 245, 0.08);
}

.project-card__link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.project-card__link:focus {
  outline: 0;
}

.project-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.project-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--project-color);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 20px rgba(33, 39, 61, 0.12);
  font-size: 15px;
  font-weight: 900;
  place-items: center;
}

.project-icon--image {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.project-icon--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-icon--vector svg {
  width: 55%;
  height: 55%;
}

.project-card__category,
.detail-category {
  display: inline-flex;
  min-height: 26px;
  padding: 0 9px;
  align-items: center;
  color: var(--project-deep);
  background: var(--project-soft);
  border: 1px solid color-mix(in srgb, var(--project-color) 18%, white);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.project-card__body {
  position: relative;
  z-index: 2;
  margin-top: 19px;
  pointer-events: none;
}

.project-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0;
}

.project-card__description {
  display: -webkit-box;
  min-height: 50px;
  margin: 9px 0 0;
  overflow: hidden;
  color: #6d727b;
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: auto;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
  color: #969aa2;
  font-size: 12px;
  pointer-events: none;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-card__arrow {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #f3f4f6;
  border-radius: 50%;
  place-items: center;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.project-card:hover .project-card__arrow {
  color: #fff;
  background: var(--ink);
  transform: translateX(2px);
}

.empty-state {
  display: flex;
  min-height: 340px;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fafbfc;
  border: 1px dashed #d9dce2;
  border-radius: 8px;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 54px;
  height: 54px;
  color: #858a94;
  background: #eef0f3;
  border-radius: 50%;
  place-items: center;
}

.empty-state h3 {
  margin: 18px 0 3px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state button {
  margin-top: 18px;
  padding: 9px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  font-size: 13px;
}

.about-band {
  padding: 74px 0;
  background: #f5f6f8;
  border-top: 1px solid #eceef1;
  border-bottom: 1px solid #eceef1;
}

.about-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 100px;
}

.about-band h2 {
  max-width: 480px;
}

.about-band__inner > p {
  max-width: 650px;
  margin: 7px 0 0;
  color: #61666f;
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  padding: 28px 0;
  background: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand--footer .brand__mark {
  width: 27px;
  height: 27px;
}

.brand--footer .brand__logo {
  width: 128px;
}

.brand--footer .brand__name {
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #8b9099;
  font-size: 13px;
}

.site-footer p:last-child {
  justify-self: end;
}

.toast {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100% - 48px));
  padding: 12px 16px;
  color: #fff;
  background: #1d2026;
  border-radius: 7px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Project detail */
.detail-page {
  background: #fff;
}

.detail-loading {
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  font-size: 14px;
}

.loading-mark {
  width: 30px;
  height: 30px;
  border: 3px solid #e6e8ec;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.breadcrumb-wrap {
  padding-top: 24px;
  background: #fafbfc;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92969e;
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span:last-child {
  max-width: 360px;
  overflow: hidden;
  color: #4e535b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero {
  padding: 34px 0 66px;
  background:
    linear-gradient(116deg, #fafbfc 0%, #fff 47%, var(--project-soft) 140%);
  border-bottom: 1px solid var(--line);
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 74px;
}

.detail-hero__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-hero__identity .project-icon {
  width: 66px;
  height: 66px;
  font-size: 18px;
}

.detail-hero__identity-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.detail-hero h1 {
  margin: 24px 0 0;
  font-size: 42px;
  line-height: 1.24;
  letter-spacing: 0;
}

.detail-hero__lead {
  max-width: 650px;
  margin: 16px 0 0;
  color: #646a73;
  font-size: 16px;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  padding: 5px 9px;
  color: #60656e;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
}

.detail-actions {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.primary-button:hover {
  background: #2d3037;
}

.secondary-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcdfe5;
}

.secondary-button:hover {
  border-color: #b8bdc7;
  background: #fafafa;
}

.detail-trust {
  display: flex;
  margin-top: 20px;
  align-items: center;
  gap: 7px;
  color: #858a93;
  font-size: 12px;
}

.detail-trust svg {
  color: var(--green);
}

.app-visual {
  position: relative;
  min-width: 0;
  padding: 22px;
  background: var(--project-color);
  border-radius: 8px;
  box-shadow: 0 28px 80px color-mix(in srgb, var(--project-color) 26%, transparent);
}

.app-visual::before {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 84px;
  height: 84px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 8px, transparent 8px 16px);
  border-radius: 50%;
  content: "";
}

.app-visual--image {
  padding: 0;
  overflow: hidden;
  background: #f0f2f5;
  aspect-ratio: 16 / 10;
}

.app-visual--image::before {
  display: none;
}

.app-visual--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-preview-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 0 8px;
  align-items: center;
  color: #8b5c08;
  background: #fff5df;
  border: 1px solid #f1dfb6;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.app-window {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 342px;
  overflow: hidden;
  grid-template-columns: 122px 1fr;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  box-shadow: 0 24px 50px rgba(23, 27, 42, 0.2);
}

.app-window__sidebar {
  padding: 20px 14px;
  background: #f6f7f9;
  border-right: 1px solid #e8e9ed;
}

.app-window__logo {
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-window__logo i {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--project-color);
  border-radius: 6px;
}

.app-window__logo span {
  width: 42px;
  height: 7px;
  background: #cfd3da;
  border-radius: 4px;
}

.app-window__nav {
  display: grid;
  margin-top: 28px;
  gap: 10px;
}

.app-window__nav i {
  display: block;
  width: 100%;
  height: 28px;
  background: #e7e9ed;
  border-radius: 5px;
}

.app-window__nav i:first-child {
  background: var(--project-soft);
  box-shadow: inset 3px 0 0 var(--project-color);
}

.app-window__content {
  min-width: 0;
  padding: 19px 20px 22px;
}

.app-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-window__bar div:first-child {
  display: grid;
  gap: 7px;
}

.app-window__bar div:first-child i:first-child {
  width: 105px;
  height: 10px;
  background: #282c32;
  border-radius: 5px;
}

.app-window__bar div:first-child i:last-child {
  width: 165px;
  height: 6px;
  background: #d9dce2;
  border-radius: 4px;
}

.app-window__bar > i {
  width: 74px;
  height: 27px;
  background: var(--project-color);
  border-radius: 5px;
}

.app-window__metric-row {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.app-window__metric {
  min-width: 0;
  padding: 12px;
  background: #fafbfc;
  border: 1px solid #e8eaee;
  border-radius: 6px;
}

.app-window__metric i {
  display: block;
  width: 45%;
  height: 6px;
  background: #d7dae0;
  border-radius: 4px;
}

.app-window__metric b {
  display: block;
  width: 68%;
  height: 15px;
  margin-top: 10px;
  background: #464b54;
  border-radius: 4px;
}

.app-window__workspace {
  display: grid;
  min-height: 165px;
  margin-top: 12px;
  padding: 15px;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  background: #fafbfc;
  border: 1px solid #e8eaee;
  border-radius: 6px;
}

.app-window__document {
  display: grid;
  align-content: start;
  gap: 9px;
}

.app-window__document i {
  display: block;
  width: 100%;
  height: 6px;
  background: #d7dae0;
  border-radius: 4px;
}

.app-window__document i:nth-child(2) {
  width: 82%;
}

.app-window__document i:nth-child(4) {
  width: 68%;
}

.app-window__analysis {
  display: flex;
  padding: 12px;
  justify-content: end;
  flex-direction: column;
  background: var(--project-soft);
  border-radius: 5px;
}

.app-window__analysis i:first-child {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  align-self: flex-end;
  background: conic-gradient(var(--project-color) 0 74%, rgba(255, 255, 255, 0.9) 74% 100%);
  border: 7px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.app-window__analysis i:not(:first-child) {
  width: 100%;
  height: 6px;
  margin-top: 7px;
  background: color-mix(in srgb, var(--project-color) 28%, white);
  border-radius: 4px;
}

.detail-content {
  padding: 72px 0 100px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 80px;
}

.detail-section + .detail-section {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.detail-section__heading {
  max-width: 700px;
}

.detail-section__heading .section-kicker {
  margin-bottom: 8px;
}

.detail-section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
}

.detail-section__heading > p:last-child {
  margin: 10px 0 0;
  color: #777c85;
  font-size: 14px;
}

.prose {
  margin-top: 24px;
  color: #555b64;
  line-height: 1.95;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-item {
  min-height: 170px;
  padding: 22px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-item__icon {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--project-deep);
  background: var(--project-soft);
  border-radius: 7px;
  place-items: center;
}

.feature-item h3 {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.feature-item p {
  margin: 7px 0 0;
  color: #727780;
  font-size: 13px;
  line-height: 1.75;
}

.demo-stage {
  position: relative;
  display: grid;
  min-height: 440px;
  margin-top: 28px;
  overflow: hidden;
  background: #1b1e24;
  border-radius: 8px;
  place-items: center;
}

.demo-stage video,
.demo-stage iframe {
  width: 100%;
  min-height: 440px;
  border: 0;
}

.demo-stage__visual {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(135deg, transparent 0 40%, color-mix(in srgb, var(--project-color) 45%, transparent) 40% 62%, transparent 62%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px);
}

.demo-stage__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
}

.demo-stage__content button {
  display: grid;
  width: 64px;
  height: 64px;
  padding-left: 4px;
  color: var(--ink);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  place-items: center;
  transition: transform 160ms ease;
}

.demo-stage__content button:hover {
  transform: scale(1.06);
}

.demo-stage__content h3 {
  margin: 19px 0 2px;
  font-size: 17px;
}

.demo-stage__content p {
  margin: 0;
  color: #afb3bc;
  font-size: 13px;
}

.download-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.download-option {
  position: relative;
  display: flex;
  min-height: 184px;
  padding: 20px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-option__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cloud-mark {
  display: grid;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--cloud-color);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  place-items: center;
}

.download-option h3 {
  margin: 0;
  font-size: 15px;
}

.download-option p {
  margin: 12px 0 0;
  color: #858a93;
  font-size: 12px;
}

.download-option a,
.download-option button {
  display: flex;
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  background: #f5f6f8;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.download-option a:hover,
.download-option button:hover {
  color: #fff;
  background: var(--ink);
}

.download-note {
  display: flex;
  margin-top: 16px;
  padding: 13px 15px;
  align-items: flex-start;
  gap: 9px;
  color: #747983;
  background: #f7f8fa;
  border-left: 3px solid var(--blue);
  font-size: 12px;
  line-height: 1.7;
}

.detail-aside {
  position: sticky;
  top: 104px;
}

.aside-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.aside-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.aside-section h2 {
  margin: 0 0 16px;
  font-size: 15px;
}

.info-list {
  display: grid;
  margin: 0;
  gap: 13px;
}

.info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.info-list dt {
  color: #8c9199;
}

.info-list dd {
  margin: 0;
  color: #40454d;
  text-align: right;
}

.changelog-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.changelog-list li {
  position: relative;
  padding-left: 14px;
  color: #6f747d;
  font-size: 12px;
  line-height: 1.7;
}

.changelog-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--project-color);
  border-radius: 50%;
  content: "";
}

.related-list {
  display: grid;
  gap: 10px;
}

.related-item {
  display: grid;
  padding: 10px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
}

.related-item:hover {
  background: #f7f8fa;
  border-color: var(--line);
}

.related-item .project-icon {
  width: 38px;
  height: 38px;
  font-size: 11px;
}

.related-item__text {
  min-width: 0;
}

.related-item strong,
.related-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item strong {
  font-size: 12px;
}

.related-item__text span {
  color: #959aa2;
  font-size: 11px;
}

.related-item > span {
  color: #a0a4ab;
}

.not-found {
  display: flex;
  min-height: 600px;
  padding: 60px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.not-found__code {
  color: #d8dbe1;
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
}

.not-found h1 {
  margin: 20px 0 0;
  font-size: 28px;
}

.not-found p {
  margin: 8px 0 22px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: 150px 1fr 150px;
  }

  .desktop-nav a {
    padding-right: 12px;
    padding-left: 12px;
  }

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

  .detail-hero__grid {
    gap: 40px;
  }

  .app-window {
    min-height: 310px;
    grid-template-columns: 95px 1fr;
  }

  .app-window__sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .detail-layout {
    gap: 50px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-option {
    min-height: 150px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .announcement__inner {
    padding-right: 40px;
    justify-content: flex-start;
  }

  .announcement__inner p span,
  .announcement__inner > a,
  .announcement__dot {
    display: none;
  }

  .site-header__inner {
    min-height: 64px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-action {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    color: var(--ink);
    background: #f3f4f6;
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid transparent;
    transition: max-height 220ms ease, border-color 220ms ease;
  }

  .mobile-nav.is-open {
    max-height: 240px;
    border-color: var(--line);
  }

  .mobile-nav a {
    padding: 14px 20px;
    color: #555a63;
    border-bottom: 1px solid #f0f1f3;
  }

  .mobile-nav a.is-active {
    color: var(--blue);
    font-weight: 700;
  }

  .hero__inner {
    min-height: 450px;
    padding-top: 60px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero__description {
    max-width: 610px;
    font-size: 15px;
  }

  .project-search {
    margin-top: 32px;
  }

  .project-toolbar {
    padding: 14px 0;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .filter-tabs {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .filter-tabs button {
    flex: 0 0 auto;
  }

  .sort-control {
    width: 100%;
  }

  .sort-control select {
    width: 100%;
  }

  .about-band__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer__inner > p:nth-child(2) {
    display: none;
  }

  .detail-hero__grid {
    grid-template-columns: 1fr;
  }

  .detail-hero__copy {
    order: 1;
  }

  .detail-hero__visual {
    order: 2;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    border-top: 1px solid var(--line);
  }

  .aside-section,
  .aside-section:first-child {
    padding-top: 26px;
    border-top: 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .announcement__inner {
    font-size: 12px;
  }

  .brand__name {
    font-size: 19px;
  }

  .hero__inner {
    min-height: 430px;
    padding-top: 48px;
    min-width: 0;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.28;
    word-break: break-word;
  }

  .hero__description {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.75;
  }

  .project-search {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin-top: 28px;
    padding: 5px;
    grid-template-columns: 38px 1fr 46px;
    border-radius: 10px;
  }

  .project-search input {
    min-width: 0;
    height: 44px;
    font-size: 14px;
  }

  .project-search button {
    width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .project-search button::before {
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 auto;
    border: 2px solid #fff;
    border-radius: 50%;
    content: "";
  }

  .project-search button::after {
    display: block;
    width: 6px;
    height: 2px;
    margin: -1px 0 0 24px;
    background: #fff;
    content: "";
    transform: rotate(45deg);
  }

  .hero__stats {
    width: 100%;
    gap: 10px;
    font-size: 11px;
  }

  .hero__stats span + span::before {
    margin-right: 6px;
  }

  .projects-section {
    padding: 56px 0 72px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading h2,
  .about-band h2 {
    font-size: 25px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 238px;
  }

  .about-band {
    padding: 56px 0;
  }

  .about-band__inner > p {
    font-size: 14px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer p:last-child {
    justify-self: start;
  }

  .breadcrumb-wrap {
    padding-top: 18px;
  }

  .breadcrumb span:last-child {
    max-width: 180px;
  }

  .detail-hero {
    padding: 26px 0 50px;
  }

  .detail-hero__grid {
    gap: 38px;
  }

  .detail-hero h1 {
    margin-top: 20px;
    font-size: 32px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-button,
  .secondary-button {
    padding: 0 12px;
    font-size: 13px;
  }

  .app-visual {
    padding: 12px;
  }

  .app-window {
    min-height: 260px;
    grid-template-columns: 62px 1fr;
  }

  .app-window__sidebar {
    padding: 14px 7px;
  }

  .app-window__logo span {
    display: none;
  }

  .app-window__content {
    padding: 15px 12px;
  }

  .app-window__bar div:first-child i:last-child {
    width: 110px;
  }

  .app-window__bar > i {
    width: 45px;
  }

  .app-window__metric-row {
    gap: 6px;
  }

  .app-window__metric {
    padding: 8px;
  }

  .app-window__workspace {
    min-height: 130px;
    padding: 10px;
  }

  .detail-content {
    padding: 54px 0 72px;
  }

  .detail-section + .detail-section {
    margin-top: 54px;
    padding-top: 54px;
  }

  .detail-section h2 {
    font-size: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 155px;
  }

  .demo-stage,
  .demo-stage video,
  .demo-stage iframe {
    min-height: 310px;
  }

  .detail-aside {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .aside-section + .aside-section {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
