:root {
  color-scheme: light;
  --ink: #0a2149;
  --ink-strong: #071a3a;
  --text: #172033;
  --muted: #5e687a;
  --background: #f7f9fc;
  --surface: #ffffff;
  --border: #d9e0ea;
  --cyan: #00c8d7;
  --warm: #d95f3b;
  --content: 1180px;
  --reading: 760px;
  --shadow: 0 18px 50px rgba(10, 33, 73, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan);
  will-change: transform;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(0, 200, 215, 0.45);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  border-bottom: 1px solid rgba(217, 224, 234, 0.85);
  background: rgba(247, 249, 252, 0.96);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header[data-scrolled] {
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(10, 33, 73, 0.06);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.brand:hover img {
  opacity: 0.78;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
}

.brand-latin {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(740px, calc(100svh - 120px));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}

.number-field {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.field-visual {
  position: absolute;
  z-index: -1;
  width: min(46vw, 580px);
  aspect-ratio: 1;
  right: max(5vw, calc((100vw - var(--content)) / 2));
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(10, 33, 73, 0.12);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.field-visual::before,
.field-visual::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(10, 33, 73, 0.1);
  transform: rotate(45deg);
}

.field-visual::after {
  inset: 24%;
  border-color: rgba(0, 200, 215, 0.35);
  animation: field-breathe 4.8s ease-in-out infinite;
}

.field-visual img {
  position: absolute;
  z-index: 2;
  width: 30%;
  height: 30%;
  left: 35%;
  top: 35%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(10, 33, 73, 0.14));
  animation: field-mark 6s ease-in-out infinite;
}

.field-axis {
  position: absolute;
  z-index: 1;
  background: rgba(10, 33, 73, 0.14);
}

.field-axis-horizontal {
  width: 116%;
  height: 1px;
  left: -8%;
  top: 50%;
}

.field-axis-vertical {
  width: 1px;
  height: 116%;
  left: 50%;
  top: -8%;
}

.field-ring {
  position: absolute;
  border-radius: 50%;
}

.field-ring-outer {
  inset: 5%;
  border: 1px dashed rgba(10, 33, 73, 0.24);
  animation: field-rotate 32s linear infinite;
}

.field-ring-inner {
  inset: 29%;
  border: 2px solid rgba(0, 200, 215, 0.35);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: field-rotate 13s linear infinite reverse;
}

.field-scan {
  position: absolute;
  z-index: 0;
  width: 42%;
  height: 1px;
  left: 50%;
  top: 50%;
  transform-origin: left center;
  background: var(--cyan);
  opacity: 0.65;
  animation: field-scan 8s linear infinite;
}

.field-label {
  position: absolute;
  z-index: 3;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.field-label-top {
  top: 8%;
  left: 52%;
}

.field-label-bottom {
  right: 5%;
  bottom: 16%;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--content));
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 64px 0 78px;
}

.hero-content {
  max-width: min(650px, 56%);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin: 0 10px 3px 0;
  background: var(--cyan);
}

.hero h1 {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 680px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(50px, 8vw, 92px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 small {
  margin-top: 13px;
  border-top: 2px solid var(--cyan);
  color: var(--muted);
  padding-top: 6px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.hero-subtitle {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.4;
}

.hero-description {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.hero-index {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(247, 249, 252, 0.9);
  padding: 0 max(20px, calc((100vw - var(--content)) / 2));
}

.hero-index span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  color: var(--muted);
  padding: 0 14px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-index span:last-child {
  border-right: 1px solid var(--border);
}

.button-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(10, 33, 73, 0);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.button-primary::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 100%;
  left: -110px;
  top: 0;
  transform: skewX(-20deg);
  background: rgba(255, 255, 255, 0.18);
  transition: left 420ms ease;
}

.button-primary:hover::after {
  left: calc(100% + 20px);
}

.button-primary:hover {
  background: #12366f;
  box-shadow: 0 8px 22px rgba(10, 33, 73, 0.16);
}

.text-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 5px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 76px;
}

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

.section-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(32px, 6vw, 72px);
  margin-bottom: 52px;
}

.section-kicker {
  margin: 2px 0 0;
  color: var(--warm);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.about-copy h2 {
  max-width: 780px;
  margin: 0;
  color: var(--ink-strong);
  font-size: 36px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-item {
  position: relative;
  min-height: 250px;
  padding: 30px 28px 32px 0;
  transition: background-color 220ms ease;
}

.service-item::after {
  content: "";
  position: absolute;
  height: 3px;
  right: 28px;
  bottom: -1px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan);
  transition: transform 260ms ease;
}

.service-item:hover::after {
  transform: scaleX(1);
}

.service-item h3,
.service-item p,
.service-index {
  transition: color 220ms ease;
}

.service-item:hover {
  background: rgba(0, 200, 215, 0.035);
}

.service-item:hover .service-index {
  color: var(--warm);
}

.service-item:hover h3 {
  color: var(--ink-strong);
}

.service-item:hover p {
  color: #465267;
}

.service-item + .service-item {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.service-index {
  display: block;
  margin-bottom: 54px;
  color: var(--cyan);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.service-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}

.service-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 210px;
  border-top: 3px solid var(--ink);
  padding: 30px clamp(24px, 3vw, 40px) 0 0;
  counter-increment: process;
  transition: border-color 260ms ease;
}

.process-step:hover {
  border-color: var(--cyan);
}

.process-step + .process-step {
  padding-left: clamp(24px, 3vw, 40px);
}

.process-step::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 30px;
  color: var(--warm);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.process-step h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.process-step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 92px);
}

.about-copy p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.principles {
  margin: 0;
  border-top: 1px solid var(--border);
}

.principles div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.principles dt {
  color: var(--ink);
  font-weight: 650;
}

.principles dd {
  margin: 0;
  color: var(--muted);
}

.contact-band {
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: #fff;
}

.contact-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
}

