/* Layout: centered cinematic column (max 1200), hero floats in an aurora light field, product window with halo glow, glass bento below */
:root {
  --bg: #0b0a1c;
  --bg-2: #120f28;
  --bg-3: #1a1636;
  --fg: #f4f4f8;
  --fg-2: rgba(244, 244, 248, 0.66);
  --fg-3: rgba(244, 244, 248, 0.42);
  --fg-4: rgba(244, 244, 248, 0.24);
  --line: rgba(255, 255, 255, 0.12);
  --line-hi: rgba(255, 255, 255, 0.26);
  --glass: rgba(255, 255, 255, 0.06);
  --h1: #7c6cff;
  --h2: #ff6fb5;
  --h3: #5ee7ff;
  --h4: #ffb86b;
  --holo: linear-gradient(
    90deg,
    #7c6cff,
    #ff6fb5 35%,
    #ffb86b 55%,
    #5ee7ff 80%,
    #7c6cff
  );
  --font-sans:
    "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grain 1.2s steps(4) infinite;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background: var(--bg);
  overflow: hidden;
}
.sky i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  animation: sky 26s ease-in-out infinite alternate;
}
.sky i:nth-child(1) {
  width: 70vw;
  height: 70vw;
  left: -20vw;
  top: -30vw;
  background: #3a2ab8;
}
.sky i:nth-child(2) {
  width: 60vw;
  height: 60vw;
  right: -20vw;
  top: -10vw;
  background: #7e2a8c;
  animation-delay: -9s;
}
.sky i:nth-child(3) {
  width: 50vw;
  height: 50vw;
  left: 20vw;
  bottom: -25vw;
  background: #135c86;
  animation-delay: -17s;
  opacity: 0.6;
}
.sky i:nth-child(4) {
  width: 40vw;
  height: 40vw;
  right: 5vw;
  bottom: 10vh;
  background: #b3407a;
  opacity: 0.35;
  animation-delay: -4s;
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    transparent 40%,
    rgba(11, 10, 28, 0.75) 100%
  );
}
@keyframes sky {
  to {
    transform: translate(6%, 8%) scale(1.12);
  }
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 1%);
  }
  50% {
    transform: translate(1%, -2%);
  }
  75% {
    transform: translate(-1%, -1%);
  }
  100% {
    transform: translate(2%, 1%);
  }
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
:focus-visible {
  outline: 1px solid var(--h3);
  outline-offset: 3px;
}
.logo {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
}
.holo-text {
  background: var(--holo);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: holo 8s linear infinite;
}
@keyframes holo {
  to {
    background-position: 200% 0;
  }
}

/* nav */
.nav-account {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-login {
  font-size: 13px;
  color: #ddd4ef;
  white-space: nowrap;
}
@media (max-width: 639px) {
  .nav-account {
    gap: 12px;
  }
  .nav .wrap {
    gap: 10px;
  }
  .nav-login {
    font-size: 12px;
  }
  .nav .nav-account .btn {
    padding: 0 11px;
    font-size: 12px;
  }
}
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 64px;
  z-index: 40;
  background: rgba(11, 10, 28, 0.45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 17px;
  white-space: nowrap;
}
.brand .en {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: var(--fg-2);
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.2s;
}
.btn-primary {
  background: #fff;
  color: #0a0a0f;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.5);
}
.btn-glass {
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--fg);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  border-color: var(--line-hi);
  background: rgba(255, 255, 255, 0.06);
}
.btn-holo {
  background: #0a0a0f;
  color: #fff;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.btn-holo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--holo);
  background-size: 200% 100%;
  z-index: -1;
  animation: holo 6s linear infinite;
}
.btn-holo:hover {
  box-shadow: 0 0 40px -6px rgba(124, 108, 255, 0.6);
}
.nav .btn {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

/* hero */
.hero {
  position: relative;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
#aurora,
.aurora-fallback,
#net {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
#net {
  z-index: -1;
  opacity: 0.9;
}
.rings {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(90vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  perspective: 1400px;
}
.rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 40px rgba(124, 108, 255, 0.25),
    inset 0 0 40px rgba(94, 231, 255, 0.08);
  transform-style: preserve-3d;
}
.rings i:nth-child(1) {
  animation: ringA 40s linear infinite;
}
.rings i:nth-child(2) {
  inset: 9%;
  animation: ringB 52s linear infinite;
}
.rings i:nth-child(3) {
  inset: 18%;
  border-color: rgba(255, 255, 255, 0.2);
  animation: ringC 34s linear infinite;
}
.rings i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 14px #fff,
    0 0 30px #5ee7ff;
}
@keyframes ringA {
  from {
    transform: rotateX(72deg) rotateZ(0);
  }
  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}
