:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #171717;
  --muted: #4d4d4d;
  --subtle: #666666;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: #ebebeb;
  --surface: #fafafa;
  --link: #0072f5;
  --focus: hsla(212, 100%, 48%, 1);
  --develop: #0a72ef;
  --preview: #de1d8d;
  --ship: #ff5b4f;
  --ring: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  --ring-light: rgb(235, 235, 235) 0 0 0 1px;
  --card-shadow:
    rgba(0, 0, 0, 0.08) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 2px,
    rgba(0, 0, 0, 0.04) 0 8px 8px -8px,
    #fafafa 0 0 0 1px inset;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-feature-settings: "liga";
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ring-light);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.nav-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.nav-links {
  justify-self: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--text);
}

.nav-cta {
  justify-self: end;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--text);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.page-shell {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 40px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow,
.resource-kicker,
.workflow-step span {
  margin: 0;
  color: var(--subtle);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 10px;
  max-width: 14ch;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  margin-top: 14px;
  max-width: 44rem;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #ffffff;
  box-shadow: var(--ring);
}

.button-primary:hover {
  background: #000000;
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--ring-light);
}

.button-secondary:hover {
  background: var(--text);
  color: #ffffff;
  box-shadow: var(--ring);
}

.button-full {
  width: 100%;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.workflow-step {
  position: relative;
  min-height: 108px;
  padding: 16px;
  background: #ffffff;
}

.workflow-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 1;
  width: 18px;
  height: 18px;
  background: #ffffff;
  box-shadow: var(--ring-light);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.workflow-step.develop span {
  color: var(--develop);
}

.workflow-step.preview span {
  color: var(--preview);
}

.workflow-step.ship span {
  color: var(--ship);
}

.workflow-step strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.workflow-step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  position: sticky;
  top: 88px;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  min-width: 0;
}

.contact-head h2 {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.contact-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(200px, 100%);
  aspect-ratio: 1 / 1;
  margin: 16px auto 14px;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--ring-light);
}

.qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-fallback {
  display: grid;
  gap: 10px;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: var(--text);
  text-align: center;
}

.qr-fallback strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
}

.qr-fallback small {
  max-width: 24ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.section {
  padding: 48px 0;
  box-shadow: rgb(235, 235, 235) 0 -1px 0 0;
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.resource-grid,
.resource-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.resource-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-link {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
  min-width: 0;
}

.resource-link:hover {
  transform: translateY(-2px);
  box-shadow:
    rgba(0, 0, 0, 0.12) 0 0 0 1px,
    rgba(0, 0, 0, 0.05) 0 8px 18px -10px,
    #fafafa 0 0 0 1px inset;
}

.resource-featured {
  min-height: 118px;
}

.resource-link strong {
  display: block;
  margin-top: 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.resource-link p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.resource-arrow {
  flex: none;
  color: var(--link);
  font-size: 22px;
  line-height: 1;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
  margin-top: 22px;
  min-width: 0;
}

.bio {
  max-width: 56rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.stats div {
  min-height: 96px;
  padding: 16px;
  background: #ffffff;
}

.stats div + div {
  box-shadow: rgb(235, 235, 235) 1px 0 0 0 inset;
}

.stats strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
  box-shadow: rgb(235, 235, 235) 0 -1px 0 0;
}

.footer strong {
  color: var(--text);
  font-weight: 600;
}

.footer a {
  color: var(--link);
  font-weight: 500;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0 36px;
  }

  .contact-card {
    position: static;
    max-width: 440px;
    width: 100%;
  }

  .resource-list,
  .bio-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 52px;
    padding: 0 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .page-shell {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 28px 0 30px;
  }

  h1 {
    font-size: 34px;
    letter-spacing: 0;
    line-height: 1.08;
  }

  .lead,
  .bio {
    font-size: 15px;
    line-height: 1.5;
  }

  .lead {
    word-break: break-all;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .button {
    width: 100%;
  }

  .workflow,
  .stats {
    grid-template-columns: 1fr;
  }

  .workflow-step:not(:last-child)::after {
    display: none;
  }

  .workflow-step,
  .resource-link {
    min-height: 0;
  }

  .contact-card {
    padding: 14px;
  }

  .qr-frame {
    width: min(172px, 62vw);
  }

  .section {
    padding: 34px 0;
  }

  .section-head h2 {
    font-size: 28px;
    letter-spacing: 0;
  }

  .resource-link {
    padding: 14px;
  }

  .resource-grid,
  .resource-list {
    margin-top: 16px;
  }

  .resource-link strong {
    margin-top: 10px;
    font-size: 20px;
  }

  .workflow {
    margin-top: 20px;
  }

  .workflow-step {
    padding: 14px;
  }

  .workflow-step strong {
    margin-top: 10px;
    font-size: 21px;
  }

  .bio-layout {
    gap: 18px;
    margin-top: 16px;
  }

  .stats div {
    min-height: auto;
    padding: 14px;
  }

  .stats div + div {
    box-shadow: rgb(235, 235, 235) 0 1px 0 0 inset;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }
}
