:root {
  --ink: #101210;
  --paper: #f4f4ef;
  --white: #fffefa;
  --muted: #686c66;
  --line: #cfd1c9;
  --green: #b9ef6f;
  --green-dark: #6eaa2f;
  --coral: #ff7a59;
  --yellow: #ffd166;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; }
svg { width: 1.1rem; height: 1.1rem; stroke-width: 1.8; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  padding: 12px 16px;
}
.skip-link:focus { top: 12px; }
.page-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

.site-header {
  height: 70px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.18);
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 900;
}
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a { color: inherit; text-decoration: none; font-size: .9rem; }
.desktop-nav a:hover { color: var(--green); }
.header-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.lang-toggle {
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: inherit;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 3px;
  cursor: pointer;
}
.lang-toggle span { min-width: 34px; padding: 6px; font-size: .76rem; text-align: center; }
.lang-toggle .active { background: var(--white); color: var(--ink); }
.icon-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--ink);
}

.hero {
  min-height: min(800px, 82svh);
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #101210;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(16,18,16,.72), transparent);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, black, rgba(0,0,0,.45));
}
.hero-content {
  min-height: min(800px, 82svh);
  padding: 124px 0 72px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 48px;
}
.eyebrow, .section-index { margin: 0 0 20px; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.eyebrow { color: var(--green); }
.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 7.3vw, 7rem);
  line-height: .86;
  font-weight: 800;
  letter-spacing: 0;
}
.hero-lede { max-width: 590px; margin: 30px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.62; color: #d8dbd3; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  border-radius: 3px;
}
.button.primary { background: var(--green); color: var(--ink); }
.button.primary:hover { background: #c8fa83; }
.text-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; }

