/* ClickDoc — styled after the app icon: blue→violet gradient, frosted glass, white doc, red record dot */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}

:root {
  --blue: #2f6bff;
  --indigo: #3f4bf0;
  --violet: #6b3cf5;
  --grape: #8b5cf6;
  --cyan: #8fe3ff;
  --red: #ff3b5c;
  --ink: #14163a;
  --ink-soft: #4a4f78;
  --muted: #8a8fb5;
  --surface: #f5f6ff;
  --card: #ffffff;
  --line: #e4e6fb;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --glass-line: rgba(255, 255, 255, 0.38);
  --grad: linear-gradient(150deg, #3d8bff 0%, #2f5bff 38%, #4b3cf0 70%, #7a4dff 100%);
  --radius: 22px;
  --display: "Bricolage Grotesque", -apple-system, "PingFang SC", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --page: min(1160px, 100% - 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--violet); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }

.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8aa0, var(--red) 60%); box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.18), 0 0 14px rgba(255, 59, 92, 0.7); flex: none; }
.rec-dot.pulse, .badge .rec-dot { animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 92, 0.08), 0 0 22px rgba(255, 59, 92, 0.9); } }

/* ---------- Nav (floats over the gradient) ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 20; width: var(--page); margin: 0 auto;
  display: flex; align-items: center; gap: 26px; padding: 10px 12px 10px 16px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: #fff; transition: background 200ms, color 200ms, border-color 200ms, box-shadow 200ms;
}
.nav.solid { background: rgba(255, 255, 255, 0.86); color: var(--ink); border-color: var(--line); box-shadow: 0 10px 30px rgba(47, 60, 200, 0.10); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); text-decoration: none; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.links a { text-decoration: none; opacity: 0.85; }
.links a:hover { opacity: 1; }
.lang { display: flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.16); }
.nav.solid .lang { background: var(--surface); }
.lang button { border: 0; background: transparent; color: inherit; font: 600 12px var(--sans); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--indigo); box-shadow: 0 2px 8px rgba(20, 22, 58, 0.15); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--grad);
  padding: 150px max(24px, (100% - 1160px) / 2) 110px;
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr); gap: 44px; align-items: center;
  border-radius: 0 0 44px 44px;
}
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-a { width: 900px; height: 900px; left: -380px; top: -520px; background: radial-gradient(circle, rgba(140, 200, 255, 0.45), rgba(140, 200, 255, 0) 70%); }
.orb-b { width: 760px; height: 760px; right: -280px; bottom: -460px; background: radial-gradient(circle, rgba(170, 120, 255, 0.55), rgba(170, 120, 255, 0) 70%); }
.hero-copy { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13.5px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.headline { margin: 0; font-weight: 750; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.06; }
:lang(zh-CN) .headline { font-family: var(--sans); font-weight: 800; letter-spacing: -0.01em; line-height: 1.14; font-size: clamp(38px, 4.3vw, 62px); }
.headline .hl { position: relative; white-space: nowrap; background: linear-gradient(90deg, #ffffff, #c9f2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline .hl::after { /* the red record dot, like the icon */
  content: ""; position: absolute; right: -0.34em; top: 0.08em; width: 0.2em; height: 0.2em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8aa0, var(--red) 60%); box-shadow: 0 0 0.25em rgba(255, 59, 92, 0.8);
  animation: rec 1.6s ease-in-out infinite;
}
.lede { margin: 24px 0 34px; max-width: 30em; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, 0.86); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font: 650 16px var(--sans); text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms; }
.btn-primary { background: #fff; color: var(--indigo); box-shadow: 0 14px 34px rgba(20, 22, 90, 0.28), inset 0 -2px 0 rgba(63, 75, 240, 0.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(20, 22, 90, 0.34); }
.btn-glass { color: #fff; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--glass-strong); }
.spec { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* Stage: viewfinder (glass) → glowing arrow → white document, as in the icon */
.stage { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) 56px minmax(0, 1fr); align-items: center; }
.sidebar li, .row span, .field { white-space: nowrap; }
.viewfinder {
  position: relative; padding: 34px 26px 26px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 30px 70px rgba(20, 20, 110, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: rotate(-2.5deg);
}
.corner { position: absolute; width: 28px; height: 28px; border: 5px solid rgba(255, 255, 255, 0.92); }
.corner.tl { left: 12px; top: 12px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.corner.tr { right: 12px; top: 12px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.corner.bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.corner.br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.rec-dot.big { position: absolute; left: 48px; top: 15px; width: 13px; height: 13px; animation: rec 1.6s ease-in-out infinite; }

.window { position: relative; overflow: hidden; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(20, 20, 90, 0.25); }
.titlebar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f4fb; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.titlebar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.titlebar i:nth-child(2) { background: #ffbd2e; } .titlebar i:nth-child(3) { background: #28c941; }
.titlebar span { margin: 0 auto; padding-right: 40px; }
.window-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); min-height: 236px; font-size: 13px; }
.window, .pane, .row, .log li { min-width: 0; }
.sidebar { margin: 0; padding: 10px 8px; list-style: none; background: #f7f8fd; border-right: 1px solid var(--line); }
.sidebar li { padding: 6px 10px; border-radius: 7px; }
.pane { padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row span { color: var(--ink-soft); }
.field { font-weight: 500; padding: 3px 9px; border-radius: 7px; background: #f1f2fb; }
.button { align-self: flex-end; margin-top: auto; padding: 5px 18px; border-radius: 8px; font-weight: 600; background: #eef0ff; color: var(--indigo); }
.is-hit { background: var(--indigo) !important; color: #fff !important; transition: background 140ms, color 140ms; }

.ring, .cursor { position: absolute; left: 0; top: 0; pointer-events: none; }
.ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 3px solid var(--red); background: rgba(255, 59, 92, 0.18); opacity: 0; transform: scale(0.4); }
.ring.pop { animation: pop 900ms cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; transform: scale(1.14); } 60% { transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
.cursor {
  width: 18px; height: 26px; z-index: 2;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 26'%3E%3Cpath d='M1 1v20l5-5 4 9 3-1.5-4-8.5h7z' fill='%23fff' stroke='%2314163a' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  transition: transform 750ms cubic-bezier(.45,.05,.25,1);
}

.flow { width: 76px; margin-left: -10px; filter: drop-shadow(0 0 10px rgba(160, 230, 255, 0.9)); z-index: 2; }

.doc {
  position: relative; padding: 26px 20px 22px; border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: 14px 18px 0 -2px rgba(150, 140, 255, 0.45), 0 30px 60px rgba(20, 20, 110, 0.35);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transform: rotate(2deg);
}
.fold { position: absolute; right: 0; top: 0; width: 34px; height: 34px; background: linear-gradient(225deg, transparent 50%, #dfe2ff 50%); border-bottom-left-radius: 10px; }
.doc-title { margin: 0 0 14px; font: 700 15px var(--display); }
.log { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.log li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45;
  padding: 9px 10px; border-radius: 10px; background: linear-gradient(90deg, #eef1ff, #f7f8ff);
  opacity: 0.25; transform: translateX(6px); transition: opacity 320ms ease, transform 320ms ease, background 320ms;
}
.log li.show { opacity: 1; transform: none; }
.log li b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 11px var(--mono); color: #fff; background: var(--grad); }
.line { display: block; height: 8px; border-radius: 4px; background: #e6e9ff; margin-top: 8px; }
.line.short { width: 60%; }

/* ---------- Sections ---------- */
.section { width: var(--page); margin: 0 auto; padding: 110px 0 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow { margin: 0 0 10px; font: 600 13px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.12; font-weight: 750; }
:lang(zh-CN) .section-head h2 { font-family: var(--sans); font-weight: 800; letter-spacing: 0; }

.card, .feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 #fff inset, 0 18px 40px rgba(60, 70, 200, 0.07); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps .card { padding: 14px 14px 26px; position: relative; }
.card-art { position: relative; height: 170px; border-radius: 16px; overflow: hidden; background: var(--grad); margin-bottom: 22px; }
.card-art::before { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); }
.step-no { position: absolute; right: 26px; top: 196px; font: 700 13px var(--mono); color: var(--muted); }
.steps h3 { margin: 0 12px 8px; font-size: 24px; }
:lang(zh-CN) .steps h3 { font-family: var(--sans); font-weight: 750; }
.steps p { margin: 0 12px; color: var(--ink-soft); font-size: 15px; }

.art-record .menubar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; height: 30px; padding: 0 16px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.art-record .menubar span:not(.rec-dot) { width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.5); }
.art-record .menu { position: absolute; right: 30px; top: 40px; width: 170px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 13px; box-shadow: 0 16px 30px rgba(20,20,90,.3); }
.menu-item { padding: 6px 10px; border-radius: 7px; }
.menu-item.on { background: var(--indigo); color: #fff; }

.art-edit { background: linear-gradient(160deg, #eef1ff, #ffffff); border: 1px solid var(--line); }
.art-edit::before { display: none; }
.art-edit { background-image: repeating-linear-gradient(0deg, transparent 0 24px, #e8ebff 24px 25px), linear-gradient(160deg, #eef1ff, #fff); }
.mark-box { position: absolute; left: 12%; top: 18%; width: 36%; height: 32%; border: 3px solid var(--red); border-radius: 4px; }
.mark-arrow { position: absolute; left: 54%; top: 56%; width: 70px; height: 3px; background: var(--red); transform: rotate(-34deg); transform-origin: left center; border-radius: 2px; }
.mark-arrow::after { content: ""; position: absolute; right: -4px; top: -6px; border: 7.5px solid transparent; border-left: 12px solid var(--red); }
.mark-text { position: absolute; left: 58%; top: 64%; color: var(--red); font-weight: 800; font-size: 15px; text-shadow: -1.5px 0 #fff, 1.5px 0 #fff, 0 -1.5px #fff, 0 1.5px #fff; }
.mark-blur { position: absolute; left: 12%; bottom: 14%; font-size: 13px; filter: blur(3.5px); color: var(--ink); }

.art-export { display: flex; align-items: center; justify-content: center; gap: 14px; }
.file {
  position: relative; z-index: 1; width: 70px; height: 90px; border-radius: 12px; background: #fff; color: var(--indigo);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 12px 24px rgba(20,20,90,.28); clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%);
}
.file b { font: 700 17px var(--mono); }
.file small { font-size: 10px; color: var(--muted); }
.file.mid { transform: translateY(-10px) scale(1.08); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 24px 24px 22px; transition: transform 160ms ease, box-shadow 160ms ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(60, 70, 200, 0.13); }
.chip { display: inline-flex; width: 44px; height: 44px; border-radius: 13px; align-items: center; justify-content: center; background: var(--grad); box-shadow: 0 8px 18px rgba(63, 75, 240, 0.3); margin-bottom: 16px; }
.chip svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip svg .fill { fill: var(--red); stroke: none; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
:lang(zh-CN) .feature h3 { font-family: var(--sans); font-weight: 700; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.feature q { quotes: "「" "」"; }
:lang(en) .feature q { quotes: "\201C" "\201D" "\2018" "\2019"; }

/* Install: a slice of the hero gradient */
.install { position: relative; overflow: hidden; padding: 70px clamp(24px, 6vw, 80px) 60px; border-radius: 36px; background: var(--grad); color: #fff; }
.orb-c { width: 700px; height: 700px; right: -300px; top: -340px; background: radial-gradient(circle, rgba(170, 220, 255, 0.4), transparent 70%); }
.section-head.light .eyebrow { background: none; color: rgba(255,255,255,.75); -webkit-background-clip: initial; background-clip: initial; }
.instructions { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 780px; display: flex; flex-direction: column; gap: 16px; }
.instructions li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--indigo); font: 700 17px var(--mono); }
.instructions h3 { margin: 6px 0 6px; font-size: 20px; }
:lang(zh-CN) .instructions h3 { font-family: var(--sans); font-weight: 700; }
.instructions p { margin: 0; color: rgba(255,255,255,.85); }
.instructions a { color: #fff; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.terminal { display: flex; align-items: stretch; margin: 14px 0 10px; border-radius: 14px; overflow: hidden; background: #0f1033; box-shadow: 0 14px 30px rgba(10, 10, 60, 0.4); }
.terminal code { flex: 1; padding: 14px 16px; font: 13.5px/1.5 var(--mono); color: #dfe4ff; overflow-x: auto; white-space: nowrap; }
.terminal code::before { content: "$ "; color: var(--cyan); }
.copy { flex: none; border: 0; background: rgba(255,255,255,.08); color: #fff; padding: 0 18px; cursor: pointer; font: 600 13px var(--sans); }
.copy:hover, .copy.done { background: var(--violet); }
.note { font-size: 14px; color: rgba(255,255,255,.7) !important; }
.tip { position: relative; max-width: 780px; margin: 22px auto 0; display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.9); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; box-shadow: 0 10px 26px rgba(60, 70, 200, 0.05); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 30px 20px 0; position: relative; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); color: var(--indigo); font: 600 18px var(--mono); transition: transform 200ms; }
.faq details[open] summary::after { content: "−"; background: var(--grad); color: #fff; }
.faq details p { margin: -4px 0 20px; color: var(--ink-soft); font-size: 15px; }
.faq a { color: var(--indigo); }

/* Closing */
.closing { width: var(--page); margin: 110px auto 0; padding: 0 0 90px; text-align: center; }
.closing img { border-radius: 24px; box-shadow: 0 24px 50px rgba(63, 75, 240, 0.35); }
.closing h2 { margin: 26px 0 26px; font-size: clamp(28px, 3.6vw, 44px); }
:lang(zh-CN) .closing h2 { font-family: var(--sans); font-weight: 800; }
.closing .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 16px 34px rgba(63, 75, 240, 0.35); }

.footer { border-top: 1px solid var(--line); background: #fff; padding: 28px max(24px, (100% - 1160px) / 2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.footer p { margin: 0; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--indigo); }

/* ---------- Load-in ---------- */
.hero-copy > * { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
.viewfinder { animation: float-in 900ms 150ms cubic-bezier(.2,.7,.2,1) both; }
.doc { animation: float-in-doc 900ms 350ms cubic-bezier(.2,.7,.2,1) both; }
.flow { animation: rise 700ms 600ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes float-in { from { opacity: 0; transform: translateY(30px) rotate(-6deg); } }
@keyframes float-in-doc { from { opacity: 0; transform: translateY(30px) rotate(6deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 130px; }
  .steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --page: calc(100% - 32px); }
  .nav { inset: 10px 0 auto; gap: 12px; padding: 8px 8px 8px 12px; }
  .links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 110px 16px 70px; border-radius: 0 0 28px 28px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow { transform: rotate(90deg); margin: -6px auto; width: 56px; }
  .viewfinder { padding: 30px 14px 16px; transform: none; }
  .doc { transform: none; }
  .window-body { font-size: 12px; }
  .row { flex-wrap: wrap; gap: 4px; }
  .lede { font-size: 16px; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 80px; }
  .install { border-radius: 26px; padding: 50px 16px 40px; }
  .instructions li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .num { width: 34px; height: 34px; font-size: 15px; }
  .terminal code { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Sponsor */
.sponsor { max-width: 760px; margin: 0 auto; text-align: center; padding: 48px 28px 42px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(60, 70, 200, 0.10); }
.sponsor[hidden], .sponsor-nav[hidden] { display: none !important; }
.heart { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 30px; background: linear-gradient(150deg, #fff4e6, #ffe2c2); box-shadow: 0 10px 24px rgba(255, 150, 60, 0.25); }
.sponsor h2 { margin: 18px 0 8px; font-size: clamp(26px, 3vw, 36px); }
:lang(zh-CN) .sponsor h2 { font-family: var(--sans); font-weight: 800; }
.sponsor p { margin: 0 auto 24px; max-width: 30em; color: var(--ink-soft); }
.btn-sponsor { background: #ff5e5b; color: #fff; box-shadow: 0 12px 26px rgba(255, 94, 91, 0.32); }
.btn-sponsor:hover { transform: translateY(-2px); background: #ff4a47; }
