:root {
  --bg: #f2f3f6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #23272b;
  --muted: #6d7379;
  --quiet: #8c9298;
  --line: rgba(0, 0, 0, 0.11);
  --line-soft: rgba(0, 0, 0, 0.075);
  --accent: #5c93cb;
  --accent-soft: rgba(92, 147, 203, 0.11);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Century Gothic", DengXian, "Microsoft YaHei UI", "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
}

.page-shell,
.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  justify-self: start;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.wordmark span,
.site-footer strong span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  min-width: 0;
  gap: clamp(22px, 3vw, 42px);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding-block: 25px;
  transition: color 180ms ease;
}

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

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--text);
  content: "";
}

.language-switch {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: transparent;
  font-size: 11px;
}

.language-switch > span {
  display: none;
}

.language-switch button {
  min-width: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  color: var(--text);
}

.language-switch button[aria-pressed="true"] {
  background: var(--text);
  color: #fff;
}

.eyebrow,
.section-number {
  margin: 0;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.eyebrow b {
  font-weight: 500;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(64px, 8vw, 124px);
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  padding-block: clamp(86px, 9vw, 124px);
}

.home-hero.page-shell {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100% - var(--max-width)) / 2));
  background: var(--accent);
  color: #fff;
}

.home-hero::before,
.page-hero::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(82vw, 920px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 54px,
    rgba(255, 255, 255, 0.15) 55px 57px,
    transparent 58px 92px
  );
  opacity: 0.72;
  content: "";
  pointer-events: none;
}

.home-hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  display: grid;
  margin: 34px 0 30px;
  font-size: clamp(46px, 5.2vw, 70px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-copy h1 em {
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
  font-weight: 520;
}

.hero-intro {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.home-hero .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.home-hero .eyebrow span {
  background: #fff;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: #fff;
  color: #316da9;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f3f7fb;
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.15);
}

.signal-card {
  position: relative;
  min-width: 0;
  min-height: 410px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.7) 58%, rgba(83, 118, 138, 0.07)),
    #fff;
  color: var(--text);
  box-shadow: 0 24px 65px rgba(33, 73, 112, 0.2);
}

.signal-card::before {
  position: absolute;
  right: -22%;
  bottom: -28%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(92, 147, 203, 0.12);
  filter: blur(70px);
  content: "";
}

.signal-meta,
.signal-scale,
.signal-readout {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.signal {
  position: relative;
  z-index: 1;
  display: flex;
  height: 220px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-block: 26px 6px;
}

.signal::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.075);
  content: "";
}

.signal span {
  width: clamp(5px, 1vw, 8px);
  height: var(--level);
  border-radius: 999px;
  background: linear-gradient(180deg, #97bcdf, #4b80ae);
  box-shadow: none;
}

.signal-scale {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.signal-readout {
  gap: 18px;
  margin-top: 22px;
}

.signal-readout div {
  display: grid;
  gap: 5px;
}

.signal-readout strong {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.portal-section,
.content-section,
.contact-section {
  padding-block: clamp(82px, 9vw, 120px);
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  display: block;
  margin-bottom: 40px;
  text-align: center;
}

.section-heading h2 {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-align: center;
}

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

.portal-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 275px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.16);
  background: var(--surface-strong);
}

.portal-index,
.portal-card > strong,
.card-top,
.process-list span,
.feature-list span,
.roadmap-list span {
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.portal-card div {
  align-self: end;
}

.portal-card h3 {
  margin: 0 0 16px;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 580;
  letter-spacing: -0.04em;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.portal-card > strong {
  justify-self: end;
  margin-top: 28px;
  color: var(--text);
  font-size: 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(92px, 10vw, 132px);
}

.page-hero.page-shell {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100% - var(--max-width)) / 2));
  background: var(--accent);
  color: #fff;
}

.page-hero-grid {
  display: grid;
  max-width: 820px;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 34px auto 0;
  text-align: center;
}

