*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.landing-site {
  --background: #080c0a;
  --surface: #0f1612;
  --surface-elevated: #141d18;
  --line: rgba(208, 249, 158, 0.11);
  --line-strong: rgba(208, 249, 158, 0.22);
  --ink: #eef4eb;
  --muted: #98a99c;
  --muted-soft: #78897c;
  --accent: #d0f99e;
  --accent-emerald: #6ee7b7;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--background);
  color-scheme: dark;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.landing-container {
  width: min(1240px, 100% - 2 * clamp(20px, 4.8vw, 64px));
  margin-inline: auto;
}

.landing-site a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 10, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.landing-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  gap: 16px;
}

.landing-brand, .landing-login, .landing-primary, .landing-secondary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.landing-brand {
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.landing-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.landing-nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 180ms, background-color 180ms;
}

.landing-nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.landing-login {
  justify-self: end;
  gap: 6px;
  min-height: 38px;
  padding-inline: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms, border-color 180ms, color 180ms;
}

.landing-login:hover {
  border-color: rgba(208, 249, 158, 0.48);
  background: rgba(208, 249, 158, 0.09);
  color: var(--accent);
}

/* Hero */
.landing-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 65% 55% at 76% 36%, rgba(36, 86, 58, 0.42), transparent 68%),
    radial-gradient(ellipse 45% 40% at 15% 20%, rgba(208, 249, 158, 0.055), transparent 70%),
    linear-gradient(180deg, #0b110e 0%, #080c0a 100%);
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(178, 237, 192, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 237, 192, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 72% at 68% 42%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 68% 42%, #000 0%, transparent 74%);
}

.landing-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 6.5vw, 96px) clamp(52px, 5.5vw, 80px);
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 13px 6px 10px;
  border: 1px solid rgba(208, 249, 158, 0.22);
  border-radius: 999px;
  background: rgba(208, 249, 158, 0.06);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.landing-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(208, 249, 158, 0.8);
}

