:root {
  color-scheme: light;
  --home-ink: #1e293b;
  --home-muted: #64748b;
  --home-line: #d8e3ef;
  --home-surface: #ffffff;
  --home-soft: #f0f4f9;
  --home-primary: #2563eb;
  --home-primary-dark: #001c6d;
  --home-mint: #10b981;
  --home-coral: #f59e0b;
  --home-lime: #93c5fd;
  --home-radius: 8px;
  --home-container: min(1320px, calc(100% - 64px));
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--home-ink);
  background: var(--home-surface);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

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

.home-skip-link:focus {
  transform: translateY(0);
}

.home-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px max(32px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(216, 224, 234, 0.86);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(16px);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  min-height: 48px;
}

.home-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--home-ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.home-brand > span:last-child {
  display: grid;
  line-height: 1.25;
}

.home-brand strong {
  font-size: 15px;
  font-weight: 750;
}

.home-brand small {
  margin-top: 3px;
  color: #6f7d90;
  font-size: 9px;
  text-transform: uppercase;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease;
}

.home-nav a:hover {
  color: var(--home-primary);
  background: #edf3ff;
}

.home-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.home-identity {
  max-width: 132px;
  overflow: hidden;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

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

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

.home-button-secondary {
  color: #344054;
  border-color: var(--home-line);
  background: #fff;
}

.home-button-secondary:hover {
  border-color: #9bb8e8;
  background: #f6f9ff;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  height: calc(100svh - 108px);
  min-height: 590px;
  max-height: 780px;
  overflow: hidden;
  color: #fff;
  background-color: #111c2a;
  background-image: url("/assets/home-hero.webp");
  background-position: center;
  background-size: cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(5, 15, 25, 0.18);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: var(--home-container);
  margin: 0 auto;
  padding-bottom: 96px;
}

.home-kicker,
.home-section-heading > p,
.home-future > div > p {
  margin: 0 0 12px;
  color: var(--home-mint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.06;
  font-weight: 780;
}

.home-hero-lead {
  max-width: 630px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.home-button-light {
  color: var(--home-ink);
  background: #fff;
}

.home-button-light:hover {
  background: #eaf5f1;
}

.home-button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(12, 22, 33, 0.34);
}

.home-button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(12, 22, 33, 0.58);
}

.home-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  list-style: none;
}

.home-trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-trust-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 2px solid var(--home-mint);
  border-radius: 50%;
}

.home-hero-capabilities {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100vw - 1320px) / 2));
  bottom: 0;
  left: max(32px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home-hero-capabilities a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 13px;
  min-height: 92px;
  padding: 19px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 18, 30, 0.36);
  transition: background-color 180ms ease;
}

.home-hero-capabilities a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.home-hero-capabilities a:hover {
  background: rgba(23, 92, 211, 0.48);
}

.home-hero-capabilities span {
  grid-row: 1 / span 2;
  color: var(--home-mint);
  font-size: 11px;
  font-weight: 800;
}

.home-hero-capabilities strong {
  font-size: 15px;
}

.home-hero-capabilities small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.home-section {
  width: var(--home-container);
  margin: 0 auto;
  padding: 108px 0;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 0 48px;
  align-items: end;
  margin-bottom: 42px;
}

.home-section-heading > p {
  grid-column: 1 / -1;
  color: var(--home-primary);
}

.home-section-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.2;
  font-weight: 760;
}

.home-section-heading > span {
  color: var(--home-muted);
  line-height: 1.8;
}

.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.home-capability-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: 1fr auto;
  gap: 10px 20px;
  min-height: 390px;
  padding: 36px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #fff;
  overflow: hidden;
}

.home-capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  opacity: 0;
  background: var(--home-primary);
  transition: opacity 180ms ease;
}

.home-capability-card:hover::before {
  opacity: 1;
}

.home-capability-image { background: #f7faff; }
.home-capability-video { background: #f7fbf9; }
.home-capability-analysis { background: #fff9f6; }
.home-capability-platform { background: #f8f8f5; }

.home-capability-number {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 800;
}

.home-card-label {
  margin: 0 0 10px;
  color: var(--home-primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-capability-card h3 {
  margin: 0;
  font-size: 26px;
}

.home-capability-card div > p:not(.home-card-label) {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--home-muted);
}

.home-capability-card ul {
  display: grid;
  gap: 7px;
  margin: 24px 0 0;
  padding: 0;
  color: #344054;
  font-size: 13px;
  list-style: none;
}

.home-capability-card li::before {
  content: "—";
  margin-right: 8px;
  color: var(--home-coral);
}

.home-capability-card > a {
  grid-column: 2;
  width: fit-content;
  color: var(--home-primary);
  font-size: 14px;
  font-weight: 750;
}

.home-capability-card > a:hover {
  color: var(--home-primary-dark);
}

.home-tools {
  padding: 108px max(32px, calc((100vw - 1320px) / 2));
  color: #fff;
  background: #000819;
}

.home-section-heading-light > p {
  color: var(--home-lime);
}

.home-section-heading-light > span {
  color: #aeb9c7;
}

.home-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #3a4554;
  border-left: 1px solid #3a4554;
}

.home-tool-list > a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 26px;
  border-right: 1px solid #3a4554;
  border-bottom: 1px solid #3a4554;
  transition: background-color 180ms ease;
}

.home-tool-list > a:hover {
  background: #1b2a39;
}

.home-tool-list span {
  color: var(--home-mint);
  font-size: 12px;
  font-weight: 800;
}

.home-tool-list div {
  display: grid;
  gap: 5px;
}

.home-tool-list strong {
  font-size: 18px;
}

.home-tool-list small {
  color: #aeb9c7;
  font-size: 13px;
}

.home-tool-list b {
  color: var(--home-lime);
  font-size: 20px;
}

.home-workflow .home-section-heading {
  grid-template-columns: 1fr;
}

.home-workflow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
  list-style: none;
}

.home-workflow-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  min-height: 190px;
  padding: 28px 30px 28px 0;
  border-bottom: 1px solid var(--home-line);
}

.home-workflow-list li + li {
  padding-left: 30px;
  border-left: 1px solid var(--home-line);
}

.home-workflow-list > li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--home-ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.home-workflow-list h3 {
  margin: 3px 0 10px;
  font-size: 19px;
}

.home-workflow-list p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
}

