:root {
  --bg: #06080b;
  --bg-2: #0c1117;
  --ink: #f3efe7;
  --muted: #9ca8b3;
  --soft: #c9d0d6;
  --line: rgba(233, 238, 241, 0.16);
  --line-strong: rgba(233, 238, 241, 0.28);
  --panel: rgba(11, 16, 22, 0.74);
  --panel-solid: #10161d;
  --accent: #d7b56d;
  --accent-2: #79d7d2;
  --danger: #c77364;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
  --font-ui: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(165deg, #05070a 0%, #0b1016 48%, #070a0e 100%);
  background-size: 88px 88px, 88px 88px, auto;
  font-family: var(--font-ui);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(121, 215, 210, 0.14), transparent 34rem),
    radial-gradient(ellipse at 82% 0%, rgba(215, 181, 109, 0.13), transparent 30rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.34) 100%);
  pointer-events: none;
}

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

button {
  font: inherit;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 32%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px);
  mix-blend-mode: screen;
}

.cursor-line {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(215, 181, 109, 0.8);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, width 180ms ease, height 180ms ease;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.header {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  width: min(1200px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 11, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.header[data-reveal] {
  transform: translateX(-50%) translateY(18px);
}

.header[data-reveal].is-visible {
  transform: translateX(-50%) translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.3));
}

.brand-copy {
  min-width: 0;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.header nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--soft);
  font-size: 14px;
}

.header a {
  position: relative;
}

.header nav a::after,
.header-mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.header nav a:hover::after,
.header-mail:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-mail {
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: end;
  gap: 70px;
  min-height: 92svh;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 160px 0 70px;
}

.hero::before {
  content: "STARRAY";
  position: absolute;
  right: -2vw;
  top: 18vh;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(92px, 18vw, 260px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(56px, 8.4vw, 122px);
  line-height: 0.97;
  text-wrap: balance;
}

.slogan {
  width: fit-content;
  margin: -8px 0 24px;
  padding: 8px 14px;
  border-left: 2px solid var(--accent);
  color: var(--accent-2);
  background: rgba(121, 215, 210, 0.07);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 0;
  color: #d4d9dc;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.82;
}

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

.action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, transform 120ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 48%, transparent 58%);
  transform: translateX(-105%);
  transition: transform 520ms ease;
}

.action:hover::before {
  transform: translateX(105%);
}

.action-primary {
  color: #090b0e;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 rgba(215, 181, 109, 0);
}

.action-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.action:hover {
  box-shadow: 0 16px 44px rgba(215, 181, 109, 0.16);
}

.action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  padding-bottom: 8px;
}

.signal-readout {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.signal-readout span,
.module-panel span,
.proof-line span,
.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-readout strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.28;
}

.hero-aside dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.hero-aside div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.hero-aside dt {
  color: var(--accent-2);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.hero-aside dd {
  margin: 9px 0 0;
  color: var(--muted);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.ticker span {
  padding: 18px 34px;
  color: rgba(243, 239, 231, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 44px;
}

.section-head.compact {
  grid-template-columns: 0.34fr 1fr;
}

.section-head h2,
.contact-copy h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 5.5vw, 74px);
  line-height: 1.08;
  text-wrap: balance;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1px 30px;
}

.work-item {
  display: grid;
  grid-template-columns: 70px 0.52fr 0.8fr;
  gap: 24px;
  align-items: center;
  min-height: 128px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  cursor: pointer;
  transition: color 220ms ease, padding-left 220ms ease, border-color 220ms ease;
}

.work-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.work-item:hover,
.work-item.active {
  padding-left: 18px;
  color: var(--ink);
  border-color: var(--accent);
}

.work-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.work-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.3;
}

.work-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.module-panel {
  position: sticky;
  top: 120px;
  align-self: start;
  min-height: 514px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.12), transparent 36%),
    rgba(6, 8, 11, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.module-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.module-panel::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 215, 210, 0.72), transparent);
  opacity: 0.72;
  transform: translateX(-55%);
  pointer-events: none;
}

.module-panel strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 33px;
  line-height: 1.24;
}

.module-panel p {
  margin: 18px 0 0;
  color: var(--soft);
  line-height: 1.78;
}

.module-bars {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 14px;
}

.module-bars i {
  display: block;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform-origin: left center;
}

.module-bars i::before {
  content: "";
  display: block;
  width: var(--level);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  animation: barIn 900ms ease both;
}

.system {
  padding-top: 70px;
}

.system-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}

.path {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.path span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 215, 210, 0.52), transparent);
  animation: pathSweep 6s linear infinite;
}

.path span:nth-child(1) {
  left: 0;
  top: 28%;
  width: 100%;
}

.path span:nth-child(2) {
  left: 0;
  top: 58%;
  width: 100%;
  animation-delay: -2s;
}

