:root {
  --primary: #3478f6;
  --primary-dark: #245fc7;
  --accent: #ff4d5a;
  --ink: #182033;
  --muted: #697386;
  --line: #e8edf5;
  --surface: #ffffff;
  --background: #f6f8fc;
  --soft-blue: #edf4ff;
  --soft-orange: #fff5e8;
  --soft-purple: #f4efff;
  --shadow: 0 16px 44px rgba(39, 64, 110, 0.09);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--background);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 237, 245, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: url("favicon.png") center / cover no-repeat;
  box-shadow: 0 7px 18px rgba(25, 202, 196, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #3f485a;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(52, 120, 246, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(137, 101, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #dce8ff;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--soft-blue);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 590px;
  margin: 22px 0 18px;
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 570px;
  color: var(--muted);
  font-size: 17px;
}

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

.hero .hero-note {
  margin-top: 16px;
  color: #8a94a8;
  font-size: 12px;
}

.app-preview {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(215, 229, 255, 0.9);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 238, 238, 0.76), rgba(247, 248, 250, 0.3) 28%),
    #f7f8fa;
  box-shadow: 0 30px 80px rgba(39, 64, 110, 0.16);
}

.app-preview::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 30px;
  background: rgba(52, 120, 246, 0.1);
  filter: blur(28px);
}

.preview-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.preview-heading strong {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.preview-heading span {
  margin-top: 2px;
  color: #9a9ca3;
  font-size: 11px;
}

.preview-primary,
.preview-pair > div,
.preview-tools span {
  border: 1px solid #e6edf8;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(39, 64, 110, 0.05);
}

.preview-primary {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-color: #d7e5ff;
  border-radius: 18px;
  background: linear-gradient(145deg, #edf4ff, #fff);
}

.preview-primary strong,
.preview-pair strong {
  display: block;
  font-size: 16px;
}

.preview-primary span,
.preview-pair span {
  display: block;
  margin-top: 2px;
  color: #999da7;
  font-size: 10px;
}

.preview-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.preview-tags i {
  padding: 2px 7px;
  border-radius: 999px;
  color: #3478f6;
  background: #e2edff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.draw-mark {
  position: relative;
  width: 96px;
  height: 56px;
  flex: 0 0 auto;
}

.draw-mark::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 33px;
  width: 58px;
  height: 2px;
  background: #3487ff;
  transform: rotate(-31deg);
  transform-origin: right center;
}

.draw-mark i,
.draw-mark i::after {
  position: absolute;
  border: 2px solid #3487ff;
  border-radius: 50%;
  content: "";
}

.draw-mark i {
  right: 5px;
  top: 3px;
  width: 58px;
  height: 48px;
}

.draw-mark i::after {
  inset: 7px 10px;
  border: 0;
  background: #3487ff;
}

.preview-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.preview-pair > div {
  min-height: 78px;
  padding: 15px 16px;
  border-radius: 16px;
}

.preview-pair > div:first-child {
  background: linear-gradient(145deg, #edf4ff, #fff);
}

.preview-pair > div:last-child {
  background: linear-gradient(145deg, #f5f0ff, #fff);
}

.preview-label {
  margin: 18px 4px 10px;
  font-size: 15px;
  font-weight: 800;
}

.preview-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-tools span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  color: #394052;
  font-size: 11px;
  font-weight: 700;
}

.preview-tools i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #e75b51;
  background: #fff0ee;
  font-size: 10px;
  font-style: normal;
}

.preview-tools span:nth-child(2) i,
.preview-tools span:nth-child(4) i {
  color: #e18b2b;
  background: #fff4e5;
}

.preview-tools span:nth-child(3) i {
  color: #2a9d62;
  background: #eaf7ef;
}

.preview-tools span:nth-child(5) i {
  color: #7558cf;
  background: #f1edff;
}

.preview-tools span:nth-child(6) i,
.preview-tools span:nth-child(7) i {
  color: #3478f6;
  background: #e8f2ff;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(39, 64, 110, 0.06);
}

.button.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.section {
  padding: 72px 0;
}

.section.white {
  background: #fff;
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.3;
}

.section-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.core-grid,
.tool-grid,
.workflow-grid {
  display: grid;
  gap: 18px;
}

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

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

.workflow-grid {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: workflow;
}

.feature-card,
.tool-card,
.workflow-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--soft-blue);
  font-size: 20px;
  font-weight: 800;
}

