:root {
  --ink: #07172f;
  --ink-soft: #183652;
  --muted: #64748b;
  --line: #d8e6f3;
  --paper: #f8fbff;
  --surface: #eef7ff;
  --brand-soft: #eaf6ff;
  --brand-tint: #f2fbff;
  --brand-blue: #0570fc;
  --brand-mid: #039efc;
  --brand-cyan: #03cdfd;
  --brand-deep: #061b3d;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(4, 71, 146, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: #f8fbff;
  background: rgba(6, 27, 61, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(6, 27, 61, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.brand strong {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: var(--radius);
  color: rgba(248, 251, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .nav-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 15, 35, 0.92) 0%, rgba(5, 18, 42, 0.78) 42%, rgba(5, 30, 72, 0.22) 74%),
    linear-gradient(180deg, rgba(5, 24, 54, 0.2), rgba(5, 15, 35, 0.58));
}

.hero-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 82vh;
  margin: 0 auto;
  padding: 132px 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(248, 251, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 14px 30px rgba(3, 158, 252, 0.28);
}

.button.primary.inverse {
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: none;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  padding: 24px clamp(20px, 4vw, 46px);
  background: var(--paper);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 17px;
}

.proof-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 34px;
}

.section-heading h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.products {
  background: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.product {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8f4ff;
  border-bottom: 1px solid var(--line);
}

.product-body {
  padding: clamp(22px, 3vw, 34px);
}

.product h3,
.workflow-step h3,
.scenario h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.product p,
.workflow-step p,
.scenario p {
  margin: 14px 0 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 50%;
  transform: translateY(-50%);
}

.workflow {
  background: #ffffff;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, 100%);
  margin: 0 auto;
  border-top: 2px solid var(--ink);
}

.workflow-step {
  position: relative;
  padding: 34px 22px 0 0;
}

.workflow-step::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--brand-cyan);
  border: 3px solid #ffffff;
  border-radius: 50%;
}

.workflow-step span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brand-blue);
  font-weight: 900;
}

.scenarios {
  background: #ffffff;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, 100%);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.scenario {
  min-height: 270px;
  padding: 28px;
  background: var(--paper);
}

.scenario:nth-child(2) {
  background: #f2fbff;
}

.scenario:nth-child(3) {
  background: #edf7ff;
}

.scenario:nth-child(4) {
  background: #eefcff;
}

.contact {
  background: #05132d;
  color: #ffffff;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.contact-copy {
  min-width: 0;
}

.contact-copy h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
}

.contact-copy > p {
  margin: 22px 0 28px;
  color: rgba(248, 251, 255, 0.76);
  font-size: 18px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  max-width: 640px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method span {
  color: rgba(248, 251, 255, 0.64);
  font-size: 13px;
}

.contact-method strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.35;
  transition: color 160ms ease;
}

.contact-method:hover strong,
.contact-method:focus-visible strong {
  color: var(--brand-cyan);
}

.contact-qr {
  width: min(100%, 280px);
  margin: 0;
  justify-self: end;
}

.contact-qr img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.contact-qr figcaption {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  text-align: center;
}

.contact-qr figcaption span {
  color: rgba(248, 251, 255, 0.64);
  font-size: 13px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(248, 251, 255, 0.72);
  background: #040b19;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.icp-link {
  color: rgba(248, 251, 255, 0.84);
  transition: color 160ms ease;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .workflow-track,
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    padding: 10px;
    background: rgba(6, 27, 61, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero,
  .hero-inner {
    min-height: 76vh;
  }

  .hero-inner {
    width: min(100% - 32px, 1120px);
    padding-top: 118px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 15, 35, 0.94), rgba(5, 18, 42, 0.7)),
      linear-gradient(180deg, rgba(5, 24, 54, 0.18), rgba(5, 15, 35, 0.74));
  }

  .proof-strip,
  .workflow-track,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .workflow-track {
    border-top: 0;
    border-left: 2px solid var(--ink);
  }

  .workflow-step {
    padding: 0 0 34px 28px;
  }

  .workflow-step::before {
    top: 4px;
    left: -8px;
  }

  .scenario {
    min-height: auto;
  }

  .contact-inner,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    gap: 40px;
  }

  .contact-qr {
    width: min(100%, 280px);
    justify-self: center;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: min(100%, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