.home-future {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr) auto;
  align-items: center;
  gap: 52px;
  padding: 76px max(32px, calc((100vw - 1320px) / 2));
  color: #fff;
  background: var(--home-primary-dark);
}

.home-future > div > p {
  color: var(--home-lime);
}

.home-future h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.home-future > div > span {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  color: #cfddf2;
}

.home-future ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #dce7f8;
  font-size: 13px;
  list-style: none;
}

.home-future li::before {
  content: "+";
  margin-right: 9px;
  color: var(--home-mint);
  font-weight: 800;
}

.home-future .home-button-primary {
  color: var(--home-ink);
  background: var(--home-lime);
}

.home-future .home-button-primary:hover {
  background: #bfdbfe;
}

.home-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
  min-height: 132px;
  padding: 24px max(32px, calc((100vw - 1320px) / 2));
  color: #344054;
  background: #fff;
}

.home-footer p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
}

.home-footer > a:last-child {
  color: var(--home-primary);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 1024px) {
  :root {
    --home-container: min(100% - 40px, 900px);
  }

  .home-header {
    grid-template-columns: 1fr auto;
    padding-inline: 20px;
  }

  .home-nav {
    display: none;
  }

  .home-section-heading {
    grid-template-columns: 1fr;
  }

  .home-section-heading > span {
    max-width: 720px;
    margin-top: 18px;
  }

  .home-future {
    grid-template-columns: 1fr auto;
  }

  .home-future ul {
    grid-column: 1;
  }

  .home-future > a {
    grid-area: 1 / 2 / span 2;
  }
}

@media (max-width: 760px) {
  :root {
    --home-container: calc(100% - 32px);
  }

  .home-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .home-brand small,
  .home-identity,
  .home-header-actions .home-button-secondary {
    display: none;
  }

  .home-header-actions .home-button-primary {
    min-width: 44px;
    padding-inline: 12px;
    font-size: 0;
  }

  .home-header-actions .home-button-primary span {
    font-size: 19px;
  }

  .home-hero {
    height: auto;
    min-height: calc(100svh - 110px);
    max-height: none;
    background-position: 62% center;
  }

  .home-hero-content {
    padding: 60px 0 220px;
  }

  .home-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .home-hero-lead {
    font-size: 17px;
  }

  .home-trust-list {
    display: grid;
    gap: 8px;
  }

  .home-hero-capabilities {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .home-hero-capabilities a {
    min-height: 90px;
    padding: 15px;
  }

  .home-hero-capabilities a:first-child {
    border-left: 0;
  }

  .home-hero-capabilities a:nth-child(2) {
    border-right: 0;
  }

  .home-hero-capabilities a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .home-section,
  .home-tools {
    padding-block: 72px;
  }

  .home-tools,
  .home-future {
    padding-inline: 16px;
  }

  .home-capability-grid,
  .home-tool-list,
  .home-workflow-list {
    grid-template-columns: 1fr;
  }

  .home-capability-card {
    min-height: 350px;
    padding: 28px 24px;
  }

  .home-tool-list > a {
    min-height: 116px;
  }

  .home-workflow-list li,
  .home-workflow-list li + li {
    min-height: 150px;
    padding: 24px 0;
    border-left: 0;
  }

  .home-future {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-future > a {
    grid-area: auto;
    width: 100%;
  }

  .home-footer {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-inline: 16px;
  }

  .home-footer p {
    display: none;
  }
}

@media (max-width: 420px) {
  .home-brand strong {
    font-size: 14px;
  }

  .home-brand-mark {
    width: 34px;
    height: 34px;
  }

  .home-button {
    padding-inline: 14px;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-capability-card {
    grid-template-columns: 34px 1fr;
    padding-inline: 18px;
  }

  .home-tool-list > a {
    grid-template-columns: 30px 1fr auto;
    padding: 20px 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
