:root {
  color-scheme: dark;
  --bg: #0d0f13;
  --bg-alt: #12161d;
  --panel: #171c24;
  --panel-2: #1d232e;
  --line: #29303b;
  --text: #edf0f2;
  --muted: #a8b0bb;
  --accent: #e24a3b;
  --accent-2: #c98a3b;
  --accent-3: #5f8cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --max: 1200px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(226, 74, 59, 0.18), transparent 30%),
    linear-gradient(180deg, #0b0d10 0%, #10141a 100%);
  color: var(--text);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  line-height: 1.7;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid transparent;
  background: rgba(13, 15, 19, 0.3);
  color: var(--text);
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 15, 19, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

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

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

.brand-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.header-action,
.header-community,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
}

.header-action {
  border-color: rgba(226, 74, 59, 0.4);
  background: rgba(226, 74, 59, 0.1);
  color: #ffd8d3;
}

.header-community {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.header-action:hover,
.header-community:hover,
.header-action:focus-visible,
.header-community:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #b63d31);
  color: #fff;
  box-shadow: 0 10px 26px rgba(226, 74, 59, 0.25);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 72px;
  scroll-margin-top: 92px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(226, 74, 59, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(90deg, transparent 0 49.5%, rgba(255, 255, 255, 0.04) 49.5% 50%, transparent 50.5% 100%),
    linear-gradient(0deg, transparent 0 49.5%, rgba(255, 255, 255, 0.04) 49.5% 50%, transparent 50.5% 100%);
  background-size: auto, auto, 52px 52px, 52px 52px;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  justify-items: center;
  align-items: center;
  min-height: 0;
  padding-block: 32px;
}

.hero-copy {
  max-width: 760px;
  text-align: center;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

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

.hero-text,
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

.section {
  padding: 56px 0;
  scroll-margin-top: 92px;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.value-grid,
.case-grid {
  display: grid;
  gap: 16px;
}

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

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

.card,
.case-card,
.card,
.case-card {
  padding: 22px;
}

.card p,
.case-card p {
  color: var(--muted);
}

.case-meta {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(226, 74, 59, 0.26);
  border-radius: 999px;
  color: #ffd8d3;
  font-size: 12px;
  background: rgba(226, 74, 59, 0.08);
}

.case-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.carousel-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  min-height: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto auto;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #10141a;
}

.slide-copy {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.92);
}

.slide-copy h3 {
  margin-bottom: 6px;
}

.slide-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.slide-text-link {
  display: inline-flex;
  margin-top: 10px;
  color: #ffd8d3;
  font-size: 13px;
  font-weight: 700;
}

.slide-text-link:hover {
  color: #fff;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.carousel-arrow:hover {
  border-color: rgba(226, 74, 59, 0.45);
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.carousel-dots {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--accent);
}

.carousel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.architecture-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.architecture-col {
  display: grid;
  gap: 14px;
}

.arch-node,
.architecture-core {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.arch-node {
  padding: 18px 18px 16px;
}

.arch-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(226, 74, 59, 0.14);
  color: #ffd8d3;
  font-size: 12px;
  font-weight: 700;
}

.arch-node p,
.architecture-core p {
  margin-bottom: 0;
  color: var(--muted);
}

.architecture-core {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 26px;
  background:
    radial-gradient(circle at top, rgba(226, 74, 59, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.core-label {
  margin: 0;
  color: #f0b65c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.solution-list {
  display: grid;
  gap: 14px;
}

.solution-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.solution-title span {
  color: var(--muted);
  font-size: 14px;
}

.solution-body p + p {
  margin-top: 8px;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.logo-wall span {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.about-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 84px;
  display: grid;
  gap: 24px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  grid-template-columns: 1fr;
  padding: 24px 24px 22px;
}

.contact h2,
.contact > div > p {
  color: var(--white);
}

.contact h2 {
  margin-bottom: 10px;
}

.contact > div > p {
  margin-bottom: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.wecom-qr {
  display: grid;
  place-items: center;
  width: fit-content !important;
  padding: 12px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.wecom-qr img {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.contact-details {
  display: grid;
  gap: 8px;
}

.contact-details span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-details strong {
  font-size: 22px;
  line-height: 1.15;
}

.contact-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.contact-email {
  color: #fff;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0 34px;
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid strong {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(226, 74, 59, 0.3);
  border-radius: 10px;
  background: rgba(17, 20, 25, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
}

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .architecture-diagram {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto 1fr auto auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 15, 19, 0.98);
  }

  .site-header[data-open="true"] .nav {
    display: grid;
  }

  .nav a {
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .header-action {
    justify-self: end;
  }

  .solution-row {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .value-grid,
  .architecture-diagram {
    grid-template-columns: 1fr;
  }

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

  .contact-box {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .contact-details strong {
    font-size: 20px;
  }
}

.community-hero {
  padding-top: 118px;
}

.community-hero-head {
  max-width: 780px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #f0b65c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.doc-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.doc-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.doc-meta {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(95, 140, 255, 0.28);
  border-radius: 999px;
  color: #cfe0ff;
  font-size: 12px;
  background: rgba(95, 140, 255, 0.1);
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

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

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

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