@keyframes ringB {
  from {
    transform: rotateX(62deg) rotateY(18deg) rotateZ(360deg);
  }
  to {
    transform: rotateX(62deg) rotateY(18deg) rotateZ(0);
  }
}
@keyframes ringC {
  from {
    transform: rotateY(70deg) rotateZ(0);
  }
  to {
    transform: rotateY(70deg) rotateZ(360deg);
  }
}
.aurora-fallback {
  display: none;
  overflow: hidden;
}
.aurora-fallback i {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora-fallback i:nth-child(1) {
  left: -10%;
  top: -20%;
  background: var(--h1);
}
.aurora-fallback {
  display: none !important;
}
.aurora-fallback i:nth-child(2) {
  right: -15%;
  top: -25%;
  background: var(--h2);
  animation-delay: -6s;
}
.aurora-fallback i:nth-child(3) {
  left: 30%;
  top: 10%;
  width: 40vw;
  height: 40vw;
  background: var(--h3);
  opacity: 0.35;
  animation-delay: -12s;
}
@keyframes drift {
  to {
    transform: translate(8%, 10%) scale(1.1);
  }
}
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(11, 10, 28, 0) 0%,
    rgba(11, 10, 28, 0) 60%,
    rgba(11, 10, 28, 0.35) 100%
  );
}
.hero .wrap {
  padding-block: 120px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--fg-2);
}
.pill .ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #7c6cff,
    #ff6fb5,
    #ffb86b,
    #5ee7ff,
    #7c6cff
  );
  position: relative;
  animation: spin 6s linear infinite;
}
.pill .ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0a0a0f;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero h1 {
  font-size: clamp(48px, 8vw, 116px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-top: 30px;
  color: #fff;
  text-shadow: 0 0 80px rgba(124, 108, 255, 0.35);
}
.hero .sub {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 500;
  margin-top: 22px;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.hero .lead {
  color: var(--fg-2);
  max-width: 40em;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.75;
}
.hero .cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .btn {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}
.hero .meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.hero .meta span b {
  color: var(--fg);
  font-weight: 500;
}

/* research console */
.stage {
  position: relative;
  margin-top: 72px;
  width: 100%;
  perspective: 1800px;
}
.stage .halo {
  position: absolute;
  left: 50%;
  top: -10%;
  width: min(120%, 1400px);
  height: 70%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 50% 50% at 50% 50%,
      rgba(124, 108, 255, 0.5),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 50% at 30% 40%,
      rgba(255, 111, 181, 0.32),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 50% at 72% 45%,
      rgba(94, 231, 255, 0.32),
      transparent 60%
    );
  filter: blur(60px);
  opacity: 0.9;
}
.console {
  position: relative;
  border-radius: 26px;
  background: rgba(14, 11, 34, 0.55);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 80px 140px -40px rgba(0, 0, 0, 0.9);
  text-align: left;
  overflow: hidden;
  transform: rotateX(var(--tilt, 7deg));
  transform-origin: 50% 0;
  transition: transform 0.9s var(--ease);
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    rgba(255, 255, 255, 0.07),
    transparent 60%
  );
}
.rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.rail-l,
.rail-r {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.rail .logo {
  width: 20px;
  height: 20px;
}
.rail .sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}
.dim {
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-2);
}
.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ee7ff;
  box-shadow: 0 0 10px #5ee7ff;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.askwrap {
  padding: 34px 28px 22px;
}
.ask {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 20px;
  background: rgba(8, 6, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 0 rgba(124, 108, 255, 0);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.ask::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: var(--holo);
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.35;
  animation: holo 6s linear infinite;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ask:focus-within {
  box-shadow: 0 0 0 6px rgba(124, 108, 255, 0.12);
}
.ask:focus-within::before {
  opacity: 1;
}
.ask-ic {
  width: 20px;
  height: 20px;
  stroke: var(--fg-3);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  flex: none;
}
.ask textarea {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  resize: none;
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  max-height: 140px;
  padding: 10px 0;
}
.ask textarea::placeholder {
  color: var(--fg-4);
}
.ask .modes {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  flex: none;
}
.ask .modes button {
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--fg-2);
  border-radius: 999px;
  transition:
    color 0.2s,
    background 0.2s;
}
.ask .modes button[aria-pressed="true"] {
  color: #0a0a0f;
  background: #fff;
}
.send {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  color: #0a0a0f;
  display: grid;
  place-items: center;
  flex: none;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s;
}
.send:hover {
  transform: scale(1.04);
}
.send[disabled] {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chips button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--fg-2);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.chips button:hover {
  border-color: var(--line-hi);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.canvas {
  padding: 6px 28px 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rcard {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.rcard.in {
  opacity: 1;
  transform: none;
}
.rcard header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.rcard header h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  flex: 1;
  min-width: 0;
}
.rcard .tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--holo);
  background-size: 200% 100%;
  color: #0a0a0f;
  font-weight: 600;
  flex: none;
}
.rbody {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
}
.pts {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.pt {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-2);
}
.pt b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  padding-top: 5px;
  flex: none;
}
.pt strong {
  color: #fff;
  font-weight: 600;
}
.sum {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--fg);
}
.panel {
  padding: 20px 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.panel .ph {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-4);
  text-transform: uppercase;
}
.panel .row {
  display: grid;
  grid-template-columns: 1fr 100px 36px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--fg-2);
}
.panel .row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel .row i {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.panel .row i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  background: var(--holo);
  background-size: 300% 100%;
  border-radius: 3px;
  animation: holo 6s linear infinite;
  transition: width 1.2s var(--ease);
}
.rcard:not(.in) .panel .row i::after {
  width: 0;
}
.panel .row em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-align: right;
}
.panel .note {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-2);
}
.rcard footer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.srcrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--fg-2);
}
.srcrow span:not(.dim) {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.follow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.follow button {
  font-size: 12.5px;
  color: var(--fg-3);
  padding: 6px 0;
  transition: color 0.2s;
}
.follow button::before {
  content: "↳ ";
  color: var(--fg-4);
}
.follow button:hover {
  color: var(--fg);
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #5ee7ff;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.working {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  font-size: 13px;
  color: var(--fg-2);
}
.working .steps {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  text-transform: uppercase;
}
.working .steps span.on {
  color: #5ee7ff;
}
.console .foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* engine: layered stack */
.engine {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.engine .t {
  text-align: left;
}
.engine .t h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin-top: 18px;
}
.holo-text {
  white-space: nowrap;
}
.engine .t .lead {
  color: var(--fg-2);
  font-size: 16px;
  margin-top: 18px;
  line-height: 1.75;
  max-width: 34em;
}
.legend {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legend li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s;
  cursor: default;
}
.legend li b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  font-weight: 500;
}
.legend li span {
  font-size: 15px;
  font-weight: 500;
}
.legend li em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-4);
  text-transform: uppercase;
}
.legend li.on {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.legend li.on b {
  color: #5ee7ff;
}
.stack {
  position: relative;
  height: 520px;
  perspective: 1600px;
  min-width: 0;
}
.stack .layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(380px, 70%);
  aspect-ratio: 1.5;
  border-radius: 20px;
  margin-left: calc(min(380px, 70%) / -2);
  margin-top: calc(min(380px, 70%) / -3);
  transform: rotateX(62deg) rotateZ(-36deg)
    translateZ(calc((var(--i) - 2) * 62px));
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 40px 60px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: end start;
  padding: 16px;
  transition:
    transform 0.8s var(--ease),
    border-color 0.4s,
    box-shadow 0.4s;
}
.stack .layer span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  transform: rotateZ(36deg) rotateX(-62deg);
  transform-origin: 0 100%;
  letter-spacing: 0.14em;
}
.stack .layer.on {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 60px -10px rgba(124, 108, 255, 0.8),
    0 40px 60px -30px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(124, 108, 255, 0.18);
  transform: rotateX(62deg) rotateZ(-36deg)
    translateZ(calc((var(--i) - 2) * 62px + 18px));
}
.stack .layer.on span {
  color: #fff;
}
.stack .beam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(124, 108, 255, 0.8) 30%,
    rgba(94, 231, 255, 0.9) 60%,
    transparent
  );
  filter: blur(0.3px);
  opacity: 0.7;
}
.stack .beam::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px #fff;
  animation: fall 2.6s linear infinite;
}
@keyframes fall {
  from {
    top: 10%;
  }
  to {
    top: 90%;
  }
}

