@font-face {
  font-family: "Inter Variable";
  src: url("./assets/inter-latin-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-background: #03070a;
  --color-frame: #080d13;
  --color-frame-deep: #060b10;
  --color-surface: #0b1118;
  --color-text: #f4f6f7;
  --color-muted: #8a919a;
  --color-dim: #555d67;
  --color-line: #202933;
  --color-line-soft: #141c24;
  --color-accent: #58db94;
  --color-accent-muted: #2f9d68;
  --color-accent-soft: #82e9af;
  --color-accent-rgb: 88 219 148;
  --accent-hue-shift: 0deg;
  --frame-radius: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="blue"] {
  --color-accent: #2563eb;
  --color-accent-muted: #1d4ed8;
  --color-accent-soft: #60a5fa;
  --color-accent-rgb: 37 99 235;
  --accent-hue-shift: 68deg;
}

:root[data-theme="mint"] {
  --color-accent: #58db94;
  --color-accent-muted: #2f9d68;
  --color-accent-soft: #82e9af;
  --color-accent-rgb: 88 219 148;
  --accent-hue-shift: 0deg;
}

:root[data-theme="teal"] {
  --color-accent: #0d9488;
  --color-accent-muted: #0f766e;
  --color-accent-soft: #2dd4bf;
  --color-accent-rgb: 13 148 136;
  --accent-hue-shift: 24deg;
}

:root[data-theme="violet"] {
  --color-accent: #a855f7;
  --color-accent-muted: #7e22ce;
  --color-accent-soft: #c084fc;
  --color-accent-rgb: 168 85 247;
  --accent-hue-shift: 124deg;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-background);
  scroll-behavior: smooth;
  scrollbar-color: #29323d var(--color-background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 24px 40px;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Inter Variable", Inter, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.site-frame {
  width: 100%;
  min-height: calc(100svh - 48px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--frame-radius);
  background: var(--color-frame);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: 102px minmax(0, 1fr) 54px;
}

.site-header {
  position: relative;
  z-index: 20;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 104px;
  align-items: center;
}

.brand {
  width: 44px;
  height: 44px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  transition: transform 360ms var(--ease-out);
}

.brand-mark {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.brand-mark__tile {
  fill: var(--color-surface);
  stroke: rgb(var(--color-accent-rgb) / 0.3);
  stroke-width: 2;
  transition: fill 260ms ease, stroke 260ms ease;
}

.brand-mark__letter {
  fill: var(--color-text);
}

.brand-mark__slash {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgb(var(--color-accent-rgb) / 0.34));
  transition: stroke 260ms ease, filter 260ms ease;
}

.brand:hover .brand-mark__tile {
  fill: rgb(var(--color-accent-rgb) / 0.08);
  stroke: rgb(var(--color-accent-rgb) / 0.68);
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(34px, 4.1vw, 64px);
  height: 100%;
}

.primary-nav a {
  position: relative;
  padding: 14px 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 470;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text);
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 180ms ease, transform 260ms var(--ease-out);
}

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