.feature-card:nth-child(2) .feature-icon {
  color: #ea8b21;
  background: var(--soft-orange);
}

.feature-card:nth-child(3) .feature-icon {
  color: #8056df;
  background: var(--soft-purple);
}

.feature-card h3,
.tool-card h3,
.workflow-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feature-card p,
.tool-card p,
.workflow-card p {
  color: var(--muted);
  font-size: 14px;
}

.tool-card {
  min-height: 158px;
  padding: 24px 20px;
  box-shadow: 0 8px 26px rgba(39, 64, 110, 0.05);
}

.tool-card::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
}

.tool-card:nth-child(2)::before,
.tool-card:nth-child(4)::before {
  background: #e18b2b;
}

.tool-card:nth-child(3)::before {
  background: #2a9d62;
}

.tool-card:nth-child(5)::before {
  background: #7558cf;
}

.tool-card:nth-child(6)::before,
.tool-card:nth-child(7)::before {
  background: #3478f6;
}

.workflow-card {
  position: relative;
  padding: 24px 22px;
  box-shadow: none;
  counter-increment: workflow;
}

.workflow-card::before {
  content: "0" counter(workflow);
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.notice {
  padding: 30px;
  border: 1px solid #f0e3e4;
  border-radius: 20px;
  background: #fffafa;
}

.notice ul {
  padding-left: 22px;
}

.notice li {
  margin: 7px 0;
  color: #555e70;
  font-size: 14px;
}

.contact-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.contact-card p + p {
  margin-top: 5px;
}

.site-footer {
  padding: 30px 0;
  color: #aeb7c8;
  background: #182033;
  font-size: 13px;
  text-align: center;
  line-height: 2;
}

.site-footer a {
  color: #d9dfeb;
}

/* Policy and agreement pages */
.policy-header .nav {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.policy-main {
  width: min(900px, calc(100% - 40px));
  margin: 36px auto 72px;
}

.policy-title {
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f4f8ff);
}

.policy-title h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.3;
}

.policy-title p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.policy-title p span {
  white-space: nowrap;
}

.policy-content {
  margin-top: 20px;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.policy-content .lead {
  color: #4f596c;
}

.policy-content section + section {
  margin-top: 34px;
}

.policy-content h2 {
  margin-bottom: 13px;
  font-size: 20px;
  line-height: 1.4;
}

.policy-content h3 {
  margin: 20px 0 7px;
  font-size: 16px;
}

.policy-content p,
.policy-content li {
  color: #4f596c;
  font-size: 14.5px;
}

.policy-content p + p {
  margin-top: 10px;
}

.policy-content ol,
.policy-content ul {
  padding-left: 23px;
}

.policy-content li + li {
  margin-top: 8px;
}

.component-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  list-style: none;
  padding-left: 0 !important;
}

.component-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-copy {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }

  .hero h1,
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .app-preview {
    width: min(100%, 580px);
    margin: 0 auto;
  }

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

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

@media (max-width: 720px) {
  .wrap,
  .policy-header .nav,
  .policy-main {
    width: min(100% - 28px, 1080px);
  }

  .nav-links a:not(:first-child) {
    display: none;
  }

  .hero {
    padding: 66px 0 58px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .app-preview {
    padding: 20px;
    border-radius: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .core-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }

  .feature-card {
    min-height: 0;
  }

  .policy-title,
  .policy-content {
    padding: 25px 22px;
    border-radius: 17px;
  }
}

@media (max-width: 480px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 17px;
  }
}