.path span:nth-child(3) {
  left: 0;
  top: 82%;
  width: 100%;
  animation-delay: -4s;
}

.system-step {
  position: relative;
  min-height: 320px;
  padding: 28px;
  border: 0;
  color: var(--soft);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel-solid);
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.system-step::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.system-step:hover,
.system-step.active {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.14), transparent 42%),
    var(--panel-solid);
}

.system-step.active::after,
.system-step:hover::after {
  transform: scaleX(1);
}

.system-step small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.system-step strong {
  display: block;
  margin-top: 96px;
  font-family: var(--font-display);
  font-size: 27px;
}

.system-step span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.system-detail {
  display: grid;
  grid-template-columns: 0.28fr 0.42fr 1fr;
  gap: 34px;
  align-items: start;
  padding: 30px 0 0;
  border-bottom: 1px solid var(--line);
}

.system-detail p:first-child {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.system-detail h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.3;
}

.system-detail p:last-child {
  margin: 0 0 30px;
  color: var(--soft);
  line-height: 1.8;
}

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding-top: 40px;
}

.proof-line {
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.proof-line strong {
  display: block;
  margin-top: 60px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.34;
}

.contact {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding-top: 70px;
}

.contact-copy p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.82;
}

.contact-card {
  position: relative;
  display: block;
  min-height: 202px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(121, 215, 210, 0.11), transparent 38%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: border-color 220ms ease, background 220ms ease, transform 120ms ease;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(215, 181, 109, 0.1), transparent 34%),
    rgba(6, 8, 11, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.contact-intro,
.contact-routes div {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.contact-intro {
  grid-row: span 2;
  min-height: 420px;
  padding: 28px;
}

.contact-intro span,
.contact-routes span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-intro strong {
  display: block;
  max-width: 280px;
  margin-top: 78px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.26;
}

.contact-intro p {
  max-width: 300px;
  margin: 22px 0 0;
  color: var(--soft);
  line-height: 1.82;
}

.contact-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-routes div {
  min-height: 200px;
  padding: 22px;
  border: 0;
}

.contact-routes strong {
  display: block;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
}

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

.contact-card:hover {
  border-color: rgba(215, 181, 109, 0.58);
  background:
    linear-gradient(135deg, rgba(121, 215, 210, 0.16), transparent 40%),
    rgba(255, 255, 255, 0.055);
}

.contact-card strong {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-card svg {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer div {
  display: grid;
  gap: 10px;
}

.footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
}

.footer nav {
  display: flex;
  justify-content: end;
  gap: 24px;
  color: var(--soft);
}

.footer nav a {
  transition: color 220ms ease;
}

.footer nav a:hover {
  color: var(--accent);
}

.footer > span {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(233, 238, 241, 0.1);
}

[data-reveal] {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 760ms ease, filter 760ms ease;
  will-change: opacity, filter, transform;
}

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

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

@keyframes pathSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes barIn {
  from {
    transform: scaleX(0);
  }
}

@media (max-width: 980px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .header nav {
    display: none;
  }

  .hero,
  .work-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    grid-row: auto;
    min-height: 270px;
  }

  .contact-intro strong {
    margin-top: 46px;
  }

  .hero-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }

  .signal-readout {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .module-panel {
    position: relative;
    top: auto;
    min-height: 380px;
  }

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

  .system-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .cursor-line {
    display: none;
  }

  .header {
    top: 10px;
    width: calc(100% - 24px);
    padding: 11px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand small,
  .brand strong,
  .header-mail {
    display: none;
  }

  .hero,
  .section,
  .footer {
    width: min(100% - 24px, 1200px);
  }

  .hero {
    min-height: auto;
    padding: 118px 0 34px;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .slogan {
    font-size: clamp(22px, 7vw, 32px);
  }

  .hero-text,
  .contact-copy p:last-child {
    font-size: 16px;
  }

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

  .hero-aside {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .signal-readout strong {
    font-size: 22px;
  }

  .hero-aside dl {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }

  .hero-aside div {
    padding: 0;
    border-bottom: 0;
  }

  .hero-aside dt {
    font-size: 28px;
  }

  .hero-aside dd {
    font-size: 12px;
  }

  .section {
    padding: 82px 0;
  }

  .section-head,
  .section-head.compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-head h2,
  .contact-copy h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .work-item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 22px 0;
  }

  .work-item p {
    grid-column: 2;
  }

  .work-item:hover,
  .work-item.active {
    padding-left: 8px;
  }

  .system-board,
  .proof,
  .contact-routes {
    grid-template-columns: 1fr;
  }

  .system-step {
    min-height: 220px;
  }

  .system-step strong {
    margin-top: 54px;
  }

  .proof-line strong {
    margin-top: 38px;
  }

  .contact-card {
    min-height: 210px;
  }

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

  .footer nav {
    justify-content: start;
    flex-wrap: wrap;
  }
}

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