:root {
  --ink: #111318;
  --muted: #626976;
  --line: #dfe3ea;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --night: #090b10;
  --night-soft: #151922;
  --blue: #2f74ff;
  --blue-dark: #1859d4;
  --mint: #50e3b5;
  --yellow: #ffe9a6;
  --max: 1180px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow: 0 24px 80px rgba(17, 19, 24, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font: inherit;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

:focus-visible {
  outline: 3px solid rgba(47, 116, 255, 0.42);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(223, 227, 234, 0.88);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-lockup,
.product-lockup,
.header-brands,
.header-nav {
  display: flex;
  align-items: center;
}

.header-brands {
  min-width: 0;
  gap: 16px;
}

.brand-lockup {
  gap: 10px;
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-lockup img,
.product-lockup img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.product-lockup {
  min-width: 0;
  gap: 10px;
  color: #363c47;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.product-lockup img {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(17, 19, 24, 0.1);
}

.header-nav {
  gap: 22px;
  color: #4c5360;
  font-size: 14px;
  font-weight: 720;
}

.header-nav a:hover {
  color: var(--ink);
}

.header-nav .nav-github,
.language-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
}

.language-link {
  min-width: 52px;
  padding-inline: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 740px;
  display: grid;
  align-items: center;
  padding: 92px 0 112px;
  background:
    radial-gradient(780px 520px at 84% 30%, rgba(47, 116, 255, 0.28), transparent 68%),
    radial-gradient(620px 420px at 10% 88%, rgba(80, 227, 181, 0.13), transparent 72%),
    var(--night);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  gap: 68px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 880;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9d2ff;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero h1 {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(43px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

:lang(zh-CN) .hero h1 {
  font-size: clamp(42px, 4.7vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: #c5cad3;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.72;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 820;
  box-shadow: 0 12px 32px rgba(47, 116, 255, 0.22);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.14);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #bfc5cf;
  font-size: 12px;
  font-weight: 720;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.5);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
}

.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid #e8e9ec;
  background: #f4f4f5;
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d4d9;
}

.window-bar i:first-child { background: #ff6259; }
.window-bar i:nth-child(2) { background: #ffbd2e; }
.window-bar i:nth-child(3) { background: #28c840; }

.hero-screenshot {
  width: 100%;
  aspect-ratio: 1.27;
  display: block;
  object-fit: cover;
  object-position: 50% 10%;
  background: #fff;
}

.plugin-ready {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: min(290px, 54%);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.plugin-ready img {
  width: 48px;
  height: 48px;
  border: 1px solid #e6e8ec;
  border-radius: 15px;
  background: #fff;
  padding: 6px;
}

.plugin-ready b,
.plugin-ready span {
  display: block;
}

.plugin-ready b {
  font-size: 15px;
}

.plugin-ready span {
  margin-top: 5px;
  color: #68707d;
  font-size: 12px;
  line-height: 1.35;
}

.section {
  padding: 112px 0;
}

.section-head {
  max-width: 760px;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .section-kicker {
  justify-content: center;
}

.section h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-intro {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.downloads {
  background:
    linear-gradient(rgba(17, 19, 24, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.032) 1px, transparent 1px),
    var(--soft);
  background-size: 40px 40px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.platform-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  background: var(--paper);
  box-shadow: 0 20px 64px rgba(17, 19, 24, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.platform-card:hover,
.platform-card[data-recommended="true"] {
  transform: translateY(-4px);
  border-color: rgba(47, 116, 255, 0.48);
  box-shadow: 0 26px 78px rgba(47, 116, 255, 0.13);
}

.platform-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: rgba(47, 116, 255, 0.08);
}

.platform-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.platform-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #101318;
  color: #fff;
}

.platform-icon svg {
  width: 28px;
  height: 28px;
}

.recommendation {
  display: none;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e8f0ff;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 850;
}

.platform-card[data-recommended="true"] .recommendation {
  display: inline-flex;
}

.platform-card h3 {
  margin: 26px 0 0;
  font-size: 29px;
  line-height: 1.15;
}

.platform-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.platform-card .button {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0;
}

.download-note {
  max-width: 820px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px auto 0;
  color: #68707d;
  font-size: 13px;
  line-height: 1.6;
}

.download-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.showcase {
  overflow: hidden;
  background: #fff;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-pills span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fafbfc;
  color: #39404b;
  font-size: 13px;
  font-weight: 760;
}

.shot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
  gap: 22px;
  align-items: start;
  margin-top: 52px;
}

.shot-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #f8f9fb;
  box-shadow: var(--shadow);
}

.shot-frame {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(17, 19, 24, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.03) 1px, transparent 1px),
    #f4f6f8;
  background-size: 34px 34px;
  padding: 14px;
}

.shot-frame img {
  width: 100%;
  display: block;
  border: 1px solid #e1e3e7;
  border-radius: 16px;
  background: #fff;
}

.shot-card figcaption {
  padding: 26px 28px 30px;
  background: #fff;
}

.shot-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.22;
}

.shot-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.install {
  position: relative;
  overflow: hidden;
  background: #0d1118;
  color: #fff;
}

.install::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  background: rgba(80, 227, 181, 0.12);
  filter: blur(4px);
}

.install .section-kicker {
  color: var(--mint);
}

.install .section-intro {
  color: #b9c0ca;
}

.install-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1.2fr);
  gap: 74px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.step h3,
.step p {
  margin: 0;
}

.step h3 {
  font-size: 16px;
}

.step p {
  margin-top: 6px;
  color: #aeb5c0;
  font-size: 13px;
  line-height: 1.55;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: #05070a;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.4);
}

.terminal-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 18px;
  background: #151922;
  color: #9ba3af;
  font-size: 12px;
  font-weight: 760;
}

.copy-button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 820;
}

.terminal-body {
  min-height: 236px;
  display: flex;
  align-items: center;
  padding: 30px;
}

.terminal-body code {
  color: #f5f7fa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(13px, 1.45vw, 16px);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.terminal-body code::before {
  content: "$";
  margin-right: 14px;
  color: var(--mint);
  font-weight: 900;
}

.terminal-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px;
  color: #9da5b1;
  font-size: 13px;
  line-height: 1.6;
}

.final-cta {
  padding: 96px 0;
  background:
    radial-gradient(560px 300px at 80% 50%, rgba(47, 116, 255, 0.18), transparent 72%),
    #f3f6fb;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 50px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.cta-card p {
  max-width: 670px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.cta-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  padding: 44px 0;
  background: #080a0e;
  color: #9299a5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.footer-grid p {
  max-width: 760px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: #d8dbe0;
  font-size: 13px;
  font-weight: 720;
}

@media (max-width: 1040px) {
  .hero-grid,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

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

  .hero-visual {
    width: min(820px, 96%);
    margin: 10px auto 0;
  }

  .install-layout {
    gap: 48px;
  }

  .terminal-card {
    max-width: 760px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .header-nav .nav-link {
    display: none;
  }

  .header-nav {
    gap: 9px;
  }

  .header-nav .nav-github {
    padding-inline: 13px;
  }

  .platform-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .platform-card {
    min-height: 290px;
  }

  .shot-grid {
    max-width: 720px;
    margin-inline: auto;
    margin-top: 42px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-lockup span,
  .brand-divider,
  .header-nav .nav-github {
    display: none;
  }

  .brand-lockup img {
    width: 34px;
    height: 34px;
  }

  .product-lockup img {
    width: 32px;
    height: 32px;
  }

  .product-lockup {
    font-size: 13px;
  }

  .language-link {
    min-height: 38px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 88px;
  }

  .hero h1,
  :lang(zh-CN) .hero h1 {
    margin-top: 20px;
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    padding-inline: 18px;
  }

  .hero-visual {
    width: 100%;
    margin-top: 0;
  }

  .app-window {
    border-radius: 18px;
    transform: none;
  }

  .window-bar {
    height: 34px;
  }

  .hero-screenshot {
    aspect-ratio: 1.08;
  }

  .plugin-ready {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 26px);
    margin: -20px auto 0;
    border-radius: 18px;
  }

  .section {
    padding: 82px 0;
  }

  .section h2 {
    font-size: clamp(32px, 9.4vw, 44px);
  }

  .section-intro {
    font-size: 16px;
  }

  .platform-grid {
    margin-top: 34px;
  }

  .platform-card {
    min-height: 305px;
    border-radius: 24px;
    padding: 26px;
  }

  .platform-card h3 {
    font-size: 25px;
  }

  .shot-card {
    border-radius: 22px;
  }

  .shot-frame {
    padding: 8px;
  }

  .shot-frame img {
    border-radius: 12px;
  }

  .shot-card figcaption {
    padding: 22px;
  }

  .step {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }

  .step-number {
    width: 38px;
    height: 38px;
  }

  .terminal-card {
    border-radius: 22px;
  }

  .terminal-body {
    min-height: 190px;
    padding: 24px 20px;
  }

  .final-cta {
    padding: 70px 0;
  }

  .cta-card {
    border-radius: 26px;
    padding: 30px 24px;
  }
}

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

  .button,
  .platform-card {
    transition: none;
  }
}
