:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --background: #ffffff;
  --surface: rgba(255, 255, 255, 0.8);
  --line: #eaeaea;
  --muted: #666;
  --primary: #0068d7;
  --primary-bright: #3291ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #111;
  background:
    radial-gradient(circle at 72% 26%, rgba(0, 112, 243, 0.07), transparent 27%),
    var(--background);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.ambient,
.grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.ambient {
  filter: blur(110px);
  opacity: 0.12;
}

.ambient-left {
  width: 440px;
  height: 440px;
  top: 28%;
  left: -310px;
  border-radius: 50%;
  background: #0070f3;
}

.ambient-right {
  width: 620px;
  height: 620px;
  top: 7%;
  right: -410px;
  border-radius: 50%;
  background: #3291ff;
}

.grid {
  z-index: -1;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header,
main,
footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
}

.header-actions,
.github-link,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 24px;
}

.github-link {
  gap: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 520;
  transition: color 180ms ease;
}

.github-link:hover {
  color: #000;
}

.github-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.language-switcher {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
}

.language-button {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #888;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.language-button:hover {
  color: #333;
}

.language-button.active {
  color: #111;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(440px, 0.82fr) minmax(660px, 1.18fr);
  align-items: center;
  gap: 68px;
  padding: 48px 0 96px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eyebrow-mark img {
  display: block;
  border-radius: 5px;
}

h1 {
  max-width: 610px;
  margin: 28px 0 0;
  font-size: clamp(54px, 5.25vw, 80px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
}

.headline-primary {
  word-spacing: 0.12em;
}

.gradient-text {
  margin-top: 4px;
  color: transparent;
  background: linear-gradient(108deg, #111 5%, #0068d7 58%, #3291ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 550px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.primary-button,
.secondary-button {
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button {
  gap: 10px;
  padding: 0 19px;
  color: #fff;
  background: #111;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.14);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #333;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

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

.button-version {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 560;
}

.secondary-button {
  gap: 4px;
  min-width: 112px;
  padding: 0 15px;
  border: 1px solid #e5e5e5;
  color: #333;
  background: #fff;
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: #aaa;
  background: #fafafa;
}

.secondary-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.quark-button {
  gap: 8px;
}

.quark-button-mark {
  color: #0070f3;
  font-size: 15px;
  font-weight: 750;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 25px;
  color: #888;
  font-size: 11px;
  font-weight: 550;
}

.platform-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.platform-list svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.product-visual {
  position: relative;
  min-width: 0;
  transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
}

.visual-glow {
  position: absolute;
  width: 78%;
  height: 60%;
  top: 21%;
  left: 14%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 112, 243, 0.12);
  filter: blur(92px);
}

.screenshot-wrap {
  overflow: hidden;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.06);
}

.screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid #e6e6e6;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
  transform: translateZ(50px);
}

.floating-card > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.floating-card strong {
  color: #222;
  font-size: 11px;
  font-weight: 620;
}

.floating-card small {
  color: #888;
  font-size: 9px;
}

.floating-icon,
.ready-check {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.floating-icon {
  color: #0070f3;
  background: rgba(0, 112, 243, 0.08);
}

.floating-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.ready-check {
  color: #0070f3;
  background: rgba(0, 112, 243, 0.08);
}

.ready-check svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.local-card {
  left: -28px;
  bottom: 7%;
}

.ready-card {
  right: -23px;
  top: 14%;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 84px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(0, 112, 243, 0.035), transparent 42%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.035);
  backdrop-filter: blur(14px);
}

.download-panel-label {
  color: #0070f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-panel h2 {
  margin: 8px 0 0;
  font-size: 23px;
  font-weight: 570;
  letter-spacing: -0.025em;
}

.download-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.download-links > a {
  min-width: 250px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #eaeaea;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.download-links > a:hover {
  border-color: #999;
  background: #fff;
}

.download-link-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #333;
  background: #f5f5f5;
}

.download-link-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.quark-icon {
  color: #0070f3;
  font-size: 15px;
  font-weight: 750;
}

.download-links a > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-links strong {
  font-size: 12px;
  font-weight: 630;
}

.download-links small {
  color: #888;
  font-size: 9px;
}

.link-arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #999;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 30px;
  color: #999;
  font-size: 10px;
}

footer p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

footer a {
  color: #666;
  transition: color 180ms ease;
}

footer a:hover {
  color: #111;
}

.footer-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ccc;
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: minmax(380px, 0.88fr) minmax(540px, 1.12fr);
    gap: 42px;
  }

  .ready-card {
    right: -8px;
  }

  .local-card {
    left: -16px;
  }

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-links {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .site-header,
  main,
  footer {
    width: min(100% - 40px, 720px);
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 80px 0 100px;
  }

  .hero-copy {
    max-width: 660px;
    padding: 0;
  }

  h1 {
    font-size: clamp(54px, 11vw, 76px);
  }

  .product-visual {
    width: calc(100% - 36px);
    margin-inline: auto;
    transform: none;
  }

  .download-panel {
    margin-bottom: 56px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 74px;
  }

  .brand span,
  .github-link span {
    display: none;
  }

  .header-actions {
    gap: 13px;
  }

  .hero {
    gap: 48px;
    padding: 58px 0 76px;
  }

  h1 {
    margin-top: 24px;
    font-size: clamp(48px, 15.5vw, 66px);
  }

  .hero-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 30px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .platform-list {
    gap: 11px 15px;
  }

  .product-visual {
    width: 100%;
  }

  .screenshot-wrap {
    border-radius: 12px;
  }

  .floating-card {
    display: none;
  }

  .download-panel {
    gap: 24px;
    padding: 24px 20px;
  }

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

  .download-links > a {
    min-width: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
