:root {
  --ink: #151b1a;
  --muted: #5e6966;
  --line: #d9ddd7;
  --paper: #f3f5f1;
  --white: #ffffff;
  --coal: #0f1514;
  --amber: #b98948;
  --green: #1f6a5a;
  --blue: #2d5f88;
  --rust: #9a6048;
  --plum: #66577e;
  --mist: #eef2ee;
  --champagne: #e7d6b6;
  --shadow: 0 18px 42px rgba(15, 21, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  word-break: normal;
  overflow-wrap: normal;
}

body.modal-open {
  overflow: hidden;
}

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

.snap-panel {
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  .snap-panel {
    transition: filter 0.6s ease, transform 0.6s ease;
  }

  .snap-panel:not(.panel-active) {
    filter: saturate(0.92);
  }

  .snap-panel.panel-active {
    filter: saturate(1);
  }

  .reveal,
  .reveal-grid > * {
    opacity: 0;
    transform: translateY(42px) scale(0.985);
    transition: opacity 0.78s ease, transform 0.78s ease;
  }

  .reveal.is-visible,
  .reveal-grid.is-visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .reveal-grid.is-visible > *:nth-child(2) {
    transition-delay: 0.08s;
  }

  .reveal-grid.is-visible > *:nth-child(3) {
    transition-delay: 0.16s;
  }

  .reveal-grid.is-visible > *:nth-child(4) {
    transition-delay: 0.24s;
  }

  .reveal-grid.is-visible > *:nth-child(5) {
    transition-delay: 0.32s;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(15, 21, 20, 0.44);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.is-solid {
  background: rgba(15, 21, 20, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: clamp(132px, 12vw, 172px);
  height: auto;
  max-height: 46px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 22px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  min-width: 0;
  overflow: hidden;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a:hover,
.site-footer a:hover {
  color: #e7c889;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 10px 24px rgba(185, 137, 72, 0.24);
}

.primary-button,
.ghost-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.pc-entry {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pc-entry i {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.pc-entry:hover {
  border-color: rgba(231, 200, 137, 0.78);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.primary-button.secondary {
  background: var(--green);
  box-shadow: 0 10px 24px rgba(31, 106, 90, 0.24);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.ghost-button.dark {
  color: var(--ink);
  border-color: rgba(23, 32, 42, 0.28);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 21, 20, 0.9) 0%, rgba(15, 21, 20, 0.68) 48%, rgba(15, 21, 20, 0.3) 100%),
    linear-gradient(0deg, rgba(15, 21, 20, 0.74) 0%, rgba(15, 21, 20, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 108px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

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

.section {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 6vw, 86px);
}

.snap-panel.section {
  min-height: min(100vh, 980px);
  display: grid;
  align-content: center;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading h2,
.feature-copy h2,
.ops-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--ink);
}

.section-heading p:not(.eyebrow),
.feature-copy p,
.ops-panel p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.light p:not(.eyebrow),
.section-heading.light h2 {
  color: var(--white);
}

.company-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(560px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--white);
}

.company-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: 0;
}

.company-copy p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-facts article {
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.company-facts strong {
  display: block;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.company-facts article:nth-child(2) strong {
  color: var(--amber);
}

.company-facts article:nth-child(3) strong {
  color: var(--green);
}

.company-facts span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.company-legal {
  grid-column: 2;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f8f4;
}

.company-legal p {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  color: var(--muted);
  min-width: 0;
}

.company-legal b {
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}

.capability-grid,
.problem-grid,
.scenario-grid,
.value-grid,
.channel-grid,
.role-grid,
.hardware-grid,
.trust-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.capability-grid article,
.problem-grid article,
.scenario-grid article,
.value-grid article,
.channel-grid article,
.role-grid article,
.hardware-grid article,
.trust-grid article,
.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.capability-grid article,
.problem-grid article,
.scenario-grid article,
.value-grid article,
.channel-grid article,
.role-grid article,
.hardware-grid article,
.trust-grid article,
.download-card,
.deployment-steps article {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.capability-grid article:hover,
.problem-grid article:hover,
.scenario-grid article:hover,
.value-grid article:hover,
.channel-grid article:hover,
.role-grid article:hover,
.hardware-grid article:hover,
.trust-grid article:hover,
.download-card:hover,
.deployment-steps article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.12);
  border-color: rgba(38, 115, 99, 0.34);
}

.capability-grid article,
.problem-grid article,
.role-grid article,
.value-grid article,
.channel-grid article,
.trust-grid article {
  min-height: 270px;
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.05);
}

.problem-section {
  background: #f4f1e9;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-grid article {
  min-height: 220px;
  border-top: 4px solid var(--amber);
}

.problem-grid h3 {
  color: var(--rust);
}

.icon-mark,
.client-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.capability-grid article:nth-child(2) .icon-mark {
  background: var(--green);
}

.capability-grid article:nth-child(3) .icon-mark {
  background: var(--amber);
}

.capability-grid article:nth-child(4) .icon-mark {
  background: var(--rust);
}

.scenarios-section {
  background: var(--mist);
}

.value-section {
  background: #f8f8f4;
}

.driver-section {
  background: #f0f3ef;
}

.channels-section {
  background: #f6f2ea;
}

.screens-section {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 21, 20, 0.88), rgba(15, 21, 20, 0.98)),
    url("./assets/warehouse-logistics.jpg") center / cover;
}

.screens-section .section-heading h2 {
  color: var(--white);
}

.screens-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.driver-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.app-preview-stack {
  position: relative;
  min-height: 760px;
}

.phone-frame {
  position: absolute;
  margin: 0;
  width: min(300px, 42vw);
  aspect-ratio: 9 / 20;
  overflow: hidden;
  border: 8px solid #0c1119;
  border-radius: 34px;
  background: #0f1520;
  box-shadow: 0 28px 56px rgba(15, 21, 20, 0.32);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-front {
  z-index: 2;
  right: 8%;
  top: 38px;
}

.phone-back {
  left: 2%;
  top: 104px;
  opacity: 0.82;
  transform: scale(0.9) rotate(-4deg);
}

.screens-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.screens-gallery figure {
  margin: 0;
  min-width: 0;
}

.screens-gallery figure:nth-child(even) {
  margin-top: 44px;
}

.screens-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
  border: 7px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: #111721;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.screens-gallery figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: center;
}

.pc-screens-section {
  background: #eef2ee;
}

.pc-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.pc-showcase figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pc-showcase img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top left;
  background: #101722;
}

.pc-main img {
  aspect-ratio: 16 / 9;
}

.pc-side {
  display: grid;
  gap: 18px;
}

.pc-side img {
  aspect-ratio: 16 / 8.5;
}

.pc-showcase figcaption {
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 800;
}

.scenario-grid article {
  min-height: 250px;
  background: var(--white);
}

.scenario-grid span,
.channel-grid span {
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.scenario-grid h3 {
  color: #1e5f51;
}

.value-grid article {
  border-top: 4px solid var(--amber);
}

.value-grid article:nth-child(2) {
  border-top-color: var(--green);
}

.value-grid article:nth-child(3) {
  border-top-color: var(--blue);
}

.value-grid article:nth-child(4) {
  border-top-color: var(--rust);
}

.channel-grid article {
  min-height: 240px;
}

.channel-grid h3 {
  color: #1e5f51;
}

h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}

.problem-grid h3 {
  color: var(--rust);
}

.scenario-grid h3 {
  color: #1e5f51;
}

article p,
.timeline-item p,
.feature-list p {
  margin: 0;
  color: var(--muted);
}

.dark-band {
  background: var(--coal);
  color: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline-item {
  min-height: 260px;
  padding: 26px;
  background: #15201e;
}

.timeline-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--coal);
  background: #e7c889;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.72);
}

.timeline-item h3,
.deployment-steps h3 {
  color: var(--white);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  background: #f0f3ef;
}

.visual-showcase {
  display: grid;
  gap: 18px;
}

.visual-showcase img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-showcase img:nth-child(2) {
  width: 84%;
  justify-self: end;
  margin-top: -58px;
  border: 6px solid var(--paper);
}

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

.feature-list div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.feature-list h3 {
  color: var(--blue);
}

.role-section {
  background: var(--white);
}

.role-grid article {
  min-height: 210px;
  border-left: 4px solid var(--blue);
}

.role-grid article:nth-child(2) {
  border-left-color: var(--green);
}

.role-grid article:nth-child(3) {
  border-left-color: var(--amber);
}

.role-grid article:nth-child(4) {
  border-left-color: var(--rust);
}

.hardware-section {
  background: var(--white);
}

.hardware-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hardware-grid article {
  min-height: 220px;
  border-top: 4px solid var(--green);
}

.hardware-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.hardware-grid article:nth-child(3) {
  border-top-color: var(--amber);
}

.hardware-grid article:nth-child(4) {
  border-top-color: var(--rust);
}

.hardware-grid article:nth-child(1) h3 {
  color: var(--green);
}

.hardware-grid article:nth-child(2) h3 {
  color: var(--blue);
}

.hardware-grid article:nth-child(3) h3,
.hardware-grid article:nth-child(4) h3 {
  color: var(--rust);
}

.matrix-section {
  background: #eef2ee;
}

.feature-matrix {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(23, 32, 42, 0.06);
}

.feature-matrix > div {
  display: grid;
  grid-template-columns: minmax(88px, 0.48fr) minmax(360px, 1.7fr) minmax(300px, 1.1fr);
  border-top: 1px solid var(--line);
}

.feature-matrix > div:first-child {
  border-top: 0;
}

.feature-matrix span {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.feature-matrix span:first-child {
  border-left: 0;
  font-weight: 800;
}

.matrix-head {
  color: var(--white);
  background: var(--coal);
  font-weight: 800;
}

.operations-section {
  background: #ecefe8;
}

.ops-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 36px;
  align-items: start;
}

.ops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-list span {
  padding: 10px 14px;
  border: 1px solid #d7dbd3;
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}

.trust-section {
  background: var(--white);
}

.trust-grid article {
  min-height: 220px;
}

.trust-grid h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--green);
}

