:root {
  --ink: #122033;
  --muted: #5b6a7c;
  --line: #dbe3ec;
  --paper: #f7f9fc;
  --white: #ffffff;
  --blue: #1769d1;
  --blue-dark: #0f3769;
  --green: #0d9f7a;
  --amber: #b87512;
  --red: #c94a4a;
  --shadow: 0 18px 45px rgba(18, 32, 51, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(10, 25, 45, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #071525;
}

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 30, 0.64);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 68px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.section-head {
  width: min(920px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.compact {
  margin-bottom: 28px;
}

.section-head h2,
.console-copy h2,
.demo-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p,
.console-copy p {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.intro-band {
  background: var(--paper);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.flow-item {
  padding: 22px;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.flow-num,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.flow-item strong {
  display: block;
  margin-top: 16px;
  font-size: 20px;
}

.flow-item p,
.proof-grid p,
.feature-grid p,
.scene-grid p,
.mobile-points p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.proof-grid article {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.proof-kicker {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.proof-grid h3,
.feature-grid h3,
.scene-grid h3,
.mobile-points h3,
.cta-box h3 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.35;
}

.console-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  background: #eef4f8;
}

.console-copy {
  max-width: 560px;
  justify-self: end;
}

.metrics {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.metrics div {
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--white);
}

.metrics dt {
  font-weight: 800;
  font-size: 18px;
}

.metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.screenshot-frame,
.screenshot-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.screenshot-frame img,
.screenshot-card img {
  width: 100%;
}

.screenshot-frame figcaption,
.screenshot-card figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  background: var(--white);
}

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

.mobile-grid {
  display: grid;
  grid-template-columns: 260px 260px minmax(320px, 1fr);
  gap: 24px;
  align-items: stretch;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.phone {
  border-radius: 32px;
  padding: 12px;
  background: #152234;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 78px;
  height: 6px;
  margin: 8px auto 12px;
  border-radius: 999px;
  background: #56677b;
}

.phone-screen {
  min-height: 470px;
  padding: 18px;
  border-radius: 22px;
  background: #f1f5f9;
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.mini-nav strong {
  color: var(--ink);
  font-size: 18px;
}

.package-card,
.renew-box,
.pay-box,
.instance-line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.package-card + .package-card {
  margin-top: 12px;
}

.package-card.active {
  border-color: rgba(13, 159, 122, 0.55);
}

.package-card div:first-child,
.instance-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.package-card p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.stock {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(13, 159, 122, 0.12);
  font-size: 12px;
}

.stock.warn {
  color: var(--amber);
  background: rgba(184, 117, 18, 0.13);
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  color: var(--blue-dark);
  font-size: 12px;
}

.package-card button,
.full-button {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.instance-line {
  margin-bottom: 10px;
}

.instance-line strong {
  color: var(--green);
}

.renew-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.renew-box button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.pay-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-points {
  display: grid;
  gap: 16px;
  align-content: center;
}

.mobile-points article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature-section {
  background: #102033;
  color: var(--white);
}

.feature-section .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-grid article {
  min-height: 245px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.feature-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-icon {
  background: var(--green);
}

.proof-visuals {
  background: var(--paper);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.architecture {
  background: var(--white);
}

.arch-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.arch-node {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue-dark);
}

.arch-node.customer {
  background: var(--green);
}

.arch-node.device {
  background: #31445c;
}

.arch-node.broker {
  grid-column: 2 / 5;
  min-height: 100px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.arch-node strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.arch-node span {
  color: rgba(255, 255, 255, 0.82);
}

.arch-node.broker span {
  color: var(--muted);
}

.arch-arrow {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.scene-section {
  background: #eef4f8;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.scene-grid article {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

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

.demo-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 360px;
  gap: 34px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.demo-steps {
  margin: 20px 0 0;
  padding-left: 24px;
  color: var(--muted);
}

.demo-steps li + li {
  margin-top: 8px;
}

.cta-box {
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue-dark);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #081524;
}

.site-footer strong {
  color: var(--white);
}

@media (max-width: 1080px) {
  .flow,
  .proof-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .console-section,
  .mobile-grid,
  .demo-panel {
    grid-template-columns: 1fr;
  }

  .console-copy {
    max-width: none;
    justify-self: stretch;
  }

  .mobile-grid {
    justify-items: center;
  }

  .mobile-points {
    width: 100%;
  }

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

  .arch-arrow {
    text-align: center;
  }

  .arch-node.broker {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  html {
    overflow-x: hidden;
  }

  .site-nav {
    height: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: min(100% - 28px, 1080px);
  }

  .flow,
  .proof-grid,
  .feature-grid,
  .visual-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .phone {
    width: min(280px, 100%);
  }

  .site-footer {
    flex-direction: column;
  }
}
