:root {
  --background: #06101c;
  --text: #f5f9ff;
  --muted: #94a6bb;
  --blue: #6dbdff;
  --line: rgba(169, 204, 241, 0.13);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 23%, rgba(32, 117, 208, 0.2), transparent 32%),
    radial-gradient(circle at 7% 88%, rgba(19, 66, 116, 0.2), transparent 30%),
    linear-gradient(135deg, #071422 0%, #06101c 44%, #040b14 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

::selection {
  color: #fff;
  background: rgba(57, 145, 234, 0.72);
}

.shell {
  width: min(1320px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 9px;
  color: #06101c;
  background: #fff;
  transform: translateY(-160%);
}

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

.official-notice {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #1d1404;
  background: linear-gradient(90deg, #f6c15a, #f2ad32);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.official-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 39px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.official-notice-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #f7c55f;
  background: #241804;
  font-size: 11px;
  font-weight: 800;
}

.official-notice p {
  max-width: 900px;
  margin: 0;
  font-size: 12px;
  font-weight: 690;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
}

.ambient {
  position: fixed;
  top: 8%;
  right: -13%;
  z-index: -2;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: rgba(20, 116, 220, 0.14);
  filter: blur(120px);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(151, 190, 231, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 190, 231, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  pointer-events: none;
}

.site-header {
  padding-top: 22px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 105, 222, 0.28);
}

.brand > span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 15px;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.brand em {
  font-size: 10px;
  font-style: normal;
  vertical-align: 2px;
}

.brand small {
  color: #75889e;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.nav > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: #a9b9cb;
  font-size: 12px;
  font-weight: 570;
  transition: color 160ms ease, background 160ms ease;
}

.nav > a:hover,
.nav > a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav .nav-github {
  margin-left: 4px;
  color: #06101c;
  background: #f7fbff;
}

.nav .nav-github:hover,
.nav .nav-github:focus-visible {
  color: #06101c;
  background: #e5f3ff;
}

.nav-github svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.language-switch button {
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #8095ab;
  background: transparent;
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  color: #fff;
}

.language-switch button[aria-pressed="true"] {
  color: #07111e;
  background: #f5faff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 5vw, 78px);
  align-items: center;
  min-height: calc(100svh - 190px);
  padding-top: clamp(74px, 8vh, 110px);
  padding-bottom: clamp(70px, 9vh, 120px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 2px;
}

h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 680;
  line-height: 1.09;
  letter-spacing: -0.055em;
}

h1 .blue {
  color: #79c2ff;
}

h1 a {
  background: linear-gradient(95deg, #fff 4%, #c6e5ff 56%, #78bdff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 160ms ease;
}

h1 a:hover,
h1 a:focus-visible {
  filter: brightness(1.12);
}

.summary {
  max-width: 560px;
  margin: 31px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #06101c;
  background: #f7fbff;
  box-shadow: 0 12px 34px rgba(102, 183, 255, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e5f3ff;
  box-shadow: 0 16px 40px rgba(102, 183, 255, 0.24);
}

.button-primary svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.button-secondary {
  border-color: var(--line);
  color: #d7e5f4;
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(169, 204, 241, 0.25);
  background: rgba(255, 255, 255, 0.055);
}

.platforms {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 28px 0 0;
  color: #70849a;
  font-size: 10px;
  letter-spacing: 0.025em;
}

.platforms span {
  color: #40566d;
}

.preview {
  position: relative;
  margin: 0;
  filter: drop-shadow(0 48px 80px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 55px rgba(0, 91, 185, 0.1));
}

.preview::before {
  position: absolute;
  inset: 8% 12%;
  z-index: -1;
  border-radius: 50%;
  content: "";
  background: rgba(28, 119, 217, 0.24);
  filter: blur(90px);
}

.preview img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.footer-feedback,
.icp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8fa4ba;
  font-size: 10px;
  transition: color 160ms ease;
}

.footer-feedback:hover,
.footer-feedback:focus-visible,
.icp:hover,
.icp:focus-visible {
  color: #fff;
}

:focus-visible {
  outline: 2px solid #78c2ff;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 95px;
  }

  .hero-copy {
    max-width: 700px;
  }

  h1 {
    max-width: 700px;
    font-size: clamp(52px, 7.4vw, 72px);
  }

  .summary {
    max-width: 660px;
  }

  .preview {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 36px, 560px);
  }

  .site-header {
    padding-top: 16px;
  }

  .header-inner {
    min-height: 54px;
  }

  .brand img {
    width: 35px;
    height: 35px;
    border-radius: 9px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 8px;
  }

  .nav-releases {
    display: none !important;
  }

  .nav .nav-github {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero {
    gap: 50px;
    padding-top: 72px;
    padding-bottom: 74px;
  }

  h1 {
    font-size: clamp(42px, 11.4vw, 58px);
    line-height: 1.1;
  }

  .summary {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.9;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .button {
    width: 100%;
  }

  .platforms {
    margin-top: 22px;
  }

  .preview img {
    border-radius: 16px;
  }

  .site-footer {
    gap: 12px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .official-notice-inner {
    align-items: flex-start;
    gap: 8px;
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .official-notice p {
    font-size: 11px;
    text-align: left;
  }

  .footer-feedback,
  .icp {
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .nav .nav-github {
    width: 38px;
    padding: 0;
    font-size: 0;
  }

  .nav-github > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
