:root {
  color-scheme: dark;
  --background: #080b13;
  --panel: #0e1320;
  --text: #f2f5ff;
  --muted: #a5afc5;
  --line: #242c40;
  --accent: #a2b8ff;
  --header: 76px;
  --gutter: clamp(22px, 5.4vw, 76px);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body { margin: 0; background: var(--background); color: var(--text); }
body:has(.service-dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #adc5ff; outline-offset: 5px; }
::selection { color: #fff; background: #4056b6; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 16px; transform: translateY(-160%); background: #e8edff; color: #080b13; border-radius: 6px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header { position: sticky; z-index: 8; top: 0; min-height: var(--header); border-bottom: 1px solid #a5b6ff16; background: #080b13ed; backdrop-filter: blur(18px); }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; width: fit-content; flex: none; gap: 10px; align-items: center; font-size: 1.05rem; font-weight: 750; letter-spacing: .065em; line-height: 1.22; }
.brand img { flex: none; }
.brand small { display: block; margin-top: 4px; color: #a8b8db; font: 600 .67rem/1.05 system-ui, sans-serif; letter-spacing: .10em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); color: #bec8df; font-size: .94rem; }
.nav a { display: inline-flex; min-height: 42px; align-items: center; white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a[aria-current="location"] { color: #fff; }
.nav a:not(.nav-contact)[aria-current="location"] { text-decoration: underline; text-decoration-color: #819dff; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .nav-contact { padding: 0 17px; border: 1px solid #6077bd73; border-radius: 8px; color: #e0e8ff; background: #141b32; transition: background .2s, border-color .2s; }
.nav .nav-contact:hover { background: #202d53; border-color: #8ea7fa; }
.menu-toggle { display: none; }

.particles { position: fixed; z-index: 3; inset: 0; pointer-events: none; width: 100%; height: 100%; }
.hero { position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden; min-height: clamp(570px, 77svh, 820px); background: #080b13; }
.hero-art, .hero-shade { position: absolute; inset: 0; z-index: -2; }
.hero-art { transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.035); transition: transform .62s cubic-bezier(.2,.7,.2,1); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-shade { z-index: -1; background: linear-gradient(0deg, #080b13 0%, #080b1300 27%, #080b1300 86%, #080b1355 100%), linear-gradient(90deg, #080b13f8 0%, #080b13e2 18%, #080b1380 41%, #080b1310 64%, #080b131a 100%); }
.hero-inner { position: relative; padding-block: 82px 120px; }
.hero-copy { width: min(100%, 650px); position: relative; z-index: 4; animation: hero-enter .85s cubic-bezier(.18,.72,.22,1) both; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; color: #b8c8ef; font-size: 1rem; font-weight: 530; letter-spacing: .12em; }
.hero-brand::before { display: block; flex: none; content: ""; width: 24px; height: 1px; background: #91abff; box-shadow: 0 0 10px #819bff99; }
.hero h1 { font-size: clamp(3.4rem, 6.9vw, 6.45rem); font-weight: 800; line-height: 1.12; letter-spacing: -.072em; }
.hero-accent { color: #a5b7ff; background: linear-gradient(108deg, #e5edff 0, #a8baff 49%, #8c9aff 98%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stop { letter-spacing: -.19em; }
.hero-description { margin-top: 27px; color: #b3bed5; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.85; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 47px; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; font-size: .94rem; font-weight: 660; line-height: 1.4; cursor: pointer; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #0c1532; background: linear-gradient(105deg, #d5e2ff, #a6b8ff); box-shadow: 0 5px 22px #627af42b; }
.button-primary:hover { background: #d9e4ff; box-shadow: 0 6px 27px #7897ff55; }
.button-secondary { color: #e1e9ff; background: #11182abb; border-color: #6679a862; }
.button-secondary:hover { border-color: #94a8e0; background: #202d4bc9; }

.hero-bottom { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; }
.scroll-link { width: fit-content; min-height: 40px; padding: 5px 0; display: inline-flex; gap: 10px; align-items: center; color: #a3afc7; font-size: .86rem; }
.scroll-link:hover { color: #fff; }
.scroll-link span { width: 13px; height: 20px; border: 1px solid #a2b6ed8a; border-radius: 8px; display: grid; justify-items: center; padding-top: 4px; }
.scroll-link span::before { content: ""; width: 2px; height: 4px; border-radius: 3px; background: #c4d1fb; animation: scroll-hint 2.1s ease-in-out infinite; }
@keyframes scroll-hint { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(6px); opacity: .35; } }

.section { padding-block: clamp(76px, 8vw, 120px); }
.services { padding-top: clamp(64px, 7vw, 108px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 36px; }
.section-heading > p { max-width: 370px; color: var(--muted); line-height: 1.75; padding-bottom: 3px; }
.section-kicker { margin-bottom: 13px; color: #a6bafe; font: 650 .82rem/1.4 system-ui, sans-serif; letter-spacing: .18em; }
h2 { font-size: clamp(2.05rem, 4.45vw, 3.85rem); font-weight: 770; letter-spacing: -.06em; line-height: 1.22; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service { --tone: 125, 159, 255; position: relative; isolation: isolate; min-height: clamp(248px, 25vw, 318px); display: flex; align-items: end; background: #101725; overflow: hidden; border: 1px solid #313d57; border-radius: 13px; transition: border-color .28s, box-shadow .35s; }
.service-violet { --tone: 194, 164, 255; }
.service-cyan { --tone: 126, 218, 237; }
.service-pink { --tone: 231, 165, 255; }
.service::before, .service::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.service::before { z-index: -1; background: linear-gradient(0deg, #090e1af8, #090e1ae0 10%, #090e1aa0 34%, #090e1a05 86%), linear-gradient(90deg, #090e1ad0, #090e1a25 67%, #090e1a0a); }
.service::after { z-index: 1; background: radial-gradient(255px circle at var(--card-x, 50%) var(--card-y, 50%), rgba(var(--tone), .14), transparent); opacity: 0; transition: opacity .35s; }
.service:hover, .service:focus-within { border-color: rgba(var(--tone), .7); box-shadow: 0 12px 42px rgba(var(--tone), .11); }
.service:hover::after, .service:focus-within::after { opacity: 1; }
.service-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: 58% 50%; transition: transform .7s cubic-bezier(.16,.7,.22,1); }
.game-art { object-position: 54% 48%; }
.service:hover .service-art, .service:focus-within .service-art { transform: scale(1.05); }
.service-body { position: relative; z-index: 2; width: 100%; padding: 22px clamp(20px, 2.5vw, 34px) clamp(23px, 2.6vw, 33px); }
.service-label { color: rgb(var(--tone)); font: 650 .76rem/1.4 system-ui, sans-serif; letter-spacing: .13em; }
.service h3 { margin: 7px 0 8px; font-size: clamp(1.55rem, 2.55vw, 2.25rem); line-height: 1.2; letter-spacing: -.035em; }
.service-body > p:last-of-type { max-width: min(100% - 54px, 370px); color: #c2cbe0; font-size: 1rem; line-height: 1.55; }
.service-action, .dialog-close { display: grid; place-items: center; width: 45px; height: 45px; background: #161e33d9; border: 1px solid #a7b9eb66; border-radius: 10px; cursor: pointer; transition: background .2s, border-color .2s; }
.service-action { position: absolute; right: clamp(20px, 2.5vw, 34px); bottom: clamp(23px, 2.6vw, 33px); }
.service-action:hover, .dialog-close:hover { background: #293c69; border-color: #a7b9eb; }
.service-action span { width: 13px; height: 13px; position: relative; }
.service-action span::before, .service-action span::after { content: ""; position: absolute; background: #e8eeff; border-radius: 8px; }
.service-action span::before { width: 13px; height: 1px; top: 6px; left: 0; }
.service-action span::after { width: 1px; height: 13px; left: 6px; top: 0; }

.about { background: radial-gradient(ellipse at 77% 50%, #152044b8, transparent 54%), #0b0f1b; border-block: 1px solid #a5b6ff16; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(24px, 8vw, 125px); align-items: center; }
.about-copy { max-width: 610px; margin-top: 25px; color: #b6c0d6; font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.95; }
.about-art { min-height: 270px; position: relative; display: grid; place-items: center; isolation: isolate; }
.about-art::before { position: absolute; content: ""; inset: 2%; background: repeating-linear-gradient(0deg, #9fb4ffaa 0, #9fb4ffaa 1px, transparent 1px, transparent 28px), repeating-linear-gradient(90deg, #9fb4ffaa 0, #9fb4ffaa 1px, transparent 1px, transparent 28px); opacity: .15; mask-image: radial-gradient(ellipse, black 6%, transparent 69%); }
.about-art img { z-index: 1; width: 76px; height: 76px; box-shadow: 0 0 65px #6384ff59; border-radius: 19px; }
.orbit { position: absolute; width: min(78%, 350px); aspect-ratio: 2.2; border: 1px solid #8aa8fd7d; border-radius: 50%; transform: rotate(-24deg); box-shadow: inset 0 0 20px #94a6fd0b, 0 0 19px #94a6fd10; }
.orbit-two { transform: rotate(29deg); width: min(65%, 290px); border-color: #8da6ff55; }
.orbit-three { transform: rotate(0deg); width: min(98%, 410px); aspect-ratio: 1.9; border-style: dashed; border-color: #a4b7f64a; box-shadow: none; }
.orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; top: 23%; left: 7%; background: #a4bdff; box-shadow: 0 0 16px #92b5ff; animation: orbit-pulse 3s ease-in-out infinite alternate; }
.orbit-two i { top: auto; bottom: 19%; left: auto; right: 7%; animation-delay: -.9s; }
@keyframes orbit-pulse { to { opacity: .45; box-shadow: 0 0 6px #92b5ff; } }

.contact-card { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #829dfa50; border-radius: 16px; padding: clamp(28px, 6vw, 77px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr); align-items: center; background: radial-gradient(ellipse at 87% 34%, #202e5a, transparent 66%), linear-gradient(118deg, #111828, #0d121d); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #7e9aff22 1px, transparent 1px), linear-gradient(0deg, #7e9aff22 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 36%, #000); }
.contact-company { margin: 23px 0 8px; font-weight: 680; font-size: 1.08rem; }
address { max-width: 590px; color: #bac6df; line-height: 1.8; font-style: normal; overflow-wrap: anywhere; }
.contact-actions { margin-top: 24px; }
.copy-status { color: #b9caff; position: absolute; margin-top: 10px; font-size: .85rem; }
.contact-art { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 145px; }
.contact-art i { position: absolute; width: 36%; aspect-ratio: 1; border: 1px solid #acbaff50; border-radius: 50%; animation: contact-pulse 4.5s ease-in-out infinite; }
.contact-art i:nth-child(2) { width: 62%; animation-delay: -.45s; }
.contact-art i:nth-child(3) { width: 88%; animation-delay: -.9s; }
.contact-art span { width: 15px; height: 15px; background: #c1d0ff; box-shadow: 0 0 23px 8px #7798ff99; border-radius: 50%; }
@keyframes contact-pulse { 50% { transform: scale(1.06); opacity: .46; } }

.footer { padding-block: 28px; border-top: 1px solid #a5b6ff1d; color: #a3afc7; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 17px 25px; font-size: .88rem; }
.footer .brand { color: #e1e7fb; }
.back-top { white-space: nowrap; }
.back-top:hover { color: #fff; text-decoration: underline; }

.service-dialog { width: min(100% - 36px, 540px); max-height: calc(100% - 36px); overflow: auto; padding: 0; background: #101829; border: 1px solid #566a9d; border-radius: 17px; color: var(--text); box-shadow: 0 22px 90px #03050ad9; }
.service-dialog[open] { animation: hero-enter .22s ease-out both; }
.service-dialog::backdrop { background: #050710c9; backdrop-filter: blur(6px); }
.dialog-inner { position: relative; padding: clamp(27px, 6vw, 46px); }
.dialog-inner form { position: absolute; top: 16px; right: 16px; }
.dialog-close { font-size: 1.6rem; }
.dialog-inner h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
.dialog-inner > p:not(.section-kicker) { margin-top: 18px; color: #c3cce1; line-height: 1.75; }
.dialog-inner ul { display: grid; gap: 9px; margin: 19px 0 25px; padding: 0; list-style: none; }
.dialog-inner li { padding: 9px 12px; background: #a0b7ff0b; border: 1px solid #a0b7ff23; border-radius: 6px; color: #dce4fb; line-height: 1.45; }

[data-reveal].reveal-pending:not(:focus-within) { opacity: 0; transform: translateY(20px); }
[data-reveal].is-visible { animation: hero-enter .65s cubic-bezier(.2,.72,.3,1) both; }
.service:nth-child(even).is-visible { animation-delay: .08s; }

@media (max-width: 980px) {
  .hero h1 { font-size: clamp(3.25rem, 8.5vw, 5.4rem); }
  .hero-shade { background: linear-gradient(0deg, #080b13, transparent 29%), linear-gradient(90deg, #080b13ee, #080b1399 42%, #080b1315 81%); }
  .about-grid { gap: 32px; }
}

@media (max-width: 760px) {
  :root { --header: 64px; --gutter: clamp(19px, 5.2vw, 32px); }
  .header-inner { gap: 12px 20px; flex-wrap: wrap; }
  .header-inner > .brand { min-height: var(--header); }
  .brand img { width: 34px; height: 34px; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 1px solid #8196cf65; background: #11192a; border-radius: 9px; cursor: pointer; }
  .menu-toggle span { width: 17px; height: 1px; background: #e9efff; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { justify-content: flex-start; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
  .nav.menu-ready { display: none; position: absolute; right: var(--gutter); top: calc(100% + 8px); min-width: 176px; margin: 0; padding: 8px; background: #10182bfd; border: 1px solid #657bbb80; border-radius: 12px; box-shadow: 0 10px 50px #0009; }
  .nav.menu-ready.is-open { display: grid; gap: 3px; }
  .nav.menu-ready a { padding: 0 12px; min-height: 44px; }
  .nav .nav-contact { border-color: #6077bd55; }
  .hero { min-height: max(634px, min(100svh - var(--header), 790px)); align-items: start; }
  .hero-art { transform: none; inset: auto 0 0; height: 63%; }
  .hero-art img { object-fit: cover; object-position: 52% 48%; }
  .hero-shade { background: linear-gradient(0deg, #080b13 0%, #080b1300 16%, #080b1314 42%, #080b13ef 64%, #080b13 76%), linear-gradient(90deg, #080b1377, transparent 26%, transparent 80%, #080b1366); }
  .hero-inner { padding-block: clamp(50px, 8.8svh, 88px) 205px; }
  .hero-copy { z-index: 4; }
  .hero-brand { margin-bottom: 19px; font-size: .9rem; letter-spacing: .065em; gap: 8px; }
  .hero-brand::before { width: 16px; }
  .hero h1 { font-size: clamp(2.9rem, 11.4vw, 5.35rem); }
  .hero-description { margin-top: 19px; line-height: 1.75; }
  .hero-actions { margin-top: 24px; }
  .button { min-height: 45px; padding-inline: 15px; }
  .hero-bottom { bottom: 12px; }
  .section { padding-block: 65px; }
  .section-heading { display: grid; gap: 13px; margin-bottom: 25px; }
  .desktop-break { display: none; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .service { min-height: clamp(224px, 57vw, 350px); }
  .service:nth-child(even).is-visible { animation-delay: 0s; }
  .about-grid { grid-template-columns: 1fr; gap: 23px; }
  .about-copy { margin-top: 17px; }
  .about-art { min-height: 215px; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
  .contact-art { position: absolute; z-index: -1; opacity: .54; width: 184px; right: -60px; top: -55px; aspect-ratio: 1; min-height: 0; }
  .footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .footer-inner > p { grid-column: 1 / -1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
}

@media (max-width: 350px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-brand { letter-spacing: .015em; }
  .hero-description { font-size: .92rem; }
  .service-body { padding-inline: 15px; }
  .service-action { right: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal].reveal-pending:not(:focus-within) { opacity: 1; transform: none; }
  .particles { display: none; }
}
