:root {
  color-scheme: light;
  --ink: #182333;
  --muted: #657187;
  --line: #e1e6ee;
  --blue: #265dff;
  --pale: #f5f7fb;
  --navy: #101827
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body.xg-v2 {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  color: var(--blue)
}

img {
  max-width: 100%;
  height: auto
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  padding: 8px 14px;
  z-index: 99
}

.skip-link:focus {
  left: 8px
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97)
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  margin-top: 5px
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font-size: 22px;
  letter-spacing: -.08em
}

.brand-dot {
  color: #7ca5ff
}

.primary-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap
}

.primary-nav a {
  padding: 8px 0
}

.hero {
  overflow: hidden;
  background: linear-gradient(145deg, #f9fbff 0%, #eef3fc 56%, #e9f0fd 100%);
  border-bottom: 1px solid var(--line)
}

.hero-inner {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 64px;
  padding-block: 82px
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 16px
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39b98a;
  margin-right: 6px
}

.hero h1,
.page-hero h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.18;
  letter-spacing: -.055em;
  margin: 0 0 24px;
  font-weight: 850
}

.hero h1 em {
  font-style: normal;
  color: var(--blue)
}

.hero-lead,
.page-hero>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 30px
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .2s, background .2s
}

.button:hover {
  transform: translateY(-2px)
}

.button-primary {
  background: var(--blue);
  color: #fff
}

.button-primary:hover {
  background: #184bdc;
  color: #fff
}

.button-outline {
  border: 1px solid #bfc9da;
  color: var(--ink);
  background: #fff
}

.button-light {
  background: #fff;
  color: var(--navy)
}

.hero-art {
  height: 380px;
  border-radius: 17px;
  background: #141e32;
  color: #adc5ff;
  box-shadow: 0 28px 55px rgba(19, 39, 81, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: rotate(2deg)
}

.art-top,
.art-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px;
  font: 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .07em
}

.art-top {
  border-bottom: 1px solid #2a3650
}

.art-lights {
  color: #7c8eb1;
  letter-spacing: .25em
}

.art-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  padding: 35px 45px;
  background: radial-gradient(circle at 78% 20%, #224886 0, transparent 40%)
}

.art-prompt {
  font: 19px ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #fff
}

.art-line {
  height: 7px;
  width: 53%;
  border-radius: 4px;
  background: #314970
}

.art-line-long {
  width: 76%
}

.art-line-short {
  width: 34%
}

.art-pill {
  margin-top: 14px;
  border: 1px solid #647fad;
  color: #b7cdfc;
  border-radius: 6px;
  padding: 7px 10px;
  font: 11px ui-monospace, SFMono-Regular, Consolas, monospace
}

.art-bottom {
  border-top: 1px solid #2a3650
}

.section {
  padding-block: 85px
}

.section-tinted {
  background: var(--pale)
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px
}

.section h2,
.open-source h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.04em;
  line-height: 1.25;
  margin: 0
}

.text-link {
  font-size: 14px;
  font-weight: 750;
  color: var(--blue);
  white-space: nowrap
}

.empty-panel {
  border: 1px dashed #bcc9df;
  border-radius: 14px;
  background: #fafcff;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 42px 46px
}

.empty-panel strong {
  font-size: 19px
}

.empty-panel p {
  color: var(--muted);
  margin: 7px 0 0
}

.empty-icon {
  font-size: 36px;
  color: var(--blue);
  line-height: 1
}

.empty-large {
  min-height: 240px
}

.project-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px
}

.project-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-width: 0
}

.project-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover
}

.project-card-body,
.article-card-body {
  padding: 24px
}

.project-card h3,
.article-card h3 {
  margin: 3px 0 10px;
  font-size: 20px;
  line-height: 1.4
}

.project-card p,
.article-card p {
  color: var(--muted);
  margin: 0 0 17px
}

.tech-list,
.source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px
}

.tech-list span {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eff3fb;
  color: #536782
}

.card-actions {
  display: flex;
  gap: 15px;
  margin-top: 18px
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.build-grid span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 700
}

.video-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px
}

.video-panel img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px
}

.video-panel h3 {
  font-size: 25px;
  margin: 0 0 10px
}

.video-panel p {
  color: var(--muted)
}

.section-dark {
  background: var(--navy);
  color: #fff
}

.open-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px
}

