:root {
  color-scheme: light;
  --ink: #1f2421;
  --muted: #575652;
  --paper: #fbf7f2;
  --line: #d7cfc3;
  --green: #24594b;
  --green-tint: #e2efea;
  --rust: #7a2e14;
  --rust-tint: #fce8df;
  --amber: #9a5408;
  --amber-tint: #fdf0db;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Noto Sans SC", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 194, 159, .45), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(188, 220, 206, .48), transparent 40%),
    radial-gradient(circle at 20% 62%, rgba(247, 217, 196, .36), transparent 44%),
    radial-gradient(circle at 82% 84%, rgba(209, 224, 215, .42), transparent 44%),
    var(--paper);
  font: 400 15px/22px var(--sans);
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: 28px; line-height: 36px; letter-spacing: -.25px; text-wrap: balance; }
h2 { font-size: 24px; line-height: 32px; letter-spacing: -.2px; }
h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.container { width: min(100%, 72rem); margin-inline: auto; padding-inline: 20px; }
.glass {
  background: rgba(255, 253, 250, .76);
  border: 1px solid white;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 14px 38px rgba(31, 36, 33, .06), inset 0 1px 0 rgba(255, 255, 255, .94);
}
.material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  font: 400 20px/1 "Material Symbols Outlined";
  direction: ltr;
  font-feature-settings: "liga";
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  background: rgba(251, 247, 242, .75);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.header-inner, .brand, .header-nav, .footer-nav { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { gap: 8px; font: 700 20px/28px var(--serif); white-space: nowrap; }
.brand img { width: 36px; height: 36px; border: 1px solid white; border-radius: 8px; }
.header-nav, .footer-nav, .desktop-copy { display: none; }
.header-nav, .footer-nav { gap: 24px; color: var(--muted); }
.header-nav a:hover, .footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 14px rgba(31, 36, 33, .14);
  font: 600 14px/20px var(--sans);
  text-align: center;
}
a.button:hover { background: #2f3631; }
a.button:active { transform: scale(.99); }
.header-button { padding: 8px 16px; font-size: 12px; white-space: nowrap; }
.secondary-button { display: none; }

main.container { display: grid; gap: 32px; padding-block: 20px 40px; }
.hero, .hero-copy, .hero-intro { display: grid; gap: 16px; min-width: 0; }
.hero-intro p { text-wrap: pretty; }
.badge {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.badge::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-actions .primary-download { width: 100%; }
.hero-meta, .sample-count { font: 500 12px/16px var(--mono); }
.hero-meta { text-align: center; margin-top: -4px; }

.card-stack { position: relative; isolation: isolate; margin: 8px auto 12px; width: min(100%, 384px); }
.card-stack::before, .card-stack::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  background: rgba(255, 253, 250, .52);
  box-shadow: 0 8px 24px rgba(31, 36, 33, .04), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.card-stack::before { inset: 16px 16px -16px; }
.card-stack::after { inset: 8px 8px -8px; }
.sample-card { display: grid; gap: 12px; padding: 16px; border-radius: 24px; }
.sample-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sample-count { color: var(--muted); }
.sample-copy { display: grid; gap: 12px; }
.sample-card h2, .download-card h2 { font-size: 20px; line-height: 28px; }
.sample-copy p { color: var(--ink); }
.badge-label, .tags li {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--green);
}
.badge-label { background: var(--green-tint); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tags li { background: #fffdf9; border: 1px solid var(--line); }
.sample-details { display: none; }

.content-section, .section-heading, .feature-grid, .workflow-grid { display: grid; gap: 12px; }
.feature-card, .step, .download-card { font-size: 13px; line-height: 18px; }
.feature-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 24px; }
.feature-card p, .step p { margin-top: 4px; text-wrap: pretty; }
.feature-icon { width: 40px; height: 40px; border-radius: 16px; color: var(--green); background: var(--green-tint); }
.feature-card:nth-child(2) .feature-icon { color: var(--rust); background: var(--rust-tint); }
.feature-card:nth-child(3) .feature-icon { color: var(--amber); background: var(--amber-tint); }

.workflow-grid { list-style: none; padding: 0; gap: 8px; }
.step { padding: 16px; border-radius: 16px; }
.step h3, .step-number { font: 500 12px/16px var(--mono); }
.step-number::after { content: " · "; white-space: pre; }
.step:nth-child(1) h3 { color: var(--rust); }
.step:nth-child(2) h3 { color: var(--green); }

.download-card, .download-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.download-card { padding: 20px; border-radius: 24px; text-align: center; }
.download-copy img { width: 56px; height: 56px; border-radius: 24px; border: 1px solid white; }
.download-copy p { margin-top: 4px; }
.download-card .button { width: 100%; }

.site-footer { border-top: 1px solid rgba(215, 207, 195, .6); padding-block: 16px; font-size: 13px; line-height: 18px; }
.footer-inner { text-align: center; }

@media (max-width: 767px) {
  .container { max-width: 430px; }
  .sample-copy p { font-size: 13px; line-height: 18px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; line-height: 48px; letter-spacing: -.5px; }
  .content-section h2 { font-size: 34px; line-height: 42px; }
  .desktop-copy { display: inline; }
  .brand img { width: 40px; height: 40px; border-radius: 16px; }
  .brand { gap: 12px; }
  .header-nav, .footer-nav { display: flex; }
  .header-nav { font-size: 14px; font-weight: 600; }
  .header-button { padding-inline: 20px; font-size: 14px; }

  main.container { gap: 0; padding-block: 0; }
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 48px); padding-block: 56px 64px; }
  .hero-copy { gap: 24px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
  .hero-actions .primary-download { width: auto; padding: 16px 32px; }
  .secondary-button { display: inline-flex; border: 1px solid white; background: rgba(255, 253, 250, .76); color: var(--ink); }
  a.secondary-button:hover { background: #fffdf9; }
  .hero-meta { text-align: left; margin: 0; }

  .sample-card { gap: 16px; padding: 20px; }
  .sample-copy { padding-block: 8px; }
  .sample-details { display: block; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; line-height: 18px; }
  .sample-details summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; color: var(--muted); }
  .sample-details summary::-webkit-details-marker { display: none; }
  .sample-details p { margin-top: 12px; }
  .sample-toggle { color: var(--rust); font-size: 12px; }
  .hide-back, .sample-details[open] .show-back { display: none; }
  .sample-details[open] .hide-back { display: inline; }

  .content-section, .download-section { padding-block: 48px; }
  .content-section { gap: 24px; }
  .section-heading { max-width: 36rem; gap: 8px; }
  .feature-grid, .workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .feature-card { flex-direction: column; padding: 20px; }
  .feature-card h3 { font: 700 20px/28px var(--serif); }
  .feature-card p { margin-top: 12px; }
  .feature-icon { width: 44px; height: 44px; }
  .step { padding: 20px; border-radius: 20px; }
  .step h3 { color: var(--ink); font: 600 16px/24px var(--sans); }
  .step:nth-child(n) h3 { color: var(--ink); }
  .step-number { display: block; margin-bottom: 8px; }
  .step-number::after { content: none; }
  .step:nth-child(1) .step-number { color: var(--rust); }
  .step:nth-child(2) .step-number { color: var(--green); }
  .step p { margin-top: 8px; }

  .download-card { flex-direction: row; justify-content: space-between; gap: 24px; padding: 48px; text-align: left; }
  .download-copy { flex-direction: row; gap: 20px; }
  .download-copy img { width: 64px; height: 64px; }
  .download-card .button { width: auto; flex-shrink: 0; padding: 16px 32px; }
  .site-footer { padding-block: 20px; }
  .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
}
