:root {
  --ink: #28251f;
  --muted: #736e63;
  --paper: #f6f1e7;
  --panel: #fffaf0;
  --line: #dcd3c3;
  --orange: #ee7d2d;
  --orange-dark: #c65c18;
  --green: #bfd4c8;
  --green-dark: #41685a;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 780; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: #fff; background: var(--ink); font-size: 12px; letter-spacing: -.04em; }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--ink); }

.hero { min-height: 670px; padding: 72px 0 96px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 68px; }
.eyebrow { margin: 0 0 18px; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(46px, 5.8vw, 76px); line-height: 1.06; letter-spacing: -.06em; }
h1 span { color: var(--orange-dark); }
.lede { max-width: 500px; margin: 27px 0 0; color: var(--muted); font-size: 19px; line-height: 1.8; }
.actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-width: 138px; padding: 14px 23px; border: 1px solid var(--ink); border-radius: 999px; text-align: center; text-decoration: none; font-weight: 720; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--ink); }
.button.secondary:hover { background: #eee6d9; }
.note { margin-top: 19px; color: var(--muted); font-size: 12px; }

.demo-frame { position: relative; display: block; aspect-ratio: 1.36; overflow: hidden; border: 1px solid #aea697; border-radius: 30px; background: var(--green); text-decoration: none; transform: rotate(1.2deg); transition: transform .25s ease; }
.demo-frame:hover { transform: rotate(0) translateY(-5px); }
.window-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: #ede8de; border-bottom: 1px solid #c9c1b4; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b9b1a4; }
.window-bar i:first-child { background: var(--orange); }
.window-bar span { margin-left: 8px; color: #7c766c; font-size: 11px; }
.demo-frame iframe { display: block; width: 100%; height: calc(100% - 42px); border: 0; pointer-events: none; }
.demo-cover { position: absolute; right: 18px; bottom: 18px; padding: 11px 15px; border-radius: 999px; color: #fff; background: rgba(40,37,31,.9); font-size: 13px; font-weight: 700; }
.demo-cover b { margin-left: 6px; }

.how { padding: 110px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.15; letter-spacing: -.05em; }
.feature-list article { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature-list article:first-child { padding-top: 0; }
.feature-list article > span { color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.feature-list h3 { margin: -5px 0 7px; font-size: 20px; }
.feature-list p { margin: 0; color: var(--muted); line-height: 1.7; }

.install { padding: 110px 0 120px; }
.section-intro { max-width: 600px; margin: 18px 0 38px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.platform { min-height: 290px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.platform:hover { transform: translateY(-4px); border-color: #aaa191; }
.platform.recommended { color: #eef7f1; background: var(--green-dark); border-color: var(--green-dark); }
.badge { align-self: flex-start; padding: 6px 9px; border-radius: 999px; color: var(--green-dark); background: #d9e9df; font-size: 11px; font-weight: 800; }
.badge.neutral { color: var(--muted); background: #eee7da; }
.os { margin-top: 45px; font-size: 34px; font-weight: 830; letter-spacing: -.04em; }
.platform strong { margin-top: 5px; font-size: 16px; }
.platform small { margin-top: 10px; opacity: .72; }
.platform b { margin-top: auto; font-size: 14px; }
footer { height: 100px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
footer a { color: var(--ink); }

.guide-page { min-height: 100vh; }
.guide { padding: 72px 0 110px; }
.back { display: inline-block; margin-bottom: 46px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }
.guide-head { max-width: 760px; }
.guide-head h1 { font-size: clamp(40px, 6vw, 68px); }
.guide-head .lede { max-width: 650px; }
.steps { margin-top: 65px; counter-reset: steps; border-top: 1px solid var(--line); }
.step { counter-increment: steps; display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: center; min-height: 165px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(steps); color: var(--orange-dark); font-weight: 850; }
.step h2 { margin: 0 0 9px; font-size: 25px; letter-spacing: -.03em; }
.step p { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.75; }
.step .button { white-space: nowrap; font-size: 14px; }
.copy-row { display: flex; gap: 10px; margin-top: 16px; }
.url-box { width: min(100%, 520px); overflow: hidden; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-overflow: ellipsis; }
.copy-button { border: 0; border-radius: 12px; padding: 0 17px; color: #fff; background: var(--ink); font: inherit; cursor: pointer; }
.tip { margin-top: 32px; padding: 22px 25px; border-radius: 17px; color: #365448; background: #dae8e0; line-height: 1.7; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 680px); }
  .nav { height: 64px; }
  nav { gap: 16px; }
  nav a:first-child { display: none; }
  .hero { padding: 54px 0 72px; grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .demo-frame { transform: none; }
  .how { padding: 78px 0; grid-template-columns: 1fr; gap: 45px; }
  .platforms { grid-template-columns: 1fr; }
  .install { padding: 78px 0 88px; }
  .step { grid-template-columns: 44px 1fr; }
  .step .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  h1 { font-size: 43px; }
  .hero { padding-top: 35px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .demo-frame { border-radius: 21px; }
  .how { padding-top: 66px; }
  .copy-row { flex-direction: column; }
  .copy-button { min-height: 46px; }
  .guide { padding-top: 44px; }
  .step { align-items: start; }
}

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

/* Immersive installation guides */
.guide-page { --guide-white:#fffdf6; --guide-line:rgba(255,255,255,.16); color:var(--guide-white); background:#15201d; background-image:radial-gradient(circle at 78% 12%,rgba(255,184,79,.13),transparent 28%),linear-gradient(145deg,#18231f,#0e1513); }
.guide-topbar { height:94px; display:flex; align-items:center; justify-content:space-between; }
.guide-brand { display:flex; flex-direction:column; gap:5px; color:var(--guide-white); text-decoration:none; }
.guide-brand .wordmark { font-family:"Segoe Script", "Bradley Hand", "Brush Script MT", cursive; font-size:24px; font-weight:600; letter-spacing:-.06em; line-height:.9; }
.guide-brand .wordmark>span { color:#ffc367; }
.guide-brand small { color:rgba(255,255,255,.66); font-family:"Segoe Script", "Bradley Hand", "Brush Script MT", cursive; font-size:12px; letter-spacing:-.02em; font-weight:500; }
.platform-switch { display:flex; align-items:center; gap:5px; padding:6px 7px 6px 17px; border:1px solid rgba(255,255,255,.24); border-radius:999px; background:rgba(6,10,9,.28); backdrop-filter:blur(14px); }
.platform-switch span { margin-right:7px; font-size:12px; font-weight:800; }
.platform-switch a { display:grid; place-items:center; min-width:44px; height:32px; border-radius:999px; color:rgba(255,255,255,.68); text-decoration:none; font-size:10px; font-weight:900; letter-spacing:.08em; }
.platform-switch a.active,.platform-switch a:hover { color:#171712; background:#fffdf6; }
.guide-page .guide { padding:72px 0 110px; }
.guide-page .guide-head { max-width:820px; }
.guide-page .eyebrow { color:#ffc367; }
.guide-page .lede { color:rgba(255,255,255,.62); }
.guide-page .steps { margin-top:72px; border-top-color:var(--guide-line); }
.guide-page .step { grid-template-columns:70px minmax(260px,.78fr) minmax(360px,1.22fr); min-height:340px; border-bottom-color:var(--guide-line); }
.guide-page .step::before { align-self:start; padding-top:8px; color:#ffc367; }
.guide-page .step>div { align-self:start; padding-top:4px; }
.guide-page .step p { color:rgba(255,255,255,.58); }
.guide-page .step .button { display:inline-block; width:auto; margin-top:24px; border-color:rgba(255,255,255,.28); color:var(--guide-white); }
.guide-page .step .button:hover { color:#171712; background:#ffc367; }
.step-media { grid-column:3; grid-row:1; width:100%; margin:0; aspect-ratio:16/9; overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:20px; background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.025)); }
.step-media>div { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:rgba(255,255,255,.54); }
.step-media span { display:grid; place-items:center; width:48px; height:48px; border:1px solid rgba(255,255,255,.24); border-radius:50%; color:#ffc367; font-size:11px; font-weight:900; }
.step-media b { color:rgba(255,255,255,.8); font-size:14px; }
.step-media small { font-size:10px; }
.step-media img { display:block; width:100%; height:100%; object-fit:contain; background:#111714; }
.step-media:has(img) { cursor:zoom-in; }
.step-media figcaption { position:absolute; left:12px; right:12px; bottom:12px; padding:9px 12px; border-radius:10px; color:rgba(255,255,255,.82); background:rgba(7,11,10,.76); backdrop-filter:blur(10px); font-size:10px; line-height:1.5; }
.step-media { position:relative; }
.download-actions { display:flex; flex-direction:column; align-items:flex-start; gap:13px; margin-top:24px; }
.guide-page .download-actions .button { margin-top:0; }
.text-link { color:#ffc367; font-size:12px; font-weight:800; text-decoration:none; }
.text-link:hover { text-decoration:underline; }
.image-lightbox { position:fixed; z-index:1000; inset:0; padding:clamp(18px,4vw,54px); border:0; width:100%; height:100%; max-width:none; max-height:none; color:#fff; background:rgba(5,8,7,.9); backdrop-filter:blur(12px); opacity:0; transition:opacity .2s ease; }
.image-lightbox[open] { opacity:1; }
.image-lightbox::backdrop { background:transparent; }
.image-lightbox img { display:block; width:100%; height:100%; object-fit:contain; border-radius:12px; filter:drop-shadow(0 28px 50px rgba(0,0,0,.5)); }
.image-lightbox button { position:fixed; top:22px; right:24px; display:grid; place-items:center; width:42px; height:42px; border:1px solid rgba(255,255,255,.3); border-radius:50%; color:#fff; background:rgba(255,255,255,.08); cursor:pointer; font-size:24px; }
.guide-page .url-box { border-color:rgba(255,255,255,.2); color:#fffdf6; background:rgba(0,0,0,.18); }
.guide-page .copy-button { color:#171712; background:#ffc367; font-weight:800; }
.guide-page .tip { color:#e6f4ed; background:rgba(95,144,121,.22); border:1px solid rgba(177,221,199,.18); }

@media(max-width:820px){.guide-topbar{height:78px}.guide-page .guide{padding-top:46px}.guide-page .step{grid-template-columns:42px 1fr;padding-block:36px}.guide-page .step>div{grid-column:2}.step-media{grid-column:1 / -1;grid-row:auto;margin-top:16px}.platform-switch>span{display:none}}