/* logos strip */
.trust {
  padding-block: 56px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-4);
  text-transform: uppercase;
}
.trust .row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--fg-3);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.trust .row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust .row span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--holo);
}

/* sections */
.section {
  padding-block: 120px;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.12;
  margin-top: 18px;
}
.section-head .lead {
  color: var(--fg-2);
  font-size: 17px;
  margin-top: 18px;
  line-height: 1.75;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--holo);
}

/* glass cards */
.glass {
  position: relative;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--holo);
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  animation: holo 6s linear infinite;
  pointer-events: none;
}
.glass:hover {
  transform: translateY(-4px);
}
.glass:hover::before {
  opacity: 0.9;
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.b {
  padding: 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.b.w3 {
  grid-column: span 3;
}
.b.w2 {
  grid-column: span 2;
}
.b.w4 {
  grid-column: span 4;
}
.b h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.b p {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.b .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.vis {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 6, 24, 0.45);
  padding: 16px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
.think {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-2);
}
.think .step {
  display: flex;
  gap: 10px;
  align-items: center;
}
.think .step i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  flex: none;
}
.think .step.done i {
  background: #fff;
  color: #0a0a0f;
  border-color: #fff;
}
.think .step.live i {
  border-color: var(--h3);
  color: var(--h3);
  box-shadow: 0 0 12px rgba(94, 231, 255, 0.5);
}
.think .bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 4px;
}
.think .bar b {
  display: block;
  height: 100%;
  width: 64%;
  background: var(--holo);
  background-size: 200% 100%;
  animation: holo 3s linear infinite;
}
.srcs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.srcs div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-2);
}
.srcs div i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--holo);
  opacity: 0.8;
  flex: none;
}
.srcs div span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-4);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding-top: 8px;
}
.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.08)
  );
  position: relative;
}
.bars i::after {
  content: attr(data-v);
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
}
.bars i.hi {
  background: linear-gradient(180deg, #7c6cff, #5ee7ff);
}
.spark {
  width: 100%;
  height: 120px;
}
.spark path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-2);
  background: rgba(255, 255, 255, 0.03);
}
.chips span.on {
  border-color: transparent;
  background: #fff;
  color: #0a0a0f;
}
.docs {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 120px;
}
.docs i {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  height: 100%;
  position: relative;
}
.docs i::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 10px 0 rgba(255, 255, 255, 0.14),
    0 20px 0 rgba(255, 255, 255, 0.14),
    0 30px 0 rgba(255, 255, 255, 0.08);
}
.docs i.on {
  border-color: rgba(124, 108, 255, 0.6);
  box-shadow: 0 0 30px -6px rgba(124, 108, 255, 0.6);
}

