:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --surface: #111316;
  --line: #2b2e33;
  --text: #f1f2f3;
  --muted: #9b9fa6;
  --accent: #e8392f;
  --cyan: #7ab9c9;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(8 9 11 / 78%);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.telegram-link,
.hero-actions,
.primary-action,
.icon-action,
.about-contact a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

nav {
  gap: 26px;
  color: #c6c8cc;
  font-size: 13px;
}

nav a:hover {
  color: #fff;
}

.telegram-link {
  gap: 8px;
}

.header-icon-link {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
}

.header-icon-link:hover {
  border-color: #fff;
}

svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: min(880px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(5 6 8 / 96%) 0%, rgb(5 6 8 / 74%) 34%, rgb(5 6 8 / 15%) 68%, rgb(5 6 8 / 8%) 100%),
    linear-gradient(0deg, rgb(5 6 8 / 68%) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, calc(100% - 44px));
  margin-left: max(22px, calc((100vw - var(--max)) / 2));
  padding-top: 70px;
}

.eyebrow,
.field-number,
.status,
.hero-index,
footer {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 0;
  color: #f4f1eb;
  font-size: clamp(54px, 8vw, 116px);
  font-weight: 500;
  line-height: .9;
}

h1 span {
  color: #cfe2e5;
}

.chinese-name {
  margin: 18px 0 30px;
  color: #e2c3aa;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 34px;
  color: #c1c4ca;
  font-size: 17px;
}

.hero-actions {
  gap: 12px;
}

.primary-action {
  min-height: 48px;
  gap: 28px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.primary-action:hover {
  background: #ff473b;
}

.icon-action {
  width: 48px;
  height: 48px;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 36%);
}

.icon-action:hover {
  border-color: #fff;
}

.hero-index {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 20px;
  color: #a5a8ad;
  font-size: 10px;
}

.fields,
footer {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.fields {
  padding: 110px 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 50px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.12;
}

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

.field-list {
  border-top: 1px solid var(--line);
}

.field-item {
  display: grid;
  grid-template-columns: 50px 52px 1fr 110px;
  gap: 20px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.field-item:hover {
  background: #101216;
}

.field-link {
  cursor: pointer;
}

.field-link:hover h3,
.field-link:hover .field-cta {
  color: #fff;
}

.field-cta {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  color: var(--cyan);
}

.field-cta svg {
  width: 13px;
  height: 13px;
}

.field-number,
.status {
  color: #747980;
  font-size: 10px;
}

.field-item > svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.field-item h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 500;
}

.field-item p {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.status {
  text-align: right;
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(260px, 1fr) minmax(280px, .8fr);
  gap: 32px;
  align-items: center;
  width: 100%;
  min-height: 154px;
  padding: 32px max(22px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.about::after {
  position: absolute;
  content: "";
}

.about::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg), rgb(11 12 14 / 58%) 52%, rgb(11 12 14 / 70%)),
    url("assets/studio-hero-v2.png") 78% 68% / cover no-repeat;
  opacity: .36;
}

.about-label {
  border-left: 1px solid var(--accent);
  padding-left: 14px;
}

.about-label .eyebrow {
  margin-bottom: 4px;
}

.alias {
  margin-bottom: 0;
  color: #f1ded0;
  font-size: 22px;
  font-weight: 500;
}

blockquote {
  margin: 0;
  color: #cfd1d4;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

.about-contact p {
  max-width: 390px;
  margin-bottom: 10px;
  color: #898e95;
  font-size: 12px;
}

.about-contact a {
  width: fit-content;
  gap: 10px;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 34px;
  color: #6f737a;
  font-size: 10px;
}

.secondary-action {
  min-height: 48px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 26%);
  color: #d4d6da;
  font-size: 14px;
}

.secondary-action:hover {
  border-color: #fff;
  color: #fff;
}

.product-page {
  background:
    radial-gradient(circle at 78% 8%, rgb(122 185 201 / 9%), transparent 28%),
    var(--bg);
}

.playground-page {
  background:
    linear-gradient(135deg, rgb(232 57 47 / 4%), transparent 34%),
    var(--bg);
}

.playground-hero,
.project-index {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.playground-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 70px;
  border-bottom: 1px solid var(--line);
}

.playground-hero h1 {
  max-width: 1120px;
  margin-bottom: 32px;
  font-size: clamp(54px, 7.5vw, 94px);
  line-height: .98;
}

.playground-hero > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: #b5b9bf;
  font-size: 17px;
}

