:root {
  color-scheme: dark;
  --bg: #07100f;
  --bg-deep: #050a09;
  --ink: #101817;
  --paper: #f5f3ed;
  --paper-2: #ebe8df;
  --text: #f3fbf8;
  --muted: #a8bcb5;
  --line: rgba(236, 252, 246, 0.16);
  --line-dark: rgba(16, 24, 23, 0.12);
  --mint: #50edb9;
  --cyan: #4cc7e6;
  --amber: #e5b45c;
  --rose: #df6b7a;
  --radius: 8px;
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "思源黑体",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    sans-serif;
  --font-ui:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "思源黑体",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 10, 9, 0.76);
  backdrop-filter: blur(18px);
}

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

.brand-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #102033, #0b7db3);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.brand-name {
  min-width: 0;
}

.brand-name strong,
.brand-name small {
  display: block;
}

.brand-name strong {
  color: #f3fbf8;
  font-size: 15px;
  line-height: 1.05;
}

.brand-name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(14px, 2vw, 28px);
  color: #d7e8e2;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--mint);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero-section {
  min-height: 100svh;
  padding: 106px clamp(18px, 4vw, 56px) 40px;
  background:
    radial-gradient(circle at 16% 20%, rgba(80, 237, 185, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(76, 199, 230, 0.08), transparent 42%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1.06fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  max-width: 1320px;
  min-height: calc(100svh - 190px);
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy h1 {
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.detail-copy p,
.contact-copy p {
  max-width: 680px;
  color: #c5d8d2;
  font-size: 16px;
  line-height: 1.72;
}

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

.primary-action,
.secondary-action,
.tertiary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.primary-action {
  border-color: rgba(80, 237, 185, 0.62);
  background: #dffff4;
  color: #07100f;
}

.secondary-action {
  color: #dcece7;
}

.tertiary-action {
  border-color: rgba(229, 180, 92, 0.32);
  color: #efd39d;
}

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

.hero-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hero-product {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(54px, auto) auto auto;
  align-content: start;
  min-height: 374px;
  padding: clamp(22px, 2.6vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(13, 24, 22, 0.82);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.hero-product:hover {
  border-color: rgba(80, 237, 185, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(13, 24, 22, 0.9);
}

.hero-product::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  opacity: 0.72;
  mask-image: linear-gradient(180deg, black, transparent 74%);
}

.hero-product-primary {
  border-color: rgba(80, 237, 185, 0.38);
}

.product-role,
.product-brand,
.product-subtitle,
.product-summary,
.product-tags,
.product-link {
  position: relative;
  z-index: 1;
}

.product-role {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(80, 237, 185, 0.24);
  border-radius: 999px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.product-brand {
  display: grid;
  min-height: 88px;
  align-content: end;
  gap: 7px;
  margin: 24px 0 14px;
}

.hero-product h2 {
  margin: 0;
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 0.95;
  letter-spacing: 0;
}

.product-brand strong {
  display: block;
  color: var(--amber);
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 800;
  line-height: 1.1;
}

.product-subtitle {
  min-height: 27px;
  margin-bottom: 14px;
  color: #f5fbf8;
  font-size: 16px;
  font-weight: 800;
}

.product-summary {
  max-width: 460px;
  min-height: 50px;
  margin-bottom: 18px;
  color: #bfd4cd;
  font-size: 15px;
  line-height: 1.66;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 20px;
}

.product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d7e9e3;
  font-size: 12px;
}

.product-link {
  display: inline-flex;
  align-self: end;
  justify-self: start;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(80, 237, 185, 0.42);
  border-radius: var(--radius);
  background: #dffff4;
  color: #07100f;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.product-link::after {
  margin-left: 8px;
  content: "→";
}

.product-link-muted::after {
  content: "";
  margin-left: 0;
}

.product-link-muted {
  border-color: rgba(229, 180, 92, 0.46);
  background: rgba(229, 180, 92, 0.16);
  color: #fff0bd;
}

.hero-value-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 1320px;
  margin: 20px auto 0;
  color: #d7e9e3;
}

.hero-value-bar strong {
  margin-right: 4px;
  color: var(--mint);
  font-size: 13px;
}

.hero-value-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 19, 17, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.workflow-section,
.capability-section,
.product-detail-section,
.contact-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 78px clamp(18px, 4vw, 56px);
}

.workflow-section,
.product-detail-section {
  background: rgba(5, 10, 9, 0.9);
  box-shadow: 0 0 0 100vmax rgba(5, 10, 9, 0.9);
  clip-path: inset(0 -100vmax);
}

.workflow-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 32px;
  align-items: end;
  margin-bottom: 34px;
}

.workflow-heading .eyebrow {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin-bottom: 6px;
}

.workflow-heading h2 {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  max-width: none;
  margin-bottom: 0;
  text-align: right;
  font-size: clamp(30px, 3vw, 42px);
  white-space: nowrap;
}

.workflow-heading p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  max-width: 430px;
  margin-bottom: 4px;
  color: var(--muted);
  text-align: right;
  font-size: 15px;
  line-height: 1.65;
}

.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.workflow-track::before {
  position: absolute;
  top: 50%;
  right: 3%;
  left: 3%;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--amber));
  content: "";
  transform: translateY(-50%);
  animation: lineFlow 2.8s linear infinite;
}

