:root {
  --home-ink: #17243a;
  --home-muted: #44536b;
  --home-blue: #0868d7;
  --home-blue-dark: #0757b3;
  --home-teal: #0f766e;
  --home-coral: #b95542;
  --home-navy: #18365d;
  --home-line: rgba(66, 88, 118, 0.18);
  --home-surface: #f7f9fc;
  --home-page: #edf3f9;
  --home-white: #ffffff;
  --home-shadow: 0 18px 48px rgba(40, 61, 88, 0.14);
  --home-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--home-ink);
  background: var(--home-page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--home-ink); background: var(--home-page); }
body.home-page { min-width: 320px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--home-navy);
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.home-header { position: fixed; z-index: 30; top: 12px; right: 0; left: 0; padding: 0 14px; }
.home-nav-shell {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: min(1380px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(247, 250, 254, 0.82);
  box-shadow: 0 12px 34px rgba(47, 67, 95, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.home-brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; justify-self: start; }
.home-brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(8, 104, 215, 0.24);
  border-radius: 7px;
  color: #fff;
  background: var(--home-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 6px 14px rgba(8, 104, 215, 0.2);
  font-size: 14px;
  font-weight: 780;
}
.home-brand-copy { display: grid; min-width: 0; gap: 1px; }
.home-brand-copy strong { font-size: 14px; font-weight: 760; letter-spacing: 0; white-space: nowrap; }
.home-brand-copy small { overflow: hidden; color: var(--home-muted); font-size: 8px; font-weight: 700; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }

.home-nav-links { display: flex; align-items: center; gap: 4px; justify-self: center; }
.home-nav-links a, .home-login-link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 38px;
  white-space: nowrap;
  transition: color 140ms ease-out, background-color 140ms ease-out;
}
.home-nav-links a:hover, .home-login-link:hover { color: var(--home-ink); background: rgba(222, 232, 245, 0.68); }
.home-nav-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }

