:root {
  --ink: #142033;
  --muted: #44556c;
  --soft: #6a7b90;
  --paper: #e7eef6;
  --paper-2: #f7f9fc;
  --card: #ffffff;
  --line: rgba(20, 32, 51, 0.1);
  --line-strong: rgba(20, 32, 51, 0.16);
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --cyan: #0c9bb8;
  --amber: #e09412;
  --green: #15803d;
  --green-bg: rgba(22, 163, 74, 0.12);
  --warn: #c2410c;
  --warn-bg: #fff6eb;
  --shadow: 0 22px 50px rgba(20, 32, 51, 0.12), 0 2px 8px rgba(20, 32, 51, 0.05);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background-color: #e4edf6;
  background-image:
    radial-gradient(880px 460px at 100% -12%, rgba(224, 148, 18, 0.28), transparent 58%),
    radial-gradient(720px 520px at -12% 6%, rgba(12, 155, 184, 0.24), transparent 56%),
    linear-gradient(rgba(20, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 51, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

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

a { color: var(--blue-deep); }

a:hover { color: var(--blue); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(228, 237, 246, 0.78);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(20, 32, 51, 0.08), 0 6px 16px rgba(12, 155, 184, 0.25);
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: 8px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6, var(--blue));
  color: white;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 8px 18px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover { background: var(--blue-deep); color: white; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }

.btn-small { min-height: 36px; font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0 28px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
}

h1 em {
  font-style: italic;
  color: #0b6f86;
}

.lead {
  margin: 18px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
}

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

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.stage {
  position: relative;
  padding: 18px 16px 14px;
  border-radius: 30px;
  background:
    radial-gradient(420px 220px at 8% 110%, rgba(14, 184, 212, 0.55), transparent 70%),
    radial-gradient(380px 240px at 100% -10%, rgba(240, 160, 26, 0.5), transparent 68%),
    linear-gradient(165deg, #1a2633, #101820 55%, #0e1c22);
  box-shadow: 0 28px 60px rgba(16, 24, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.stage::before {
  width: 140px;
  height: 140px;
  right: -30px;
  top: -36px;
  border: 18px solid rgba(240, 160, 26, 0.55);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(18deg);
}

.stage::after {
  width: 120px;
  height: 120px;
  left: -28px;
  bottom: 28px;
  border: 16px solid rgba(14, 184, 212, 0.5);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(12deg);
}

.app {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 16px 16px 18px;
}

.app-bar, .app-status, .workspace-line, .score-row, .attention-head, .download-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.app-brand img { width: 22px; height: 22px; border-radius: 6px; }

.pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f3f6fb;
}

.pill-blue {
  background: var(--blue);
  color: white;
}

.app-status {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-bg);
  display: inline-block;
  margin-right: 6px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  background: #f3f6fb;
  border-radius: 12px;
  font-size: 13px;
  color: var(--soft);
  text-align: center;
}

.tabs span { padding: 7px 4px; border-radius: 9px; }

.tabs .on {
  background: white;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 32, 51, 0.06);
}

.workspace-line {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef5ff;
  color: #2451b8;
  font-size: 12px;
}

.app-body {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 12px;
  margin-top: 12px;
}

.score-row { align-items: flex-start; justify-content: flex-start; }

.ring {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#16a34a 0 331deg, #e6edf5 331deg 360deg);
  display: grid;
  place-items: center;
  margin-right: 12px;
}

.ring span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
}

.score-copy h3, .attention-head h3, .panel h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.score-copy p, .mini p, .panel p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.checks span {
  font-size: 11px;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 999px;
  padding: 3px 7px;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.agent-grid li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 58px;
}

.agent-grid strong { display: block; font-size: 13px; }

.agent-grid span { color: var(--soft); font-size: 12px; }

.attention {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(#fff, #fbfcfe);
}

.count {
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.note {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--warn-bg);
}

.note strong { display: block; font-size: 13px; }

.note p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.caption {
  position: relative;
  z-index: 1;
  margin: 12px 6px 2px;
  color: rgba(232, 240, 248, 0.72);
  font-size: 12px;
}

.band {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
}

.section { padding: 72px 0; }

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
}

.section-lead {
  max-width: 40rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 22px;
  min-height: 210px;
  box-shadow: 0 10px 30px rgba(20, 32, 51, 0.04);
  overflow: hidden;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
}

.steps li:nth-child(1)::before { background: var(--cyan); }
.steps li:nth-child(2)::before { background: var(--blue); }
.steps li:nth-child(3)::before { background: var(--amber); }

.step-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.steps h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 28px;
}

.steps p { margin: 8px 0 0; color: var(--muted); }

.runtime-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.runtime-row li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px 14px;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.runtime-row li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(20, 32, 51, 0.08);
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, #fff, #f3f7fb 70%);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.mark img { width: 22px; height: 22px; }

.runtime-row strong { display: block; font-size: 15px; }

.runtime-row span { display: block; margin-top: 4px; color: var(--soft); font-size: 13px; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.safety-board {
  margin: 12px 0 8px;
  padding: 36px 32px;
  border-radius: 28px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(14, 184, 212, 0.28), transparent 60%),
    radial-gradient(360px 200px at 100% 100%, rgba(240, 160, 26, 0.18), transparent 55%),
    #121a24;
  box-shadow: 0 24px 50px rgba(16, 24, 32, 0.18);
}

.safety-board h2 { color: #f4f7fb; }

.safety-board .section-lead { color: rgba(228, 236, 244, 0.74); }

.safety {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.safety li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 14px;
  padding: 14px 16px;
}

.safety strong { display: block; }

.safety span { color: var(--muted); font-size: 15px; }

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 22px rgba(20, 32, 51, 0.04);
}

.download-panel {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 8px 16px;
  box-shadow: var(--shadow);
}

.download-top {
  padding: 14px 14px 4px;
}

.release-meta {
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.cards { padding: 0 8px; }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  overflow: hidden;
}

.card h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 99px;
  background: var(--soft);
  vertical-align: 1px;
}