.open-source .eyebrow {
  color: #9bb7ff
}

.open-source p:not(.eyebrow) {
  color: #b5c0d2
}

.source-tags span {
  border: 1px solid #46536b;
  border-radius: 5px;
  padding: 5px 9px;
  color: #ccd6e6;
  font-size: 12px
}

.article-cover {
  display: block;
  aspect-ratio: 16/9;
  background: var(--pale)
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.article-card time {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700
}

.page-hero {
  padding-block: 86px 65px;
  border-bottom: 1px solid var(--line)
}

.page-hero h1 {
  max-width: 850px
}

.page-hero>p:not(.eyebrow) {
  max-width: 730px;
  margin-bottom: 0
}

.page-hero .button-row {
  margin-top: 28px
}

.section-after-hero {
  min-height: 360px
}

.about-copy {
  max-width: 820px
}

.about-copy>p {
  font-size: 20px;
  line-height: 2;
  color: #3f4c61
}

.about-copy .button-row {
  margin-top: 30px
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  gap: 70px
}

.detail-layout h2 {
  font-size: 24px;
  margin: 0 0 16px
}

.detail-layout h2:not(:first-child) {
  margin-top: 40px
}

.detail-layout aside {
  border-left: 1px solid var(--line);
  padding-left: 30px
}

.detail-layout aside p {
  margin-top: 26px
}

.detail-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 35px
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px
}

.screenshots img {
  width: 100%;
  border-radius: 7px
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 35px
}

.pagination a {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 35px;
  text-align: center;
  padding: 4px 8px
}

.pagination a[aria-current] {
  color: #fff;
  background: var(--blue)
}

.site-footer {
  background: #f6f8fb;
  border-top: 1px solid var(--line);
  padding-top: 48px
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px
}

.footer-brand {
  font-size: 20px;
  font-weight: 850
}

.footer-brand span {
  font-size: 14px
}

.footer-inner p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px
}

.footer-inner nav .text-link {
  color: var(--ink)
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding-block: 18px;
  margin-top: 42px
}

a:focus-visible {
  outline: 3px solid #7ea4ff;
  outline-offset: 3px
}

@media(max-width:900px) {
  .hero-inner {
    gap: 35px
  }

  .hero-art {
    height: 300px
  }

  .art-content {
    padding: 26px
  }

  .primary-nav {
    gap: 15px
  }

  .project-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:640px) {
  .shell {
    width: min(100% - 32px, 1180px)
  }

  .header-inner {
    min-height: 70px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 11px
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 18px
  }

  .brand {
    font-size: 14px
  }

  .brand small {
    font-size: 9px
  }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 5px;
    font-size: 13px
  }

  .hero-inner {
    min-height: 0;
    display: block;
    padding-block: 64px
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    letter-spacing: -.055em
  }

  .hero-lead,
  .page-hero>p:not(.eyebrow) {
    font-size: 16px
  }

  .hero-art {
    height: 220px;
    max-width: 430px;
    margin: 48px auto 0;
    transform: rotate(1deg)
  }

  .art-prompt {
    font-size: 15px
  }

  .section {
    padding-block: 62px
  }

  .section-heading {
    align-items: flex-start
  }

  .project-grid,
  .article-grid,
  .build-grid {
    grid-template-columns: 1fr
  }

  .build-grid {
    gap: 8px
  }

  .build-grid span {
    padding: 15px 18px
  }

  .empty-panel {
    padding: 27px 22px;
    gap: 17px
  }

  .empty-icon {
    font-size: 27px
  }

  .open-source,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column
  }

  .video-panel,
  .detail-layout {
    grid-template-columns: 1fr
  }

  .detail-layout aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0
  }

  .page-hero {
    padding-block: 65px 50px
  }

  .about-copy>p {
    font-size: 17px
  }

  .footer-bottom {
    margin-top: 32px
  }
}

@media(max-width:390px) {
  .button-row .button {
    width: 100%
  }

  .hero h1 {
    font-size: 34px
  }

  .section-heading {
    flex-direction: column;
    gap: 9px
  }

  .hero-art {
    margin-top: 36px
  }
}

:where(.xg-v2) .primary-nav a:focus-visible {
  border-radius: 3px
}

@media(max-width:640px) {
  .primary-nav {
    flex-wrap: wrap;
    overflow: visible;
    gap: 4px 18px
  }
}
