:root {
  color-scheme: light;
  --ink: #171731;
  --muted: #53566e;
  --accent: #4029ca;
  --accent-dark: #321fab;
  --line: #e3e4ef;
  --surface: #f6f6fc;
  --wide: 1180px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.28; letter-spacing: -.055em; }
h3 { font-size: 1.05rem; line-height: 1.5; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #6d58f4; outline-offset: 4px; }
.wrap { width: min(var(--wide), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(62px, 8vw, 104px); scroll-margin-top: 24px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2; padding: 8px 14px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 1.04rem; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.wordmark img { flex: none; }
.site-nav, .header-actions, .footer-inner nav { display: flex; align-items: center; gap: 26px; }
.site-nav a, .header-demo, .footer-inner nav a { color: var(--muted); font-size: .875rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .header-demo:hover, .footer-inner nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; font-weight: 670; text-decoration: none; white-space: nowrap; transition: background-color .16s, border-color .16s; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-small { min-height: 38px; padding: 6px 19px; }
.button-secondary { background: #fff; border-color: #d6d7e9; }
.button-secondary:hover { border-color: #988be8; background: #fdfdff; }

.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 88% 22%, #e7e1ff 0%, transparent 47%), linear-gradient(146deg, #fbfbff 18%, #f0f0ff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.25fr); align-items: center; gap: clamp(25px, 4.4vw, 65px); min-height: 535px; padding-block: 70px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 4.65vw, 4.2rem); font-weight: 780; line-height: 1.15; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.hero-note) { max-width: 29rem; margin-top: 23px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.85; }
.hero .actions { margin-top: 25px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .875rem; }
.hero-preview { position: relative; min-width: 0; }
.hero-preview::before {
  position: absolute; inset: -24px -25px -25px 9%; content: ""; pointer-events: none;
  background-image: radial-gradient(#8a74eb65 1px, transparent 1px); background-size: 14px 14px;
  mask-image: linear-gradient(148deg, transparent 3%, #000 59%);
}
.preview-frame { position: relative; overflow: hidden; border: 1px solid #d5cdf5; border-radius: 15px; background: #eef1f4; box-shadow: 0 36px 70px -37px #42318f88, 0 7px 19px -13px #36246c99; }
.preview-bar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; background: #fff; border-bottom: 1px solid #e4e6ef; }
.preview-brand { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 730; }
.preview-label { padding: 1px 8px; border-radius: 5px; background: #f0ebff; color: #4d37a5; font-size: .75rem; }
.preview-shot { width: 100%; height: auto; padding: 10px; background: #eef1f4; }

.section-heading { margin-bottom: 29px; }
.section-heading p, .security-copy p { max-width: 42rem; margin-top: 10px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-width: 0; padding: 23px 22px 25px; border: 1px solid var(--line); border-radius: 12px; }
.feature-icon { display: grid; width: 40px; height: 40px; margin-bottom: 17px; place-items: center; border-radius: 8px; background: #eeeaff; color: var(--accent); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card p { margin-top: 8px; color: var(--muted); }

.workflow { background: var(--surface); border-block: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(28px, 7vw, 97px); }
.workflow-steps { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.workflow-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; }
.step-index { display: grid; width: 27px; height: 27px; margin-top: 1px; place-items: center; border: 1px solid #ded8fe; border-radius: 50%; background: #f0ebff; color: var(--accent); font-size: .8rem; font-weight: 680; }
.workflow-steps p { margin-top: 3px; color: var(--muted); }
.import-example { min-width: 0; overflow: hidden; border: 1px solid #ded9f2; border-radius: 13px; background: #fff; box-shadow: 0 13px 31px -21px #48368f57; }
.example-head, .example-row, .example-foot { padding: 14px 17px; }
.example-head, .example-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.example-head p, .example-row > div:first-child span, .example-foot { color: var(--muted); font-size: .875rem; }
.example-count { flex: none; color: var(--accent); font-size: .85rem; font-weight: 650; }
.example-row { border-top: 1px solid var(--line); }
.example-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.example-row > div:first-child span { display: block; }
.example-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.example-tags span { padding: 1px 7px; border-radius: 5px; background: #f0ebff; color: #4933a9; font-size: .8125rem; white-space: nowrap; }
.example-tags .tag-empty { background: #f1f2f7; color: var(--muted); }
.example-foot { background: #fbfaff; border-top: 1px solid var(--line); }

.security { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 8vw, 115px); }
.security-copy h2 span { color: var(--accent); }
.text-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: .94rem; font-weight: 650; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-dark); }
.security-details { margin: 0; }
.security-details div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.security-details div:first-child { padding-top: 0; }
.security-details div:last-child { padding-bottom: 0; border-bottom: 0; }
.security-details dt { font-weight: 700; }
.security-details dd { margin: 3px 0 0; color: var(--muted); }

.final-section { padding-bottom: clamp(48px, 7vw, 86px); }
.final-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(23px, 4vw, 50px); border-radius: 15px; background: #242052; color: #fff; }
.final-card h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.final-card p { margin-top: 6px; color: #e1ddf7; }
.button-light { background: #fff; color: #2c2266; }
.button-light:hover { background: #eeeaff; }
.button-outline { border-color: #aaa0d4; color: #fff; }
.button-outline:hover { background: #fff2; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 75px; }

@media (max-width: 950px) {
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 25px; min-height: 475px; padding-block: 55px; }
  .site-nav, .header-actions, .footer-inner nav { gap: 16px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 38px); }
  .header-inner { min-height: 65px; gap: 12px; }
  .site-nav { display: none; }
  .hero-grid, .workflow-grid, .security { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 30px; min-height: auto; padding-block: 47px 43px; }
  .hero h1 { font-size: clamp(2.44rem, 8.1vw, 3.5rem); }
  .hero-copy > p:not(.hero-note) { max-width: 36rem; margin-top: 17px; }
  .hero .actions { margin-top: 19px; }
  .hero-preview::before { inset: -12px -11px -13px 8%; background-size: 11px 11px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .feature-card { padding: 18px; }
  .feature-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .final-card { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding-block: 17px; }
  .footer-inner nav { flex-wrap: wrap; }
}
@media (max-width: 370px) {
  .header-demo { display: none; }
  .example-head, .example-row, .example-foot { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
