:root {
  --background: #ffffff;
  --surface: #fafafa;
  --card: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f3f3f3;
  --muted-foreground: #737373;
  --border: #e7e7e7;
  --border-strong: #d6d6d6;
  --accent: #f1f1f1;
  --primary: #050505;
  --primary-foreground: #ffffff;
  --success: #1d9d5a;
  --error: #b6414b;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.045);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.14);
  --content: 1200px;
  --font-ui: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(0, 0, 0, 0.22); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 56px;
  padding: 0 max(32px, calc((100vw - var(--content) - 128px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 14px; font-weight: 650; letter-spacing: -0.015em; }
.brand-icon { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); }
.brand-icon .icon { width: 15px; height: 15px; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 36px); color: var(--muted-foreground); font-size: 13.5px; }
.site-nav a { padding: 17px 0; transition: color 150ms ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--foreground); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 14px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--primary); }
.header-download { min-height: 34px !important; padding: 6px 14px !important; border-radius: 8px !important; font-size: 13px !important; }
.scroll-progress { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--primary); }

.section { width: min(var(--content), calc(100% - 64px)); margin: 0 auto; }
.section-surface { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.section-inner { padding-top: 104px; padding-bottom: 104px; }
.section-heading { max-width: 680px; }
.eyebrow, .modal-eyebrow { margin: 0 0 14px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.24em; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 3.2vw, 44px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--muted-foreground); font-size: 16px; line-height: 1.7; }

.hero { display: grid; grid-template-columns: 0.96fr 1.04fr; align-items: center; gap: 60px; min-height: 780px; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 { max-width: 600px; margin: 0; font-size: clamp(48px, 4.65vw, 68px); font-weight: 680; letter-spacing: -0.055em; line-height: 1.08; }
.hero-lead { max-width: 470px; margin: 25px 0 0; color: var(--muted-foreground); font-size: 16.5px; line-height: 1.75; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--background); font-size: 12.5px; }
.hero-points .icon { width: 14px; height: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 18px 0 0; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11.5px; }
.hero-visual { position: relative; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.hero-visual::before { position: absolute; z-index: -1; inset: -28px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, 0.035), transparent 68%); content: ""; }
.hero-product { width: 100%; border-radius: 12px; background: #fbfbfb; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 560; transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button .icon { width: 16px; height: 16px; }
.button-primary { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-xs); }
.button-primary:hover { opacity: 0.86; }
.button-primary:disabled { cursor: wait; opacity: 0.58; transform: none; }
.button-secondary { border-color: var(--border); background: var(--background); color: var(--foreground); }
.button-secondary:hover { background: var(--accent); }

.journey-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: start; gap: 52px; margin-top: 48px; }
.journey-steps { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.journey-step { position: relative; display: grid; grid-template-columns: 32px 1fr; width: 100%; min-height: 72px; padding: 14px 16px; overflow: hidden; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--foreground); text-align: left; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.journey-step > span { display: grid; grid-row: span 2; width: 25px; height: 25px; place-items: center; margin-top: 1px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11px; }
.journey-step strong { font-size: 15px; font-weight: 620; }
.journey-step small { margin-top: 2px; color: var(--muted-foreground); font-size: 13px; }
.journey-step:hover { background: rgba(255, 255, 255, 0.7); }
.journey-step.is-active { border-color: var(--border); background: var(--background); box-shadow: var(--shadow-xs); }
.journey-step.is-active > span { border-color: var(--primary); background: var(--primary); color: #fff; }
.journey-demo { position: sticky; top: 100px; min-height: 285px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.demo-file-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.demo-file-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--background); }
.demo-file-icon .icon { width: 17px; height: 17px; }
.demo-file-row strong, .demo-file-row small { display: block; }
.demo-file-row strong { font-size: 14px; }
.demo-file-row small { margin-top: 3px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11px; }
.demo-file-row em { padding: 4px 9px; border-radius: 999px; background: var(--surface); font-size: 12px; font-style: normal; }
.demo-progress { height: 8px; margin-top: 27px; overflow: hidden; border-radius: 999px; background: #d1d1d1; }
.demo-progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--primary); transition: width 640ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.demo-progress-meta { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11px; }
.demo-event { display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; }
.demo-check { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; }
.demo-event code { color: var(--muted-foreground); font-family: var(--font-mono); }
.demo-device { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11px; }
.journey-demo.is-changing .demo-file-row, .journey-demo.is-changing .demo-progress-meta, .journey-demo.is-changing .demo-event, .journey-demo.is-changing .demo-device { animation: journey-content-in 420ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.journey-demo.is-changing .demo-progress-meta { animation-delay: 35ms; }
.journey-demo.is-changing .demo-event { animation-delay: 70ms; }
.journey-demo.is-changing .demo-device { animation-delay: 105ms; }
.journey-demo.is-running .demo-device .status-dot { animation: status-pulse 1600ms ease-in-out infinite; }

.product-tour { padding-top: 112px; padding-bottom: 116px; }
.product-panel { display: grid; grid-template-columns: 0.78fr 1.22fr; align-items: center; gap: 58px; margin-top: 62px; }
.product-panel-android { grid-template-columns: 1.22fr 0.78fr; margin-top: 92px; }
.product-copy h3 { max-width: 440px; margin: 15px 0 0; font-size: clamp(27px, 2.35vw, 35px); font-weight: 640; letter-spacing: -0.035em; line-height: 1.2; }
.product-copy > p { max-width: 430px; margin: 18px 0 0; color: var(--muted-foreground); font-size: 15.5px; line-height: 1.75; }
.product-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.17em; }
.product-kicker .icon { width: 14px; height: 14px; }
.product-copy ul { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; }
.product-copy li { position: relative; padding-left: 25px; }
.product-copy li::before { position: absolute; left: 2px; content: "✓"; font-weight: 700; }
.product-frame { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.product-frame img { width: 100%; height: auto; }
.product-frame-desktop { padding: 10px; }
.product-frame-desktop img { border-radius: 8px; }
.product-frame-mobile { padding: 11px; }
.product-frame-mobile img { border-radius: 8px; }

.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.security-grid article { display: flex; flex-direction: column; gap: 13px; min-height: 225px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease; }
.security-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.security-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--accent); }
.security-icon .icon { width: 17px; height: 17px; }
.security-grid h3 { margin: 1px 0 0; font-size: 15.5px; font-weight: 630; }
.security-grid p { margin: 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.7; }

