:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #111116;
  --surface-2: #0b0b0f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --muted: #9aa1ab;
  --muted-2: #7c838e;
  --blue: #2f6bff;
  --blue-soft: #7ea1ff;
  --green: #4ade80;
  --max: 1400px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(47, 107, 255, 0.16), transparent 62%),
    radial-gradient(700px 400px at 0% 18%, rgba(47, 107, 255, 0.05), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #08080a;
  font-size: 13px;
  font-weight: 650;
}
.skip-link:focus { top: 16px; }

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.1;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.site-header > * { min-width: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
  color: var(--muted);
}
.site-nav a { transition: color 150ms ease; }
.site-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 13px;
}
.text-link { color: var(--muted); transition: color 150ms ease; }
.text-link:hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.button svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.button-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.24);
}
.button-primary:hover { background: #1d4ed8; }
.button-primary .version {
  margin-left: 2px;
  color: #f0f5ff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}
.button-ghost {
  border-color: var(--border-strong);
  background: #121216;
  color: var(--text);
}
.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: #17171c;
}
.button-light {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f5f6f8;
  color: #08080a;
  font-size: 12.5px;
}
.button-light:hover { background: #fff; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 24px;
}

.hero-copy { min-width: 0; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 7px 11px;
  border: 1px solid rgba(47, 107, 255, 0.35);
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.08);
  color: #8fb0ff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 10px var(--blue);
}

h1 {
  font-size: clamp(3rem, 5.7vw, 5.15rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  max-width: 31rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-list svg {
  width: 13px;
  height: 13px;
  color: var(--blue-soft);
}

.hero-visual {
  position: relative;
  min-width: 0;
}
.shot-frame {
  position: relative;
  z-index: 1;
  padding: 8px;
  border: 1px solid rgba(47, 107, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.09), rgba(255, 255, 255, 0.015));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(47, 107, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}
.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 11px;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.shot-card { margin: 0; }
.shot-card .shot-frame { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.shot-card figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
  border-top: 1px solid var(--border);
}

.section-heading { margin-bottom: 46px; }
.section-heading.center { text-align: center; }
.section-heading .eyebrow {
  margin: 0 0 14px;
  color: var(--blue-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 400px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006) 40%, rgba(255, 255, 255, 0) 100%),
    var(--surface);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 54px;
  border: 1px solid rgba(47, 107, 255, 0.35);
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-soft);
}
.icon-box svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.feature-card code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(47, 107, 255, 0.12);
  color: #c7d5f6;
  font-family: var(--mono);
  font-size: 0.86em;
  white-space: nowrap;
}

.cli {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}

.cli-copy { min-width: 0; }
.cli-copy h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.cli-copy h2 span { color: var(--muted-2); }

.cli-list {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.cli-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.cli-item .icon-box {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 10px;
}
.cli-item .icon-box svg {
  width: 18px;
  height: 18px;
}
.cli-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.cli-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.terminal {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #09090c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a31;
}
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-body {
  margin: 0;
  padding: 24px 22px 28px;
  overflow-x: auto;
  color: #c8ccd4;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term-line { display: block; }
.prompt { color: #6f96ff; }
.dim { color: #8b93a1; }
.ok { color: #6ee7a0; }
.term-gap {
  display: block;
  height: 12px;
}
.terminal-cursor {
  color: #6f96ff;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 28px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  gap: 64px;
  padding-bottom: 52px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p {
  max-width: 300px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.socials a:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.socials svg {
  width: 15px;
  height: 15px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-col h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col a {
  color: var(--muted);
  font-size: 13px;
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 11.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: var(--text); }
.local-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
  }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-top: 56px;
  }
  .hero-visual { max-width: 720px; }

  .cli {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { min-height: 0; }
  .icon-box { margin-bottom: 28px; }
  .shot-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-header { padding: 16px; }
  .hero,
  .section,
  .site-footer { padding-left: 18px; padding-right: 18px; }

  h1 { font-size: clamp(2.7rem, 12vw, 3.5rem); }

  .hero-actions .button { width: 100%; }
  .trust-list { gap: 12px 16px; }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .terminal-body {
    padding: 18px 16px;
    font-size: 11px;
  }

  .site-nav { gap: 20px; }
}

@media (max-width: 380px) {
  .header-actions .text-link { display: none; }
  .button-light { padding: 0 12px; }
}

html[lang="zh-CN"] body.home { line-height: 1.75; }

html[lang="zh-CN"] h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.08;
}

html[lang="zh-CN"] .site-nav,
html[lang="zh-CN"] .header-actions { letter-spacing: 0; }

html[lang="zh-CN"] .eyebrow-pill,
html[lang="zh-CN"] .eyebrow,
html[lang="zh-CN"] .footer-col h2 { letter-spacing: 0.03em; }

@media (max-width: 560px) {
  html[lang="zh-CN"] h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .site-nav a,
  .text-link,
  .socials a,
  .footer-col a { transition: none; }
  .terminal-cursor { animation: none; }
}