.page-hero-grid > * {
  min-width: 0;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  overflow-wrap: anywhere;
  font-size: clamp(38px, 4.2vw, 50px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.page-hero-grid > p,
.page-hero-grid > div > p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.page-hero .eyebrow {
  justify-content: center;
  color: rgba(255, 255, 255, 0.74);
}

.page-hero .eyebrow span {
  background: #fff;
}

.coming-soon {
  display: inline-block;
  margin-top: 26px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

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

.research-card {
  min-width: 0;
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.research-card-accent {
  background: var(--surface);
  box-shadow: inset 0 3px 0 rgba(92, 147, 203, 0.6);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-meter {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 62%, rgba(0, 0, 0, 0.08) 62%);
}

.research-card h3 {
  margin: 74px 0 4px;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.research-card .card-label {
  margin: 0 0 30px;
  color: var(--accent);
  font-size: 13px;
}

.research-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.process-list strong {
  align-self: end;
  font-size: 15px;
  font-weight: 520;
}

.lab-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(54px, 9vw, 140px);
  align-items: center;
  padding-block: clamp(82px, 9vw, 120px);
  border-top: 1px solid var(--line-soft);
}

.player-preview {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.68));
  box-shadow: 0 24px 65px rgba(52, 58, 68, 0.1);
}

.player-head,
.track-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-head {
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.status-dot {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #74bcff;
}

.track-info {
  justify-content: flex-start;
  gap: 16px;
  margin-top: 52px;
}

.play-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
}

.track-info div {
  display: grid;
  gap: 3px;
}

.track-info div strong {
  font-size: 16px;
  font-weight: 560;
}

.track-info div span,
.track-info > span:last-child {
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.track-info > span:last-child {
  margin-left: auto;
}

.timeline {
  height: 3px;
  margin: 34px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}

.timeline span {
  display: block;
  width: 37%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.ab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ab-switch span {
  display: grid;
  min-height: 70px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 21px;
  font-weight: 600;
}

.ab-switch .active {
  border-color: transparent;
  background: var(--text);
  color: #fff;
}

.player-note {
  margin: 20px 0 0;
  color: var(--quiet);
  font-size: 11px;
  text-align: center;
}

.lab-description h2,
.about-lead h2 {
  margin: 24px 0;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lab-description > p:last-child,
.about-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.feature-list,
.roadmap-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.roadmap-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  min-height: 84px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.feature-list strong,
.roadmap-list strong {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 520;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(54px, 10vw, 150px);
  padding-block: clamp(82px, 9vw, 120px);
  border-top: 1px solid var(--line-soft);
}

.about-lead h2 {
  max-width: 720px;
}

.about-copy {
  align-self: end;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 24px;
}

.roadmap-list li {
  min-height: 100px;
}

.roadmap-list p {
  margin: 7px 0 0;
  color: var(--quiet);
  font-size: 13px;
}

.stack-section {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 64px;
  align-items: start;
  padding-block: 70px;
  border-top: 1px solid var(--line-soft);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stack-list span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 70px;
  border-top: 1px solid var(--line-soft);
}

.related-link > p {
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
}

.related-link a {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.related-link a strong {
  color: var(--muted);
  font-size: 19px;
}

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

.contact-grid a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.contact-grid span {
  grid-column: 1 / -1;
  color: var(--quiet);
  font-size: 12px;
}

.contact-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 520;
  letter-spacing: -0.03em;
}

.contact-grid b {
  align-self: center;
  color: var(--muted);
  font-size: 16px;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  min-height: 180px;
  padding-block: 44px;
  border-top: 1px solid var(--line-soft);
  color: var(--quiet);
  font-size: 11px;
}

.site-footer strong {
  color: var(--text);
  font-size: 19px;
  letter-spacing: -0.04em;
}

.site-footer p {
  margin: 7px 0 0;
}

.footer-meta {
  display: flex;
  gap: 22px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 900px) {
  .home-hero,
  .page-hero-grid,
  .lab-section,
  .about-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero {
    min-height: auto;
    padding-block: 88px 108px;
  }

  .signal-card {
    min-height: 460px;
  }

  .portal-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 245px;
  }

  .research-card {
    min-height: 310px;
  }

  .research-card h3 {
    margin-top: 68px;
  }

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

  .about-copy {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .site-header {
    width: calc(100% - 32px);
    max-width: calc(100vw - 32px);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
  }

  .wordmark {
    min-width: 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: calc(100vw - 32px);
    gap: 0;
    overflow-x: auto;
    border-top: 1px solid var(--line-soft);
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 13px 22px 13px 0;
    font-size: 12px;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .home-hero {
    padding-top: 72px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 70px);
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .signal-card {
    min-height: 400px;
    padding: 20px;
    border-radius: 24px;
  }

  .signal {
    height: 230px;
    gap: 6px;
  }

  .section-heading {
    display: grid;
    gap: 24px;
    align-items: start;
  }

  .section-heading h2 {
    text-align: center;
  }

  .portal-card,
  .research-card {
    border-radius: 22px;
  }

  .page-hero {
    padding-block: 80px 96px;
  }

  .page-hero-grid {
    width: 100%;
    max-width: calc(100vw - 32px);
    gap: 36px;
    margin-top: 40px;
  }

  .page-hero h1 {
    width: 100%;
    max-width: calc(100vw - 32px);
    font-size: clamp(36px, 10.5vw, 44px);
    line-height: 1.12;
    word-break: break-word;
  }

  .process-list,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-list li {
    min-height: 110px;
  }

  .track-info > span:last-child {
    display: none;
  }

  .feature-list li,
  .roadmap-list li {
    grid-template-columns: 44px 1fr;
    padding-inline: 16px;
  }

  .stack-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related-link {
    align-items: flex-start;
  }

  .site-footer {
    display: grid;
    align-items: start;
  }
}

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

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