.home-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 100ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.home-button:hover { transform: translateY(-1px); }
.home-button:active { transform: scale(0.97); }
.home-button-primary { color: #fff; background: var(--home-blue); box-shadow: 0 9px 20px rgba(8, 104, 215, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.home-button-primary:hover { background: var(--home-blue-dark); box-shadow: 0 12px 24px rgba(8, 104, 215, 0.26); }
.home-button-secondary { border-color: rgba(66, 88, 118, 0.24); color: var(--home-ink); background: rgba(249, 251, 254, 0.76); }
.home-button-secondary:hover { border-color: rgba(8, 104, 215, 0.28); background: #fff; }
.home-button-light { color: var(--home-navy); background: #fff; box-shadow: 0 10px 24px rgba(6, 16, 32, 0.18); }
.home-nav-cta { min-height: 38px; padding-inline: 14px; font-size: 12px; }

.home-button:focus-visible, .home-nav-links a:focus-visible, .home-login-link:focus-visible, .home-brand:focus-visible, .home-footer a:focus-visible {
  outline: 3px solid rgba(8, 104, 215, 0.28);
  outline-offset: 3px;
}

.home-hero {
  position: relative;
  height: calc(100svh - 100px);
  min-height: 560px;
  max-height: 800px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.92);
  background-color: #dfe8f4;
  background-image: url("/assets/workspace-overview.png");
  background-position: center 480px;
  background-repeat: no-repeat;
  background-size: 1360px auto;
}
.home-hero-overlay { position: absolute; inset: 0; background: rgba(232, 240, 249, 0.18); }
.home-hero-inner { position: relative; z-index: 1; width: min(1360px, calc(100% - 56px)); height: 100%; margin: 0 auto; }
.home-hero-copy { width: min(690px, 100%); padding-top: 132px; }
.home-kicker { margin: 0 0 12px; color: var(--home-blue); font-size: 10px; font-weight: 800; letter-spacing: 0; }
.home-hero h1 { margin: 0; color: #14233a; font-size: 56px; font-weight: 790; letter-spacing: 0; line-height: 1.08; }
.home-hero-lead { max-width: 650px; margin: 18px 0 0; color: #172d4c; font-size: 27px; font-weight: 710; letter-spacing: 0; line-height: 1.35; }
.home-hero-description { max-width: 620px; margin: 14px 0 0; color: var(--home-muted); font-size: 15px; line-height: 1.75; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.home-proof-list { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; }
.home-proof-list li { display: grid; grid-template-columns: auto auto; align-items: center; gap: 7px; padding: 0 20px; border-left: 1px solid rgba(65, 86, 115, 0.2); }
.home-proof-list li:first-child { padding-left: 0; border-left: 0; }
.home-proof-list strong { color: var(--home-blue); font-size: 11px; }
.home-proof-list span { color: var(--home-muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.home-product-caption { position: absolute; right: 0; bottom: 24px; display: flex; align-items: center; gap: 8px; color: #344a68; font-size: 9px; font-weight: 760; }
.home-product-caption span { width: 28px; height: 1px; background: var(--home-blue); }

.home-section { background: var(--home-surface); }
.home-section-inner { width: min(1260px, calc(100% - 56px)); margin: 0 auto; }
.home-capabilities { padding: 76px 0 88px; }
.home-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 480px); align-items: end; gap: 48px; }
.home-section-heading h2, .home-teams h2, .home-final-cta h2, .home-workflow h2 { margin: 0; color: var(--home-ink); font-size: 34px; font-weight: 760; letter-spacing: 0; line-height: 1.22; }
.home-section-heading > p { margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.75; }
.home-capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-bottom: 1px solid var(--home-line); }
.home-capability-item { position: relative; min-height: 286px; padding: 24px 24px 26px; border-top: 3px solid var(--home-blue); border-right: 1px solid var(--home-line); background: rgba(255, 255, 255, 0.58); }
.home-capability-item:first-child { border-left: 1px solid var(--home-line); }
.home-capability-item h3 { margin: 34px 0 11px; font-size: 19px; letter-spacing: 0; }
.home-capability-item p { margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.75; }
.home-capability-item a { position: absolute; right: 24px; bottom: 23px; left: 24px; display: flex; justify-content: space-between; color: var(--home-blue); font-size: 12px; font-weight: 720; }
.home-feature-number { color: var(--home-blue); font-size: 10px; font-weight: 800; }
.home-accent-teal { border-top-color: var(--home-teal); }
.home-accent-teal .home-feature-number, .home-accent-teal a { color: var(--home-teal); }
.home-accent-coral { border-top-color: var(--home-coral); }
.home-accent-coral .home-feature-number, .home-accent-coral a { color: var(--home-coral); }
.home-accent-navy { border-top-color: var(--home-navy); }
.home-accent-navy .home-feature-number, .home-accent-navy a { color: var(--home-navy); }

.home-workflow { padding: 80px 0 82px; color: #fff; background: var(--home-navy); }
.home-workflow .home-kicker { color: #8fc6ff; }
.home-workflow h2 { max-width: 640px; color: #fff; }
.home-workflow-heading > p:last-child { max-width: 640px; margin: 13px 0 0; color: #c7d3e4; font-size: 14px; line-height: 1.7; }
.home-workflow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 52px 0 36px; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); list-style: none; }
.home-workflow-steps li { position: relative; min-height: 145px; padding: 22px 22px 18px 0; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.home-workflow-steps li:last-child { border-right: 0; padding-left: 22px; }
.home-workflow-steps li:not(:first-child):not(:last-child) { padding-left: 22px; }
.home-workflow-steps span { display: block; margin-bottom: 20px; color: #8fc6ff; font-size: 10px; font-weight: 800; }
.home-workflow-steps strong, .home-workflow-steps small { display: block; }
.home-workflow-steps strong { font-size: 15px; }
.home-workflow-steps small { margin-top: 7px; color: #b7c6da; font-size: 11px; line-height: 1.55; }

.home-teams { padding: 92px 0; }
.home-teams-layout { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr); align-items: start; gap: 90px; }
.home-teams-copy > p:not(.home-kicker) { max-width: 520px; margin: 18px 0 28px; color: var(--home-muted); font-size: 14px; line-height: 1.8; }
.home-team-features { border-top: 1px solid var(--home-line); }
.home-team-features article { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--home-line); }
.home-team-features article > span { color: var(--home-blue); font-size: 10px; font-weight: 800; }
.home-team-features h3 { margin: 0; font-size: 16px; letter-spacing: 0; }
.home-team-features p { margin: 7px 0 0; color: var(--home-muted); font-size: 12px; line-height: 1.65; }

.home-final-cta { padding: 74px 0 78px; text-align: center; background: #e2ebf5; }
.home-final-cta .home-section-inner { display: grid; justify-items: center; }
.home-final-cta .home-kicker { color: var(--home-blue-dark); }
.home-final-cta h2 { max-width: 760px; }
.home-final-cta p:not(.home-kicker) { margin: 14px 0 24px; color: var(--home-muted); font-size: 14px; }

.home-footer { padding: 26px 0; border-top: 1px solid var(--home-line); background: #f4f7fb; }
.home-footer .home-section-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-footer .home-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
.home-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--home-muted); font-size: 11px; }
.home-footer-links a:hover { color: var(--home-blue); }

@media (max-width: 1040px) {
  .home-nav-shell { grid-template-columns: 1fr auto; }
  .home-nav-links { display: none; }
  .home-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-capability-item:nth-child(2) { border-right: 1px solid var(--home-line); }
  .home-capability-item:nth-child(3) { border-left: 1px solid var(--home-line); }
  .home-workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-workflow-steps li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .home-teams-layout { grid-template-columns: 1fr 1fr; gap: 52px; }
}

@media (max-width: 720px) {
  .home-header { top: 8px; padding: 0 8px; }
  .home-nav-shell { min-height: 54px; padding: 7px; }
  .home-brand-copy small, .home-login-link { display: none; }
  .home-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .home-nav-cta { min-height: 36px; padding-inline: 12px; }
  .home-hero { height: calc(100svh - 68px); min-height: 520px; max-height: 680px; background-position: center 485px; background-size: 780px auto; }
  .home-hero-overlay { background: rgba(232, 240, 249, 0.24); }
  .home-hero-inner, .home-section-inner { width: min(100% - 28px, 1260px); }
  .home-hero-copy { padding-top: 104px; }
  .home-hero h1 { font-size: 42px; }
  .home-hero-lead { margin-top: 13px; font-size: 23px; line-height: 1.35; }
  .home-hero-description { margin-top: 11px; font-size: 13px; line-height: 1.65; }
  .home-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 19px; }
  .home-hero-actions .home-button { min-width: 0; padding-inline: 10px; }
  .home-proof-list { gap: 0; margin-top: 24px; }
  .home-proof-list li { padding: 0 10px; }
  .home-proof-list span { font-size: 9px; }
  .home-proof-list strong { font-size: 9px; }
  .home-product-caption { display: none; }
  .home-capabilities { padding: 62px 0 66px; }
  .home-section-heading { grid-template-columns: 1fr; gap: 16px; }
  .home-section-heading h2, .home-teams h2, .home-final-cta h2, .home-workflow h2 { font-size: 27px; }
  .home-capability-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .home-capability-item, .home-capability-item:nth-child(2), .home-capability-item:nth-child(3) { min-height: 230px; border-right: 1px solid var(--home-line); border-left: 1px solid var(--home-line); }
  .home-workflow { padding: 64px 0 66px; }
  .home-workflow-steps { grid-template-columns: 1fr; margin-top: 36px; }
  .home-workflow-steps li, .home-workflow-steps li:last-child, .home-workflow-steps li:not(:first-child):not(:last-child) { min-height: 0; padding: 18px 0; border-right: 0; }
  .home-workflow-steps span { margin-bottom: 8px; }
  .home-teams { padding: 66px 0; }
  .home-teams-layout { grid-template-columns: 1fr; gap: 44px; }
  .home-team-features article { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .home-final-cta { padding: 62px 0 66px; }
  .home-footer .home-section-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .home-brand-copy strong { font-size: 13px; }
  .home-nav-cta { padding-inline: 9px; font-size: 11px; }
  .home-hero h1 { font-size: 38px; }
  .home-hero-lead { font-size: 21px; }
  .home-hero-actions { grid-template-columns: 1fr; }
  .home-proof-list li { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-button, .home-nav-links a, .home-login-link { transition: none; }
  .home-button:hover, .home-button:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .home-nav-shell { background: #f8fbff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .home-hero-overlay { background: rgba(237, 244, 251, 0.48); }
}

@media (prefers-contrast: more) {
  .home-nav-shell, .home-capability-item, .home-button-secondary { border-color: #51637b; background-color: #fff; }
  .home-hero-overlay { background: rgba(244, 248, 252, 0.58); }
}