.card[data-slot="macos-arm64"] h3::before { background: var(--cyan); }
.card[data-slot="windows-x64"] h3::before { background: var(--blue); }
.card[data-slot="linux-appimage"] h3::before { background: var(--amber); }

.yours {
  display: none;
  align-self: flex-start;
  color: var(--blue-deep);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}

.card.is-yours {
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.card.is-yours .yours { display: inline-flex; }

.card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

.card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }

.file {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
  word-break: break-all;
}

.card .btn { align-self: flex-start; }

.cli {
  margin: 14px 10px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.cli summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

pre {
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: #142033;
  color: #e7eef6;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer {
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 14px; }

.site-footer a { color: var(--muted); text-decoration: none; }

.site-footer a:hover { color: var(--ink); }

.nav-skills {
  display: none;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.skill-tease {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.skill-tease a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.skill-tease a:hover { border-color: rgba(37, 99, 235, 0.4); color: var(--ink); }

.skill-tease span {
  color: var(--soft);
  font-weight: 500;
  font-size: 13px;
}

.market-hero { padding: 48px 0 8px; }

.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.market { padding-bottom: 12px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 16px;
}

.filter {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter.on {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.05);
}

.skill-card[hidden] { display: none; }

.skill-top, .skill-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.skill-zh {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
}

.skill-card h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.skill-summary {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.skill-fits, .skill-by {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.skill-by {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.skill-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.skill-source {
  font-size: 14px;
  font-weight: 600;
}

.skill-card .btn { align-self: flex-start; margin-top: 6px; }

.add-steps { margin-top: 8px; }

.market-next { margin: 18px 0 0; }

.market-status { color: var(--muted); }

.missing { color: var(--warn); }

@media (max-width: 980px) {
  .hero, .split, .runtime-row, .steps, .cards, .app-body, .panels, .skill-tease, .skill-grid {
    grid-template-columns: 1fr;
  }


  .runtime-row { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }

  .hero { padding-top: 28px; }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }

  .agent-grid, .runtime-row { grid-template-columns: 1fr 1fr; }

  .tabs { font-size: 11px; }

  .nav-cta .btn-ghost { display: none; }

  .nav-skills { display: inline-flex; }

  h1 { font-size: 40px; }
}

@media (max-width: 980px) {
  .safety-board { padding: 24px 18px; }
  .stage::before, .stage::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .runtime-row li { transition: none; }
}
