:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #617083;
  --line: #dce5ee;
  --soft: #f4f8fb;
  --surface: #ffffff;
  --blue: #1e6fd9;
  --blue-deep: #0b4e9b;
  --teal: #18a6a7;
  --steel: #e8eef5;
  --shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--surface);
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
  white-space: nowrap;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-deep);
  border-color: var(--blue);
  outline: none;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - var(--header-height) - 56px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 33, 64, 0.86), rgba(8, 33, 64, 0.5) 48%, rgba(8, 33, 64, 0.18)),
    url("assets/hero-office.webp") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.24;
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding: clamp(80px, 12vh, 150px) 0;
}

.eyebrow,
.section-kicker,
.mockup-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8f4ee;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lead {
  margin-bottom: 18px;
  font-size: clamp(23px, 3.4vw, 34px);
  font-weight: 720;
  line-height: 1.32;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.8vw, 19px);
}

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

.mobile-break {
  display: none;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 720;
}

.primary-link {
  color: #ffffff;
  background: var(--blue);
}

.secondary-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.body-copy {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
}

.body-copy p:last-child,
.section-heading p:last-child,
.architecture-copy p:last-child,
.timeline p:last-child,
.site-footer p {
  margin-bottom: 0;
}

.section-architecture {
  background: linear-gradient(180deg, var(--soft), #ffffff);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.architecture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.dashboard-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mock-browser-bar {
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 18px;
  background: #edf3f9;
  border-bottom: 1px solid var(--line);
}

.mock-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #93a8bb;
}

.dashboard-mockup {
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(30, 111, 217, 0.1), rgba(24, 166, 167, 0.08)),
    #ffffff;
}

.mockup-header,
.metric-row,
.mockup-body {
  display: grid;
  gap: 14px;
}

.mockup-header {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 18px;
}

.mockup-header strong {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.24;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(24, 166, 167, 0.3);
  border-radius: 999px;
  padding: 0 12px;
  color: #087d82;
  font-size: 12px;
  font-weight: 740;
  background: rgba(24, 166, 167, 0.1);
}

.metric-row {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.metric-block,
.chart-panel,
.flow-panel {
  border: 1px solid rgba(171, 191, 210, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.metric-block {
  padding: 14px;
}

.metric-block span,
.panel-title {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-block strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-deep);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1;
}

.mockup-body {
  grid-template-columns: 1.05fr 0.95fr;
}

.chart-panel,
.flow-panel {
  min-height: 210px;
  padding: 16px;
}

.bar-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(6, minmax(18px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 18px;
  padding: 10px 6px 0;
  border-bottom: 1px solid #cbd7e3;
}

.bar-chart span {
  display: block;
  min-height: 24px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}

.flow-map {
  position: relative;
  min-height: 160px;
  margin-top: 16px;
}

.flow-node {
  position: absolute;
  display: grid;
  width: 66px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(30, 111, 217, 0.24);
  border-radius: 8px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 760;
  background: #ffffff;
}

.node-a {
  top: 10px;
  left: 0;
}

.node-b {
  top: 78px;
  left: 28%;
}

.node-c {
  top: 18px;
  right: 24%;
}

.node-d {
  right: 0;
  bottom: 14px;
}

.flow-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform-origin: left center;
}

.line-a {
  width: 30%;
  top: 58px;
  left: 58px;
  transform: rotate(26deg);
}

.line-b {
  width: 29%;
  top: 74px;
  left: 43%;
  transform: rotate(-24deg);
}

.line-c {
  width: 31%;
  right: 48px;
  bottom: 60px;
  transform: rotate(28deg);
}

figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 13px;
  background: #ffffff;
}

.architecture-copy {
  color: var(--muted);
  font-size: 16px;
}

.architecture-copy h3 {
  color: var(--ink);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.feature-list li > span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 820;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.section-history {
  background: #ffffff;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(18px, 4vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 820;
}

.timeline strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

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

.site-footer {
  padding: 34px clamp(20px, 5vw, 72px);
  color: #5c6a7a;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  font-size: 14px;
}

.footer-contact-info {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.footer-notice {
  color: #788698;
  font-size: 13px;
}

.footer-divider {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  margin: 2px 0 0;
  border: 0;
  background: rgba(16, 32, 51, 0.1);
}

.copyright {
  align-self: center;
}

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

.footer-records a:hover,
.footer-records a:focus-visible {
  color: var(--blue-deep);
  outline: none;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
}

.error-hero {
  position: relative;
  min-height: min(680px, calc(100svh - var(--header-height)));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 33, 64, 0.9), rgba(8, 33, 64, 0.56) 52%, rgba(8, 33, 64, 0.24)),
    url("assets/hero-office.webp") center / cover no-repeat;
}

.error-content {
  position: relative;
  width: min(640px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding: clamp(86px, 14vh, 150px) 0;
}

.error-content h1 {
  margin-bottom: 10px;
  font-size: clamp(74px, 13vw, 132px);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow-x: auto;
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    min-height: min(680px, calc(100svh - 96px - 48px));
    background-position: 78% center;
  }

  .error-hero {
    min-height: min(640px, calc(100svh - 96px));
    background-position: 78% center;
  }

  .hero-content {
    width: min(620px, calc(100% - 36px));
    margin: 0 auto;
  }

  .two-column,
  .architecture-grid,
  .mockup-body,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .architecture-grid,
  .two-column {
    display: grid;
  }

  .footer-inner {
    display: grid;
    align-items: start;
  }

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

@media (max-width: 620px) {
  :root {
    --header-height: 96px;
  }

  .brand {
    max-width: 56vw;
  }

  .brand img {
    width: min(170px, 100%);
  }

  .site-nav {
    font-size: 13px;
  }

  .hero {
    min-height: min(640px, calc(100svh - 96px - 40px));
  }

  .hero-content {
    width: auto;
    margin-right: 20px;
    margin-left: 20px;
  }

  .error-content {
    width: auto;
    margin-right: 20px;
    margin-left: 20px;
  }

  h1,
  h2,
  h3,
  .hero-lead,
  .hero-copy,
  .body-copy {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-lead {
    font-size: 22px;
  }

  .mobile-break {
    display: block;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

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

  .mockup-header {
    grid-template-columns: 1fr;
  }

  .flow-map {
    min-height: 190px;
  }

  .node-b {
    top: 76px;
    left: 18%;
  }

  .node-c {
    top: 28px;
    right: 6%;
  }

  .node-d {
    right: 12%;
    bottom: 10px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-notice,
  .footer-records {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
