* {
  box-sizing: border-box;
}

:root {
  --ink: #0f1f33;
  --muted: #5d6f84;
  --line: #dbe7f2;
  --blue: #1166ff;
  --cyan: #0bbbd6;
  --green: #16a34a;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100vw - 32px));
  min-height: 56px;
  padding: 8px 10px 8px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 226, 238, 0.9);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(27, 48, 72, 0.14);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.site-brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

.site-brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  color: #40556d;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a:hover {
  background: #edf6ff;
}

.site-header nav .login-link {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(17, 102, 255, 0.24);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #edf4fa;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(244, 248, 251, 0.98) 0%, rgba(244, 248, 251, 0.88) 34%, rgba(244, 248, 251, 0.44) 62%, rgba(244, 248, 251, 0.08) 100%),
    linear-gradient(180deg, rgba(244, 248, 251, 0) 72%, #f4f8fb 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1fr);
  gap: 44px;
  align-items: center;
  width: min(1220px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 0 76px;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

.hero-copy > span,
.section-title span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 17px 0 18px;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 610px;
  margin: 0;
  color: #2f4258;
  font-size: 18px;
  line-height: 1.82;
}

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

.hero-actions a,
.plan-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 900;
}

.hero-actions .primary,
.plan-strip a:first-child {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 36px rgba(17, 102, 255, 0.26);
}

.hero-actions .secondary,
.plan-strip a {
  color: #123050;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #cfddea;
}

.hero-product-shot {
  display: grid;
  align-self: center;
  justify-items: end;
}

.mock-browser {
  width: min(660px, 100%);
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(205, 220, 236, 0.94);
  border-radius: 14px;
  box-shadow: 0 34px 90px rgba(17, 35, 57, 0.22);
  backdrop-filter: blur(18px);
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 8px 8px;
  color: #6b7d91;
  font-size: 12px;
}

.mock-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
}

.mock-head span:nth-child(2) {
  background: #f59e0b;
}

.mock-head span:nth-child(3) {
  background: var(--green);
}

.mock-head em {
  margin-left: auto;
  font-style: normal;
  font-weight: 800;
}

.mock-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 172px;
  gap: 10px;
  min-height: 374px;
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(205, 217, 232, 0.5) 1px, transparent 1px),
    linear-gradient(180deg, rgba(205, 217, 232, 0.5) 1px, transparent 1px),
    linear-gradient(135deg, #f6faff, #eaf3fb);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid #dae6f2;
  border-radius: 10px;
}

.mock-body aside,
.mock-preview,
.mock-body section {
  min-width: 0;
}

.mock-body aside {
  display: grid;
  gap: 9px;
  align-content: start;
}

.mock-body aside b {
  display: block;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20, 43, 70, 0.06);
}

.mock-body aside b:first-child {
  background: linear-gradient(135deg, #e8f2ff, #ffffff);
  border-color: #a9cbff;
}

.mock-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mock-toolbar i {
  display: block;
  width: 74px;
  height: 24px;
  background: #fff;
  border: 1px solid #d9e5f1;
  border-radius: 999px;
}

.mock-canvas {
  position: relative;
  height: 314px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cbdced;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #fff;
}

.mock-canvas span {
  position: absolute;
  display: block;
  background:
    linear-gradient(135deg, rgba(17, 102, 255, 0.14), rgba(11, 187, 214, 0.2)),
    #fff;
  border: 1px solid rgba(17, 102, 255, 0.24);
  border-radius: 42% 58% 48% 52%;
}

.mock-canvas span:nth-child(1) {
  top: 54px;
  left: 88px;
  width: 116px;
  height: 190px;
}

.mock-canvas span:nth-child(2) {
  top: 58px;
  right: 84px;
  width: 116px;
  height: 188px;
}

.mock-canvas span:nth-child(3) {
  right: 154px;
  bottom: 36px;
  width: 58px;
  height: 112px;
  transform: rotate(8deg);
}

.mock-canvas span:nth-child(4) {
  left: 164px;
  bottom: 34px;
  width: 62px;
  height: 118px;
  transform: rotate(-8deg);
}

.mock-preview {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mock-preview strong,
.mock-preview div,
.mock-preview small {
  display: block;
  background: #fff;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
}

.mock-preview strong {
  width: 118px;
  height: 24px;
}

.mock-preview div {
  height: 166px;
  background:
    linear-gradient(90deg, rgba(205, 217, 232, 0.45) 1px, transparent 1px),
    linear-gradient(180deg, rgba(205, 217, 232, 0.45) 1px, transparent 1px),
    #f9fcff;
  background-size: 22px 22px;
}

.mock-preview small {
  height: 52px;
}

.workflow,
.plans {
  padding: 78px 7vw;
}

.section-title {
  max-width: 820px;
  margin-bottom: 26px;
}

.section-title h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.16;
}

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

.workflow-grid article {
  display: grid;
  gap: 12px;
  min-height: 188px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(23, 45, 70, 0.07);
}

.workflow-grid strong {
  font-size: 22px;
}

.workflow-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.plans {
  background: #fff;
}

.plan-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

  .hero-product-shot {
    justify-items: stretch;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 8px;
    width: calc(100vw - 16px);
  }

  .site-header nav a:not(.login-link) {
    display: none;
  }

  .hero-inner {
    width: calc(100vw - 32px);
    min-height: 100svh;
    padding: 96px 0 46px;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .mock-browser {
    padding: 8px;
  }

  .mock-body {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 286px;
  }

  .mock-preview {
    display: none;
  }

  .mock-body aside b {
    width: 34px;
    height: 34px;
  }

  .mock-toolbar i {
    width: 54px;
  }

  .mock-canvas {
    height: 230px;
  }

  .workflow,
  .plans {
    padding: 52px 22px;
  }
}
