:root {
  color-scheme: dark;
  --bg: #14112b;
  --bg-soft: #181333;
  --surface: #1e1840;
  --surface-2: #241d4d;
  --surface-raised: #262052;
  --deep: #0f0c22;
  --ink: #f7f5ff;
  --body: #d3cde5;
  --muted: #b0a9cb;
  --faint: #8e87a9;
  --line: #3a3268;
  --line-soft: #282150;
  --line-strong: #564a9a;
  --accent: #6c5ce7;
  --accent-strong: #7a68eb;
  --accent-soft: #b3a6f7;
  --coral: #f2664e;
  --coral-soft: #ff9a84;
  --paper: var(--bg);
  --paper-raised: var(--surface);
  --indigo: var(--ink);
  --violet: var(--accent);
  --lilac: var(--surface-2);
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- scroll reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s);
}

html.js [data-reveal]:not(.is-in) {
  will-change: opacity, transform;
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.js .scene-card[data-reveal] {
  transform: translateY(26px) scale(0.985);
  transform-origin: 50% 100%;
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s),
    border-color 0.2s ease,
    background 0.2s ease;
}

html.js .scene-card[data-reveal].is-in {
  transform: none;
}

html.js .service-list li:nth-child(2) {
  --reveal-delay: 0.07s;
}

html.js .service-list li:nth-child(3) {
  --reveal-delay: 0.14s;
}

html.js .service-list li:nth-child(4) {
  --reveal-delay: 0.21s;
}

html.js .scene-grid > :nth-child(2),
html.js .about-grid > :nth-child(2),
html.js .contact-grid > :nth-child(2) {
  --reveal-delay: 0.09s;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(20, 17, 43, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 4%,
    rgba(242, 102, 78, 0.5) 28%,
    rgba(108, 92, 231, 0.65) 58%,
    transparent 92%
  );
  opacity: 0.55;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f7f5ff;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(1050px 600px at 84% -16%, rgba(108, 92, 231, 0.42), transparent 60%),
    radial-gradient(680px 420px at 99% 88%, rgba(242, 102, 78, 0.15), transparent 62%),
    radial-gradient(720px 420px at -10% 112%, rgba(61, 53, 119, 0.5), transparent 60%),
    linear-gradient(160deg, #171233 0%, #14112b 58%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(179, 166, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 166, 247, 0.06) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(120% 100% at 78% 6%, #000 0%, rgba(0, 0, 0, 0.35) 44%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 78% 6%, #000 0%, rgba(0, 0, 0, 0.35) 44%, transparent 78%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  align-items: end;
  gap: 64px;
  padding-block: 96px 88px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(242, 102, 78, 0.14);
  animation: dot-pulse 3.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(242, 102, 78, 0.14);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(242, 102, 78, 0.03);
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #f7f5ff;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-soft);
}

.hero h1 .stop,
.contact h2 .stop {
  color: var(--coral);
}

.lead {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: var(--body);
  text-wrap: pretty;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--accent);
  color: #08101f;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.32),
    0 0 24px rgba(242, 102, 78, 0.1);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  background: #7a68eb;
  box-shadow: 0 14px 32px rgba(108, 92, 231, 0.42),
    0 0 30px rgba(242, 102, 78, 0.16);
}

.button span {
  color: #ffd4ca;
}

.text-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(242, 102, 78, 0.55);
  font-size: 14px;
  color: #ded9f0;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link:hover {
  color: var(--coral-soft);
  border-bottom-color: var(--coral);
}

.hero-card {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line-strong);
  border-top: 1px solid rgba(86, 74, 154, 0.9);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--accent) 78%, transparent);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(242, 102, 78, 0.55);
  border-bottom: 1px solid rgba(242, 102, 78, 0.55);
}

.card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.card-label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--coral);
  box-shadow: 0 0 8px rgba(242, 102, 78, 0.6);
}

.hero-card dl {
  margin: 0;
}

.hero-card dl > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

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

.hero-card dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #eeeaff;
  text-wrap: balance;
}

.card-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

/* ---------- sections ---------- */

.section {
  padding-block: 88px;
  scroll-margin-top: 88px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--coral), rgba(242, 102, 78, 0));
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #f7f5ff;
  text-wrap: balance;
}

.section-head {
  margin-bottom: 44px;
}