.trust-grid h3 {
  color: #20302d;
}

.deployment-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  color: var(--white);
  background: #10201c;
}

.deployment-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: 0;
}

.deployment-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

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

.deployment-steps article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.deployment-steps strong {
  color: #e7c889;
  font-size: 24px;
  font-weight: 900;
}

.deployment-steps p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 30px;
  align-items: center;
  background: #eee6d8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 20, 0.68);
  backdrop-filter: blur(8px);
}

.contact-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(15, 21, 20, 0.28);
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.contact-modal-panel p:not(.eyebrow) {
  color: var(--muted);
}

.contact-info-card {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-info-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-info-card strong {
  color: var(--blue);
  font-size: 20px;
  overflow-wrap: anywhere;
}

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

.copy-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green) !important;
  font-weight: 800;
}

.downloads-section {
  background: var(--white);
}

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

.download-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 230px;
  box-shadow: var(--shadow);
}

.download-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
}

.download-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.client-badge {
  width: 96px;
  height: 96px;
  background: var(--green);
  font-size: 28px;
}

.site-footer {
  padding: 30px clamp(18px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--coal);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 34px;
  align-items: start;
  padding-bottom: 24px;
}

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

.footer-brand img {
  width: 142px;
  height: auto;
  max-height: 48px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--white);
}