.primary-nav a[aria-current="page"]::after,
.primary-nav a:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-controls {
  position: relative;
  justify-self: end;
  margin-right: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-cycle {
  --theme-turn: 90deg;
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #070c12;
  cursor: pointer;
  transition: border-color 180ms ease, transform 300ms var(--ease-out);
}

.theme-cycle:hover {
  border-color: #45515d;
  transform: translateY(-1px);
}

.theme-cycle__orbit,
.theme-cycle__core {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.theme-cycle__orbit {
  inset: 5px;
  background: conic-gradient(
    #2563eb 0 25%,
    #58db94 25% 50%,
    #0d9488 50% 75%,
    #a855f7 75% 100%
  );
  opacity: 0.72;
  transform: rotate(var(--theme-turn));
  transition: transform 520ms var(--ease-out), opacity 180ms ease;
}

.theme-cycle:hover .theme-cycle__orbit {
  opacity: 1;
}

.theme-cycle__core {
  inset: 10px;
  border: 2px solid #070c12;
  background: var(--color-accent);
  box-shadow: 0 0 14px rgb(var(--color-accent-rgb) / 0.42);
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 420ms var(--ease-out);
}

.theme-cycle.is-changing .theme-cycle__core {
  transform: scale(1.22);
}

.theme-cycle__label {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--color-line);
  border-radius: 7px;
  background: #090f15;
  color: var(--color-text);
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 240ms var(--ease-out);
}

.theme-cycle.is-changing .theme-cycle__label {
  opacity: 0.9;
  transform: translateY(0);
}

.motion-toggle {
  position: relative;
  width: 47px;
  height: 28px;
  padding: 0;
  border: 1px solid #303a45;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.motion-toggle span {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 12px;
  height: 12px;
  border: 4px solid #232c35;
  border-radius: 50%;
  background: #dbe0e3;
  box-shadow: 0 0 12px rgb(var(--color-accent-rgb) / 0.25);
  transition: left 300ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.motion-toggle[aria-pressed="true"] {
  border-color: #3a4854;
}

.motion-toggle[aria-pressed="true"] span {
  left: 26px;
  border-color: rgb(var(--color-accent-rgb) / 0.18);
  background: var(--color-accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--color-line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.menu-toggle .menu-close-icon,
.menu-toggle[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.mobile-menu {
  position: absolute;
  top: 76px;
  right: 14px;
  left: 14px;
  z-index: 30;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #0a1016;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.46);
}

.mobile-menu a {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px;
  color: var(--color-muted);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: #111923;
  color: var(--color-text);
}

.mobile-menu small {
  color: var(--color-accent);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.side-rail {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  border-right: 1px solid var(--color-line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.rail-links a {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  opacity: 0.42;
  transition: opacity 180ms ease, background-color 180ms ease, transform 360ms var(--ease-out);
}

.rail-links a::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text);
  opacity: 0;
  transform: translateX(-50%);
}

.rail-links a:hover,
.rail-links a:focus-visible,
.rail-links a[aria-current="page"] {
  opacity: 1;
}

.rail-links a[aria-current="page"]::after {
  opacity: 1;
}

.rail-links img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
}

.page-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(430px, 1fr) clamp(250px, 30vh, 300px);
}

.hero {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #04070e;
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  padding: 32px clamp(46px, 5.8vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 5;
  align-self: center;
  padding-bottom: 2px;
  transform: translateY(10px);
}

.availability {
  margin: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 460;
  letter-spacing: -0.01em;
}

.availability > span:first-child {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgb(var(--color-accent-rgb) / 0.56);
}

.hero h1 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(54px, 4.7vw, 72px);
  font-weight: 690;
  letter-spacing: -0.057em;
  line-height: 1.08;
}

:lang(zh-CN) .hero h1 {
  font-size: clamp(50px, 4.15vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.iterative-word {
  color: #707781;
}

.iterative-word.is-decrypting {
  color: #98a0a8;
}

.hero-intro {
  max-width: 390px;
  margin: 30px 0 0;
  color: #a2a8af;
  font-size: 15px;
  font-weight: 410;
  letter-spacing: -0.012em;
  line-height: 1.68;
}

.primary-cta {
  width: fit-content;
  min-width: 188px;
  min-height: 46px;
  margin-top: 30px;
  padding: 0 18px 0 20px;
  border: 1px solid #303944;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 540;
  transition: border-color 180ms ease, background-color 180ms ease, transform 360ms var(--ease-out);
}

.primary-cta:hover {
  border-color: #52606c;
  background: #0e151d;
}

.primary-cta img,
.feature > a img,
.share-button img {
  width: 17px;
  height: 17px;
  filter: invert(72%) sepia(72%) saturate(475%) hue-rotate(95deg) brightness(94%) hue-rotate(var(--accent-hue-shift));
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
}

.threads-layer {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: -3%;
  bottom: 4%;
  left: -8%;
  mix-blend-mode: screen;
  opacity: 0.16;
  pointer-events: none;
}

.threads-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cube-stage {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: min(560px, 47vw);
  aspect-ratio: 1;
  transform: translate(-56%, -46%);
  pointer-events: none;
}

.hero-cube {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 26px 42px rgb(0 0 0 / 0.42));
  transform: translate3d(var(--cube-x, 0), var(--cube-y, 0), 0);
  transition: transform 900ms var(--ease-out), opacity 300ms ease, filter 300ms ease;
  will-change: transform;
}

.cube-stop-accent {
  stop-color: var(--color-accent);
  transition: stop-color 280ms ease;
}

.cube-halo {
  opacity: 0.82;
  transform-box: fill-box;
  transform-origin: center;
  animation: cube-halo-breathe 6.4s ease-in-out infinite;
}

.cube-shadow {
  fill: rgb(0 0 0 / 0.72);
}

.cube-body {
  transform-box: fill-box;
  transform-origin: center;
}

.cube-face {
  stroke-linejoin: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: stroke 280ms ease;
}

.cube-face--top {
  fill: url(#cube-top-gradient);
  stroke: rgb(226 236 245 / 0.18);
}

.cube-face--left {
  fill: url(#cube-left-gradient);
  stroke: rgb(var(--color-accent-rgb) / 0.28);
}

.cube-face--right {
  fill: url(#cube-right-gradient);
  stroke: rgb(203 218 231 / 0.12);
}

.cube-sheen {
  fill: url(#cube-sheen-gradient);
  opacity: 0.62;
}

.cube-reflection {
  fill: none;
  stroke: rgb(255 255 255 / 0.09);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.cube-edge {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cube-edge--quiet {
  stroke: rgb(202 219 231 / 0.22);
  stroke-width: 1.15;
}

.cube-edge--hot {
  stroke: var(--color-accent);
  stroke-width: 2.15;
  opacity: 0.88;
  transition: stroke 280ms ease;
}

.cube-junction {
  fill: var(--color-accent);
  opacity: 0.92;
  transition: fill 280ms ease;
}

@keyframes cube-halo-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.035);
  }
}

[data-effects="on"] .hero-cube {
  animation: cube-float 7s ease-in-out infinite;
}

@keyframes cube-float {
  0%,
  100% {
    translate: 0 -4px;
  }

  50% {
    translate: 0 7px;
  }
}

.object-readout {
  position: absolute;
  right: 10%;
  bottom: 10%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66707a;
  font-size: 8px;
  font-weight: 620;
  letter-spacing: 0.18em;
  opacity: 0;
  transition: opacity 300ms ease;
}

.object-readout b {
  color: var(--color-accent);
  font-weight: 650;
}

.hero-visual:hover .object-readout {
  opacity: 0.66;
}

.feature-row {
  min-width: 0;
  border-top: 1px solid var(--color-line-soft);
  padding: clamp(44px, 5vw, 74px) clamp(46px, 5.8vw, 92px) 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(42px, 7vw, 112px);
}

.feature {
  min-width: 0;
  align-self: start;
  scroll-margin-top: 120px;
}

.feature-icon {
  width: 29px;
  height: 29px;
  margin-bottom: 24px;
  filter: invert(72%) sepia(72%) saturate(475%) hue-rotate(95deg) brightness(94%) hue-rotate(var(--accent-hue-shift));
  opacity: 0.9;
}

.feature h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 570;
  letter-spacing: -0.025em;
}

.feature p {
  min-height: 45px;
  margin: 12px 0 0;
  color: #777f88;
  font-size: 14px;
  line-height: 1.65;
}

.feature > a {
  width: fit-content;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

.feature > a img {
  width: 15px;
  height: 15px;
  transition: transform 300ms var(--ease-out);
}

.feature > a:hover {
  color: var(--color-accent-soft);
}

.feature > a:hover img {
  transform: translateX(5px);
}

.site-footer {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #69717b;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.runtime-status {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.14em;
  font-size: 8px;
  opacity: 0.72;
}

.runtime-status img {
  width: 38px;
  height: 20px;
  filter: invert(72%) sepia(72%) saturate(475%) hue-rotate(95deg) brightness(94%) hue-rotate(var(--accent-hue-shift));
}

.detail-dialog {
  width: min(920px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #29333e;
  border-radius: 18px;
  background: #090f15;
  color: var(--color-text);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.7);
}

.detail-dialog::backdrop {
  background: rgba(1, 4, 7, 0.82);
  backdrop-filter: blur(10px);
}

.detail-dialog[open] {
  animation: dialog-in 420ms var(--ease-out) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-shell {
  min-height: 580px;
  display: grid;
  grid-template-rows: 72px 1fr;
}

.dialog-header {
  padding: 0 26px;
  border-bottom: 1px solid var(--color-line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-header p {
  margin: 0;
  color: #6d7680;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.dialog-header p span {
  color: var(--color-accent);
}

.dialog-close {
  width: 40px;
  height: 40px;
  padding: 11px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.dialog-close:hover {
  background: #111922;
  opacity: 1;
}

.dialog-close img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.dialog-panel {
  align-self: center;
  max-width: 760px;
  padding: 58px 70px 72px;
}

.dialog-kicker {
  margin-bottom: 20px;
  color: var(--color-accent);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.dialog-panel h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 660;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.dialog-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: #929aa3;
  font-size: 15px;
  line-height: 1.7;
}

.system-list {
  max-width: 610px;
  margin: 38px 0 0;
  border-top: 1px solid var(--color-line);
}

.system-list div {
  min-height: 48px;
  border-bottom: 1px solid var(--color-line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  font-size: 12px;
}

.system-list dt {
  color: #5f6872;
}

.system-list dd {
  margin: 0;
  color: #c7ccd1;
}

.thought-list {
  max-width: 610px;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.thought-list li {
  min-height: 58px;
  border-bottom: 1px solid var(--color-line-soft);
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
}

.thought-list span {
  color: var(--color-accent);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.thought-list p {
  margin: 0;
  color: #c7ccd1;
  font-size: 13px;
}

.about-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.share-button,
.email-link {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #303944;
  border-radius: 10px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 540;
  cursor: pointer;
}

.share-button:hover,
.email-link:hover {
  background: #101821;
  border-color: #4b5966;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #0b1219;
  color: #c8cdd2;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-size: 12px;
}

body.is-dialog-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  body {
    height: 100svh;
    overflow: hidden;
  }

  .site-frame {
    height: calc(100svh - 48px);
    min-height: 0;
  }
}

.no-js .motion-toggle,
.no-js .menu-toggle {
  display: none;
}

.js:not(.is-ready) .hero-copy,
.js:not(.is-ready) .hero-visual,
.js:not(.is-ready) .feature-row {
  opacity: 0;
}

.js.is-ready .hero-copy,
.js.is-ready .hero-visual,
.js.is-ready .feature-row {
  opacity: 1;
  transition: opacity 700ms ease;
}

.js.is-ready .hero-visual {
  transition-delay: 120ms;
}

.js.is-ready .feature-row {
  transition-delay: 220ms;
}

[data-effects="off"] .threads-layer {
  display: none;
}

[data-effects="off"] .hero-cube {
  animation: none;
  transform: none !important;
  translate: none !important;
}

[data-effects="off"] .cube-halo {
  animation: none;
}

@media (max-width: 1180px) {
  body {
    padding: 20px;
  }

  .site-frame {
    width: 100%;
    margin: 0;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .site-header {
    grid-template-columns: 82px minmax(0, 1fr) 96px;
  }

  .header-controls {
    margin-right: 24px;
  }

  .hero {
    grid-template-columns: minmax(420px, 1fr) minmax(350px, 0.9fr);
    padding-right: 40px;
    padding-left: 54px;
  }

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

  .feature-row {
    padding-right: 44px;
    padding-left: 54px;
    gap: 42px;
  }

  .cube-stage {
    width: min(560px, 55vw);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .site-frame {
    height: calc(100svh - 40px);
  }
}

@media (min-width: 901px) and (max-height: 840px) {
  body {
    padding: 12px 20px;
  }

  .site-frame {
    height: calc(100svh - 24px);
    grid-template-rows: 78px minmax(0, 1fr) 38px;
  }

  .site-header {
    grid-template-rows: 78px;
  }

  .page-main {
    grid-template-rows: minmax(0, 1fr) clamp(178px, 26vh, 220px);
  }

  .rail-links {
    gap: 12px;
  }

  .rail-links a {
    width: 38px;
    height: 38px;
  }

  .rail-links img {
    width: 18px;
    height: 18px;
  }

  .hero {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero-copy {
    transform: none;
  }

  .availability {
    margin-bottom: 18px;
    font-size: 10px;
  }

  :lang(zh-CN) .hero h1 {
    font-size: clamp(44px, 4vw, 52px);
    line-height: 1.1;
  }

  .hero-intro {
    max-width: 330px;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.55;
  }

  .primary-cta {
    min-height: 42px;
    margin-top: 18px;
  }

  .cube-stage {
    width: min(470px, 43vw);
  }

  .feature-row {
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .feature-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 14px;
  }

  .feature h2 {
    font-size: 15px;
  }

  .feature p {
    min-height: 34px;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.5;
  }

  .feature > a {
    margin-top: 12px;
    font-size: 12px;
  }

  .site-footer {
    font-size: 9px;
  }
}

@media (max-width: 900px) {
  .site-frame {
    min-height: 820px;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: 90px minmax(0, 1fr) 48px;
  }

  .site-header {
    grid-template-columns: 72px minmax(0, 1fr) 96px;
  }

  .header-controls {
    margin-right: 19px;
  }

  .primary-nav {
    gap: 28px;
  }

  .page-main {
    grid-template-rows: minmax(430px, 1fr) 270px;
  }

  .hero {
    grid-template-columns: minmax(380px, 1fr) minmax(260px, 0.76fr);
    padding: 30px 34px;
  }

  .hero h1 {
    font-size: clamp(46px, 6.4vw, 58px);
  }

  .hero-intro {
    max-width: 370px;
  }

  .cube-stage {
    width: 500px;
    transform: translate(-49%, -48%);
  }

  .feature-row {
    padding: 44px 34px 30px;
    gap: 28px;
  }

  .feature-icon {
    margin-bottom: 18px;
  }

  .feature p {
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-behavior: auto;
  }

  body {
    min-height: 100dvh;
    padding: 0;
  }

  .site-frame {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    overflow: visible;
    border-radius: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    grid-column: 1;
    grid-row: 1;
    min-height: 76px;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    border-radius: 0;
    background: rgba(8, 13, 19, 0.94);
    backdrop-filter: blur(14px);
  }

  .brand {
    width: 42px;
    height: 42px;
    font-size: 23px;
  }

  .primary-nav,
  .motion-toggle,
  .side-rail {
    display: none;
  }

  .header-controls {
    grid-column: 3;
    margin-right: 0;
    padding-right: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .page-main {
    grid-column: 1;
    grid-row: 2;
    display: block;
  }

  .hero {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 54px 26px 28px;
  }

  .hero-copy {
    order: 1;
    width: 100%;
    transform: none;
  }

  .availability {
    margin-bottom: 26px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.4vw, 58px);
    line-height: 1.04;
  }

  :lang(zh-CN) .hero h1 {
    font-size: clamp(40px, 11vw, 48px);
    line-height: 1.17;
  }

  .hero-intro {
    max-width: 330px;
    margin-top: 22px;
    font-size: 13px;
  }

  .primary-cta {
    min-height: 48px;
    margin-top: 25px;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    min-height: 285px;
    margin-top: 18px;
  }

  .threads-layer {
    top: -4%;
    right: -20%;
    bottom: -5%;
    left: -20%;
    opacity: 0.11;
  }

  .cube-stage {
    width: min(460px, 126vw);
    transform: translate(-50%, -50%);
  }

  .object-readout {
    display: none;
  }

  .feature-row {
    padding: 44px 26px 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature {
    min-height: 210px;
    padding: 34px 0;
    border-bottom: 1px solid var(--color-line-soft);
  }

  .feature:first-child {
    padding-top: 0;
  }

  .feature:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .feature-icon {
    margin-bottom: 20px;
  }

  .feature p {
    max-width: 310px;
    min-height: 0;
    font-size: 13px;
  }

  .feature > a {
    margin-top: 20px;
  }

  .site-footer {
    grid-column: 1;
    grid-row: 3;
    min-height: 52px;
    padding: 0 25px;
    border-top: 1px solid var(--color-line-soft);
  }

  .runtime-status span {
    display: none;
  }

  .detail-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 15px;
  }

  .dialog-shell {
    min-height: min(720px, calc(100dvh - 22px));
  }

  .dialog-header {
    padding: 0 18px;
  }

  .dialog-panel {
    align-self: start;
    max-width: none;
    padding: 46px 24px 56px;
    overflow-y: auto;
  }

  .dialog-panel h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .dialog-lead {
    font-size: 14px;
  }

  .system-list div {
    grid-template-columns: 0.86fr 1.14fr;
  }

  .about-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .share-button,
  .email-link {
    justify-content: space-between;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  :lang(zh-CN) .hero h1 {
    font-size: 38px;
  }

  .feature-row {
    padding-right: 20px;
    padding-left: 20px;
  }
}

.error-page {
  min-height: 100dvh;
}

.error-shell {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--frame-radius);
  background:
    radial-gradient(circle at 70% 48%, rgb(var(--color-accent-rgb) / 0.055), transparent 31%),
    var(--color-frame);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  display: grid;
  grid-template-rows: 88px minmax(0, 1fr) 48px;
}

.error-header,
.error-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}

.error-header {
  border-bottom: 1px solid var(--color-line-soft);
}

.error-brand {
  margin: 0;
}

.error-header > p {
  margin: 0;
  color: var(--color-dim);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.18em;
}

.error-theme {
  width: 34px;
  height: 34px;
}

.error-content {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 6vw, 110px);
  padding: clamp(56px, 7vh, 96px) clamp(48px, 7vw, 128px);
}

.error-copy {
  position: relative;
  z-index: 3;
  max-width: 570px;
}

.error-kicker {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
}

.error-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 16px rgb(var(--color-accent-rgb) / 0.55);
}

.error-copy h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(56px, 6.2vw, 94px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.error-lead {
  max-width: 470px;
  margin: 30px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.85;
}

.error-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.error-home {
  width: 178px;
  margin: 0;
}

.error-back {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 180ms ease;
}

.error-back:hover {
  color: var(--color-text);
}

.error-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.error-code {
  position: relative;
  z-index: 0;
  color: transparent;
  font-size: clamp(150px, 19vw, 290px);
  font-weight: 760;
  letter-spacing: -0.1em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgb(var(--color-accent-rgb) / 0.34);
  text-shadow: 0 0 64px rgb(var(--color-accent-rgb) / 0.055);
  transform: translateX(-0.04em);
}

.error-visual svg {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  width: min(660px, 112%);
  overflow: visible;
  transform: translate(-50%, -44%);
}

.error-route {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgb(var(--color-accent-rgb) / 0.34));
}

.error-route--dim {
  stroke: rgb(var(--color-accent-rgb) / 0.12);
  stroke-width: 1;
  filter: none;
}

.error-route--broken {
  stroke-dasharray: 5 13;
  opacity: 0.46;
}

.error-node {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 8px rgb(var(--color-accent-rgb) / 0.7));
}

.error-node--empty {
  fill: var(--color-frame);
  stroke: var(--color-accent);
  stroke-width: 2;
}

.error-cursor {
  fill: var(--color-text);
  stroke: var(--color-frame);
  stroke-width: 4;
  stroke-linejoin: round;
  transform-origin: 320px 240px;
  transform: rotate(-9deg);
}

.error-visual > p {
  position: absolute;
  right: 6%;
  bottom: 22px;
  z-index: 2;
  margin: 0;
  color: var(--color-dim);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.error-footer {
  border-top: 1px solid var(--color-line-soft);
  color: var(--color-dim);
  font-size: 9px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .error-content {
    min-height: 680px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 54px 48px 32px;
  }

  .error-copy {
    max-width: 620px;
  }

  .error-visual {
    min-height: 280px;
  }

  .error-code {
    font-size: clamp(150px, 29vw, 230px);
  }
}

@media (max-width: 720px) {
  .error-page {
    padding: 0;
  }

  .error-shell {
    min-height: 100dvh;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    grid-template-rows: 76px minmax(0, 1fr) 48px;
  }

  .error-header,
  .error-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .error-header > p {
    display: none;
  }

  .error-content {
    min-height: 720px;
    padding: 48px 26px 28px;
  }

  .error-kicker {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .error-copy h1 {
    max-width: 340px;
    font-size: clamp(48px, 15vw, 64px);
    line-height: 1.04;
  }

  .error-lead {
    margin-top: 22px;
    font-size: 13px;
  }

  .error-actions {
    margin-top: 28px;
    align-items: stretch;
    flex-direction: column;
  }

  .error-home,
  .error-back {
    width: 100%;
  }

  .error-back {
    border: 1px solid var(--color-line-soft);
    border-radius: 10px;
  }

  .error-visual {
    min-height: 250px;
  }

  .error-visual svg {
    width: 130%;
  }

  .error-visual > p {
    right: 0;
    bottom: 10px;
  }

  .error-footer span:last-child {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .threads-layer {
    display: none;
  }

  .hero-cube {
    animation: none !important;
    transform: none !important;
    translate: none !important;
  }
}
