:root {
  --paper: #f4f6f1;
  --paper-bright: #fbfcf8;
  --ink: #15191b;
  --muted: #5e6863;
  --line: #d8ded7;
  --green: #25aa78;
  --green-deep: #0c7250;
  --coral: #ef6b4f;
  --blue: #5272df;
  --yellow: #f0c74f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 246, 241, 0.92);
  border-color: rgba(21, 25, 27, 0.1);
  backdrop-filter: blur(14px);
}

.nav-shell,
.section-shell,
.hero-shell,
.hero-foot {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper-bright);
  font-family: Arial, sans-serif;
  font-size: 19px;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 18px;
}

.brand-name small {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav > a:not(.nav-contact) {
  position: relative;
}

.site-nav > a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--green);
  transition: right 180ms ease;
}

.site-nav > a:not(.nav-contact):hover::after,
.site-nav > a:not(.nav-contact):focus-visible::after {
  right: 0;
}

.nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100svh - 54px));
  padding-top: 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-canvas,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-grid {
  z-index: -1;
  background-image: linear-gradient(rgba(21, 25, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 27, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 32%, #000 72%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 32%, #000 72%, #000 100%);
}

.hero-shell {
  min-height: calc(min(780px, 100svh - 54px) - 116px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 60px;
  padding: 42px 0 32px;
}

.hero-copy {
  max-width: 730px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green-deep);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--green);
}

.hero h1 {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 em {
  color: transparent;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 58px;
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: #38423e;
  font-size: 19px;
  line-height: 1.85;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--green);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 3px 3px 0 var(--green);
}

.button-quiet {
  border: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.72);
}

.hero-index {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.hero-index div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 14px;
  padding: 20px 0 20px 24px;
  border-bottom: 1px solid var(--line);
}

.hero-index div:first-child {
  border-top: 1px solid var(--line);
}

.hero-index span {
  grid-row: 1 / 3;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.hero-index strong {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.hero-index small {
  color: var(--muted);
  font-size: 12px;
}

.hero-foot {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-foot span {
  padding-right: 24px;
}

.hero-foot span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 24px 2px 0;
  border-radius: 50%;
  background: var(--coral);
}

.services,
.process,
.about,
.contact {
  padding: 110px 0;
}

.services {
  background: var(--paper-bright);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 54px;
}

.section-heading h2,
.process h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading > p,
.process-intro > p:last-child,
.contact-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.service-card {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(21, 25, 27, 0.09);
}

.service-game {
  --accent: var(--coral);
}

.service-code {
  --accent: var(--green);
}

.service-bid {
  --accent: var(--blue);
}

.service-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.service-number {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.service-tag {
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 100px;
  color: color-mix(in srgb, var(--accent) 78%, #111);
}

.service-visual {
  position: relative;
  height: 160px;
  margin: 28px -26px 34px;
  border-block: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--paper-bright));
  overflow: hidden;
}

.pixel-board span {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--coral);
  background: var(--paper-bright);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--coral) 45%, transparent);
}

.pixel-board span:nth-child(1) { left: 12%; top: 54px; }
.pixel-board span:nth-child(2) { left: 29%; top: 22px; background: var(--coral); }
.pixel-board span:nth-child(3) { left: 46%; top: 70px; width: 48px; }
.pixel-board span:nth-child(4) { right: 22%; top: 30px; }
.pixel-board span:nth-child(5) { right: 8%; top: 86px; width: 22px; height: 22px; background: var(--yellow); }

.code-window::before,
.code-window::after {
  content: "";
  position: absolute;
  width: 66px;
  height: 74px;
  top: 40px;
  border-block: 4px solid var(--green);
}

.code-window::before { left: 21%; border-left: 4px solid var(--green); transform: skewX(-16deg); }
.code-window::after { right: 21%; border-right: 4px solid var(--green); transform: skewX(16deg); }
.code-window i { position: absolute; top: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.code-window i:nth-child(1) { left: 18px; }
.code-window i:nth-child(2) { left: 34px; opacity: 0.6; }
.code-window i:nth-child(3) { left: 50px; opacity: 0.3; }
.code-window b { position: absolute; left: 42%; height: 4px; background: color-mix(in srgb, var(--green) 70%, #fff); }
.code-window b:nth-of-type(1) { top: 52px; width: 20%; }
.code-window b:nth-of-type(2) { top: 76px; width: 27%; left: 35%; }
.code-window b:nth-of-type(3) { top: 100px; width: 16%; left: 46%; }

.document-stack::before,
.document-stack::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 120px;
  border: 2px solid var(--blue);
  background: var(--paper-bright);
}

.document-stack::before { left: calc(50% - 65px); top: 30px; transform: rotate(-8deg); opacity: 0.55; }
.document-stack::after { left: calc(50% - 34px); top: 18px; transform: rotate(4deg); }
.document-stack i { position: absolute; z-index: 2; left: calc(50% - 12px); width: 54px; height: 4px; background: var(--blue); }
.document-stack i:nth-child(1) { top: 56px; }
.document-stack i:nth-child(2) { top: 72px; width: 38px; opacity: 0.55; }
.document-stack b { position: absolute; z-index: 2; top: 104px; width: 9px; height: 9px; border: 2px solid var(--blue); }
.document-stack b:nth-of-type(1) { left: calc(50% - 12px); background: var(--blue); }
.document-stack b:nth-of-type(2) { left: calc(50% + 6px); opacity: 0.55; }
.document-stack b:nth-of-type(3) { left: calc(50% + 24px); opacity: 0.3; }

.service-card h3 {
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1.3;
}

.service-card > p {
  min-height: 92px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.service-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border: 2px solid var(--accent);
}

.process {
  background: #17211d;
  color: #eef5ef;
}

.process-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 100px;
}

.process .section-kicker {
  color: #7dd9b4;
}

.process-intro {
  align-self: start;
  position: sticky;
  top: 110px;
}

.process-intro > p:last-child {
  max-width: 390px;
  margin-top: 26px;
  color: #afbbb5;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.process-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.process-list > li > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(125, 217, 180, 0.5);
  border-radius: 50%;
  color: #7dd9b4;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.process-list h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.process-list p {
  margin: 0;
  color: #afbbb5;
  font-size: 14px;
}

.about {
  background: #f0c74f;
}

.about .section-kicker {
  color: #684f00;
}

.about-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 100px;
}