/* engine */
.pipe {
  padding: 44px 28px 30px;
}
.pipe svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.pipe .lbl {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  fill: var(--fg);
}
.pipe .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--fg-4);
}
.pipe .node {
  fill: rgba(255, 255, 255, 0.04);
  stroke: var(--line-hi);
  stroke-width: 1;
}
.pipe .ico {
  stroke: var(--fg);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pipe .link {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}
.pipe .flow {
  stroke: url(#flowg);
  stroke-width: 1.5;
  stroke-dasharray: 10 16;
  animation: flow 1.4s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -26;
  }
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  padding: 32px 28px;
  min-width: 0;
}
.stat .v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat .v small {
  font-size: 0.4em;
  color: var(--fg-3);
  font-weight: 400;
}
.stat .l {
  color: var(--fg);
  font-size: 15px;
  margin-top: 14px;
  font-weight: 500;
}
.stat .m {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-4);
  margin-top: 4px;
  text-transform: uppercase;
}

/* philosophy */
.phil {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.phil .t h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin-top: 18px;
  text-align: left;
}
.phil .t p {
  color: var(--fg-2);
  margin-top: 22px;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.9;
}
.phil .t .eyebrow {
  justify-content: flex-start;
}
.orb {
  position: relative;
  aspect-ratio: 1/1;
  width: min(100%, 440px);
  margin: 0 auto;
}
.orb .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #7c6cff,
    #ff6fb5,
    #ffb86b,
    #5ee7ff,
    #7c6cff
  );
  animation: spin 14s linear infinite;
}
.orb .ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}
.orb .glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #7c6cff,
    #ff6fb5,
    #ffb86b,
    #5ee7ff,
    #7c6cff
  );
  filter: blur(50px);
  opacity: 0.5;
  animation: spin 14s linear infinite;
}
.orb .inner {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.02) 50%,
    transparent 70%
  );
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.orb .inner svg {
  width: 38%;
  height: 38%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}