.services {
  border-block: 1px solid var(--line-soft);
  background:
    radial-gradient(640px 360px at 106% 4%, rgba(242, 102, 78, 0.08), transparent 62%),
    radial-gradient(760px 420px at -8% 98%, rgba(108, 92, 231, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), #171230);
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 72px;
}

.service-intro {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--body);
  text-wrap: pretty;
}

.service-intro + .service-intro {
  margin-top: 12px;
}

.service-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.service-list::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, var(--coral), rgba(242, 102, 78, 0));
}

.service-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-list li > span {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-soft);
  transition: color 0.18s ease;
}

.service-list li:hover > span {
  color: var(--coral-soft);
}

.service-list h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: #f4f0ff;
}

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

/* ---------- scenes ---------- */

.scenes {
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(620px 340px at 102% 50%, rgba(108, 92, 231, 0.1), transparent 64%),
    var(--bg);
}

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

.scene-card {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--surface), #1a1438);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.scene-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(242, 102, 78, 0.45);
}

.scene-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(179, 166, 247, 0.45);
  border-bottom: 1px solid rgba(179, 166, 247, 0.45);
}

.scene-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #221b48, #1b153a);
}

.scene-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.scene-label::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--coral);
}

.scene-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.45;
  color: #f7f5ff;
  text-wrap: balance;
}

.scene-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--body);
  text-wrap: pretty;
}

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

.scene-steps li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.scene-steps span {
  flex: none;
  width: 56px;
  padding-top: 1px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}

.scene-steps li:last-child span {
  color: var(--coral-soft);
}

.scene-note {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
}

.about-body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--body);
  text-wrap: pretty;
}

.facts {
  position: relative;
  margin: 32px 0 0;
  border-top: 1px solid var(--line-strong);
}

.facts::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--coral),
    rgba(242, 102, 78, 0.35) 22%,
    rgba(108, 92, 231, 0.5) 52%,
    transparent 88%
  );
}

.facts > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 12px;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 14px;
  color: #ece7ff;
  text-wrap: balance;
}

/* ---------- contact ---------- */

.contact {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(680px 400px at 96% 112%, rgba(242, 102, 78, 0.18), transparent 62%),
    radial-gradient(760px 420px at 8% 118%, rgba(108, 92, 231, 0.3), transparent 60%),
    var(--deep);
  color: var(--ink);
}

.contact .kicker {
  color: var(--accent-soft);
}

.contact h2 {
  color: #f7f5ff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 280px;
  align-items: center;
  gap: 72px;
}

.contact-copy p:not(.kicker):not(.contact-hours) {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.95;
  color: #c4bddb;
  text-wrap: pretty;
}

.contact-email {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--coral);
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  overflow-wrap: anywhere;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-email:hover {
  color: var(--coral-soft);
  border-bottom-color: var(--coral-soft);
}

.contact-hours {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--faint);
}

.wechat {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: #f5f3fb;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.wechat img {
  display: block;
  width: 100%;
  height: auto;
}

.wechat figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: center;
  color: #5c5573;
}

.wechat figcaption::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--coral);
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line-soft);
  background: #0f0c22;
  color: #8f88ab;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  margin: 0 0 4px;
  font-size: 14px;
  color: #f7f5ff;
}

.footer-company {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-legal a {
  color: #c3bcd9;
  transition: color 0.18s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-legal .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-legal .status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(242, 102, 78, 0.12);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 50vh;
}

.notfound h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  color: #f7f5ff;
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero-grid,
  .service-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-grid {
    padding-block: 64px;
  }

  .hero-card {
    max-width: 520px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scene-card {
    max-width: 620px;
  }

  .contact-grid {
    gap: 40px;
  }

  .wechat {
    width: min(280px, 100%);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    padding-block: 16px;
  }

  .brand-sub {
    display: none;
  }

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

  .hero-grid {
    padding-block: 56px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .lead {
    font-size: 15px;
  }

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

  .section {
    padding-block: 64px;
  }

  .scene-card {
    padding: 24px 20px;
  }

  .service-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .facts > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }

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

@media (max-width: 920px) {
  .hero-canvas {
    display: none;
  }
}

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

  .dot {
    animation: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .site-nav a,
  .text-link,
  .contact-email,
  .footer-legal a,
  .service-list li > span,
  .scene-card {
    transition: none;
  }
}
