:root {
  --ink: #101828;
  --muted: #526077;
  --paper: #f5f8fd;
  --white: #ffffff;
  --line: #d7dfec;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --sky: #38bdf8;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.16);
  --radius: 12px;
  font-family:
    "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 86px;
}

::selection {
  background: rgba(37, 99, 235, 0.22);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

body {
  margin: 0;
  background: var(--paper);
}

body,
button,
input {
  font: inherit;
}

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    padding 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(245, 248, 253, 0.94);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  padding-bottom: 12px;
  padding-top: 12px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.brand-name {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.site-header.is-scrolled .brand-name {
  color: var(--ink);
  text-shadow: none;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 650;
  padding-bottom: 4px;
  position: relative;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.main-nav a::after {
  background: var(--sky);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .main-nav a {
  color: var(--ink);
  text-shadow: none;
}

.hero {
  color: var(--white);
  display: grid;
  min-height: 86vh;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 34px;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  animation: hero-drift 16s ease-out both;
  background-image: url("../assets/hero-tech-operations.png");
  background-position: center;
  background-size: cover;
  filter: saturate(1.15) hue-rotate(-8deg);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 13, 29, 0.88) 0%, rgba(6, 13, 29, 0.72) 38%, rgba(6, 13, 29, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 13, 29, 0.58) 0%, rgba(6, 13, 29, 0.08) 48%, rgba(6, 13, 29, 0.74) 100%);
}

.hero-content {
  align-self: center;
  animation: rise 700ms ease-out both;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.section-kicker::before {
  background: currentColor;
  content: "";
  display: inline-block;
  height: 2px;
  margin-right: 10px;
  vertical-align: 4px;
  width: 26px;
}

.eyebrow,
.section-dark .section-kicker,
.contact-section .section-kicker {
  color: var(--sky);
}

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

h1,
h2,
h3,
.signal-panel span {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.04;
  margin-bottom: 24px;
  max-width: 780px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.85;
  margin-bottom: 34px;
  max-width: 720px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  min-width: 132px;
  padding: 12px 22px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button-primary {
  background: linear-gradient(135deg, #2f6bff, #0b2f7a);
  color: var(--white);
}

.button-primary:hover {
  background: linear-gradient(135deg, #4a80ff, #143d97);
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.45);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.signal-panel {
  align-self: end;
  animation: rise 700ms 180ms ease-out both;
  background: linear-gradient(150deg, #2f6bff 0%, #0b2f7a 100%);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 47, 122, 0.45);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: end;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  width: min(100%, 520px);
  z-index: 3;
}

.signal-panel div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 0;
  padding: 20px 22px;
}

.signal-panel div:first-child {
  border-left: 0;
}

.signal-panel strong,
.signal-panel span {
  display: block;
}

.signal-panel strong {
  color: var(--white);
  font-size: 26px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(8, 21, 39, 0.35);
}

.signal-panel span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  margin-top: 8px;
}

.section-band,
.section-block,
.section-dark,
.contact-section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-band {
  background: var(--white);
}

.section-block {
  background: #e7eefb;
}

.section-dark {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(900px 460px at 85% -10%, rgba(37, 99, 235, 0.55), transparent 65%),
    #0f2547;
  background-size:
    22px 22px,
    22px 22px,
    auto,
    auto;
  color: var(--white);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.two-column {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.two-column h2,
.section-heading h2,
.contact-section h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  margin-bottom: 0;
}

.two-column p:not(.section-kicker),
.contact-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.intro p + p {
  margin-top: 18px;
}

.intro strong {
  background: linear-gradient(180deg, transparent 62%, rgba(56, 189, 248, 0.28) 62%);
  color: var(--blue-dark);
  font-weight: 750;
  padding: 0 1px;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 26px;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  transform: translateY(-4px);
}

.service-icon {
  align-items: center;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  color: var(--blue-dark);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 28px;
  width: 42px;
}

.service-icon svg {
  height: 21px;
  width: 21px;
}

.service-card h3,
.timeline-item h3,
.scenario-list h3 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.service-card p,
.timeline-item p,
.scenario-list p {
  color: var(--muted);
  line-height: 1.75;
}

.service-card ul {
  border-top: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.8;
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
}

.service-card li {
  padding-left: 18px;
  position: relative;
}

.service-card li::before {
  background: var(--blue);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 12px;
  width: 6px;
}

.timeline {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item {
  border-left: 2px solid var(--blue);
  padding: 4px 22px 2px;
}

.timeline-item span {
  color: var(--sky);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

.timeline-item span svg {
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  width: 16px;
}

.section-dark .timeline-item {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--sky);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px 16px;
}

.section-dark .timeline-item p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.split-layout {
  align-items: start;
  display: grid;
  gap: clamp(30px, 7vw, 92px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.sticky-heading {
  position: sticky;
  top: 110px;
}

.scenario-list {
  display: grid;
  gap: 16px;
}

.scenario-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  column-gap: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 26px;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.scenario-icon {
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  color: var(--blue-dark);
  display: inline-flex;
  grid-row: 1 / span 2;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.scenario-icon svg {
  height: 22px;
  width: 22px;
}

.scenario-list article:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
  transform: translateX(4px);
}

.scenario-list p {
  margin-bottom: 0;
}

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

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  padding: 26px;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.work-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  transform: translateY(-4px);
}

.work-card h3 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.work-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.work-placeholder {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    #eff4fc;
  background-size: 18px 18px;
  border: 1px dashed rgba(37, 99, 235, 0.48);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.work-placeholder span {
  color: var(--blue-dark);
  font-weight: 800;
}

.contact-section {
  background: #0e1c33;
  color: var(--white);
}

.contact-layout {
  align-items: center;
  display: grid;
  gap: clamp(28px, 7vw, 92px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.74);
  max-width: 690px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 24px;
  padding: 26px;
}

.contact-card dd a {
  color: var(--blue-dark);
  font-weight: 650;
}

.contact-card dd a:hover {
  text-decoration: underline;
}

.contact-cta {
  width: 100%;
}

.qr-placeholder {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    #eff4fc;
  background-size: 18px 18px;
  border: 1px dashed rgba(37, 99, 235, 0.48);
  display: flex;
  justify-content: center;
  max-width: 190px;
  width: 100%;
}

.qr-placeholder span {
  color: var(--blue-dark);
  font-weight: 800;
}

dl {
  margin: 0;
}

dl div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 16px 0;
}

dt {
  color: var(--muted);
  font-size: 14px;
}

dd {
  margin: 0;
}

.site-footer {
  align-items: center;
  background: #0b1424;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.site-footer a {
  color: var(--white);
}

.footer-info {
  align-items: center;
  column-gap: 22px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Software download page */
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.software-hero {
  background:
    radial-gradient(720px 360px at 82% 12%, rgba(56, 189, 248, 0.24), transparent 68%),
    linear-gradient(135deg, #07152b 0%, #0f2547 55%, #0b2f7a 100%);
  color: var(--white);
  min-height: 520px;
  overflow: hidden;
  padding: 158px clamp(20px, 5vw, 72px) 88px;
  position: relative;
}

.software-hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  position: absolute;
}

.software-hero-content {
  position: relative;
  z-index: 1;
}

.software-hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  margin-bottom: 20px;
}

.software-hero-content > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 660px;
}

.software-section {
  background: var(--paper);
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.software-heading > p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 18px 0 0;
}

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

.software-category {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  padding: clamp(22px, 3vw, 30px);
}

.software-category-wide {
  grid-column: 1 / -1;
}

.software-category-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.software-category-heading p {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}

.software-category-heading h2 {
  font-size: 25px;
  line-height: 1.2;
  margin-bottom: 0;
}

.software-category-icon {
  align-items: center;
  background: rgba(37, 99, 235, 0.11);
  border-radius: 10px;
  color: var(--blue-dark);
  display: inline-flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: center;
}

.software-category-icon svg {
  height: 23px;
  width: 23px;
}

.software-group + .software-group {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 24px;
}

.software-group h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

.software-list {
  display: grid;
  gap: 12px;
}

.software-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.software-item {
  align-items: center;
  background: #f7f9fd;
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 86px;
  padding: 16px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.software-item:hover {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.09);
  transform: translateY(-2px);
}

.software-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.software-name {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.software-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.download-btn {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 750;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.download-btn:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.download-btn svg {
  height: 16px;
  width: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.02);
  }
}

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

  .hero-media,
  .hero-content,
  .signal-panel {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .service-grid,
  .timeline,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sticky-heading {
    position: static;
  }

  .software-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    position: absolute;
  }

  .brand-name {
    font-size: 13px;
    max-width: 210px;
    white-space: normal;
  }

  .main-nav {
    background: rgba(245, 248, 253, 0.92);
    color: var(--ink);
    gap: 0;
    padding: 6px;
  }

  .main-nav a {
    color: var(--ink);
    font-size: 13px;
    padding: 8px 7px;
    text-shadow: none;
  }

  .hero {
    min-height: 82vh;
    padding-top: 132px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 13, 29, 0.9) 0%, rgba(6, 13, 29, 0.7) 100%),
      linear-gradient(180deg, rgba(6, 13, 29, 0.35) 0%, rgba(6, 13, 29, 0.82) 100%);
  }

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

  .button {
    width: 100%;
  }

  .signal-panel {
    grid-template-columns: 1fr;
    justify-self: stretch;
    margin-top: 28px;
  }

  .signal-panel div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 14px 18px;
  }

  .signal-panel div:first-child {
    border-top: 0;
  }

  .service-grid,
  .timeline,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  dl div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .software-hero {
    min-height: 460px;
    padding-top: 138px;
  }

  .software-category-grid {
    grid-template-columns: 1fr;
  }

  .software-category-wide {
    grid-column: auto;
  }

  .software-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-btn {
    width: 100%;
  }
}
