:root {
  color-scheme: light;
  --ink: #111418;
  --muted: #65707d;
  --line: #dce2e8;
  --paper: #f4f7f6;
  --surface: #ffffff;
  --charcoal: #20262d;
  --blue: #2f6fed;
  --green: #198c69;
  --gold: #b48a37;
  --shadow: 0 24px 70px rgba(32, 38, 45, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 246, 0.72)),
    radial-gradient(circle at 72% 18%, rgba(47, 111, 237, 0.12), transparent 34%),
    var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(17, 20, 24, 0.08);
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 20, 24, 0.16);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

main {
  overflow: hidden;
}

.hero,
.workflow,
.features,
.download {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: auto;
  padding: clamp(44px, 6vw, 76px) 0 clamp(26px, 5vw, 48px);
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 600px;
  margin-bottom: 30px;
  color: #3d4650;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.75;
}

.hero-text strong {
  color: var(--ink);
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(17, 20, 24, 0.14);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 720;
}

.button.primary {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
  box-shadow: 0 16px 34px rgba(32, 38, 45, 0.22);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.54);
}

.product-stage {
  position: relative;
  min-height: 482px;
}

.menu-bar {
  position: absolute;
  top: 28px;
  right: 0;
  left: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(32, 38, 45, 0.1);
  backdrop-filter: blur(20px);
}

.menu-bar span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 20, 24, 0.12), rgba(17, 20, 24, 0.04));
}

.menu-bar strong {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  letter-spacing: 0;
}

.document-window {
  position: absolute;
  top: 112px;
  right: 40px;
  left: 0;
  min-height: 322px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 247, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.window-controls span:nth-child(1) {
  background: #ed6a5e;
}

.window-controls span:nth-child(2) {
  background: #f4bf4f;
}

.window-controls span:nth-child(3) {
  background: #61c554;
}

.doc-lines {
  display: grid;
  gap: 18px;
  padding: clamp(8px, 2vw, 24px);
}

.doc-lines p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.selection,
.result {
  width: 100%;
  min-height: 62px;
  padding: 18px 20px;
  border-radius: 8px;
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.35;
}

.selection {
  border: 1px solid rgba(47, 111, 237, 0.28);
  background: rgba(47, 111, 237, 0.09);
  color: #173d8f;
}

.result {
  border: 1px solid rgba(25, 140, 105, 0.28);
  background: rgba(25, 140, 105, 0.1);
  color: #0f5f48;
  font-weight: 760;
}

.shortcut-pill {
  position: absolute;
  right: 0;
  bottom: 20px;
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(17, 20, 24, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(32, 38, 45, 0.14);
  backdrop-filter: blur(18px);
}

.shortcut-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 6px;
  background: #f9fafb;
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
  box-shadow: inset 0 -2px 0 rgba(17, 20, 24, 0.08);
}

.workflow,
.features,
.download {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid rgba(17, 20, 24, 0.1);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.feature-grid article {
  min-height: 196px;
  padding: 22px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.steps span {
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 820;
}

.steps strong,
.feature-grid h3 {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.steps p,
.feature-grid p,
.download p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.feature-grid article {
  min-height: 168px;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-bottom: clamp(76px, 10vw, 128px);
}

.command-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 8px;
  background: #181d22;
  box-shadow: var(--shadow);
}

.command-card code {
  display: block;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f0e8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(17, 20, 24, 0.1);
  color: var(--muted);
  font-size: 14px;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-stage {
    min-height: 460px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .hero,
  .workflow,
  .features,
  .download {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 64px;
    padding: 12px 14px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-stage {
    min-height: 420px;
  }

  .menu-bar {
    top: 0;
    left: 18px;
  }

  .document-window {
    top: 74px;
    right: 12px;
    min-height: 300px;
    padding: 16px;
  }

  .doc-lines {
    gap: 12px;
    padding: 0;
  }

  .selection,
  .result {
    min-height: 52px;
    padding: 14px;
    overflow-wrap: anywhere;
  }

  .shortcut-pill {
    right: 8px;
    bottom: 0;
    max-width: calc(100% - 16px);
    flex-wrap: wrap;
  }

  .shortcut-pill span {
    min-width: 36px;
    min-height: 34px;
    padding: 0 10px;
  }

  .section-heading {
    display: block;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
