:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #15171a;
  --muted: #5b626d;
  --line: #d9dde3;
  --brand: #c4161c;
  --brand-2: #ef3b2d;
  --dark: #252a31;
  --soft: #eef1f5;
  --shadow: 0 18px 50px rgba(18, 24, 33, .12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111417;
  --surface: #1b2026;
  --ink: #f4f6f8;
  --muted: #b5bdc8;
  --line: #343b45;
  --brand: #ff4a40;
  --brand-2: #ff7a52;
  --dark: #0b0d10;
  --soft: #242a32;
  --shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

[dir="rtl"] body {
  font-family: Arial, Tahoma, sans-serif;
}

[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(0,0,0,.76), rgba(0,0,0,.42) 48%, rgba(0,0,0,.12));
}

[dir="rtl"] .nav-links,
[dir="rtl"] .nav-actions,
[dir="rtl"] .topbar,
[dir="rtl"] .hero-actions,
[dir="rtl"] .filters,
[dir="rtl"] .footer div:last-child {
  flex-direction: row-reverse;
}

[dir="rtl"] .filters,
[dir="rtl"] .product-tools {
  justify-items: start;
}

[dir="rtl"] .industry-card ul {
  padding-left: 0;
  padding-right: 18px;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 0 38px;
  background: var(--dark);
  color: #f7f7f7;
  font-size: 13px;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 0 38px;
}

.brand img { width: 168px; max-height: 48px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links a:hover { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-actions select,
.icon-btn,
.quote-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

.icon-btn {
  width: 42px;
  padding: 0;
  cursor: pointer;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  padding: 0 18px;
  font-weight: 800;
}

.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: #171a1e;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.42) 48%, rgba(0,0,0,.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 140px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 20px;
  color: rgba(255,255,255,.9);
}

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

.primary, .secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid white;
  font-weight: 900;
}

.primary { background: var(--brand); border-color: var(--brand); color: white; }
.secondary { color: white; }

.quick-categories {
  width: min(1180px, calc(100% - 48px));
  margin: -74px auto 0;
  position: relative;
  z-index: 2;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.category-tile {
  min-height: 148px;
  padding: 18px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: end;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.72));
}

.category-tile span,
.category-tile strong { position: relative; color: white; }
.category-tile span { font-size: 12px; opacity: .82; }
.category-tile strong { font-size: 18px; line-height: 1.25; }

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

.section-head,
.intro,
.compatibility,
.support,
.contact {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.5fr);
  gap: 54px;
  align-items: start;
}

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

.intro p,
.contact p,
.support p {
  margin-top: 0;
  color: var(--muted);
  font-size: 17px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
}