.clients { padding-top: 108px; padding-bottom: 128px; }
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.client-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease; }
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.client-card-heading { display: flex; align-items: center; gap: 14px; }
.platform-icon { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 12px; background: var(--primary); color: var(--primary-foreground); }
.platform-icon .icon { width: 21px; height: 21px; }
.client-card-copy { display: grid; gap: 5px; color: var(--muted-foreground); font-size: 13.5px; }
.client-title-row { display: flex; align-items: center; gap: 10px; }
.client-title-row h3 { margin: 0; color: var(--foreground); font-size: 18px; font-weight: 620; letter-spacing: -0.02em; }
.version { padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--foreground); font-family: var(--font-mono); font-size: 10.5px; }
.download-button { width: 100%; }
.client-card > small { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11.5px; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; width: min(var(--content), calc(100% - 64px)); margin: 0 auto; padding: 40px 0 96px; border-top: 1px solid var(--border); }
.site-footer p { margin: 0; color: var(--muted-foreground); font-size: 13.5px; }
.site-footer small { justify-self: end; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11px; }

.sticky-download { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px max(32px, calc((100vw - var(--content) - 128px) / 2)); border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); transform: translateY(110%); transition: transform 300ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.sticky-download.is-visible { transform: translateY(0); }
.sticky-copy { display: inline-flex; align-items: center; gap: 12px; }
.sticky-copy > span:last-child { display: grid; line-height: 1.35; }
.sticky-copy strong { font-size: 13.5px; font-weight: 570; }
.sticky-copy small { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 10.5px; }
.sticky-actions { display: flex; gap: 9px; }
.sticky-actions .button { min-height: 36px; padding: 6px 16px; font-size: 13px; }