.playground-index {
  position: absolute;
  right: 0;
  bottom: 72px;
  color: #62676e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.project-index {
  padding: 100px 0 120px;
}

.project-index-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
}

.project-index-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
}

.project-index-heading > p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: 70px 220px 1fr 110px;
  gap: 34px;
  align-items: center;
  min-height: 310px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgb(17 19 22 / 54%);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.project-card:hover {
  border-color: #555a62;
  background: #111418;
}

.project-card-number {
  align-self: start;
  color: #6c7178;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.project-card-icon {
  padding: 22px;
  border: 1px solid var(--line);
  background: #0c0d0f;
}

.project-card-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card-copy .eyebrow {
  margin-bottom: 16px;
}

.project-card-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
}

.project-card-copy h3 span {
  color: #cfe2e5;
}

.project-card-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: #888d94;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.project-card-action {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.project-card-action svg {
  width: 14px;
  height: 14px;
}

.product-hero,
.product-section,
.project-note {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.product-hero {
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: center;
  padding: 112px 0 58px;
  border-bottom: 1px solid var(--line);
}

.product-hero-copy h1 {
  margin: 18px 0 24px;
  font-size: clamp(54px, 7vw, 94px);
  line-height: .92;
}

.product-name-cn,
.product-name-en {
  display: block;
}

.product-hero-copy h1 .product-name-cn {
  color: #f4f1eb;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badges span,
.requirements span {
  border: 1px solid var(--line);
  color: #aeb2b8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.product-badges span {
  padding: 6px 9px;
}

.product-lead {
  max-width: 720px;
  margin-bottom: 12px;
  color: #bdc1c6;
  font-size: 18px;
}

.product-update {
  max-width: 720px;
  margin-bottom: 28px;
  color: #858a91;
  font-size: 13px;
}

.product-icon-wrap {
  display: grid;
  justify-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgb(17 19 22 / 72%);
}

.product-icon-wrap img {
  width: min(220px, 100%);
  height: auto;
  filter: drop-shadow(0 28px 40px rgb(0 0 0 / 42%));
}

.product-icon-wrap p {
  margin: 18px 0 0;
  color: #6f747b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.product-section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.release-strip,
.origin-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 64px;
  align-items: start;
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.release-strip h2,
.origin-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.12;
}

.release-points {
  border-top: 1px solid var(--line);
}

.release-points p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.origin-copy {
  border-top: 1px solid var(--line);
}

.origin-copy p {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.origin-copy a {
  display: flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.product-section-heading {
  max-width: 700px;
  margin-bottom: 36px;
}

.product-section h2,
.project-note h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.12;
}

.product-section-heading > p:last-child,
.install-copy > p,
.project-note > p {
  color: var(--muted);
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 640px);
  gap: 56px;
  align-items: start;
  justify-content: space-between;
}

#demo-title {
  scroll-margin-top: 96px;
}

.demo-section .product-section-heading {
  margin-bottom: 0;
  padding-top: 8px;
}

.demo-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid #34383e;
  background: #101216;
  box-shadow: 0 28px 70px rgb(0 0 0 / 24%);
}

.demo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article > span,
.step-list > li > span,
.command-panel-title {
  color: #70757c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.feature-grid svg {
  width: 28px;
  height: 28px;
  display: block;
  margin: 40px 0 20px;
  color: var(--accent);
}

.feature-grid h3,
.step-list h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
}

