:root {
  --primary: #8b01ff;
  --primary-dark: #5f00b8;
  --ink: #171321;
  --muted: #5f6370;
  --line: #e7e1ef;
  --surface: #ffffff;
  --surface-soft: #f7f3fb;
  --cyan: #12b8c9;
  --green: #20a66a;
  --amber: #f4a62a;
  --danger: #d33f49;
  --shadow: 0 22px 60px rgba(30, 19, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(139, 1, 255, 0.38);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  color: #fff;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding: 12px 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 38px rgba(28, 17, 38, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

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

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.76;
}

.wecom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 9px;
  background: rgba(139, 1, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(139, 1, 255, 0.24);
}

.wecom-badge img {
  display: block;
  width: auto;
  max-width: 108px;
  height: 20px;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: currentColor;
  font-weight: 650;
}

.site-nav a:hover {
  background: rgba(139, 1, 255, 0.1);
}

.nav-cta {
  gap: 8px;
  color: #fff !important;
  background: var(--primary);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  background: #fff;
  border-color: var(--line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 82dvh;
  padding: 138px 0 64px;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background-image: url("assets/hero-team.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 11, 31, 0.88) 0%, rgba(24, 12, 39, 0.68) 48%, rgba(15, 13, 24, 0.42) 100%),
    linear-gradient(180deg, rgba(10, 7, 19, 0.52) 0%, rgba(10, 7, 19, 0.14) 48%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-content {
  display: grid;
  gap: 24px;
  max-width: 720px;
  margin-left: max(calc((100vw - 1120px) / 2), 20px);
}

.eyebrow {
  margin: 0;
  color: #f1ddff;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow.dark {
  color: var(--primary);
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 1;
  font-weight: 850;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button.primary,
.form-submit {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 16px 32px rgba(139, 1, 255, 0.26);
}

.button.primary:hover,
.form-submit:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 660px);
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.metric-strip div {
  padding: 18px;
  background: rgba(8, 5, 16, 0.26);
}

.metric-strip dt {
  font-size: 20px;
  font-weight: 850;
}

.metric-strip dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.product-section {
  background: #fff;
}

.split-layout,
.security-layout,
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 52px;
}

.section-copy h2,
.section-heading h2,
.security-layout h2,
.demo-layout h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.16;
}

.section-copy p,
.security-layout p,
.demo-layout p {
  color: var(--muted);
  font-size: 17px;
}

.product-console {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbf9fd;
}

.console-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d1e5;
}

.console-topbar span:first-child {
  background: var(--danger);
}

.console-topbar span:nth-child(2) {
  background: var(--amber);
}

.console-topbar span:nth-child(3) {
  background: var(--green);
}

.console-topbar strong {
  margin-left: 12px;
  font-size: 14px;
}

.console-grid {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 378px;
}

.console-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: #1b1226;
}

.console-sidebar span {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  font-weight: 700;
}

.console-sidebar .active {
  color: #fff;
  background: var(--primary);
}

.console-main {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.console-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.console-kpis div {
  padding: 16px;
  border: 1px solid #eee8f6;
  border-radius: 8px;
  background: var(--surface-soft);
}

.console-kpis small,
.customer-row small {
  display: block;
  color: var(--muted);
}

.console-kpis strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.pipeline {
  display: flex;
  align-items: end;
  gap: 16px;
  height: 140px;
  padding: 18px;
  border: 1px solid #eee8f6;
  border-radius: 8px;
  background:
    repeating-linear-gradient(to top, transparent 0 27px, rgba(139, 1, 255, 0.08) 28px),
    linear-gradient(180deg, #fff, #fbf8ff);
}

.pipeline span {
  flex: 1;
  min-width: 22px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
}

.customer-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee8f6;
  border-radius: 8px;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 850;
}

.customer-row button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--primary);
  background: #f6edff;
  border: 1px solid #e7d1ff;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.capability-section,
.solutions-section {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

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

.feature-card,
.solution-grid article,
.journey article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-card {
  padding: 24px;
  min-height: 220px;
}

.feature-card svg,
.solution-grid svg,
.security-list svg,
.contact-line svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke-width: 2;
}

.feature-card h3,
.solution-grid h3,
.journey h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.feature-card p,
.solution-grid p,
.journey p {
  margin-bottom: 0;
  color: var(--muted);
}

.workflow-section {
  background:
    linear-gradient(180deg, #fff 0%, #fff 62%, #171321 62%, #171321 100%);
}

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

.journey article {
  position: relative;
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
}

.journey article::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 auto;
  width: 64px;
  height: 6px;
  background: var(--primary);
}

.journey span {
  color: var(--primary);
  font-size: 38px;
  font-weight: 850;
}

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

.solution-grid article {
  min-height: 218px;
  padding: 22px;
}

.security-section {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 19, 33, 0.96), rgba(23, 19, 33, 0.9)),
    linear-gradient(135deg, #171321, #251434);
}

.security-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.security-layout p {
  color: rgba(255, 255, 255, 0.74);
}

.security-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.demo-section {
  color: #fff;
  background: var(--primary);
}

.demo-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.demo-layout p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 800;
}

.contact-line svg {
  color: #fff;
}

.demo-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(30, 19, 43, 0.22);
}

.demo-form label {
  display: grid;
  gap: 7px;
  color: #34303c;
  font-weight: 750;
}

.demo-form input,
.demo-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcd4e7;
  border-radius: 8px;
}

.demo-form input:focus,
.demo-form select:focus {
  border-color: var(--primary);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 750;
}

.site-footer {
  padding: 28px 0;
  color: #d9d4e1;
  background: #171321;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: #bcb4c8;
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
  }

  .split-layout,
  .security-layout,
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

  .workflow-section {
    background: #fff;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-cluster {
    gap: 8px;
  }

  .wecom-badge {
    min-height: 30px;
    padding: 6px 7px;
  }

  .wecom-badge img {
    max-width: 88px;
    height: 18px;
  }

  .hero {
    min-height: 78dvh;
    padding: 96px 0 34px;
  }

  .hero-content {
    gap: 14px;
    margin-left: auto;
  }

  h1 {
    font-size: clamp(44px, 14vw, 62px);
    line-height: 1.04;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
  }

  .metric-strip div {
    padding: 12px 10px;
  }

  .metric-strip dt {
    font-size: 16px;
  }

  .metric-strip dd {
    font-size: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .security-layout h2,
  .demo-layout h2 {
    font-size: 32px;
  }

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

  .console-sidebar {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .console-kpis,
  .feature-grid,
  .journey,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .pipeline {
    gap: 10px;
  }

  .customer-row {
    grid-template-columns: 42px 1fr;
  }

  .customer-row button {
    grid-column: 1 / -1;
  }

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

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