:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fe;
  --bg-tint: #f4f7fb;
  --text: #111827;
  --muted: #5f6b7a;
  --subtle: #8792a2;
  --line: #e5eaf2;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #e8f0ff;
  --violet: #7c3aed;
  --violet-soft: #f0eaff;
  --green: #10b981;
  --amber: #f59e0b;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

body[data-page="home"] a[href="contact.html#contact-form"] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

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

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  color: #334155;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--primary);
  background: #fff;
  border-color: #c8d7f7;
}

.btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
}

.btn-ghost {
  color: #1f2937;
  background: #fff;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #bfd0f4;
  color: var(--primary);
}

.btn-large {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: #1f2937;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.section {
  padding: 96px 0;
}

.section-soft {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
}

.section-tint {
  background: var(--bg-tint);
}

.hero {
  padding: 118px 0 84px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 22px;
  color: #0f172a;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: #111827;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: 19px;
  color: #405066;
}

.hero-slogan {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 10px 14px;
  color: #1e3a8a;
  background: var(--primary-soft);
  border: 1px solid #d6e2ff;
  border-radius: var(--radius);
  font-weight: 800;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-tags span {
  padding: 9px 12px;
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe7f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: var(--radius);
  background: #e9effa;
  transform: translate(16px, 16px);
}

.visual-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  color: #475569;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.toolbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.toolbar-dot:nth-child(1) {
  background: #93c5fd;
}

.toolbar-dot:nth-child(2) {
  background: #c4b5fd;
}

.toolbar-dot:nth-child(3) {
  background: #86efac;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  padding-top: 16px;
}

.visual-panel {
  min-width: 0;
  padding: 16px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chat-panel {
  grid-row: span 2;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #111827;
  font-weight: 800;
}

.panel-title em {
  padding: 4px 8px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
}

.chat-flow {
  display: grid;
  gap: 12px;
}

.bubble {
  max-width: 92%;
  padding: 11px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
}

.bubble-user {
  color: #1f2937;
  background: #eef4ff;
}

.bubble-system {
  color: #4c1d95;
  background: var(--violet-soft);
}

.bubble-staff {
  justify-self: end;
  color: #0f5132;
  background: #e8f8f0;
}

.lead-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lead-list div,
.company-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.lead-list dt,
.company-list dt {
  color: var(--subtle);
  font-size: 13px;
}

.lead-list dd,
.company-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
  text-align: right;
}

.metric-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-column: span 2;
}

.metric {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 25px;
  line-height: 1;
}

.corpus-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.corpus-row p {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-good {
  background: var(--green);
}

.status-warn {
  background: var(--amber);
}

.progress-line {
  height: 7px;
  margin-top: 16px;
  overflow: hidden;
  background: #e5eaf2;
  border-radius: 999px;
}

.progress-line span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--green));
}

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

.section-heading.wide {
  max-width: 860px;
}

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

.section-heading p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.feature-card,
.audience-card,
.plan-card,
.contact-card,
.legal-card,
.page-aside,
.company-panel,
.stack-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.info-card,
.feature-card,
.audience-card {
  padding: 24px;
}

.info-card p,
.feature-card p,
.audience-card p,
.stack-item p {
  margin-bottom: 0;
}

.card-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius);
  font-weight: 900;
}

.feature-card:nth-child(2n) .feature-icon {
  color: var(--violet);
  background: var(--violet-soft);
}

.feature-card:nth-child(3n) .feature-icon {
  color: #047857;
  background: #e8f8f0;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  counter-reset: steps;
}

.process-step {
  position: relative;
  padding: 24px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 900;
}

.process-step p {
  margin-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-item {
  padding: 22px 24px;
}

.audience-card {
  min-height: 168px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

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

.plan-card {
  padding: 28px;
}

.plan-card.featured {
  border-color: #b8c8f6;
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.12);
}

.plan-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 20px;
  color: #405066;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.service-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-note p {
  margin: 0;
  font-weight: 700;
}

.company-panel {
  padding: 28px;
}

.wide-panel {
  max-width: 900px;
  margin: 0 auto;
}

.company-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.muted {
  margin: 20px 0 0;
  color: var(--subtle);
  font-size: 14px;
}

.final-cta {
  padding: 88px 0;
  background: #0f172a;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-box h2 {
  color: #fff;
}

.cta-box p {
  max-width: 680px;
  margin: 0;
  color: #cbd5e1;
}

.site-footer {
  padding: 40px 0;
  color: #cbd5e1;
  background: #0b1120;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0 0 6px;
  color: #aeb9c9;
}

.footer-info a,
.footer-links a {
  color: #dbeafe;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a:hover,
.footer-info a:hover {
  color: #fff;
}

.page-hero {
  padding: 112px 0 72px;
}

.page-hero.compact {
  padding-bottom: 58px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(36px, 4.8vw, 56px);
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.page-aside {
  padding: 28px;
}

.page-aside strong {
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 30px;
  line-height: 1.15;
}

.page-aside span {
  display: block;
  color: var(--muted);
}

.aside-label {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 24px;
}

.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.contact-card h2 {
  margin-bottom: 8px;
  font-size: 26px;
  word-break: break-all;
}

.contact-card p {
  margin-bottom: 0;
}

.contact-form {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading h2 {
  font-size: 30px;
}

.form-heading p:last-child {
  margin-bottom: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #334155;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: #111827;
  background: #fbfdff;
  border: 1px solid #d8e0ec;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.legal-section {
  background: #fff;
}

.legal-container {
  max-width: 920px;
}

.legal-card {
  padding: 42px;
}

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 23px;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p {
  margin-bottom: 0;
}

.legal-date {
  margin-bottom: 26px;
  color: var(--subtle);
}

@media (max-width: 1080px) {
  .nav-shell {
    gap: 18px;
  }

  .site-nav {
    gap: 14px;
  }

  .hero-grid,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .card-grid.four,
  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 10px;
    border-radius: var(--radius);
  }

  .site-nav a:hover {
    background: var(--primary-soft);
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding-top: 88px;
  }

  .card-grid.three,
  .pricing-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-aside {
    max-width: 520px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .nav-shell {
    min-height: 64px;
  }

  .hero,
  .section,
  .page-hero,
  .final-cta {
    padding: 64px 0;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-lead,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .cta-actions,
  .service-note {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-tags span {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

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

  .chat-panel,
  .metric-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .metric-panel {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .process-line {
    grid-template-columns: 1fr;
  }

  .process-step:last-child {
    grid-column: auto;
  }

  .info-card,
  .feature-card,
  .audience-card,
  .plan-card,
  .company-panel,
  .contact-card,
  .contact-form,
  .legal-card,
  .stack-item,
  .page-aside {
    padding: 22px;
  }

  .lead-list div,
  .company-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .lead-list dd,
  .company-list dd {
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