.feature-grid p,
.step-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.step-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step-list li > div {
  max-width: 700px;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.2fr);
  gap: 64px;
  align-items: center;
}

.requirements {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.requirements span {
  width: fit-content;
  padding: 7px 10px;
}

.command-panel,
.download-panel {
  overflow: hidden;
  border: 1px solid #34383e;
  background: #090a0c;
}

.command-panel-title,
.download-panel-title {
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #292c31;
  color: #70757c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.command-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: #c7dbdf;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.9;
}

.download-panel ol {
  margin: 0;
  padding: 8px 24px;
  list-style: none;
}

.download-panel li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #24272c;
}

.download-panel li span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.download-panel li p {
  margin: 0;
  color: #b7bbc1;
  font-size: 13px;
}

.download-action,
.release-link {
  display: flex;
  align-items: center;
}

.download-action {
  justify-content: space-between;
  margin: 24px;
  padding: 15px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.download-action:hover {
  background: #ff473b;
}

.release-link {
  width: fit-content;
  gap: 8px;
  margin: 0 24px 24px;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.project-note {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1fr) auto;
  gap: 50px;
  align-items: center;
  padding: 66px 0;
}

.project-note h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.project-note > p {
  margin-bottom: 0;
  font-size: 13px;
}

.project-note > a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 60px;
  }

  nav > a:not(.telegram-link) {
    display: none;
  }

  .product-page nav > .section-back,
  .product-page nav > a[href="#use"] {
    display: none;
  }

  .hero {
    min-height: 760px;
    align-items: flex-end;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgb(5 6 8 / 98%) 0%, rgb(5 6 8 / 72%) 52%, rgb(5 6 8 / 15%) 100%),
      linear-gradient(90deg, rgb(5 6 8 / 50%), transparent);
  }

  .hero-content {
    margin: 0 22px;
    padding: 0 0 76px;
  }

  h1 {
    font-size: 58px;
  }

  .section-heading,
  .about {
    grid-template-columns: 1fr;
  }

  .fields {
    padding: 78px 0 68px;
  }

  .section-heading {
    gap: 18px;
  }

  .field-item {
    grid-template-columns: 34px 32px 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .field-item .status {
    display: none;
  }

  .field-item h3 {
    font-size: 18px;
  }

  .about {
    grid-template-columns: 76px 1fr;
    gap: 18px;
    min-height: 210px;
    padding: 30px 22px;
  }

  .about::after {
    width: 52%;
    opacity: .2;
  }

  blockquote {
    font-size: 16px;
  }

  .about-contact {
    grid-column: 2;
  }

  .about-contact {
    max-width: 420px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .product-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 102px 0 52px;
  }

  .product-hero-copy h1 {
    font-size: 54px;
  }

  .product-icon-wrap {
    padding: 30px;
  }

  .product-icon-wrap img {
    width: 210px;
  }

  .product-section {
    padding: 58px 0;
  }

  .demo-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .demo-section .product-section-heading {
    padding-top: 0;
  }

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

  .feature-grid article {
    min-height: 200px;
  }

  .feature-grid svg {
    margin-top: 30px;
  }

  .install-section,
  .project-note,
  .release-strip,
  .origin-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .command-panel pre {
    padding: 18px;
    font-size: 10px;
  }

  .download-panel ol {
    padding-inline: 18px;
  }

  .download-action {
    margin-inline: 18px;
  }

  .release-link {
    margin-inline: 18px;
  }

  .project-note {
    padding: 56px 0;
  }

  .playground-hero {
    min-height: 540px;
    padding-top: 110px;
  }

  .playground-hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .playground-index {
    position: static;
    margin-top: 44px;
  }

  .project-index {
    padding: 72px 0 90px;
  }

  .project-index-heading,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-index-heading {
    gap: 18px;
  }

  .project-card {
    gap: 24px;
    padding: 24px;
  }

  .project-card-number {
    display: none;
  }

  .project-card-icon {
    width: 180px;
  }

  .project-card-action {
    justify-content: flex-start;
  }
}
