* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --ink: #151712;
  --muted: #646b5f;
  --line: #dfe4d8;
  --green: #4f8f61;
  --green-dark: #2f6342;
  --coral: #e86f5b;
  --blue: #446b8f;
  --soft-green: #edf5e9;
  --soft-coral: #fff0ec;
  --soft-blue: #eef5fb;
  --shadow: 0 24px 70px rgba(34, 45, 29, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

body.policy-page {
  background: #fafbf8;
}

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

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 228, 216, 0.82);
  background: rgba(246, 247, 243, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #3d4439;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 0;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--green-dark);
  font-weight: 750;
}

.button.secondary {
  color: var(--green-dark);
  background: #ffffff;
  border: 1px solid #b9c9b2;
}

.hero {
  position: relative;
  display: block;
  width: min(1120px, calc(100vw - 40px));
  min-height: min(720px, calc(100vh - 120px));
  margin: 0 auto;
  padding: 76px 0 72px;
  overflow: hidden;
}

.hero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 490px;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 490px;
  margin-top: 22px;
  color: #4d5648;
  font-size: 19px;
  line-height: 1.85;
}

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

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

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495244;
  font-size: 15px;
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.product-visual {
  position: absolute;
  right: 0;
  bottom: 64px;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(530px, 48vw);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfefb;
  box-shadow: var(--shadow);
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bcc7b4;
}

.visual-chip {
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--green-dark);
  background: var(--soft-green);
  font-size: 12px;
  font-weight: 800;
}

.visual-body {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 14px;
}

.role-panel,
.chat-panel,
.studio-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.role-panel {
  padding: 14px;
}

.role-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  background: var(--soft-green);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #4f8f61 0 48%, #f4ca73 49% 100%);
}

.role-card strong {
  font-size: 17px;
}

.role-card span {
  color: #5d6658;
  font-size: 13px;
  line-height: 1.5;
}

.role-metrics {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.metric {
  height: 10px;
  border-radius: 999px;
  background: #edf0e8;
}

.metric:nth-child(1) {
  width: 94%;
}

.metric:nth-child(2) {
  width: 74%;
}

.metric:nth-child(3) {
  width: 82%;
}

.chat-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  min-height: 290px;
  background: #f0f1ef;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.55;
  font-size: 14px;
}

.bubble.left {
  background: #ffffff;
}

.bubble.right {
  justify-self: end;
  background: #96e768;
}

.studio-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.studio-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
}

.studio-label {
  color: #5f6759;
  font-size: 13px;
  font-weight: 800;
}

.studio-line {
  height: 12px;
  border-radius: 999px;
  background: #e8ede3;
}

.studio-line.short {
  width: 74%;
}

.section {
  border-top: 1px solid rgba(223, 228, 216, 0.88);
}

.section-inner {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-title {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
}

.section-title p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.feature-card,
.scenario-card,
.compliance-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.feature-card:nth-child(2),
.scenario-card:nth-child(2),
.compliance-card:nth-child(2) {
  background: var(--soft-coral);
}

.feature-card:nth-child(3),
.scenario-card:nth-child(3),
.compliance-card:nth-child(3) {
  background: var(--soft-blue);
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green-dark);
  font-weight: 900;
}

.feature-card h3,
.scenario-card h3,
.compliance-card h3 {
  margin-top: 18px;
  font-size: 20px;
}

.feature-card p,
.scenario-card p,
.compliance-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--coral);
  font-weight: 900;
}

.step h3 {
  font-size: 19px;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
}

.cta-band {
  background: #1f3528;
  color: #ffffff;
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 50px 0;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.cta-band p {
  margin-top: 12px;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid rgba(223, 228, 216, 0.88);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 38px 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-links strong {
  display: block;
  margin-bottom: 12px;
}

.footer-links a,
.footer-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: #f6f7f3;
}

.page-hero-inner {
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.doc {
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: #ffffff;
}

.doc-card + .doc-card {
  margin-top: 18px;
}

.doc-card h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.doc-card h3 {
  margin-top: 24px;
  font-size: 18px;
}

.doc-card p,
.doc-card li {
  color: #4f584a;
  line-height: 1.9;
}

.doc-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.contact-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.contact-item p {
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .visual-body,
  .footer-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 32px 0 48px;
  }

  .product-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-bottom: 30px;
  }

  .feature-grid,
  .scenario-grid,
  .compliance-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .cta-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero,
  .section-inner,
  .footer-inner,
  .page-hero-inner,
  .doc {
    width: min(100vw - 24px, 1120px);
  }

  .hero {
    padding-top: 28px;
  }

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

  .doc-card {
    padding: 22px;
  }
}