.footer-brand strong {
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  max-width: 680px;
  font-weight: 700;
}

.footer-nav a,
.footer-links a {
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.legal-page {
  background: var(--paper);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(18px, 6vw, 86px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.dark-brand,
.dark-entry {
  color: var(--ink);
}

.dark-entry {
  border-color: rgba(23, 32, 42, 0.2);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
}

.legal-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(50px, 8vw, 86px) 18px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.legal-content {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(23, 32, 42, 0.08);
}

.legal-content h2 {
  margin: 26px 0 8px;
  font-size: 22px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .capability-grid,
  .scenario-grid,
  .role-grid,
  .hardware-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .timeline-item {
    min-height: auto;
  }

  .feature-matrix > div {
    grid-template-columns: minmax(82px, 0.5fr) minmax(300px, 1.35fr) minmax(240px, 1fr);
  }

  .screens-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pc-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .site-nav a[href="#scenarios"],
  .site-nav a[href="#deployment"] {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-nav a[href="#company"],
  .site-nav a[href="#hardware"] {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .snap-panel.section {
    min-height: auto;
    display: block;
  }

  .site-header {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pc-entry {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 128px;
    height: auto;
    max-height: 40px;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 98px;
    padding-bottom: 72px;
  }

  .hero-content {
    margin: 0 18px;
    width: auto;
    padding-top: 30px;
  }

  .capability-grid,
  .company-section,
  .problem-grid,
  .scenario-grid,
  .value-grid,
  .channel-grid,
  .role-grid,
  .hardware-grid,
  .trust-grid,
  .download-grid,
  .driver-layout,
  .split-section,
  .ops-panel,
  .contact-section,
  .deployment-section,
  .deployment-steps {
    grid-template-columns: 1fr;
  }

  .app-preview-stack {
    min-height: 650px;
  }

  .phone-frame {
    width: min(245px, 62vw);
    border-width: 6px;
    border-radius: 28px;
  }

  .phone-front {
    right: 0;
    top: 20px;
  }

  .phone-back {
    left: 0;
    top: 104px;
  }

  .screens-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 0 12px;
    scroll-snap-type: x proximity;
  }

  .screens-gallery figure {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .screens-gallery figure:nth-child(even) {
    margin-top: 0;
  }

  .pc-showcase {
    grid-template-columns: 1fr;
  }

  .company-legal {
    grid-column: auto;
  }

  .company-facts {
    grid-template-columns: 1fr;
  }

  .company-legal p {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .feature-matrix {
    display: block;
    overflow: visible;
  }

  .feature-matrix > div {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
  }

  .feature-matrix span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature-matrix span:first-child {
    border-top: 0;
    color: var(--white);
    background: var(--coal);
  }

  .matrix-head {
    display: none !important;
  }

  .visual-showcase img:nth-child(2) {
    width: 100%;
    margin-top: 0;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 26px;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-main {
    display: grid;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
