:root {
  --ink: #0d1728;
  --muted: #526174;
  --line: #dce7f2;
  --soft: #f3f7fb;
  --soft-strong: #eaf2fb;
  --blue: #2f7cf6;
  --blue-dark: #1554c8;
  --green: #16885c;
  --amber: #c87600;
  --paper: #ffffff;
  --shadow: 0 24px 70px rgba(32, 58, 91, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #edf3fa;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { letter-spacing: 0; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(24px, 5vw, 88px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 230, 243, .9);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(47, 124, 246, .22);
}
.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}
.site-nav a:hover { color: var(--blue); }
.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
}
.header-action,
.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: var(--ink);
}
.primary-action {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 124, 246, .24);
}
.primary-action:hover { background: var(--blue-dark); }
.download-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: #eef3f9;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - 12px);
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: 122px clamp(26px, 5.6vw, 96px) 74px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(239,245,252,.98) 0%, rgba(239,245,252,.88) 46%, rgba(239,245,252,.62) 100%),
    url("/assets/img/login-head.png") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255,255,255,.5);
}
.hero-content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(58px, 6vw, 88px);
  line-height: .98;
}
.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: #243449;
  font-size: 19px;
  line-height: 1.74;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero-points span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(47, 124, 246, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: #24415f;
  font-weight: 750;
}

.hero-scene {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 900px;
  justify-self: end;
}
.product-window {
  overflow: hidden;
  border: 1px solid #cbd9ec;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.window-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f7faff;
}
.window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7c7d9;
}
.window-top strong {
  margin-left: 12px;
  color: #1e293b;
}
.window-body {
  display: grid;
  grid-template-columns: 132px minmax(310px, 1fr) 230px;
  min-height: 382px;
}
.window-body aside {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: #f8fbff;
}
.window-body aside b {
  display: block;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #46617d;
}
.window-body aside b:nth-child(2) {
  background: #e8f1ff;
  color: var(--blue);
}
.window-body section {
  padding: 24px;
  min-width: 0;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.metric-row i {
  display: block;
  padding: 17px 14px;
  border-radius: 8px;
  background: var(--soft);
  font-style: normal;
  font-weight: 800;
}
.invoice-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 0 18px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}
.invoice-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invoice-line.active {
  border-color: #8db9ff;
  background: #edf5ff;
}
.invoice-line strong { color: var(--blue); }
.window-body article {
  min-width: 0;
  padding: 24px 18px;
  border-left: 1px solid var(--line);
  background: #f8fbff;
}
.window-body article h3 { margin-top: 0; }
.window-body article p {
  margin: 10px 0;
  padding: 11px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-body article em {
  display: block;
  margin-top: 14px;
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
}

.section {
  padding: 72px clamp(24px, 5.6vw, 96px);
  background: #edf3fa;
}
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}
.section-head p:not(.eyebrow),
.trust p,
.download p {
  color: var(--muted);
  font-size: 17px;
}
.steps,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step,
.feature-grid article,
.download-panel,
.trust {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
}
.step {
  min-height: 164px;
  padding: 22px;
}
.step b {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
.step h3,
.feature-grid h3 {
  margin: 18px 0 8px;
}
.step p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
}
.feature-band { background: #f7fbff; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid article {
  min-height: 154px;
  padding: 24px;
}

.trust {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  margin: 72px clamp(24px, 5.6vw, 96px);
  padding: 36px;
  background: #fff;
}
.trust h2 { margin: 0; }
.trust dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.trust dl div {
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
}
.trust dt {
  color: var(--green);
  font-weight: 800;
}
.trust dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.download { padding-top: 0; }
.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background: #fff;
}
.download-panel h2 { margin: 0; }
.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.download-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(24px, 5.6vw, 96px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}
.site-footer div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--blue); }

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(360px, .86fr) minmax(500px, 1.14fr);
    gap: 36px;
  }
  .window-body {
    grid-template-columns: 116px minmax(270px, 1fr) 205px;
  }
  .window-body section { padding: 20px; }
  .window-body article { padding: 20px 14px; }
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 116px;
  }
  .hero-content {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-scene {
    grid-column: 1;
    grid-row: 2;
    max-width: 840px;
    justify-self: start;
  }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 14px 18px 12px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .header-action {
    min-height: 38px;
    margin-left: auto;
    padding: 0 14px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    gap: 10px;
    font-size: 14px;
  }
  .hero {
    display: block;
    min-height: auto;
    padding: 38px 22px 56px;
    background:
      linear-gradient(180deg, rgba(239,245,252,.96) 0%, rgba(239,245,252,.86) 100%),
      url("/assets/img/login-head.png") center top / cover no-repeat;
  }
  .hero-scene {
    display: none;
  }
  .eyebrow {
    font-size: 13px;
    line-height: 1.5;
  }
  h1 {
    font-size: clamp(46px, 17vw, 58px);
  }
  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.72;
  }
  .hero-actions {
    margin-top: 26px;
  }
  .primary-action,
  .secondary-action {
    min-height: 40px;
    padding: 0 15px;
  }
  .hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }
  .hero-points span {
    justify-content: center;
    min-width: 0;
  }
  .section {
    padding: 56px 22px;
  }
  .section-head {
    margin-bottom: 24px;
  }
  .section h2 {
    font-size: 30px;
  }
  .section-head p:not(.eyebrow),
  .trust p,
  .download p {
    font-size: 15px;
  }
  .steps,
  .feature-grid,
  .trust dl {
    grid-template-columns: 1fr;
  }
  .step,
  .feature-grid article {
    min-height: 0;
    padding: 20px;
  }
  .trust {
    margin: 56px 22px;
    padding: 24px;
  }
  .download-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .download-panel {
    padding: 24px;
  }
  .download-actions {
    width: 100%;
  }
  .download-actions a {
    flex: 1 1 150px;
  }
  .site-footer {
    padding: 24px 22px;
  }
  .site-footer div {
    flex-direction: column;
    gap: 4px;
  }
}
