:root {
  --bg: #050608;
  --surface: #0b0e10;
  --surface-2: #11171d;
  --ink: #f4f1e8;
  --muted: #a7a59b;
  --dim: #73766f;
  --line: rgba(244, 241, 232, 0.12);
  --line-strong: rgba(244, 241, 232, 0.24);
  --volt: #d8ff36;
  --blue: #69b7ff;
  --clay: #d36d44;
  --green: #39d38a;
  --gold: #f5c46b;
  --font: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;
  --display: "Fraunces", "Noto Serif SC", Georgia, serif;
  --display-cn: "Noto Serif SC", "Fraunces", "Songti SC", serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1240px;
  --shadow-quiet: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: #050608;
  background-image:
    linear-gradient(180deg,
      rgba(5, 6, 8, 0.42) 0%,
      rgba(5, 6, 8, 0.6) 36%,
      rgba(5, 6, 8, 0.86) 78%,
      rgba(5, 6, 8, 0.94) 100%),
    url("assets/background.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "ss01", "tnum";
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

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

button {
  border: 0;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

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

h1 em,
h2 em,
h3 em,
p em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  background-image: linear-gradient(115deg, var(--volt) 0%, #f9ffac 42%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.04em;
}

p em {
  background-image: none;
  color: var(--volt);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  pointer-events: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.84), rgba(5, 6, 8, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(#000 0 62%, transparent 100%);
}

.brand,
.nav-links {
  pointer-events: auto;
}

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

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(58, 214, 255, 0.32));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.24s var(--ease);
}

.nav-links a:hover {
  color: var(--volt);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--volt);
  transition: right 0.34s var(--ease);
}

.nav-links a:hover::after {
  right: 0;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(900px) rotateX(58deg) translateY(22%);
  transform-origin: center bottom;
  opacity: 0.24;
}

#string-field {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

#string-field canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.76) 0%, rgba(5, 6, 8, 0.3) 44%, rgba(5, 6, 8, 0.52) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.14) 0%, rgba(5, 6, 8, 0.02) 43%, rgba(5, 6, 8, 0.82) 100%);
}

.hero-mark {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(72px, 10vh, 120px);
  z-index: 4;
  width: min(760px, calc(100vw - var(--gutter) * 2));
  text-align: left;
  pointer-events: none;
}

.pretitle,
.hero-line,
.field-readout,
.field-trigger,
.scroll-hint,
.section-kicker,
.eyebrow,
.footer {
  font-family: var(--mono);
}

.pretitle {
  margin-bottom: 16px;
  color: rgba(244, 241, 232, 0.72);
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.9);
}

.hero-mark h1 {
  font-family: var(--display-cn);
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  color: rgba(244, 241, 232, 0.96);
  text-shadow:
    0 6px 24px rgba(0, 0, 0, 0.72),
    0 0 32px rgba(216, 255, 54, 0.06);
}

.hero-mark h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(34px);
  animation: heroLineIn 1.2s var(--ease) forwards;
}

.hero-mark h1 .line:nth-child(1) { animation-delay: 0.18s; }
.hero-mark h1 .line:nth-child(2) { animation-delay: 0.46s; }

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.pretitle {
  opacity: 0;
  animation: heroLineIn 1s var(--ease) 0.08s forwards;
}

.hero-line {
  margin-top: 20px;
  color: rgba(216, 255, 54, 0.86);
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.18em;
  text-shadow: 0 0 24px rgba(216, 255, 54, 0.25);
  opacity: 0;
  animation: heroLineIn 1s var(--ease) 0.72s forwards;
}

.field-readout {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.field-readout--left {
  left: var(--gutter);
  top: 118px;
}

.field-readout--right {
  right: var(--gutter);
  top: 118px;
  align-items: flex-end;
  text-align: right;
}

.field-trigger {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(46px, 7vh, 82px);
  z-index: 5;
  padding: 10px 18px;
  border: 1px solid rgba(216, 255, 54, 0.34);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.42);
  color: var(--volt);
  font-size: 12px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.field-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--volt);
  box-shadow: 0 0 32px rgba(216, 255, 54, 0.16);
}

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.scroll-hint span {
  display: block;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 241, 232, 0.16);
}

