:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --ink: #101116;
  --muted: #5e6472;
  --quiet: #8b91a0;
  --line: rgba(17, 20, 32, 0.12);
  --line-strong: rgba(17, 20, 32, 0.22);
  --surface: rgba(255, 255, 255, 0.78);
  --cyan: #00c8c8;
  --blue: #2878ff;
  --violet: #8a4dff;
  --magenta: #f2358d;
  --rose: #ff4b70;
  --gradient: linear-gradient(100deg, var(--cyan), var(--blue) 34%, var(--violet) 64%, var(--magenta));
  --shadow: 0 24px 80px rgba(39, 52, 96, 0.13);
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.75, 0.24, 1);
  --sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(242, 53, 141, 0.1), transparent 30vw),
    radial-gradient(circle at 12% 18%, rgba(0, 200, 200, 0.1), transparent 28vw),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 17, 22, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(16, 17, 22, 0.04) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

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

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.cursor-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.cursor-field.is-active {
  opacity: 0.9;
}

.cursor-field::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.8), transparent 14%),
    radial-gradient(circle at 46% 48%, rgba(40, 120, 255, 0.18), transparent 32%),
    radial-gradient(circle at 66% 38%, rgba(242, 53, 141, 0.22), transparent 44%),
    radial-gradient(circle, rgba(0, 200, 200, 0.13), transparent 72%);
  content: "";
  filter: blur(22px);
  transform: translate3d(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 50vh) - 50%), 0) scale(var(--cursor-scale, 1));
  will-change: transform;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: rgba(16, 17, 22, 0.06);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gradient);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  display: flex;
  width: min(calc(100% - 28px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 50px rgba(34, 47, 92, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand span {
  white-space: nowrap;
}

.brand-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(40, 120, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(100deg, var(--cyan), var(--blue) 34%, var(--violet) 64%, var(--magenta));
  background-clip: text;
  color: transparent;
  font-size: 14px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav a,
.site-footer a,
.mail-link {
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.mail-link:hover {
  color: var(--blue);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(138, 77, 255, 0.24);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(30px, 5vw, 82px);
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 150px 0 104px;
  align-items: center;
}

.hero-grid {
  position: absolute;
  inset: 118px -8vw 60px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(40, 120, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(242, 53, 141, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 68% 36%, rgba(0, 0, 0, 0.9), transparent 68%);
}

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

.hero h1 {
  max-width: 660px;
  font-size: clamp(52px, 6.4vw, 96px);
  font-weight: 900;
  line-height: 0.98;
}

.hero h1::after {
  display: block;
  width: min(360px, 72vw);
  height: 8px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--gradient);
  content: "";
}

.hero-lede {
  max-width: 610px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

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

.button-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 18px 40px rgba(40, 120, 255, 0.22);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(40, 120, 255, 0.36);
  box-shadow: 0 16px 34px rgba(34, 47, 92, 0.1);
}

.hero-media {
  position: relative;
  display: grid;
  min-height: 480px;
  align-items: center;
}

.hero-media::before {
  position: absolute;
  inset: 12% -4% 8% 6%;
  z-index: -1;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 200, 200, 0.16), transparent 32%),
    radial-gradient(circle at 70% 26%, rgba(242, 53, 141, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  content: "";
}

.hero-media img {
  width: min(720px, 56vw);
  filter: drop-shadow(0 24px 34px rgba(25, 35, 70, 0.12));
}

.hero-panel {
  position: absolute;
  right: 0;
  bottom: 118px;
  width: min(380px, 36vw);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(34, 47, 92, 0.11);
  backdrop-filter: blur(18px);
}

.hero-panel p {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 850;
}

.hero-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin-top: 14px;
  list-style: none;
}

.hero-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}

.hero-panel li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  content: "";
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.scroll-cue i {
  width: 46px;
  height: 1px;
  background: var(--gradient);
}

.section {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(82px, 11vw, 150px) 0;
}

.section-label {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.intro-grid,
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.68fr);
  gap: clamp(28px, 6vw, 94px);
  align-items: start;
}

.intro-grid h2,
.section-head h2,
.story-section h2,
.contact-copy h2 {
  max-width: 820px;
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 900;
  line-height: 1.05;
}

.intro-grid p,
.section-head > p:last-child,
.story-grid p,
.contact-copy > p {
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.85;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.stage-grid article,
.method-stages article,
.proof-item,
.fit-panel,
.story-values span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 46px rgba(34, 47, 92, 0.06);
}

.stage-grid article {
  min-height: 260px;
  padding: 26px;
}

.stage-grid span,
.method-stages span,
.proof-item span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
}

.stage-grid h3,
.method-stages h3,
.proof-item h3,
.fit-panel h3 {
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.22;
}

.stage-grid p,
.method-stages p,
.proof-item p,
.fit-panel p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.systems-section {
  width: 100%;
  max-width: none;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
  background:
    linear-gradient(180deg, rgba(40, 120, 255, 0.055), rgba(255, 255, 255, 0)),
    #fbfcff;
}

.systems-section .section-head,
.system-index {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.system-index {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.system-row {
  display: grid;
  grid-template-columns: 88px minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(18px, 4vw, 68px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  outline: none;
  transition: border-color 180ms ease, transform 180ms var(--ease), color 180ms ease;
}

.system-row:hover,
.system-row:focus-visible,
.system-row.is-selected {
  border-color: rgba(40, 120, 255, 0.36);
  transform: translateX(6px);
}

.row-no {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 900;
}

.row-main p {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.row-main h3 {
  margin-top: 8px;
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.08;
}

.row-main strong {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.row-detail dl {
  display: grid;
  gap: 16px;
}

.row-detail div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
}

.row-detail dt {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
}

.row-detail dd {
  color: var(--muted);
  line-height: 1.75;
}

.method-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.method-stages article {
  min-height: 320px;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 255, 0.92)),
    radial-gradient(circle at 82% 16%, rgba(242, 53, 141, 0.12), transparent 36%);
}

.proof-section {
  width: 100%;
  max-width: none;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.proof-section .section-head,
.proof-index {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.proof-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.proof-item {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 18px;
}

.proof-item::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(40, 120, 255, 0.12), transparent 38%);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.proof-item:hover::before {
  opacity: 1;
}

.proof-item img {
  position: relative;
  width: 100%;
  height: 248px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 18px 44px rgba(34, 47, 92, 0.1);
}

.proof-item div {
  position: relative;
  padding: 22px 6px 4px;
}

.story-section {
  border-top: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 92px);
  margin-top: 34px;
}

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

.story-values span {
  padding: 18px;
  color: var(--ink);
  font-weight: 850;
}

.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(24px, 5vw, 74px);
  overflow: hidden;
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-bottom: 42px;
  padding: clamp(56px, 8vw, 96px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 16%, rgba(242, 53, 141, 0.16), transparent 34%),
    radial-gradient(circle at 16% 84%, rgba(0, 200, 200, 0.16), transparent 34%),
    #fff;
  box-shadow: var(--shadow);
}

.contact-marquee {
  position: absolute;
  top: 18px;
  left: 0;
  display: flex;
  width: max-content;
  gap: 34px;
  color: rgba(16, 17, 22, 0.08);
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 900;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.contact-marquee div {
  display: flex;
  gap: 34px;
}

.contact-copy,
.fit-panel {
  position: relative;
  z-index: 1;
}

.contact-copy > p {
  max-width: 760px;
  margin-top: 24px;
}

.diagnostic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.diagnostic-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.fit-panel {
  display: grid;
  gap: 18px;
  align-self: end;
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.mail-link {
  display: inline-flex;
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  display: flex;
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.index-preview {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: min(320px, calc(100vw - 44px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 60px rgba(34, 47, 92, 0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.index-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.index-preview span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.index-preview strong {
  display: block;
  margin-top: 8px;
}

.index-preview p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .intro-grid,
  .section-head,
  .story-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-media {
    min-height: 260px;
    order: -1;
  }

  .hero-media img {
    width: 100%;
  }

  .hero-panel {
    position: static;
    width: 100%;
    margin-top: 18px;
  }

  .stage-grid,
  .method-stages,
  .proof-index {
    grid-template-columns: 1fr;
  }

  .system-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .row-detail div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-section {
    width: min(calc(100% - 28px), var(--max));
    padding: 44px 20px;
  }

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

@media (max-width: 560px) {
  .brand-word {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .brand span {
    font-size: 12px;
  }

  .header-action {
    padding: 0 14px;
  }

  .hero {
    width: min(calc(100% - 28px), var(--max));
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .button {
    width: 100%;
  }

  .section,
  .systems-section,
  .proof-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .story-values {
    grid-template-columns: 1fr;
  }

  .index-preview {
    display: none;
  }
}