.about-copy {
  padding-top: 35px;
}

.about-copy p {
  margin: 0 0 22px;
  color: #433b22;
}

.about-copy .about-lead {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.principles span {
  padding: 7px 12px;
  border: 1px solid rgba(21, 25, 27, 0.55);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.contact {
  position: relative;
  background: var(--paper-bright);
  overflow: hidden;
}

.contact::after {
  content: "SUYE";
  position: absolute;
  right: -30px;
  bottom: -100px;
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: 260px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(21, 25, 27, 0.06);
  pointer-events: none;
}

.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
}

.contact-copy > p:last-child {
  max-width: 390px;
  margin-top: 26px;
}

.contact-list {
  border-top: 1px solid var(--ink);
}

.contact-list > a,
.contact-list > div {
  min-height: 100px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--muted);
  font-size: 12px;
}

.contact-list strong {
  font-size: 18px;
  line-height: 1.6;
}

.contact-list i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-deep);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.contact-list > a:hover i,
.contact-list > a:focus-visible i {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.site-footer {
  padding: 32px 0;
  background: var(--ink);
  color: #e5e9e5;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand-footer .brand-mark {
  background: #e5e9e5;
  color: var(--ink);
}

.brand-footer .brand-name small {
  color: #aeb6b1;
}

.footer-shell p {
  margin: 0;
  color: #aeb6b1;
  font-size: 11px;
}

.footer-shell p:last-child {
  text-align: right;
}

@media (max-width: 920px) {
  .site-nav {
    gap: 20px;
  }

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

  .hero h1 em {
    font-size: 50px;
  }

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

  .service-card {
    min-height: 520px;
  }

  .service-card > p {
    min-height: auto;
  }

  .process-shell,
  .about-shell,
  .contact-shell {
    gap: 56px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 64px;
  }

  .nav-shell,
  .section-shell,
  .hero-shell,
  .hero-foot {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-shell {
    height: 64px;
  }

  .site-header {
    background: rgba(244, 246, 241, 0.94);
    border-color: var(--line);
    backdrop-filter: blur(12px);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-name small {
    font-size: 10px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 16px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-contact {
    margin-top: 12px;
    border: 1px solid var(--ink);
    text-align: center;
  }

  .hero {
    min-height: calc(100svh - 36px);
    padding-top: 64px;
  }

  .hero-shell {
    min-height: calc(100svh - 142px);
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 38px 0 20px;
  }

  .hero-grid {
    -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 62%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 8%, #000 62%, #000 100%);
  }

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

  .hero h1 em {
    font-size: 40px;
    -webkit-text-stroke-width: 1.5px;
  }

  .hero-lead {
    max-width: 100%;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    min-height: 45px;
  }

  .hero-index {
    align-self: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    background: rgba(244, 246, 241, 0.7);
  }

  .hero-index div,
  .hero-index div:first-child {
    display: block;
    padding: 11px 9px;
    border: 0;
  }

  .hero-index div + div {
    border-left: 1px solid var(--line);
  }

  .hero-index span,
  .hero-index strong,
  .hero-index small {
    display: block;
  }

  .hero-index span {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .hero-index strong {
    font-size: 14px;
  }

  .hero-index small {
    font-size: 10px;
  }

  .hero-foot {
    min-height: 42px;
    justify-content: space-between;
  }

  .hero-foot span {
    padding-right: 0;
  }

  .hero-foot span + span::before {
    margin-right: 12px;
  }

  .services,
  .process,
  .about,
  .contact {
    padding: 76px 0;
  }

  .section-heading,
  .process-shell,
  .about-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 34px;
  }

  .section-heading h2,
  .process h2,
  .about h2,
  .contact h2 {
    font-size: 34px;
  }

  .service-card {
    min-height: 0;
    padding: 22px;
  }

  .service-visual {
    margin-inline: -22px;
  }

  .service-card ul {
    margin-top: 26px;
  }

  .process-shell,
  .about-shell,
  .contact-shell {
    gap: 42px;
  }

  .process-intro {
    position: static;
  }

  .process-list li {
    padding: 26px 0;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-copy .about-lead {
    font-size: 18px;
  }

  .contact-list > a,
  .contact-list > div {
    min-height: 92px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .contact-list strong {
    overflow-wrap: anywhere;
    font-size: 15px;
  }

  .contact::after {
    font-size: 140px;
    bottom: -40px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-shell p:last-child {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 43px;
  }

  .hero h1 em {
    font-size: 34px;
  }

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

  .button {
    gap: 10px;
    padding-inline: 14px;
  }

  .hero-foot {
    font-size: 10px;
  }

  .hero-foot span + span::before {
    margin-right: 8px;
  }

  .contact-list i {
    width: 32px;
    height: 32px;
  }
}

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

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