.ops-console {
  background: #f7f8f2;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
  transform: perspective(1000px) rotateY(-3deg);
  border-radius: 7px;
  overflow: hidden;
}
.console-topbar, .console-footer { display: flex; align-items: center; justify-content: space-between; }
.console-topbar { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.console-title { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.status-dot { width: 8px; height: 8px; background: #55b83d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85,184,61,.15); }
.console-period, .flow-state { font-size: .72rem; color: var(--muted); }
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.console-stats div { padding: 19px; border-right: 1px solid var(--line); }
.console-stats div:last-child { border-right: 0; }
.console-stats span { display: block; font-size: .73rem; color: var(--muted); }
.console-stats strong { display: block; margin-top: 7px; font-size: 1.55rem; }
.flow-map { padding: 24px 20px; }
.flow-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 13px; align-items: center; }
.flow-row b, .flow-row small { display: block; }
.flow-row b { font-size: .88rem; }
.flow-row small { color: var(--muted); margin-top: 3px; }
.flow-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; }
.flow-icon.coral { background: #ffe0d8; color: #b64428; }
.flow-icon.green { background: #dcf7bd; color: #467b16; }
.flow-icon.yellow { background: #ffedb5; color: #8d6800; }
.flow-line { height: 30px; margin-left: 18px; border-left: 1px dashed #aeb2a9; }
.console-footer { padding: 13px 20px; color: var(--muted); font-size: .68rem; background: #eceee7; }
.console-footer span:first-child { display: flex; gap: 7px; align-items: center; }
.console-footer svg { width: 13px; height: 13px; color: var(--green-dark); }

.signal-strip { overflow: hidden; background: var(--green); border-bottom: 1px solid var(--ink); }
.marquee-track { width: max-content; min-height: 50px; padding: 0 24px; display: flex; align-items: center; gap: 24px; font-size: .74rem; font-weight: 900; }
.marquee-track b { font-size: 1.1rem; }

.section { padding: 110px 0; }
.section-intro { display: grid; grid-template-columns: 1.4fr .6fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.section-intro.horizontal { grid-template-columns: 1fr 1fr; }
.section-index { color: var(--green-dark); grid-column: 1 / -1; margin-bottom: -52px; }
.section-intro h2, .diagnostic h2 { margin: 0; max-width: 760px; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.08; letter-spacing: 0; }
.section-intro > p, .diagnostic-copy > p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; }
.service-list { border-top: 1px solid var(--ink); }
.service-item { min-height: 166px; display: grid; grid-template-columns: 72px 1fr 60px; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.service-number { color: var(--muted); font-size: .78rem; }
.service-item h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.service-item p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.65; }
.service-item > svg { width: 34px; height: 34px; justify-self: end; }

.proof-band { background: var(--ink); color: var(--white); padding: 88px 0; }
.proof-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; align-items: end; }
.proof-quote p { margin: 0; max-width: 460px; color: var(--green); font-size: clamp(2rem, 3.3vw, 3.3rem); line-height: 1.1; font-weight: 750; }
.proof-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #555a53; }
.proof-metrics div { padding: 24px 20px 0 0; }
.proof-metrics strong { display: block; font-size: 2.9rem; color: var(--white); }
.proof-metrics span { display: block; margin-top: 10px; color: #afb4ac; line-height: 1.45; font-size: .82rem; }

.timeline { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--ink); }
.timeline li { min-height: 240px; padding: 22px 24px 0 0; border-right: 1px solid var(--line); }
.timeline li + li { padding-left: 24px; }
.timeline li:last-child { border-right: 0; }
.timeline li > span { color: var(--green-dark); font-size: .76rem; font-weight: 800; }
.timeline h3 { margin: 80px 0 10px; font-size: 1.5rem; }
.timeline p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }

.diagnostic { background: #dde0d8; }
.diagnostic-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.diagnostic-copy .section-index { margin: 0 0 20px; }
.diagnostic-copy > p { margin-top: 26px; }
.diagnostic-copy ul { padding: 0; margin: 32px 0 0; list-style: none; }
.diagnostic-copy li { display: flex; gap: 12px; align-items: center; margin: 14px 0; font-size: .9rem; }
.diagnostic-copy li svg { color: var(--green-dark); }
.lead-form { padding: 32px; background: var(--white); border-radius: 6px; }
.form-row.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label { display: block; margin-bottom: 18px; }
.lead-form label > span:first-child { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 750; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 1px solid #c7cac2;
  background: #fbfbf7;
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
}
.lead-form textarea { resize: vertical; min-height: 126px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(110,170,47,.12); }
.consent-row { display: grid !important; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; }
.consent-row input { width: 16px; margin: 3px 0 0; }
.consent-row span { color: var(--muted); font-size: .76rem !important; font-weight: 400 !important; line-height: 1.5; }
.form-submit { width: 100%; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 21px; margin: 12px 0 0; font-size: .8rem; }
.form-status.error { color: #b52d23; }
.form-status.success { color: #397718; }
.honeypot { position: absolute !important; left: -10000px !important; }

footer { background: var(--ink); color: var(--white); padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 48px; align-items: end; }
.footer-brand { margin-bottom: 14px; }
.footer-grid p { color: #aeb3ab; margin: 0; font-size: .82rem; }
.footer-contact span { display: block; margin-bottom: 8px; color: #aeb3ab; font-size: .72rem; }
.footer-contact a { text-decoration-color: var(--green); text-underline-offset: 4px; }
.copyright { white-space: nowrap; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; min-height: auto; padding-top: 130px; }
  .hero-copy { max-width: 700px; }
  .ops-console { width: min(720px, 100%); transform: none; }
  .section-intro, .section-intro.horizontal, .proof-grid, .diagnostic-grid { grid-template-columns: 1fr; gap: 42px; }
  .section-index { margin-bottom: -26px; }
  .proof-metrics { max-width: 720px; }
  .diagnostic-copy { max-width: 720px; }
}

@media (max-width: 720px) {
  .page-shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .desktop-nav { display: none; }
  .brand > span:last-child { font-size: .9rem; }
  .hero-content { padding: 96px 0 28px; gap: 26px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5.4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .ops-console { overflow: hidden; }
  .console-topbar { padding: 14px; }
  .console-stats div { min-width: 0; padding: 13px 9px; }
  .console-stats span { min-height: 32px; font-size: .64rem; line-height: 1.35; }
  .console-stats strong { font-size: 1.18rem; }
  .flow-map { padding: 14px; }
  .flow-map > :nth-child(n + 4) { display: none; }
  .flow-line { height: 16px; }
  .flow-row { grid-template-columns: 38px 1fr; }
  .flow-state { display: none; }
  .console-footer { padding: 10px 14px; }
  .console-footer span:last-child { display: none; }
  .section { padding: 78px 0; }
  .service-item { grid-template-columns: 38px 1fr; padding: 26px 0; }
  .service-item > svg { display: none; }
  .service-item h3 { font-size: 1.35rem; }
  .proof-band { padding: 68px 0; }
  .proof-metrics { grid-template-columns: 1fr; }
  .proof-metrics div { border-top: 1px solid #555a53; padding: 22px 0; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li, .timeline li + li { min-height: auto; padding: 20px 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline h3 { margin: 24px 0 8px; }
  .diagnostic-grid { gap: 48px; }
  .lead-form { padding: 22px 16px; }
  .form-row.two-columns { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