.contact-shell p {
  margin: 0;
  color: #b9c7de;
  font-size: 14px;
}

.contact-shell h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.35;
}

.contact-email {
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  text-underline-offset: 5px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 30px 0;
}

.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-meta {
  flex: 1 1 680px;
}

.footer-links {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.footer-links a,
.footer-meta a {
  text-underline-offset: 4px;
}

.legal-hero {
  border-bottom: 1px solid var(--border);
  padding: 82px 0 64px;
  background: var(--surface);
}

.legal-hero-inner,
.legal-content {
  width: min(calc(100% - 40px), var(--reading));
  margin: 0 auto;
}

.legal-hero h1 {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-size: 44px;
  line-height: 1.2;
}

.legal-hero p {
  margin: 16px 0 0;
  color: var(--muted);
}

.legal-content {
  padding: 64px 0 96px;
}

.legal-content h2 {
  margin: 42px 0 12px;
  color: var(--ink);
  font-size: 24px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #3e485a;
}

.legal-content ul {
  padding-left: 1.25em;
}

.not-found {
  min-height: calc(100svh - 77px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.not-found-inner {
  max-width: 640px;
  text-align: center;
}

.not-found-code {
  margin: 0;
  color: var(--cyan);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.not-found h1 {
  margin: 18px 0 0;
  color: var(--ink-strong);
  font-size: 42px;
}

.not-found p {
  margin: 14px 0 28px;
  color: var(--muted);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-js [data-reveal][data-visible] {
  opacity: 1;
  transform: translateY(0);
}

.has-js .hero-content[data-reveal] .eyebrow,
.has-js .hero-content[data-reveal] h1,
.has-js .hero-content[data-reveal] .hero-subtitle,
.has-js .hero-content[data-reveal] .hero-description,
.has-js .hero-content[data-reveal] .hero-actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-js .hero-content[data-visible] .eyebrow,
.has-js .hero-content[data-visible] h1,
.has-js .hero-content[data-visible] .hero-subtitle,
.has-js .hero-content[data-visible] .hero-description,
.has-js .hero-content[data-visible] .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.has-js .hero-content[data-visible] h1 { transition-delay: 80ms; }
.has-js .hero-content[data-visible] .hero-subtitle { transition-delay: 150ms; }
.has-js .hero-content[data-visible] .hero-description { transition-delay: 220ms; }
.has-js .hero-content[data-visible] .hero-actions { transition-delay: 290ms; }

@keyframes field-rotate {
  to { transform: rotate(360deg); }
}

@keyframes field-scan {
  to { transform: rotate(360deg); }
}

@keyframes field-breathe {
  0%, 100% { transform: rotate(45deg) scale(0.96); opacity: 0.6; }
  50% { transform: rotate(45deg) scale(1.04); opacity: 1; }
}

@keyframes field-mark {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}

@media (max-width: 1020px) {
  .number-field {
    opacity: 0.52;
  }

  .field-visual {
    width: min(62vw, 520px);
    right: -12vw;
    opacity: 0.46;
  }

  .field-label {
    display: none;
  }

  .hero-content {
    max-width: 54%;
  }

  .hero-description {
    max-width: 100%;
    font-size: 16px;
  }

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

  .service-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }

  .service-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .section-shell,
  .hero-shell,
  .contact-shell,
  .footer-shell,
  .legal-hero-inner,
  .legal-content {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header,
  .nav-shell {
    min-height: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    padding: 4px 8px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

  .number-field {
    opacity: 0.28;
  }

  .hero-shell {
    padding: 54px 0 68px;
  }

  .field-visual {
    width: 82vw;
    right: -24vw;
    top: 22%;
    opacity: 0.3;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-description {
    max-width: 90%;
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-index {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }

  .hero-index span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 8px;
  }

  .hero-index span:nth-child(3),
  .hero-index span:nth-child(4) {
    display: none;
  }

  .section {
    padding: 72px 0;
    scroll-margin-top: 68px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 29px;
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item + .service-item,
  .service-item:nth-child(3) {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 25px 0 28px;
  }

  .service-item:first-child {
    border-top: 0;
  }

  .service-index {
    margin-bottom: 28px;
  }

  .process-step,
  .process-step + .process-step {
    min-height: 0;
    padding: 26px 0 36px;
  }

  .process-step::before {
    margin-bottom: 18px;
  }

  .contact-shell,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-shell {
    min-height: 0;
    gap: 24px;
    padding: 44px 0;
  }

  .footer-shell {
    gap: 18px;
  }

  .footer-meta,
  .footer-links {
    flex-basis: auto;
    justify-content: flex-start;
  }

  .footer-links {
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }

  .legal-hero {
    padding: 58px 0 48px;
  }

  .legal-hero h1 {
    font-size: 36px;
  }

  .legal-content {
    padding: 48px 0 72px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero-shell {
    padding: 26px 0 28px;
  }
}

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

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

  .field-visual,
  .field-visual::after,
  .field-visual img,
  .field-ring,
  .field-scan,
  .has-js [data-reveal],
  .has-js .hero-content[data-reveal] > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .field-visual {
    transform: translateY(-50%) !important;
  }

  .field-visual::after {
    transform: rotate(45deg) !important;
  }
}