.scroll-hint span::after {
  content: "";
  display: block;
  width: 44%;
  height: 100%;
  background: var(--volt);
  animation: scrollPulse 2.6s var(--ease) infinite;
}

.scroll-hint em {
  font-style: normal;
}

@keyframes scrollPulse {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(250%); }
}

.signal,
.product,
.cooperate {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.signal,
.cooperate {
  position: relative;
}

.signal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, var(--clay), transparent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

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

[data-reveal-item] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

.axis.is-in article:nth-child(1) { --reveal-delay: 0.05s; }
.axis.is-in article:nth-child(2) { --reveal-delay: 0.20s; }
.axis.is-in article:nth-child(3) { --reveal-delay: 0.35s; }

.signal {
  padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 8vw, 120px);
}

.section-kicker {
  margin-bottom: clamp(28px, 5vw, 58px);
  color: var(--volt);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 5vw, 62px);
}

.statement-grid h2,
.product-copy h2,
.cooperate h2 {
  font-family: var(--display-cn);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.18;
}

.statement-grid p,
.product-copy p,
.cooperate p {
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.8;
}

.axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(216, 255, 54, 0.026), transparent 36%, rgba(105, 183, 255, 0.026));
}

.axis article {
  min-height: 300px;
  padding: clamp(30px, 5vw, 64px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.axis article:last-child {
  border-right: 0;
}

.axis article::before {
  content: "";
  position: absolute;
  left: clamp(30px, 5vw, 64px);
  top: clamp(30px, 5vw, 64px);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 255, 54, 0.22);
  transform: rotate(45deg);
  opacity: 0.52;
}

.axis span {
  font-family: var(--mono);
  color: var(--volt);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.axis h3 {
  font-family: var(--display-cn);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.25;
}

.axis p {
  color: var(--muted);
  max-width: 31ch;
}

.product {
  padding: clamp(90px, 12vw, 170px) 0;
}

.product-panel {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(38px, 6vw, 72px);
}

.product-orbit {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.product-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 255, 54, 0.16), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(57, 211, 138, 0.1), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.product-mark {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(216, 255, 54, 0.28));
  animation: markFloat 7s ease-in-out infinite;
}

@keyframes markFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.product-copy {
  max-width: 700px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--volt);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.product-copy h2 {
  margin-bottom: 26px;
}

.text-link,
.contact-link {
  display: inline-flex;
  margin-top: 30px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--volt);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link:hover,
.contact-link:hover {
  color: var(--volt);
  border-color: var(--ink);
}

.cooperate {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.cooperate h2 {
  max-width: 880px;
  font-size: clamp(22px, 2.6vw, 34px);
  margin-bottom: 28px;
}

.cooperate p {
  max-width: 790px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer p {
  max-width: 580px;
}

.footer div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

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

@media (max-width: 1040px) {
  .field-trigger {
    bottom: clamp(72px, 10vh, 110px);
  }

  .hero-mark {
    bottom: 130px;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    gap: 13px;
    font-size: 10px;
  }

  .field-readout--right,
  .field-readout--left {
    display: none;
  }

  .scroll-hint {
    display: none;
  }

  .statement-grid,
  .product-panel {
    grid-template-columns: 1fr;
  }

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

  .axis article {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .axis article:last-child {
    border-bottom: 0;
  }

  .footer {
    flex-direction: column;
  }

  .footer div {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-top: 18px;
  }

  .nav-links {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-mark {
    bottom: 120px;
  }

  .hero-mark h1 {
    font-size: clamp(26px, 7.4vw, 36px);
    line-height: 1.14;
  }

  .pretitle {
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .hero-line {
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .field-trigger {
    right: auto;
    left: var(--gutter);
    bottom: 28px;
  }
}

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