.orb .o {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: tilt 30s linear infinite;
  transform-style: preserve-3d;
}
.orb .o::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px #fff;
}
@keyframes tilt {
  from {
    transform: rotateX(70deg) rotateZ(0);
  }
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

/* final */
.final {
  text-align: center;
  padding-block: 160px;
  overflow: hidden;
  position: relative;
}
.final .light {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 600px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(124, 108, 255, 0.35),
    rgba(255, 111, 181, 0.12) 40%,
    transparent 65%
  );
  filter: blur(40px);
}
.final .wrap {
  position: relative;
}
.final h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.1;
}
.final .btn {
  height: 56px;
  padding: 0 34px;
  font-size: 16px;
  margin-top: 40px;
}
.final .note {
  color: var(--fg-3);
  font-size: 14px;
  margin-top: 22px;
}

.legal {
  font-size: 12px;
  color: var(--fg-4);
  line-height: 1.7;
  padding-block: 0 32px;
  text-align: center;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
  font-size: 13px;
  color: var(--fg-3);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
footer .mono {
  letter-spacing: 0.1em;
  font-size: 11px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
}
.foot-brand .logo {
  width: 22px;
  height: 22px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .hero .reveal {
  transition-delay: var(--d, 0ms);
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }
  .hero .wrap {
    padding-block: 88px 0;
  }
  .engine {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .stack {
    height: 380px;
  }
  .rbody {
    grid-template-columns: 1fr;
  }
  .pts {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .b.w3,
  .b.w2,
  .b.w4 {
    grid-column: span 2;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .phil {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .orb {
    width: min(100%, 320px);
  }
  .section {
    padding-block: 80px;
  }
  .section-head {
    margin-bottom: 36px;
  }
}
@media (max-width: 639px) {
  .brand .en {
    display: none;
  }
  .nav .btn {
    padding: 0 14px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero .sub {
    font-size: 20px;
  }
  .hero .lead {
    font-size: 15px;
  }
  .hero .meta {
    gap: 14px 20px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .b.w3,
  .b.w2,
  .b.w4 {
    grid-column: span 1;
  }
  .askwrap {
    padding: 18px 14px 14px;
  }
  .canvas {
    padding: 4px 14px 16px;
  }
  .ask {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .ask textarea {
    flex: 1 1 100%;
    order: 0;
    font-size: 16px;
  }
  .ask .modes {
    order: 1;
  }
  .send {
    order: 2;
    margin-left: auto;
    width: 40px;
    height: 40px;
  }
  .ask-ic {
    display: none;
  }
  .rail-r .dim {
    display: none;
  }
  .rcard header {
    flex-wrap: wrap;
  }
  .rcard header h3 {
    flex: 1 1 100%;
    order: 3;
  }
  .panel .row {
    grid-template-columns: 1fr 70px 32px;
  }
  .console {
    transform: none;
  }
  .final {
    padding-block: 100px;
  }
  .stat .v {
    font-size: 38px;
  }
  .stage {
    margin-top: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
html {
  overflow-x: clip;
}
.grain {
  contain: strict;
}
.phil .orb {
  overflow: hidden;
}
@media (max-width: 639px) {
  .orb .halo,
  .orb .glow {
    max-width: 100%;
    left: 0;
    right: 0;
  }
}
@media (max-width: 639px) {
  .grain {
    animation: none;
  }
  .sky i {
    animation: none;
  }
}