.landing-hero h1 {
  font-size: clamp(50px, 5.6vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

.landing-hero h1 span {
  background: linear-gradient(115deg, #e5ffc2 0%, #c4f791 48%, #7ce8b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-lead {
  max-width: 440px;
  margin-top: 24px;
  color: #b1c0b4;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.82;
  text-wrap: pretty;
}

.landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 34px;
}

.landing-primary {
  gap: 10px;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #111d0a;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 28px rgba(173, 244, 114, 0.16);
  transition: background-color 180ms, box-shadow 180ms, transform 180ms;
}

.landing-primary:hover {
  background: #e1ffbd;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 12px 34px rgba(186, 250, 133, 0.3);
  transform: translateY(-2px);
}

.landing-secondary {
  gap: 7px;
  min-height: 48px;
  padding-inline: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #c5d4c8;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms, border-color 180ms, background-color 180ms;
}

.landing-secondary:hover {
  border-color: rgba(208, 249, 158, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}

/* Workflow Anchor Ribbon inside Hero */
.landing-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.landing-ribbon-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 26px 0;
  transition: opacity 180ms;
}

.landing-ribbon-item + .landing-ribbon-item {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.landing-ribbon-index {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.landing-ribbon-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 180ms;
}

.landing-ribbon-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.landing-ribbon-item:hover strong {
  color: var(--accent);
}

/* Hero Editor Demo (Preserved & Refined Frame) */
.landing-preview {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.landing-glow {
  position: absolute;
  z-index: -1;
  inset: -16% -12%;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side at 64% 44%, rgba(174, 247, 108, 0.32), rgba(81, 221, 140, 0.18) 55%, transparent);
  transform: rotate(-16deg);
  animation: landing-awaken 1.45s ease-out both;
}

@keyframes landing-awaken {
  from { opacity: 0.35; transform: rotate(-11deg) scale(0.88); }
  to { opacity: 1; transform: rotate(-16deg) scale(1); }
}

.landing-editor {
  --editor-bg: #151815;
  --editor-line: #2e352f;
  --editor-muted: #a5ada2;
  --editor-accent: #84e6ba;
  overflow: hidden;
  border: 1px solid rgba(132, 200, 158, 0.34);
  border-radius: 16px;
  isolation: isolate;
  background: var(--editor-bg);
  color: #edf2ea;
  box-shadow:
    0 34px 80px rgba(2, 9, 6, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  font-size: 12px;
}

.landing-editor-bar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 48px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--editor-line);
  background: #1a1d19;
}

.landing-editor-title,
.landing-editor-toolbar,
.landing-editor-export {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.landing-editor-title img { width: 24px; height: 24px; }
.landing-editor-title strong { font-size: 12px; }
.landing-editor-draft {
  padding: 2px 6px;
  border: 1px solid #6c5939;
  border-radius: 50px;
  color: #efbf82;
  background: #3b2e22;
  font-size: 9px;
}

.landing-editor-toolbar > span {
  padding: 5px 8px;
  border: 1px solid var(--editor-line);
  border-radius: 6px;
  color: #c9d0c6;
  font-size: 10px;
}

.landing-editor-template i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-radius: 50%;
  background: #47c491;
}

.landing-editor-zoom { font-variant-numeric: tabular-nums; }
.landing-editor-export {
  gap: 4px;
  padding: 6px 9px;
  border: 1px solid #43bc8d;
  border-radius: 6px;
  background: #39bd8c;
  color: #081b13;
  font-size: 11px;
  font-weight: 700;
}

.landing-editor-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  min-height: 410px;
}

.landing-canvas {
  display: grid;
  min-width: 0;
  place-items: start center;
  padding: 21px 18px 22px;
  background-color: #20241e;
  background-image: radial-gradient(#d4e7cf24 0.8px, transparent 0.9px);
  background-size: 12px 12px;
}

.landing-paper {
  width: min(100%, 322px);
  min-height: 365px;
  padding: 19px clamp(12px, 1.5vw, 22px);
  border-top: 3px solid #009071;
  color: #333e48;
  background: #fbfcfa;
  box-shadow: 0 12px 30px #080e0a74;
  font-size: 10px;
  line-height: 1.55;
}

.landing-paper-top,
.landing-paper-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
}

.landing-paper-top {
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #c5e3d7;
}
.landing-paper-top strong { color: #151f2a; font-size: 24px; letter-spacing: -0.04em; line-height: 1.15; }
.landing-paper-top span { padding: 2px 6px; border-radius: 12px; color: #007657; background: #e3f2eb; font-size: 9px; }
.landing-paper-contact { margin-top: 6px; color: #53616e; }
.landing-paper-contact span { padding-inline: 3px; }
.landing-paper h2 {
  margin-block: 12px 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid #bddbcf;
  color: #086b53;
  font-size: 11px;
  font-weight: 700;
}
.landing-paper-row { margin-bottom: 4px; color: #233342; }
.landing-paper-row > span { flex-shrink: 0; font-size: 9px; color: #53616e; }

.landing-paper-change,
.landing-field-change { display: grid; position: relative; }
.landing-paper-change p,
.landing-field-change b {
  grid-area: 1 / 1;
  transition: opacity 230ms ease, transform 280ms cubic-bezier(.2,.8,.2,1);
}
.landing-paper-polished { opacity: 0; transform: translateY(4px); }
[data-scene="applied"] .landing-paper-original { opacity: 0; transform: translateY(-3px); }
[data-scene="applied"] .landing-paper-polished { opacity: 1; transform: none; }
.landing-paper-change [data-demo-source] {
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color 260ms, box-shadow 260ms;
}
.landing-preview[data-scene="selection"] [data-demo-source] {
  background: linear-gradient(90deg, #d0f0df var(--selection-progress, 100%), transparent 0);
}
.landing-preview:is([data-scene="prompt"], [data-scene="stream"], [data-scene="result"]) [data-demo-source] {
  background: #d0f0df;
  box-shadow: 0 0 0 2px #d0f0df;
}
.landing-polish-trigger {
  position: absolute;
  z-index: 1;
  top: 100%;
  right: 0;
  padding: 4px 7px;
  border: 1px solid #a5dfcb;
  border-radius: 6px;
  background: #f1fbf6;
  box-shadow: 0 4px 14px #192f2633;
  color: #076f54;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-5px) scale(.96);
  transition: opacity 220ms, transform 260ms cubic-bezier(.2,.8,.2,1);
}
[data-scene="selection"] .landing-polish-trigger { opacity: 1; transform: translateY(1px); }

.landing-editor-drawer {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px 10px;
  border-left: 1px solid var(--editor-line);
  background: #171914;
}
.landing-editor-tabs,
.landing-editor-sections { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.landing-editor-tabs { font-size: 10px; color: var(--editor-muted); }
.landing-editor-tabs > * { padding: 5px 4px; white-space: nowrap; }
.landing-editor-tabs strong { border: 1px solid #485249; border-radius: 5px; color: #eef4ed; background: #292f27; }
.landing-editor-sections { padding: 12px 0 10px; border-bottom: 1px solid var(--editor-line); color: var(--editor-muted); font-size: 9px; }
.landing-editor-sections > * { padding: 2px 4px; }
.landing-editor-sections strong { color: var(--editor-accent); background: #273d31; border-radius: 4px; }
.landing-editor-fields { margin-top: 13px; }
.landing-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.landing-drawer-heading span { color: var(--editor-muted); font-size: 9px; }
.landing-drawer-entry { display: grid; gap: 10px; margin-top: 8px; padding: 9px; border: 1px solid var(--editor-line); border-radius: 8px; background: #1d201a; }
.landing-field { display: grid; gap: 4px; color: var(--editor-muted); font-size: 9px; }
.landing-field b { padding: 5px 6px; border: 1px solid #353d33; border-radius: 5px; color: #e1e8de; background: #151813; font-weight: 400; line-height: 1.5; }
.landing-editor-saved { margin-top: auto; padding-top: 10px; color: var(--editor-muted); font-size: 10px; }
.landing-editor-saved span { color: var(--editor-accent); }

.landing-polish-dialog {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: 21px;
  width: clamp(233px, 51%, 334px);
  border: 1px solid #587162;
  border-radius: 11px;
  background: #1a211b;
  box-shadow: 0 15px 38px #020905cb, 0 0 22px #71f3b715;
  opacity: 0;
  visibility: hidden;
  transform: translate(7px, 9px) scale(.97);
  transform-origin: 92% 90%;
  transition: opacity 290ms, transform 370ms cubic-bezier(.16,1,.3,1), visibility 0s linear 370ms;
  font-size: 10px;
  line-height: 1.5;
}
.landing-preview:is([data-scene="prompt"], [data-scene="stream"], [data-scene="result"]) .landing-polish-dialog {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.landing-polish-title { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #39463b; background: #28382d; border-radius: 10px 10px 0 0; }
.landing-polish-title > span { color: var(--editor-accent); }
.landing-polish-title strong { font-size: 11px; }
.landing-polish-close { margin-left: auto; color: var(--editor-muted); font-size: 15px; line-height: 1; }
.landing-polish-body { display: grid; gap: 7px; padding: 9px; }
.landing-polish-source { padding: 5px 7px; border-radius: 5px; color: #bdc8bd; background: #242d25; }
.landing-polish-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.landing-polish-presets span { padding: 2px 5px; border: 1px solid #445247; border-radius: 5px; color: #c4cebf; }
.landing-polish-presets span:first-child { border-color: #62ae88; background: #2b4938; color: #a5edc9; }
.landing-polish-instruction { display: flex; gap: 5px; }
.landing-polish-instruction span { flex: 1; padding: 4px 6px; border: 1px solid #435346; border-radius: 5px; color: #dce8dc; background: #181d17; }
.landing-polish-instruction b,
.landing-polish-actions strong { border-radius: 5px; color: #0b2a1b; background: #96e4ba; }
.landing-polish-instruction b { padding: 5px 8px; }
[data-scene="stream"] .landing-polish-instruction b { animation: landing-execute 360ms ease-out both; }
@keyframes landing-execute {
  30% { transform: scale(.92); background: #c5f7d8; }
}
.landing-polish-result { min-height: 63px; max-height: 86px; overflow: hidden; padding: 5px 7px; border: 1px solid #47725c; border-radius: 6px; background: #213227; }
.landing-polish-result-label { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; color: #a5edc9; font-weight: 700; }
.landing-polish-result-label i { width: 6px; height: 6px; border-radius: 50%; background: #9be3bf; }
.landing-polish-result p { color: #e7f1e6; }
.landing-polish-caret { display: none; width: 1px; height: 11px; margin-left: 2px; vertical-align: -2px; background: var(--editor-accent); }
[data-scene="stream"] .landing-polish-caret { display: inline-block; animation: landing-caret 850ms steps(1) infinite; }
@keyframes landing-caret { 50% { opacity: 0; } }
[data-running="false"] .landing-polish-caret { animation-play-state: paused; }

.landing-polish-actions { display: flex; max-height: 34px; overflow: hidden; align-items: center; gap: 8px; color: #bac8bc; }
.landing-polish-actions strong { margin-left: auto; padding: 5px 7px; }
.landing-polish-result,
.landing-polish-actions { transition: opacity 240ms, max-height 290ms cubic-bezier(.16,1,.3,1), margin-top 290ms cubic-bezier(.16,1,.3,1); }
[data-scene="prompt"] .landing-polish-result,
.landing-preview:is([data-scene="prompt"], [data-scene="stream"]) .landing-polish-actions { max-height: 0; margin-top: -7px; opacity: 0; }
[data-scene="prompt"] .landing-polish-result { min-height: 0; padding-block: 0; border-block-width: 0; }

.landing-editor-confirm {
  position: absolute;
  right: 13px;
  bottom: 21px;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid #5a906e;
  border-radius: 8px;
  background: #203a2a;
  color: #c4f2d4;
  box-shadow: 0 8px 24px #06150c82;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 245ms 50ms, transform 300ms cubic-bezier(.16,1,.3,1);
}
[data-scene="applied"] .landing-editor-confirm { opacity: 1; transform: translateY(0); }
[data-scene="applied"] .landing-paper-change { animation: landing-applied 1s ease-out both; }
@keyframes landing-applied {
  from { background: #d0efdc; box-shadow: 0 0 0 3px #d0efdc; }
  to { background: transparent; box-shadow: 0 0 0 3px transparent; }
}

.landing-demo-cursor {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms;
}
.landing-demo-cursor[data-visible="true"] { opacity: 1; }
.landing-demo-cursor svg { position: absolute; overflow: visible; }
.landing-cursor-arrow {
  top: -2px;
  left: -2px;
  fill: #f5fff9;
  stroke: #142e22;
  stroke-linejoin: round;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 3px #0009);
}
.landing-cursor-text {
  top: -9.5px;
  left: -6.5px;
  display: none;
  fill: none;
  stroke: #163b2b;
  stroke-linecap: round;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 1px #fff);
}
[data-kind="text"] .landing-cursor-arrow { display: none; }
[data-kind="text"] .landing-cursor-text { display: block; }
.landing-demo-cursor[data-clicking="true"]::before {
  position: absolute;
  left: -10px;
  top: -10px;
  width: 20px;
  height: 20px;
  border: 2px solid #eefff3;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #197b54, 0 0 7px #4de5a1a8;
  animation: landing-cursor-click 280ms ease-out both;
  content: "";
}
@keyframes landing-cursor-click {
  from { opacity: 1; transform: scale(.48); }
  to { opacity: 0; transform: scale(1.5); }
}
[data-playing="false"] .landing-demo-cursor::before { animation-play-state: paused; }

.landing-demo-footer {
  display: flex;
  min-height: 36px;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 8px 13px;
  color: var(--muted);
  font-size: 11px;
}
.landing-demo-footer > span { white-space: nowrap; }
.landing-demo-controls { display: flex; align-items: center; gap: 4px; }
.landing-demo-controls[hidden] { display: none; }
.landing-demo-controls button {
  padding: 5px 9px;
  min-height: 29px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #b7c6b9;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms, background-color 160ms, border-color 160ms;
}
.landing-demo-controls button:is(:hover, [aria-pressed="true"]) {
  border-color: rgba(142, 226, 166, 0.34);
  background: rgba(135, 210, 155, 0.1);
  color: #eaf8ec;
}
.landing-demo-controls button:focus-visible { outline: 2px solid #b5f4c8; outline-offset: 2px; }
.landing-demo-controls .landing-demo-toggle { display: grid; min-width: 29px; padding: 0; place-items: center; border-color: rgba(134, 183, 144, 0.3); }
.landing-demo-play, [data-playing="false"] .landing-demo-pause { display: none; }
[data-playing="false"] .landing-demo-play { display: block; }

/* Editorial Workflow Section */
.landing-kicker {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-features {
  padding-block: clamp(76px, 8.5vw, 128px);
  scroll-margin-top: 72px;
}

.landing-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 20px clamp(24px, 5vw, 72px);
  padding-bottom: clamp(44px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}

.landing-section-head h2,
.landing-capabilities-head h2,
.landing-cta h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.landing-section-head h2 span,
.landing-cta h2 span { display: inline-block; }

.landing-section-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

/* Asymmetric Showcase Layout (Replaces Stacked Boxes) */
.landing-showcase-stack {
  display: grid;
}

.landing-showcase {
  --guided-line: #2d3932;
  --guided-muted: #a8b6ab;
  --guided-accent: #9ae9be;
  display: grid;
  grid-template-columns: minmax(290px, 0.37fr) minmax(0, 0.63fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
  padding-block: clamp(64px, 7vw, 108px);
  scroll-margin-top: 84px;
}

.landing-showcase + .landing-showcase {
  border-top: 1px solid var(--line);
}

.landing-showcase-reverse {
  grid-template-columns: minmax(0, 0.63fr) minmax(290px, 0.37fr);
}

.landing-showcase-reverse .landing-showcase-copy {
  order: 2;
}

.landing-showcase-reverse .landing-showcase-stage {
  order: 1;
}

.landing-showcase-copy {
  min-width: 0;
}

.landing-step-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.landing-step-num {
  color: rgba(208, 249, 158, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.landing-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(208, 249, 158, 0.22);
  border-radius: 999px;
  background: rgba(208, 249, 158, 0.06);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.landing-showcase-copy h3 {
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.landing-showcase-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  text-wrap: pretty;
}

.landing-showcase-points {
  display: grid;
  margin-top: 28px;
}

.landing-showcase-points li {
  display: grid;
  gap: 3px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.landing-showcase-points strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.landing-showcase-points span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Floating Demo Stage Frame */
.landing-showcase-stage {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.landing-stage-glow {
  position: absolute;
  z-index: -1;
  inset: -10% -6%;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side at 54% 48%, rgba(72, 166, 114, 0.22), rgba(208, 249, 158, 0.06) 58%, transparent);
}

.landing-stage-glow-alt {
  background: radial-gradient(ellipse closest-side at 46% 52%, rgba(58, 152, 118, 0.22), rgba(154, 233, 190, 0.06) 58%, transparent);
}

.landing-stage-frame {
  overflow: hidden;
  border: 1px solid rgba(132, 200, 158, 0.28);
  border-radius: 16px;
  background: #121814;
  box-shadow:
    0 28px 64px rgba(2, 8, 5, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.09) inset;
}

/* Guided Demo Internals (Preserved & Proportioned) */
.guided-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-width: 0;
}
.guided-form {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 30px);
  background: #151a16;
}
.guided-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--guided-line);
  color: var(--guided-muted);
  font-size: 10px;
}
.guided-steps span { padding: 4px 5px; border: 1px solid transparent; border-radius: 5px; white-space: nowrap; }
[data-phase="role"] .guided-steps span:nth-child(2),
[data-phase="experience"] .guided-steps span:nth-child(4),
[data-phase="style"] .guided-steps span:nth-child(5) {
  border-color: #57856a;
  color: #b4eed0;
  background: #283c31;
}
.guided-stage { display: grid; min-height: 274px; margin-top: 18px; }
.guided-stage > div {
  grid-area: 1 / 1;
  min-width: 0;
  align-self: start;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 330ms ease, transform 460ms cubic-bezier(.16,1,.3,1);
}
.guided-form .guided-setup { display: grid; gap: 11px; }
.landing-guided:is([data-phase="role"],[data-phase="experience"],[data-phase="style"]) .guided-setup,
.landing-guided:is([data-phase="building"],[data-phase="ready"]) .guided-progress { opacity: 1; transform: none; }
.guided-field { display: grid; gap: 5px; min-width: 0; color: #c8d1c8; font-size: 12px; }
.guided-role, .guided-style div {
  min-height: 33px;
  padding: 7px 8px;
  border: 1px solid #435249;
  border-radius: 7px;
  background: #101611;
  color: #ecf4eb;
}
[data-phase="role"] .guided-role { border-color: #70af8f; box-shadow: 0 0 0 2px #85d9aa1d; }
[data-phase="role"] .guided-role span::after {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--guided-accent);
  animation: landing-caret 800ms steps(1) infinite;
  content: "";
}
.guided-projects { display: flex; flex-wrap: wrap; gap: 5px; }
.guided-projects span {
  padding: 5px 7px;
  border: 1px solid #465449;
  border-radius: 6px;
  background: #202a23;
  transition: background-color 220ms, border-color 220ms, color 220ms, transform 230ms cubic-bezier(.16,1,.3,1);
}
[data-selection="1"] .guided-projects span:first-child, [data-selection="2"] .guided-projects span {
  border-color: #568a6a;
  background: #294b37;
  color: #c3f2d5;
  transform: translateY(-1px);
}
.guided-experience, .guided-style { transition: opacity 350ms, transform 410ms cubic-bezier(.16,1,.3,1); }
[data-phase="role"] .guided-experience,
.landing-guided:is([data-phase="role"],[data-phase="experience"]) .guided-style { opacity: 0; transform: translateY(6px); }
.guided-run {
  justify-self: start;
  margin-top: 3px;
  padding: 8px 11px;
  border: 1px solid #64c596;
  border-radius: 7px;
  color: #13261c;
  background: #9ae9be;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 270ms, transform 230ms, background-color 230ms;
}
.landing-guided:is([data-phase="role"],[data-phase="experience"]) .guided-run { opacity: 0; transform: translateY(5px); }
[data-submit="true"] .guided-run { transform: scale(.96); background: #d3f6e0; }
.guided-cursor {
  position: absolute;
  top: 0;
  z-index: 1;
  left: 0;
  opacity: 0;
  pointer-events: none;
  fill: #f5fff9;
  stroke: #142e22;
  stroke-linejoin: round;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 3px #0009);
  transition: opacity 160ms;
}
.guided-cursor[data-visible="true"] { opacity: 1; }
.guided-progress-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #427d5b;
  border-radius: 50px;
  background: #233c2e;
  color: #b9efce;
  font-size: 10px;
}
.guided-progress-label span, .guided-preview-bar i { width: 6px; height: 6px; border-radius: 50%; background: #93dda8; }
.guided-progress h4 { margin: 11px 0 0; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.3; font-weight: 700; }
.guided-build-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--guided-line);
  border-radius: 8px;
  background: #1e2721;
  list-style: none;
  color: #b0bbb0;
  font-size: 11px;
}
.guided-build-steps li { display: flex; align-items: center; gap: 8px; }
.guided-build-steps li::before {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border: 1px solid #768478;
  border-radius: 50%;
  content: "";
}
[data-build="0"] .guided-build-steps li:nth-child(1)::before,
[data-build="1"] .guided-build-steps li:nth-child(2)::before,
[data-build="2"] .guided-build-steps li:nth-child(3)::before,
[data-build="3"] .guided-build-steps li:nth-child(4)::before {
  border-color: #4f8d68;
  border-top-color: #b0f2c7;
  animation: guided-rotate 860ms linear infinite;
}
@keyframes guided-rotate { to { transform: rotate(1turn); } }
.landing-guided[data-build="1"] .guided-build-steps li:nth-child(-n+1)::before,
.landing-guided[data-build="2"] .guided-build-steps li:nth-child(-n+2)::before,
.landing-guided[data-build="3"] .guided-build-steps li:nth-child(-n+3)::before,
.landing-guided[data-build="4"] .guided-build-steps li::before {
  border-color: #67a77d;
  background: #335640;
  color: #c7f2d2;
  font-size: 9px;
  content: "✓";
}
[data-running="false"] .guided-build-steps li::before,
[data-running="false"] .guided-role span::after { animation-play-state: paused; }

.guided-preview {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
  padding: 13px clamp(14px, 2vw, 24px) 22px;
  border-left: 1px solid var(--guided-line);
  background: radial-gradient(#c5e6d222 0.7px, transparent 0.9px) 0 0 / 12px 12px, #1e261f;
}
.guided-preview-bar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 12px;
  color: #c0cfc2;
  font-size: 10px;
  white-space: nowrap;
}
.guided-preview-bar span:first-child { display: flex; align-items: center; gap: 6px; }
.guided-preview-bar span:last-child { color: #a5baa8; }
.guided-paper {
  --paper-accent: #006d52;
  position: relative;
  width: min(100%, 268px);
  aspect-ratio: 210 / 297;
  padding: 18px 17px;
  border-top: 3px solid var(--paper-accent);
  background: #f8fcf8;
  color: #252f38;
  box-shadow: 0 16px 34px #071309aa;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.55;
  transition: background-color 670ms ease, border-color 670ms ease, box-shadow 670ms ease;
}
[data-phase="building"] .guided-paper::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, #a6edc635 49%, #b9f5d31a 54%, transparent 75%);
  pointer-events: none;
  animation: guided-paper-scan 3.8s ease-in-out both;
  content: "";
}
[data-running="false"] .guided-paper::after { animation-play-state: paused; }
@keyframes guided-paper-scan {
  from { transform: translateY(-78%); opacity: 0; }
  25%, 72% { opacity: 1; }
  to { transform: translateY(83%); opacity: 0; }
}
.landing-guided:is([data-build="-1"],[data-build="0"],[data-build="1"]) .guided-paper { border-color: #476456; background: #2b3b31; box-shadow: 0 11px 31px #06130879; }
.guided-paper-header { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding-bottom: 9px; border-bottom: 1px solid #a9cebd; }
.guided-paper-header strong { color: #18242d; font-size: 22px; letter-spacing: -.05em; }
.guided-paper-header span { color: var(--paper-accent); font-size: 10px; }
.guided-paper-section { margin-top: 13px; }
.guided-paper-section h4 {
  margin: 0 0 5px;
  border-bottom: 1px solid #bfd7c8;
  color: var(--paper-accent);
  font-size: 11px;
  font-weight: 700;
}
.guided-paper-section b { display: block; margin: 5px 0 1px; }
.guided-paper-header, .guided-paper-section { position: relative; min-width: 0; }
.guided-paper-header > *, .guided-paper-section > * {
  transition: opacity 420ms ease, transform 600ms cubic-bezier(.16,1,.3,1);
}
.guided-paper-header::before, .guided-paper-section::before {
  position: absolute;
  inset: 7px 0 0;
  height: min(100%, 52px);
  background: repeating-linear-gradient(180deg, #89b39b70 0 4px, transparent 4px 12px);
  -webkit-mask-image: linear-gradient(90deg, #000 0% 52%, transparent 94%);
  mask-image: linear-gradient(90deg, #000 0% 52%, transparent 94%);
  opacity: 0;
  transition: opacity 330ms;
  content: "";
}
.landing-guided:is([data-build="-1"],[data-build="0"],[data-build="1"]) :is(.guided-paper-header, .guided-paper-section) > *,
[data-build="2"] .guided-paper-section > *,
[data-build="3"] .guided-paper-section:last-child > * { opacity: 0; transform: translateY(6px); }
.landing-guided:is([data-build="-1"],[data-build="0"],[data-build="1"]) :is(.guided-paper-header,.guided-paper-section)::before,
[data-build="2"] .guided-paper-section::before,
[data-build="3"] .guided-paper-section:last-child::before { opacity: 1; }
.landing-guided:is([data-build="-1"],[data-build="0"],[data-build="1"]) .guided-paper-header { border-color: #6c9a7c76; }
.guided-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Iterate Demo Internals (Preserved & Proportioned) */
.iterate-workbench {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  min-width: 0;
  color: #e9f0e9;
  background: #151b16;
}

.iterate-toolbar {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--guided-line);
  background: #1c241e;
  color: #bacabc;
  font-size: 11px;
}
.iterate-toolbar span:first-child { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #e9f0e9; }
.iterate-toolbar img { width: 19px; height: 19px; }

.iterate-canvas {
  display: grid;
  min-width: 0;
  min-height: 394px;
  place-items: center;
  padding: 20px clamp(14px, 2.2vw, 28px);
  background: radial-gradient(#bfe1ca28 0.8px, transparent 0.9px) 0 0 / 12px 12px, #1f2721;
}
.iterate-paper {
  width: min(100%, 336px);
  min-width: 0;
  padding: 20px clamp(14px, 2vw, 22px) 19px;
  border-top: 3px solid #08745f;
  color: #303b3a;
  background: #f9fbf8;
  box-shadow: 0 15px 35px #08140cc7;
  font-size: 10.5px;
  line-height: 1.5;
}
.iterate-paper-header { display: flex; align-items: center; justify-content: space-between; gap: 5px; border-bottom: 1px solid #a5c9b8; padding-bottom: 8px; }
.iterate-paper-header strong { color: #172b28; font-size: 23px; letter-spacing: -.04em; }
.iterate-paper-header span { color: #116f59; font-weight: 600; }
.iterate-paper-section { margin-top: 12px; }
.iterate-paper h4 { margin: 0 0 5px; padding-bottom: 3px; border-bottom: 1px solid #bfdbcd; color: #146852; font-size: 11px; }
.iterate-paper-section p { margin-top: 3px; }

.iterate-target {
  position: relative;
  margin-top: 14px;
  padding-block: 11px 5px;
  isolation: isolate;
}
.iterate-target::before {
  position: absolute;
  z-index: -1;
  inset: 3px -7px -3px;
  border: 1px dashed transparent;
  border-radius: 7px;
  background: transparent;
  opacity: 0;
  transform: scale(.98);
  transition: opacity 220ms, background-color 240ms, border-color 240ms, transform 280ms cubic-bezier(.16,1,.3,1);
  content: "";
}
.landing-iterate:not([data-moment="original"]) .iterate-target::before {
  border-color: #4b946d;
  background: #d4f0e34f;
  opacity: 1;
  transform: none;
}
.landing-iterate:is([data-moment="selected"], [data-moment="typing"], [data-moment="applying"], [data-moment="updated"]) .iterate-target::before {
  border-style: solid;
  box-shadow: 0 0 0 2px #58ac8d22;
}
[data-moment="applying"] .iterate-target::before { animation: iterate-focus 750ms ease-in-out infinite alternate; }

.iterate-target-label {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: -3px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #f1fff6;
  background: #275b45;
  font-size: 9px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 230ms, transform 260ms cubic-bezier(.16,1,.3,1);
}
.iterate-target-label span { width: 5px; height: 5px; border-radius: 50%; background: #a8ebbb; }
.landing-iterate:not([data-moment="original"]) .iterate-target-label { opacity: 1; transform: none; }

.iterate-skill-styles { display: grid; min-height: 64px; align-items: center; }
.iterate-skill-styles > div { grid-area: 1 / 1; min-width: 0; transition: opacity 370ms ease, transform 430ms cubic-bezier(.16,1,.3,1); }
.iterate-skill-bars { display: grid; gap: 5px; }
.iterate-skill-bars span { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.iterate-skill-bars i { position: relative; width: 47%; height: 4px; border-radius: 10px; background: #c6e0d2; }
.iterate-skill-bars i::before { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: #25876b; content: ""; }
.iterate-skill-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; opacity: 0; transform: translateY(6px); }
.iterate-skill-chips span {
  padding: 4px 7px;
  border: 1px solid #acd7bf;
  border-radius: 20px;
  color: #215f47;
  background: #e0f2e7;
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px) scale(.93);
  transition: opacity 300ms ease, transform 450ms cubic-bezier(.16,1,.3,1);
}
[data-moment="updated"] .iterate-skill-bars { opacity: 0; transform: translateY(-4px); }
[data-moment="updated"] .iterate-skill-chips,
[data-moment="updated"] .iterate-skill-chips span { opacity: 1; transform: none; }
[data-moment="updated"] .iterate-skill-chips span:nth-child(2) { transition-delay: 95ms; }
[data-moment="updated"] .iterate-skill-chips span:nth-child(3) { transition-delay: 190ms; }

.iterate-panel {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px);
  border-left: 1px solid var(--guided-line);
}
.iterate-panel h4 { margin: 0 0 9px; font-size: 13px; font-weight: 650; }
.iterate-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.iterate-targets span {
  padding: 5px 7px;
  border: 1px solid #425346;
  border-radius: 6px;
  background: #212a23;
  color: #c6d1c6;
  font-size: 11px;
  white-space: nowrap;
  transition: border-color 230ms, color 230ms, background-color 230ms;
}
.landing-iterate:is([data-moment="selected"], [data-moment="typing"], [data-moment="applying"], [data-moment="updated"]) [data-iterate-scope] {
  border-color: #76be94;
  color: #baefd0;
  background: #2c4837;
}
.iterate-element p { margin-top: 10px; color: #a9c2ae; font-size: 11px; }
.iterate-instruction { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--guided-line); }
.iterate-input {
  min-height: 46px;
  padding: 8px;
  border: 1px solid #465549;
  border-radius: 7px;
  color: #e9f5eb;
  background: #111914;
  font-size: 11px;
  transition: border-color 260ms;
}
.landing-iterate:is([data-moment="original"], [data-moment="hover"], [data-moment="selected"]) .iterate-input::before {
  color: #a3b0a6;
  content: "描述你想调整的样式…";
}
[data-moment="typing"] .iterate-input { border-color: #83c49c; }
[data-moment="typing"] .iterate-input span::after {
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--guided-accent);
  animation: landing-caret 800ms steps(1) infinite;
  content: "";
}
.iterate-apply {
  display: inline-flex;
  margin-top: 11px;
  padding: 7px 11px;
  border: 1px solid #75b795;
  border-radius: 7px;
  color: #12271a;
  background: #a3ecc1;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 210ms, transform 250ms;
}
.landing-iterate:is([data-moment="original"], [data-moment="hover"], [data-moment="selected"]) .iterate-apply {
  border-color: #486c56;
  color: #a6c5af;
  background: #294735;
}
[data-moment="applying"] .iterate-apply { transform: scale(.96); background: #d3f4df; }
.iterate-feedback { min-height: 16px; margin-top: 8px; color: #a6e5bb; font-size: 11px; }

@keyframes iterate-focus {
  to { background: #acd9bf8c; box-shadow: 0 0 0 3px #49b48242; }
}
.landing-iterate[data-running="false"] :is(.iterate-target, .landing-demo-cursor)::before,
.landing-iterate[data-running="false"] .iterate-input span::after { animation-play-state: paused; }

/* Capabilities Architectural Grid */
.landing-capabilities {
  padding-block: clamp(64px, 7vw, 104px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 32, 24, 0.35) 0%, transparent 100%);
  scroll-margin-top: 72px;
}

.landing-capabilities-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-feature {
  position: relative;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  transition: background-color 220ms ease;
}

.landing-feature:first-child {
  padding-left: 0;
}

.landing-feature:last-child {
  padding-right: 0;
}

.landing-feature + .landing-feature {
  border-left: 1px solid var(--line);
}

.landing-feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(208, 249, 158, 0.2);
  border-radius: 10px;
  background: rgba(208, 249, 158, 0.06);
  color: var(--accent);
}

.landing-feature h3 {
  margin-top: 22px;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-feature p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

/* Open Atmospheric CTA */
.landing-cta {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 68% 72% at 50% 100%, rgba(54, 118, 72, 0.34), transparent 72%),
    radial-gradient(ellipse 40% 42% at 50% 80%, rgba(208, 249, 158, 0.09), transparent 70%);
}

.landing-cta::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(178, 237, 192, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 237, 192, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 85% at 50% 85%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 85% at 50% 85%, #000 0%, transparent 72%);
}

.landing-cta-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(72px, 8.5vw, 120px);
}

.landing-cta-lead {
  max-width: 460px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.landing-cta-actions {
  margin-top: 30px;
}

/* Footer */
.landing-footer {
  border-top: 1px solid var(--line);
  background: #070a08;
}

.landing-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 26px;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.landing-footer .landing-brand { font-size: 15px; }
.landing-footer .landing-brand img { width: 26px; height: 26px; border-radius: 6px; }
.landing-footer-note {
  color: var(--muted-soft);
  font-size: 13px;
}

.landing-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 13px;
}

.landing-footer nav a {
  transition: color 180ms;
}

.landing-footer nav a:hover {
  color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 1060px) {
  .landing-showcase,
  .landing-showcase-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .landing-showcase-reverse .landing-showcase-copy,
  .landing-showcase-reverse .landing-showcase-stage {
    order: initial;
  }
  .landing-showcase-copy {
    max-width: 660px;
  }
  .landing-showcase-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .landing-hero-inner { gap: 28px; }
  .landing-desktop-break { display: none; }
  .landing-editor-bar { gap: 6px; }
  .landing-editor-zoom { display: none; }
  .landing-canvas { padding: 16px 12px; }
  .landing-editor-body { min-height: 392px; }
  .landing-paper { min-height: 359px; }
  .landing-editor-drawer { padding-inline: 7px; }
  .landing-section-head { grid-template-columns: minmax(0, 1fr); }
  .landing-ribbon { grid-template-columns: minmax(0, 1fr); }
  .landing-ribbon-item { padding: 16px 0; }
  .landing-ribbon-item + .landing-ribbon-item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .landing-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-feature,
  .landing-feature:first-child,
  .landing-feature:last-child {
    padding: 24px 0;
  }
  .landing-feature + .landing-feature {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 740px) {
  .landing-header-inner {
    grid-template-columns: 1fr auto;
    min-height: 60px;
  }
  .landing-nav { display: none; }
  .landing-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 44px 48px;
    gap: 36px;
  }
  .landing-hero h1 { font-size: clamp(46px, 11.8vw, 72px); }
  .landing-eyebrow { margin-bottom: 18px; }
  .landing-lead { margin-top: 18px; }
  .landing-actions { margin-top: 24px; }
  .landing-preview { width: min(100%, 540px); margin-inline: auto; }
  .landing-showcase-points { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 650px) {
  .guided-workbench { grid-template-columns: minmax(0, 1fr); }
  .guided-stage { min-height: 231px; margin-top: 14px; }
  .guided-preview { border-left: 0; border-top: 1px solid var(--guided-line); }
  .guided-paper { width: min(100%, 238px); }
  .iterate-workbench { grid-template-columns: minmax(0, 1fr); }
  .iterate-canvas { min-height: auto; }
  .iterate-panel { border-left: 0; border-top: 1px solid var(--guided-line); }
}

@media (max-width: 430px) {
  .landing-editor-body { grid-template-columns: minmax(0, 1fr); min-height: 355px; }
  .landing-editor-drawer, .landing-editor-toolbar { display: none; }
  .landing-canvas { padding: 14px 18px; }
  .landing-paper { min-height: 326px; padding: 14px 12px; }
  .landing-polish-dialog { width: min(300px, 100% - 22px); right: 11px; bottom: 13px; }
  .landing-editor-confirm { right: 10px; bottom: 12px; }
  .landing-demo-footer { flex-wrap: wrap; gap: 5px; }
  .landing-demo-controls { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing-glow { animation: none; }
  .landing-demo-cursor { display: none; }
  .landing-primary, .landing-login { transition: none; }
  .landing-primary:hover { transform: none; }
  .landing-preview *, .landing-preview *::before { animation: none !important; transition: none !important; }
  .landing-guided *, .landing-guided *::before, .landing-guided *::after { animation: none; transition: none; }
  .guided-cursor { display: none; }
}

/* Changelog Dialog */
.changelog-dialog {
  --accent: #d0f99e;
  color-scheme: dark;
  width: min(820px, calc(100vw - 24px));
  max-height: min(84dvh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(208, 249, 158, 0.22);
  border-radius: 18px;
  background: #0d1410;
  color: #eef4eb;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.78),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.changelog-dialog::backdrop {
  background: rgba(4, 7, 5, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.changelog-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: changelog-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes changelog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.changelog-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}

.changelog-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  background: radial-gradient(ellipse 70% 120% at 15% 0%, rgba(44, 102, 68, 0.28), transparent 72%);
}

.changelog-panel-head h2 {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.changelog-lead {
  margin-top: 8px;
  color: #98a99c;
  font-size: 13.5px;
  line-height: 1.65;
}

.changelog-close {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #b7c6b9;
  cursor: pointer;
  transition: color 160ms, border-color 160ms, background-color 160ms;
}

.changelog-close:hover {
  border-color: rgba(208, 249, 158, 0.4);
  background: rgba(208, 249, 158, 0.1);
  color: #d0f99e;
}

.changelog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 16px;
  border-bottom: 1px solid rgba(208, 249, 158, 0.11);
}

.changelog-filters button {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #98a99c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms, border-color 160ms, background-color 160ms;
}

.changelog-filters button:hover {
  border-color: rgba(208, 249, 158, 0.3);
  color: #eef4eb;
}

.changelog-filters button.is-active {
  border-color: rgba(208, 249, 158, 0.42);
  background: rgba(208, 249, 158, 0.12);
  color: #d0f99e;
}

.changelog-scroll {
  overflow-y: auto;
  padding: 24px 28px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 249, 158, 0.22) transparent;
}

.changelog-scroll::-webkit-scrollbar {
  width: 6px;
}

.changelog-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 8px;
}

.changelog-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(208, 249, 158, 0.18);
}

.changelog-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(208, 249, 158, 0.36);
}

.changelog-timeline {
  display: grid;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 16px 28px;
  padding-block: 24px;
}

.changelog-entry:first-of-type {
  padding-top: 0;
}

.changelog-entry + .changelog-entry {
  border-top: 1px solid rgba(208, 249, 158, 0.1);
}

.changelog-meta {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.changelog-version {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #eef4eb;
}

.changelog-entry.is-latest .changelog-version {
  border-color: rgba(208, 249, 158, 0.36);
  background: rgba(208, 249, 158, 0.1);
  color: #d0f99e;
}

.changelog-version em {
  padding: 1px 6px;
  border-radius: 999px;
  background: #d0f99e;
  color: #101b09;
  font-family: "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.changelog-date {
  color: #78897c;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.changelog-body {
  position: relative;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(208, 249, 158, 0.12);
}

.changelog-body::before {
  position: absolute;
  top: 6px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #2b4434;
  border-radius: 50%;
  background: #0d1410;
  content: "";
}

.changelog-entry.is-latest .changelog-body::before {
  border-color: #d0f99e;
  background: #d0f99e;
  box-shadow: 0 0 10px rgba(208, 249, 158, 0.65);
}

.changelog-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.changelog-summary {
  margin-top: 7px;
  color: #98a99c;
  font-size: 13.5px;
  line-height: 1.7;
}

.changelog-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.changelog-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  color: #d6e2d7;
  font-size: 13.5px;
  line-height: 1.65;
}

.changelog-list li[hidden],
.changelog-entry[hidden] {
  display: none;
}

.changelog-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.changelog-tag-added {
  border: 1px solid rgba(208, 249, 158, 0.28);
  background: rgba(208, 249, 158, 0.09);
  color: #d0f99e;
}

.changelog-tag-improved {
  border: 1px solid rgba(110, 231, 183, 0.28);
  background: rgba(110, 231, 183, 0.09);
  color: #6ee7b7;
}

.changelog-tag-fixed {
  border: 1px solid rgba(245, 200, 128, 0.28);
  background: rgba(245, 200, 128, 0.09);
  color: #f3c882;
}

@media (max-width: 680px) {
  .changelog-panel-head { padding: 20px 18px 14px; }
  .changelog-filters { padding: 0 18px 14px; }
  .changelog-scroll { padding: 18px 18px 24px; }
  .changelog-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .changelog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .changelog-body {
    padding-left: 0;
    border-left: 0;
  }
  .changelog-body::before { display: none; }
}