.workflow-step {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 112px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 23, 21, 0.86);
}

.workflow-step span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.workflow-step strong {
  color: #f3fbf8;
  font-size: 16px;
}

.workflow-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-step.is-blink {
  border-color: rgba(80, 237, 185, 0.28);
}

.workflow-step.is-prufay {
  border-color: rgba(229, 180, 92, 0.28);
}

.workflow-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.workflow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.workflow-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.blink-dot {
  background: var(--mint);
}

.prufay-dot {
  background: var(--amber);
}

.capability-section,
.contact-section {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  color: var(--ink);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.contact-copy h2 {
  color: var(--ink);
}

.section-heading p,
.contact-copy p {
  color: #52605c;
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.capability-card {
  position: relative;
  min-height: 168px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.capability-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a7c62, rgba(10, 124, 98, 0.12));
  content: "";
}

.capability-card:hover {
  background: #fafaf6;
}

.capability-card h3 {
  color: #0a7c62;
  font-size: 30px;
}

.capability-card p {
  margin-bottom: 0;
  color: #5a6864;
  line-height: 1.75;
}

.product-detail-section {
  display: grid;
  gap: 14px;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 24, 22, 0.78);
}

.detail-panel h2 {
  max-width: 420px;
  font-size: clamp(26px, 2.35vw, 34px);
  line-height: 1.18;
}

.detail-copy p {
  margin-bottom: 18px;
  max-width: 760px;
}

.detail-list {
  display: grid;
  gap: 9px;
}

.detail-list span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #dcece7;
  line-height: 1.5;
}

.detail-list span::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.qr-card {
  padding: 18px;
  border: 1px solid rgba(16, 24, 23, 0.14);
  border-radius: var(--radius);
  background: #101817;
  color: var(--text);
  text-align: center;
  box-shadow: 0 22px 56px rgba(16, 24, 23, 0.16);
}

.qr-frame {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(80, 237, 185, 0.32);
  background: #fff;
}

.qr-frame::before,
.qr-frame::after {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--mint);
  content: "";
  pointer-events: none;
}

.qr-frame::before {
  clip-path: polygon(0 0, 34% 0, 34% 7px, 7px 7px, 7px 34%, 0 34%);
}

.qr-frame::after {
  clip-path: polygon(66% calc(100% - 7px), calc(100% - 7px) calc(100% - 7px), calc(100% - 7px) 66%, 100% 66%, 100% 100%, 66% 100%);
}

.qr-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.qr-card span {
  display: block;
  margin-top: 14px;
  color: var(--mint);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(16, 24, 23, 0.12);
  background: var(--paper-2);
  color: #52605c;
  font-size: 14px;
}

.site-footer a {
  color: #087a61;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes lineFlow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 180px 0;
  }
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-product {
    min-height: 360px;
  }

  .workflow-track,
  .capability-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-track::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero-section {
    padding: 88px 16px 32px;
  }

  .hero-inner {
    gap: 22px;
    min-height: auto;
  }

  h1 {
    max-width: 360px;
    margin-bottom: 16px;
    font-size: 40px;
    line-height: 1.08;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lede,
  .section-heading p,
  .detail-copy p,
  .contact-copy p {
    font-size: 16px;
    line-height: 1.72;
  }

  .hero-products {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-product {
    min-height: auto;
    padding: 22px;
  }

  .product-brand {
    min-height: 78px;
    margin-top: 24px;
  }

  .hero-product h2 {
    font-size: 44px;
  }

  .product-brand strong {
    font-size: 24px;
  }

  .product-tags {
    margin-bottom: 16px;
  }

  .product-subtitle,
  .product-summary {
    min-height: 0;
  }

  .product-tags span:nth-child(3) {
    display: none;
  }

  .workflow-section,
  .capability-section,
  .product-detail-section,
  .contact-section {
    padding: 58px 16px;
  }

  .workflow-heading {
    display: block;
  }

  .workflow-heading h2,
  .workflow-heading p:not(.eyebrow) {
    max-width: none;
    text-align: left;
    white-space: normal;
  }

  .workflow-track,
  .capability-band,
  .detail-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .capability-band {
    border: 0;
    background: transparent;
    gap: 10px;
  }

  .capability-card {
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    min-height: auto;
  }

  .workflow-step,
  .capability-card {
    min-height: auto;
  }

  .capability-card h3 {
    font-size: 26px;
  }

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

@media (max-width: 520px) {
  .brand-glyph {
    width: 36px;
    height: 36px;
  }

  .brand-name small {
    display: none;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action,
  .tertiary-action {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
  }

  .hero-product h2 {
    font-size: 36px;
  }

  .product-brand strong {
    font-size: 21px;
  }

  .product-subtitle {
    font-size: 16px;
  }

  .product-summary {
    line-height: 1.62;
  }
}

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

  .signal-canvas {
    display: none;
  }
}