.metric strong { display: block; color: var(--brand); font-size: 28px; line-height: 1; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.product-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.product-tools input {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
}

.filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
}
.filters button.active { background: var(--brand); border-color: var(--brand); color: white; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.product-card,
.case-card,
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.card-body { padding: 22px; }
.badge { color: var(--brand); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.product-card h3, .case-card h3, .article-card h3 { margin: 8px 0 10px; font-size: 22px; line-height: 1.2; }
.product-card p, .case-card p, .article-card p { margin: 0; color: var(--muted); }
.product-card button {
  margin-top: 18px;
  border: 0;
  background: var(--dark);
  color: white;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.detail-panel {
  background: var(--surface);
  border-block: 1px solid var(--line);
  width: 100%;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.detail-media video,
.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.spec-table div {
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.spec-table span { display: block; color: var(--muted); font-size: 12px; }
.spec-table strong { display: block; margin-top: 3px; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 13px;
}

.case-grid,
.industry-grid,
.testimonial-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.industry-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 34px;
}

.industry-card,
.testimonial-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
}

.industry-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.industry-card .card-body { padding: 20px; }
.industry-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.industry-card li + li { margin-top: 5px; }

.case-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case-card dl { margin: 18px 0 0; display: grid; gap: 12px; }
.case-card dt { color: var(--brand); font-weight: 900; }
.case-card dd { margin: 4px 0 0; color: var(--muted); }

.brand-cloud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.brand-cloud span {
  min-height: 70px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  color: var(--muted);
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.support-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 96px;
}

.support-item strong { display: block; color: var(--brand); font-size: 26px; }

.selection-table {
  display: grid;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 28px;
}

.selection-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.selection-row:last-child { border-bottom: 0; }
.selection-row > div {
  padding: 18px;
  border-right: 1px solid var(--line);
}
.selection-row > div:last-child { border-right: 0; }
.selection-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.selection-row strong { display: block; margin-top: 4px; }
.selection-row p { margin: 4px 0 0; color: var(--muted); }

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 210px;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--brand);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
}

.process-step h3 { margin: 0 0 6px; }
.process-step span { color: var(--brand); font-weight: 900; font-size: 13px; }
.process-step p { margin: 12px 0 0; color: var(--muted); }

.article-card { padding: 24px; }
.article-meta { color: var(--brand); font-size: 13px; font-weight: 900; }

.testimonial-card {
  padding: 26px;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.testimonial-card cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq-item {
  padding: 22px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.download-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.download-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.download-card span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-card strong { display: block; margin-top: 5px; line-height: 1.25; }
.download-card a {
  min-width: 44px;
  min-height: 40px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: white;
  font-weight: 900;
}

.contact {
  align-items: stretch;
  background: var(--dark);
  color: white;
  width: 100%;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
}

.contact .eyebrow { color: #ff756b; }
.contact p { color: rgba(255,255,255,.78); }

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 13px 14px;
}

.lead-form textarea { min-height: 130px; resize: vertical; }
.lead-form button {
  border: 0;
  background: var(--brand);
  color: white;
  min-height: 48px;
  font-weight: 900;
  cursor: pointer;
}
.lead-form option { color: #111; }
.form-status { min-height: 22px; margin: 0; }

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) minmax(160px, .7fr) minmax(220px, .9fr);
  gap: 32px;
  align-items: start;
}

.footer-brand img { width: 154px; max-height: 52px; object-fit: contain; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); max-width: 360px; }

.footer h3 {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-col {
  display: grid;
  gap: 9px;
  color: var(--muted);
}

.footer-col a,
.footer span {
  color: var(--muted);
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.qr-contacts {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.qr-card {
  display: grid;
  gap: 7px;
  justify-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  max-width: 112px;
  text-align: center;
}

.qr-card img {
  width: 86px;
  height: 86px;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

@media (max-width: 920px) {
  .topbar { display: none; }
  .nav { grid-template-columns: auto auto; padding: 0 20px; }
  .nav-toggle {
    display: block;
    justify-self: end;
    width: 42px;
    min-height: 40px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
  }
  .nav-links,
  .nav-actions {
    grid-column: 1 / -1;
    display: none;
    justify-content: start;
    flex-wrap: wrap;
    padding-bottom: 18px;
  }
  .nav.open .nav-links,
  .nav.open .nav-actions { display: flex; }
  .hero { min-height: 70vh; }
  .category-strip,
  .product-grid,
  .case-grid,
  .industry-grid,
  .testimonial-grid,
  .article-grid,
  .download-list,
  .metrics,
  .brand-cloud,
  .support-list,
  .selection-row,
  .process-list,
  .section-head,
  .intro,
  .compatibility,
  .support,
  .contact,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .quick-categories { margin-top: -36px; }
  .category-tile { min-height: 112px; }
  .filters { justify-content: flex-start; }
  .product-tools { justify-items: stretch; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { display: grid; }
}

@media (max-width: 560px) {
  .hero-content { width: calc(100% - 32px); padding-top: 82px; }
  .section, .quick-categories { width: calc(100% - 32px); }
  .section { padding: 58px 0; }
  .hero h1 { font-size: 42px; }
  .hero p:not(.eyebrow) { font-size: 17px; }
  .spec-table { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
