:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: #0d111b;
  --surface: #121827;
  --surface-2: #171e2e;
  --line: rgba(255,255,255,.08);
  --muted: #8f99ac;
  --text: #f4f7fb;
  --blue: #78a8ff;
  --violet: #ab8dff;
  --green: #5fe2ac;
  --amber: #ffc66d;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { min-width: 0; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 78% 8%, rgba(87,88,255,.12), transparent 28%), radial-gradient(circle at 15% 34%, rgba(51,127,255,.07), transparent 23%), var(--bg); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--blue); color: #07101d; }
.skip-link:focus { top: 16px; }
.site-header { width: min(1180px, calc(100% - 40px)); height: 66px; margin: 12px auto 0; padding: 0 10px 0 16px; position: sticky; top: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,11,18,.78); backdrop-filter: blur(20px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 720; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; padding-bottom: 8px; display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: linear-gradient(145deg,#1b2437,#0d1220); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.brand-mark i, .mini-mark b { width: 4px; border-radius: 999px; background: linear-gradient(#91bdff,#745cff); box-shadow: 0 0 10px rgba(111,128,255,.5); }
.brand-mark i:first-child, .mini-mark b:first-child { height: 10px; }
.brand-mark i:nth-child(2), .mini-mark b:nth-child(2) { height: 18px; }
.brand-mark i:last-child, .mini-mark b:last-child { height: 14px; }
.brand-mark.small { width: 30px; height: 30px; border-radius: 10px; padding-bottom: 6px; }
.site-header nav { display: flex; gap: 30px; color: var(--muted); font-size: 13px; }
.site-header nav a { transition: color .2s; }
.site-header nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 8px; }
.language-button, .github-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); cursor: pointer; }
.language-button { width: auto; min-width: 48px; padding: 0 11px; color: #aeb9cb; font-size: 12px; }
.github-button svg { width: 18px; fill: #dce3ee; }

.hero { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 78px); margin: 0 auto; padding: 88px 0 84px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.eyebrow, .section-label { color: #8792a6; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { max-width: 620px; margin: 22px 0; font-size: clamp(48px, 5.6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: #aab4c6; font-style: normal; font-weight: 500; }
.hero-copy > p { max-width: 570px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; }
.button { min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 680; cursor: pointer; transition: transform .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); }
.button-primary { border-color: rgba(123,139,255,.34); background: linear-gradient(135deg,#659dff,#765ff0); box-shadow: 0 14px 30px rgba(89,101,255,.2); }
.button-secondary { background: rgba(255,255,255,.04); }
.hero-notes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px 18px; color: #7f8a9d; font-size: 12px; }
.hero-notes > span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.green { color: var(--green); }.blue { color: var(--blue); }.violet { color: var(--violet); }.amber { color: var(--amber); }

.product-preview { min-width: 0; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 24px; background: #090d15; box-shadow: var(--shadow); transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.product-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg,rgba(255,255,255,.045),transparent 30%); }
.preview-bar { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); background: #121722; }
.preview-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #505a6b; }
.preview-bar small { margin: auto; padding-right: 38px; color: #606b7d; font-size: 9px; }
.desktop-shot { width: 100%; }
.phone-shot { width: 30%; position: absolute; right: 4%; bottom: -4%; z-index: 2; padding: 7px; overflow: hidden; border: 2px solid rgba(255,255,255,.24); border-radius: 26px; background: #05070c; box-shadow: 0 24px 55px rgba(0,0,0,.65); transform: rotate(2deg); }
.phone-shot > span { width: 38%; height: 13px; position: absolute; left: 31%; top: 7px; z-index: 2; border-radius: 0 0 9px 9px; background: #05070c; }
.phone-shot img { border-radius: 19px; }
.live-status { position: absolute; left: 18px; bottom: 18px; z-index: 3; padding: 8px 11px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(120,168,255,.16); border-radius: 999px; background: rgba(14,20,32,.88); color: #bdd1ff; font-size: 11px; backdrop-filter: blur(12px); }
.live-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 9px var(--blue); }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section h2 { max-width: 720px; margin: 10px 0 0; font-size: clamp(36px,4.5vw,58px); line-height: 1.06; letter-spacing: -.045em; }
.section-head > p { max-width: 360px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.demo { padding-top: 78px; }
.demo-grid { display: grid; grid-template-columns: 1.32fr .84fr .84fr; gap: 12px; }
.demo-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,rgba(18,24,39,.96),rgba(10,14,23,.98)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.demo-visual { height: 330px; position: relative; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 20%,rgba(107,105,255,.13),transparent 47%),#090d15; }
.demo-card.desktop .demo-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.demo-card.phone .demo-visual { padding: 24px 20px 0; }
.demo-card.phone .demo-visual img { width: auto; height: 100%; border: 1px solid rgba(255,255,255,.11); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 20px 48px rgba(0,0,0,.45); }
.demo-copy { min-height: 128px; padding: 20px; display: flex; gap: 14px; }
.demo-copy > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(120,168,255,.2); border-radius: 9px; background: rgba(120,168,255,.07); color: #91b7ff; font-size: 10px; font-weight: 700; }
.demo-copy h3 { margin: 2px 0 7px; font-size: 16px; }
.demo-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.feature-card { min-height: 260px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,rgba(18,24,39,.96),rgba(13,17,27,.98)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid color-mix(in srgb,currentColor 22%,transparent); border-radius: 13px; background: color-mix(in srgb,currentColor 8%,transparent); font-size: 18px; }
.feature-card h3 { margin: auto 0 9px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.how { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.how-copy p { max-width: 540px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.trust-list { margin-top: 26px; display: grid; gap: 9px; }
.trust-list > * { min-width: 0; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.trust-list i { width: 7px; height: 7px; grid-row: 1 / span 2; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(95,226,172,.55); }
.trust-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.trust-list small { margin-top: 2px; overflow: hidden; color: #748096; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.trust-list a { transition: border-color .2s,background .2s; }
.trust-list a:hover { border-color: rgba(120,168,255,.22); background: rgba(120,168,255,.055); }
.flow { padding: 30px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg,rgba(18,24,39,.9),rgba(10,14,23,.96)); }
.flow > i { color: #4f5b70; font-style: normal; }
.flow-step { min-width: 0; padding: 18px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.flow-step > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.06); color: #bdc6d6; }
.flow-step.active { border-color: rgba(120,168,255,.22); background: rgba(91,121,255,.08); }
.mini-mark { padding-bottom: 7px!important; display: flex!important; align-items: flex-end!important; justify-content: center!important; gap: 2px!important; }
.mini-mark b { width: 3px; }
.flow-step strong,.flow-step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-step strong { font-size: 13px; }
.flow-step small { margin-top: 4px; color: #748096; font-size: 10px; }

.install { padding-bottom: 82px; }
.install-card { padding: 42px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: center; border: 1px solid rgba(120,168,255,.15); border-radius: 26px; background: linear-gradient(135deg,rgba(77,104,210,.12),rgba(84,54,150,.07)); }
.install-copy h2 { font-size: clamp(34px,4vw,52px); }
.install-copy p { margin: 18px 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.install-copy small { color: #717d91; font-size: 11px; }
.release-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.release-line > a { padding: 5px 8px; border: 1px solid rgba(95,226,172,.16); border-radius: 8px; background: rgba(95,226,172,.055); color: #8fd8ba; font-size: 10px; }
.recovery-link { margin-top: 16px; padding: 0; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #90aaff; font-size: 12px; cursor: pointer; }
.recovery-link:hover { color: #b8c7ff; }
.manual-download { margin-top: 11px; display: flex; align-items: center; gap: 7px; color: #717d91; font-size: 11px; }
.manual-download:hover { color: #aab4c6; }
.prompt-box { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #0a0e17; box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.prompt-head { min-height: 50px; padding: 0 11px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #778398; font-size: 10px; letter-spacing: .1em; }
.prompt-head button { min-height: 32px; padding: 0 10px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); cursor: pointer; }
.prompt-head button b { color: #6c778a; font-size: 9px; }
.prompt-box pre { max-height: 220px; margin: 0; padding: 22px; overflow: auto; white-space: pre-wrap; }
.prompt-box code { color: #cfd7e4; font: 11px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace; }
.compatibility-note { margin: 12px 4px 0; color: #626d80; font-size: 11px; }

footer { width: min(1180px,calc(100% - 40px)); min-height: 120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 20px; align-items: center; border-top: 1px solid var(--line); color: #677386; font-size: 11px; }
footer p { text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 18px; }
.toast { max-width: calc(100% - 32px); position: fixed; left: 50%; bottom: 24px; z-index: 90; padding: 11px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #171e2e; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%,12px); pointer-events: none; transition: .2s; font-size: 12px; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease,transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { width: calc(100% - 24px); top: 8px; margin-top: 8px; }
  .site-header nav { display: none; }
  .hero { width: calc(100% - 32px); min-height: auto; padding: 72px 0; grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions,.hero-notes { justify-content: center; }
  .product-preview { width: min(760px,100%); margin: auto; transform: none; }
  .section { width: calc(100% - 32px); padding: 76px 0; }
  .demo-grid { grid-template-columns: 1.2fr .8fr; }.demo-card:last-child { grid-column: 1 / -1; }.demo-card:last-child .demo-visual { height: 360px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .how { grid-template-columns: 1fr; gap: 34px; }
  .install-card { grid-template-columns: 1fr; gap: 28px; }
  footer { width: calc(100% - 32px); grid-template-columns: 1fr; padding: 34px 0; text-align: center; }
  footer p { margin: 0; } footer > div { justify-content: center; } footer .brand { justify-content: center; }
}

@media (max-width: 600px) {
  .site-header { height: 60px; border-radius: 17px; }
  .brand { font-size: 14px; }.brand-mark { width: 32px; height: 32px; border-radius: 11px; }
  .language-button,.github-button { height: 38px; border-radius: 11px; }.github-button { width: 38px; }
  .hero { padding: 64px 0 58px; }
  .hero h1 { font-size: 45px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; }.button { width: 100%; }
  .hero-notes { gap: 8px 12px; font-size: 10px; }
  .product-preview { border-radius: 18px; }
  .preview-bar { height: 30px; }.phone-shot { width: 42%; right: 3%; padding: 5px; border-radius: 20px; }.phone-shot img { border-radius: 14px; }.phone-shot > span { height: 10px; top: 5px; }
  .live-status { left: 10px; bottom: 10px; font-size: 9px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 24px; display: block; }.section-head > p { margin-top: 14px; }.section h2 { font-size: 36px; }
  .demo { padding-top: 48px; }.demo-grid { grid-template-columns: 1fr; }.demo-card:last-child { grid-column: auto; }.demo-visual,.demo-card:last-child .demo-visual { height: 300px; }.demo-card.phone .demo-visual { padding-top: 18px; }.demo-copy { min-height: 112px; }
  .feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: 190px; }
  .flow { padding: 16px; grid-template-columns: 1fr; }.flow > i { transform: rotate(90deg); text-align: center; }.flow-step { padding: 14px; }
  .install-card { padding: 24px; border-radius: 20px; }.prompt-box pre { padding: 18px 16px; }.prompt-box code { font-size: 10px; }
}

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