.modal-shell { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 200ms ease; }
.modal-shell[hidden] { display: none; }
.modal-shell.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); }
.login-modal { position: relative; width: min(420px, 100%); padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--background); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.975); transition: transform 230ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.modal-shell.is-open .login-modal { transform: none; }
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); }
.modal-close:hover { background: var(--accent); }
.modal-close .icon { width: 16px; height: 16px; }
.login-modal h2 { margin: 0; font-size: 22px; font-weight: 640; letter-spacing: -0.025em; }
.login-modal > p:not(.modal-eyebrow) { margin: 10px 0 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.7; }
.selected-client { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.selected-client > .icon { width: 16px; height: 16px; margin: 8px; }
.selected-client strong { font-size: 13.5px; font-weight: 560; }
.selected-client > span:last-child { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11px; }
#download-login-form { display: grid; gap: 15px; margin-top: 20px; }
.field { display: grid; gap: 7px; color: var(--foreground); font-size: 13px; font-weight: 540; }
.field input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--background); color: var(--foreground); outline: 0; font-size: 14px; }
.field input:focus { border-color: var(--foreground); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 43px; }
.password-control button { position: absolute; top: 50%; right: 6px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted-foreground); transform: translateY(-50%); }
.password-control button:hover { background: var(--accent); }
.password-control .icon { width: 15px; height: 15px; }
.form-status { min-height: 20px; margin: -1px 0 0; color: var(--error); font-size: 12.5px; }
.form-status.is-success { color: var(--success); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions .button { min-height: 38px; }
.download-toast { position: fixed; z-index: 120; right: 24px; bottom: 88px; display: flex; align-items: flex-start; gap: 12px; width: min(340px, calc(100% - 48px)); padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--background); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.download-toast[hidden] { display: none; }
.download-toast.is-visible { opacity: 1; transform: none; }
.download-toast-icon { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 9px; background: var(--primary); color: #fff; }
.download-toast-icon .icon { width: 15px; height: 15px; }
.download-toast > span:last-child { display: grid; gap: 3px; }
.download-toast strong { font-size: 13.5px; }
.download-toast-message, #download-toast-message { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.55; }

.icon { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
.icon-download { mask-image: url("./icons/download.svg"); }
.icon-arrow-right { mask-image: url("./icons/arrow-right.svg"); }
.icon-cloud { mask-image: url("./icons/cloud.svg"); }
.icon-history { mask-image: url("./icons/history.svg"); }
.icon-printer { mask-image: url("./icons/printer.svg"); }
.icon-monitor { mask-image: url("./icons/monitor.svg"); }
.icon-smartphone { mask-image: url("./icons/smartphone.svg"); }
.icon-eye { mask-image: url("./icons/eye.svg"); }
.icon-eye-off { mask-image: url("./icons/eye-off.svg"); }
.icon-x { mask-image: url("./icons/x.svg"); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }


@keyframes journey-content-in {
  from { opacity: 0.28; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 5, 5, 0); opacity: 0.72; }
  50% { box-shadow: 0 0 0 5px rgba(5, 5, 5, 0.09); opacity: 1; }
}

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 80px; }
  .hero-copy { max-width: 720px; }
  .hero-lead { max-width: 620px; }
  .journey-layout, .product-panel, .product-panel-android { grid-template-columns: 1fr; }
  .product-panel-android .product-frame { order: 2; }
  .product-panel-android .product-copy { order: 1; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 0; }
  .site-header { padding: 0 18px; }
  .header-download { min-height: 32px !important; padding: 5px 11px !important; }
  .section { width: min(100% - 36px, var(--content)); }
  .section-inner { padding-top: 76px; padding-bottom: 76px; }
  .hero { min-height: auto; gap: 34px; padding-top: 58px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(42px, 12.2vw, 58px); }
  .hero-lead { font-size: 15px; }
  .hero-visual { padding: 8px; border-radius: 13px; }
  .journey-layout { gap: 30px; margin-top: 36px; }
  .journey-demo { position: static; min-height: 270px; padding: 20px; }
  .demo-file-row { grid-template-columns: 36px 1fr; }
  .demo-file-row em { grid-column: 2; justify-self: start; }
  .product-tour { padding-top: 80px; padding-bottom: 84px; }
  .product-panel, .product-panel-android { gap: 30px; margin-top: 46px; }
  .product-panel-android { margin-top: 72px; }
  .product-copy h3 { font-size: 28px; }
  .product-frame-desktop, .product-frame-mobile { padding: 6px; }
  .security-grid, .client-grid { grid-template-columns: 1fr; }
  .security-grid { margin-top: 36px; }
  .security-grid article { min-height: 0; }
  .clients { padding-top: 80px; padding-bottom: 100px; }
  .client-card { padding: 22px; }
  .site-footer { grid-template-columns: 1fr; width: calc(100% - 36px); padding-bottom: 124px; }
  .site-footer p, .site-footer small { justify-self: start; }
  .sticky-download { padding: 10px 18px; }
  .sticky-copy small { display: none; }
  .sticky-actions .button { padding: 6px 11px; }
  .login-modal { padding: 24px 20px; }
}

@media (max-width: 450px) {
  .brand > span:last-child { font-size: 13px; }
  .header-download .icon { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .button { padding-right: 12px; padding-left: 12px; }
  .hero-points { gap: 6px; }
  .hero-points li { padding: 5px 9px; font-size: 11.5px; }
  .section-heading h2 { font-size: 32px; }
  .journey-step { padding: 12px 11px; }
  .demo-event { grid-template-columns: 20px 1fr; }
  .demo-event code { display: none; }
  .client-title-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sticky-copy .brand-icon { display: none; }
  .sticky-copy strong { font-size: 12px; }
}

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