:root {
  color-scheme: light;
  --bg: #f2f4ef;
  --surface: #e7ebe3;
  --surface-strong: #dce2d7;
  --ink: #151914;
  --muted: #596157;
  --line: rgba(21, 25, 20, 0.16);
  --accent: #a8d83e;
  --accent-ink: #18200a;
  --header: rgba(242, 244, 239, 0.86);
  --shadow: rgba(27, 41, 20, 0.15);
  --radius: 16px;
  --max: 1240px;
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10130f;
  --surface: #171b16;
  --surface-strong: #20261e;
  --ink: #edf1e9;
  --muted: #a7afa3;
  --line: rgba(237, 241, 233, 0.14);
  --accent: #b6df4a;
  --accent-ink: #171d0b;
  --header: rgba(16, 19, 15, 0.84);
  --shadow: rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; transform: translateY(-150%); background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; letter-spacing: -0.06em; }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); white-space: nowrap; }
nav a:hover, .header-link:hover, .language-link:hover, footer a:hover, .text-link:hover { color: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.header-link { font-size: 14px; color: var(--muted); }
.language-link { font: 700 12px "Cascadia Mono", "Microsoft YaHei UI", monospace; color: var(--muted); letter-spacing: 0.04em; }
.theme-toggle { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 7px; }
.theme-toggle span { display: block; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1px solid var(--ink); }
.theme-toggle:active, .button:active { transform: translateY(1px); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 750; line-height: 1; white-space: nowrap; transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.button-ghost { color: #edf1e9; background: rgba(16, 19, 15, 0.46); border-color: rgba(237, 241, 233, 0.36); backdrop-filter: blur(12px); }
.text-link { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; background: #10130f; color: #edf1e9; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero-shade { background: linear-gradient(90deg, rgba(10, 12, 10, 0.94) 0%, rgba(10, 12, 10, 0.72) 38%, rgba(10, 12, 10, 0.08) 73%), linear-gradient(0deg, rgba(10, 12, 10, 0.56), transparent 55%); }
.hero-content { position: relative; width: min(var(--max), calc(100% - 48px)); margin: 72px auto 0; padding: 72px 0; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-family: "Cascadia Mono", "Microsoft YaHei UI", monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(48px, 6.4vw, 92px); line-height: 1.04; letter-spacing: -0.065em; }
.hero-copy { max-width: 590px; margin: 26px 0 0; color: #cdd4c8; font-size: clamp(17px, 1.6vw, 21px); }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 112px 0; }
.section-heading { max-width: 720px; }
.section h2 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -0.05em; }
.section-heading p, .conversion-copy > p:last-child, .workspace-copy > p, .source-panel p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 22px 0 0; }

.problem { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 100px; align-items: start; }
.pain-track { border-top: 1px solid var(--line); }
.pain-item { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pain-item strong { font-size: 18px; }
.pain-item span { color: var(--muted); }

.conversion { position: relative; display: grid; grid-template-columns: 0.76fr 1.24fr; gap: 64px; align-items: center; }
.conversion-visual { position: relative; min-height: 600px; }
.conversion figure { margin: 0; }
.conversion figure img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.conversion figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.panorama-frame { position: absolute; top: 0; right: 0; width: 76%; }
.panorama-frame img { aspect-ratio: 2 / 1; }
.flat-frame { position: absolute; left: 0; bottom: 0; width: 66%; }
.flat-frame img { aspect-ratio: 16 / 9; border: 8px solid var(--bg); box-shadow: 0 30px 70px var(--shadow); }

.workspace { width: min(1420px, calc(100% - 48px)); }
.workspace-copy { display: grid; grid-template-columns: 1.2fr 0.8fr; column-gap: 80px; align-items: end; margin-bottom: 38px; }
.workspace-copy > p { align-self: end; }
.workspace-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.workspace-facts span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; }
.app-shot { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0e110e; box-shadow: 0 34px 90px var(--shadow); }
.app-shot img { width: 100%; }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; margin-top: 54px; }
.feature { position: relative; grid-column: span 4; min-height: 230px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-wide { grid-column: span 7; }
.feature-accent { grid-column: span 5; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.feature-tall { grid-column: span 5; }
.feature-grid .feature:last-child { grid-column: span 3; }
.feature h3 { margin: 0 0 8px; font-size: 25px; letter-spacing: -0.03em; }
.feature p { max-width: 370px; margin: 0; color: var(--muted); }
.feature-accent p { color: rgba(24, 32, 10, 0.72); }
.keyframe-demo { position: absolute; right: 32px; bottom: 34px; width: 42%; height: 60px; border-bottom: 1px solid var(--line); }
.keyframe-demo b { position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--line); }
.keyframe-demo i { position: absolute; top: 22px; width: 13px; height: 13px; background: var(--accent); transform: rotate(45deg); }
.keyframe-demo i:nth-child(1) { left: 8%; }
.keyframe-demo i:nth-child(2) { left: 48%; }
.keyframe-demo i:nth-child(3) { right: 8%; }
.local-ring { position: absolute; width: 150px; height: 150px; right: -20px; bottom: -28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.local-ring::before { content: ""; position: absolute; inset: 20px; border: 1px solid var(--line); border-radius: 50%; }
.local-ring span { font: 700 11px "Cascadia Mono", monospace; color: var(--accent); letter-spacing: 0.18em; }

.workflow h2 { max-width: 720px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.workflow-grid article { min-height: 240px; padding: 26px 0; border-top: 2px solid var(--ink); }
.workflow-grid span { color: var(--accent); font-weight: 800; }
.workflow-grid h3 { margin: 62px 0 8px; font-size: 23px; }
.workflow-grid p { color: var(--muted); margin: 0; }

.source-panel { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 60px; padding: 58px; border-radius: var(--radius); background: var(--surface-strong); }
.source-panel h2 { max-width: 760px; }
.source-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }

footer { width: min(var(--max), calc(100% - 48px)); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
footer > div { display: flex; gap: 20px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms cubic-bezier(.16, 1, .3, 1), transform 650ms cubic-bezier(.16, 1, .3, 1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #10130f; --surface: #171b16; --surface-strong: #20261e; --ink: #edf1e9; --muted: #a7afa3; --line: rgba(237, 241, 233, 0.14); --accent: #b6df4a; --accent-ink: #171d0b; --header: rgba(16, 19, 15, 0.84); --shadow: rgba(0, 0, 0, 0.34); }
}

@media (max-width: 980px) {
  .site-header { display: flex; justify-content: space-between; padding: 0 20px; }
  nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-link { display: none; }
  .problem, .conversion { grid-template-columns: 1fr; gap: 48px; }
  .conversion-visual { min-height: 560px; }
  .workspace-copy { grid-template-columns: 1fr; }
  .feature, .feature-wide, .feature-accent, .feature-tall, .feature-grid .feature:last-child { grid-column: span 6; }
  .source-panel { grid-template-columns: 1fr; align-items: start; }
  .source-actions { flex-direction: row; align-items: center; }
  footer { grid-template-columns: 1fr 1fr; padding: 32px 0; }
  footer > div { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; }
  .header-actions { position: absolute; right: 16px; gap: 8px; }
  .language-link { font-size: 11px; }
  .header-actions .button { padding: 0 12px; font-size: 12px; }
  .desktop-label { display: none; }
  .brand > span:last-child { display: none; }
  .hero-content { width: calc(100vw - 32px); max-width: none; margin: 64px 16px 0; padding: 58px 0; }
  .hero h1 { max-width: 100%; font-size: 40px; letter-spacing: -0.05em; overflow-wrap: anywhere; }
  .hero-copy { max-width: 100%; font-size: 16px; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 12, 10, 0.9) 10%, rgba(10, 12, 10, 0.42) 90%); }
  .hero-media img { object-position: 70% center; }
  .hero-actions, .source-actions { flex-direction: column; align-items: stretch; }
  .section { width: calc(100% - 32px); padding: 78px 0; }
  .section h2 { font-size: 38px; }
  .pain-item { grid-template-columns: 1fr; gap: 7px; }
  .conversion-visual { min-height: 400px; }
  .panorama-frame { width: 92%; }
  .flat-frame { width: 82%; }
  .workspace { width: calc(100% - 24px); }
  .workspace-copy { padding: 0 4px; }
  .workspace-facts { flex-direction: column; align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature-wide, .feature-accent, .feature-tall, .feature-grid .feature:last-child { grid-column: 1; }
  .keyframe-demo { opacity: 0.54; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: auto; }
  .workflow-grid h3 { margin-top: 28px; }
  .source-panel { padding: 32px 24px; }
  footer { grid-template-columns: 1fr; }
  footer > div { grid-column: auto; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
