:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #14213d;
  background: #f5f7fb;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #f7f9fc;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%, rgba(76, 139, 245, .46), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(21, 183, 158, .18), transparent 26%),
    linear-gradient(135deg, #07162c, #102f5d 58%, #1d4ed8);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent 95%);
}

.nav {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.nav div {
  display: flex;
  gap: 26px;
}

.nav a {
  text-decoration: none;
}

.nav-links a {
  color: #dce9ff;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 12px;
  color: #0f2d57;
  background: linear-gradient(145deg, #fff, #cfe3ff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  font-size: 13px;
  letter-spacing: .03em;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: 72px;
  width: min(1180px, calc(100% - 48px));
  margin: 76px auto 0;
}

.hero h1 {
  max-width: 720px;
  margin: 13px 0 24px;
  font-size: clamp(46px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero h1 span {
  color: #91c3ff;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #d3e3f9;
  font-size: 19px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.hero .eyebrow {
  color: #93c5fd;
}

.primary {
  display: inline-block;
  padding: 13px 21px;
  border-radius: 11px;
  color: #1e3a8a;
  background: #fff;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(5, 18, 42, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}

.secondary {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.secondary.dark {
  border-color: #c9d5e5;
  color: #173f78;
  background: #fff;
}

.process-steps {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: sales-step;
}

.process-steps li {
  position: relative;
  padding: 20px 22px 20px 68px;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  background: #fff;
  counter-increment: sales-step;
}

.process-steps li::before {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2563eb;
  content: counter(sales-step);
  font-weight: 800;
}

.process-steps strong,
.process-steps span {
  display: block;
}

.process-steps span {
  margin-top: 4px;
  color: #53657d;
}

.document-callout {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 4px solid #2563eb;
  border-radius: 0 14px 14px 0;
  background: #edf4ff;
}

.document-callout h2,
.document-callout p {
  margin-top: 0;
}

.document-action {
  color: #fff;
  background: #1d4ed8;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: #bcd0eb;
  font-size: 13px;
}

.hero-notes span::before {
  margin-right: 7px;
  color: #5eead4;
  content: "✓";
  font-weight: 800;
}

.workflow-preview {
  width: 100%;
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  box-shadow: 0 32px 70px rgba(2, 12, 32, .3);
  backdrop-filter: blur(18px);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.preview-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.preview-head small,
.flow-list small {
  color: #acc2de;
}

.preview-head strong {
  font-size: 18px;
}

.status-pill {
  padding: 6px 11px;
  border: 1px solid rgba(94, 234, 212, .35);
  border-radius: 99px;
  color: #99f6e4;
  background: rgba(13, 148, 136, .14);
  font-size: 12px;
  font-weight: 750;
}

.flow-list {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.flow-list li:last-child {
  border-bottom: 0;
}

.flow-list li > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.flow-index {
  color: #7fb7ff;
  font: 700 12px/1 Consolas, monospace;
}

.flow-state {
  color: #9db0c9;
  font: 700 10px/1 Consolas, monospace;
  letter-spacing: .08em;
}

.flow-state.active {
  color: #5eead4;
}

.trust-strip {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(2, 12, 31, .32);
  backdrop-filter: blur(12px);
}

.trust-strip div {
  display: grid;
  gap: 2px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.trust-strip div:first-child {
  padding-left: 0;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: .05em;
}

.trust-strip span {
  color: #aabdd5;
  font-size: 12px;
}

main section,
.document {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

h2 {
  margin: 8px 0 24px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading > p:last-child {
  color: #64748b;
  font-size: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #dde5f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 39, 74, .07);
}

.value-card.featured {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #102c55, #1d4ed8);
}

.value-card h3 {
  margin: 56px 0 12px;
  font-size: 23px;
}

.value-card p {
  color: #5c6c80;
}

.value-card.featured p {
  color: #d5e4f8;
}

.value-card > strong {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: #1d4ed8;
  font-size: 13px;
}

.value-card.featured > strong {
  color: #99f6e4;
}

.card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: #b9c6d8;
  font: 700 30px/1 Consolas, monospace;
}

.value-card.featured .card-number {
  color: rgba(255, 255, 255, .35);
}

.capability-section {
  padding: 72px !important;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, .48), transparent 28%),
    #091a33;
}

.section-heading.light {
  margin-bottom: 44px;
}

.section-heading.light .eyebrow {
  color: #93c5fd;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
}

.capability-grid article {
  min-height: 220px;
  padding: 26px;
  background: rgba(6, 23, 48, .88);
}

.capability-grid h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.capability-grid p {
  margin: 0;
  color: #aebfd4;
}

.capability-icon {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid rgba(147, 197, 253, .34);
  border-radius: 9px;
  color: #93c5fd;
  background: rgba(37, 99, 235, .14);
  font: 750 11px/1 Consolas, monospace;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards article,
.trust,
.downloads,
.contact figure {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 35, 70, .06);
}

.cards article {
  padding: 26px;
}

.cards h3 {
  margin: 0 0 8px;
}

.cards p,
.contact p,
.document p,
.document li {
  color: #526173;
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: 56px;
  padding: 54px;
  background: linear-gradient(135deg, #fff, #edf5ff);
}

.trust > div {
  max-width: 760px;
}

.trust p:not(.eyebrow) {
  color: #526173;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-points span {
  padding: 14px 15px;
  border: 1px solid #d7e4f5;
  border-radius: 12px;
  color: #173f78;
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 700;
}

.trust-points span::before {
  margin-right: 7px;
  color: #0f9f8b;
  content: "●";
  font-size: 8px;
  vertical-align: 2px;
}

.downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 54px;
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 86% 30%, rgba(94, 234, 212, .24), transparent 30%),
    linear-gradient(135deg, #173f78, #2563eb);
  box-shadow: 0 24px 55px rgba(30, 64, 175, .2);
}

.downloads p:not(.eyebrow) {
  margin-bottom: 0;
  color: #dbeafe;
}

.downloads .eyebrow {
  color: #99f6e4;
}

.download-link {
  flex: 0 0 auto;
  margin-top: 0;
  color: #173f78;
  background: #fff;
}

.release-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.release-card {
  padding: 26px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 35, 70, .05);
}

.release-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.release-meta {
  color: #526173;
}

.release-note {
  padding: 12px 14px;
  border-left: 3px solid #f59e0b;
  border-radius: 7px;
  color: #854d0e !important;
  background: #fffbeb;
}

.checksum {
  display: block;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #eef2f7;
  font: 13px/1.55 Consolas, monospace;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 26px;
  font-size: 17px;
}

.contact figure {
  margin: 0;
  padding: 24px;
  text-align: center;
  border-radius: 24px;
}

.qr-crop {
  position: relative;
  width: 320px;
  height: 326px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
}

.qr-crop img {
  position: absolute;
  width: 531px;
  max-width: none;
  height: auto;
  left: -106px;
  top: -377px;
}

figcaption {
  margin-top: 12px;
  color: #526173;
}

.compact-header {
  color: #fff;
  background: linear-gradient(135deg, #0f2444, #2563eb);
}

.document {
  max-width: 820px;
  min-height: 70vh;
}

.document h1 {
  margin: 8px 0 20px;
  font-size: clamp(34px, 6vw, 54px);
}

.document h2 {
  margin-top: 42px;
  font-size: 25px;
}

.form-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.form-page h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.15;
}

.lead,
.field-help {
  color: #526173;
}

.form-page form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.form-page fieldset,
.submission-preview {
  margin: 0;
  padding: 24px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 35, 70, .05);
}

.form-page legend {
  padding: 0 8px;
  color: #173f78;
  font-size: 18px;
  font-weight: 750;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-page label:not(.check) {
  display: block;
  margin: 12px 0 6px;
  font-weight: 650;
}

.form-page input:not([type="checkbox"]),
.form-page select,
.form-page textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b8c5d6;
  border-radius: 9px;
  color: #14213d;
  background: #fff;
  font: inherit;
}

.form-page textarea {
  resize: vertical;
}

.form-page input:focus,
.form-page select:focus,
.form-page textarea:focus,
.form-page button:focus-visible,
.form-page a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
  border-color: #2563eb;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  color: #334155;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.required-check {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.preview,
.submission-preview {
  color: #334155;
}

.preview {
  padding: 14px;
  border-radius: 10px;
  background: #f1f5f9;
}

.preview dl,
.submission-preview dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 8px 14px;
  margin: 0;
}

.preview dt,
.submission-preview dt {
  font-weight: 700;
}

.preview dd,
.submission-preview dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.muted {
  color: #64748b;
}

.turnstile-slot {
  min-height: 70px;
  margin: 8px 0 14px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-page button {
  padding: 11px 18px;
  border: 1px solid #94a3b8;
  border-radius: 9px;
  color: #1e293b;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-page button.primary-button {
  border-color: #1d4ed8;
  color: #fff;
  background: #2563eb;
}

.form-page button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.status {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-weight: 650;
}

.status.success {
  color: #15803d;
}

.status.warning {
  color: #a16207;
}

.status.error {
  color: #b91c1c;
}

.submission-preview {
  margin-top: 20px;
  scroll-margin-top: 20px;
}

.submission-preview h2 {
  margin-top: 0;
  font-size: 26px;
}

footer {
  padding: 28px max(20px, calc((100% - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  color: #9fb0c7;
  background: #07162c;
}

footer a {
  color: #d8e5f5;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-bottom: 120px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 58px;
  }

  .workflow-preview {
    max-width: 660px;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(5) {
    display: none;
  }

  .value-grid,
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .capability-section {
    padding: 48px !important;
  }
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 14px !important;
  }

  .nav-links a:nth-child(1),
  .nav-links a:nth-child(4) {
    display: none;
  }

  .hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(36px, 10.8vw, 46px);
  }

  .hero-copy,
  .workflow-preview,
  .preview-head,
  .flow-list li {
    min-width: 0;
    max-width: 100%;
  }

  .workflow-preview {
    overflow: hidden;
    padding: 22px;
    border-radius: 20px;
  }

  .hero-lead {
    overflow-wrap: anywhere;
    font-size: 17px;
  }

  .hero-content,
  .nav,
  main section,
  .document {
    width: min(100% - 32px, 1180px);
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip div:nth-child(3) {
    padding-left: 0;
  }

  .cards,
  .value-grid,
  .capability-grid,
  .contact,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .preview dl,
  .submission-preview dl {
    grid-template-columns: 1fr;
  }

  .preview dd,
  .submission-preview dd {
    margin-bottom: 8px;
  }

  .contact figure {
    width: min(100%, 440px);
  }

  .trust {
    padding: 30px;
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .capability-section {
    padding: 34px 22px !important;
    border-radius: 20px;
  }

  .downloads {
    display: block;
    padding: 30px;
  }

  .download-link {
    margin-top: 18px;
  }

  .contact {
    gap: 34px;
  }

  .qr-crop {
    width: min(320px, 100%);
  }

  footer {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: none !important;
  }

  .hero-content {
    margin-top: 46px;
  }

  .preview-head {
    align-items: flex-start;
  }

  .status-pill {
    flex: 0 0 auto;
  }

  .flow-list li {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  .flow-state {
    display: none;
  }
}
