/* ============================================================
   JHYY — Design tokens (deep black + teal, brand from icon.svg)
   ============================================================ */
:root {
  /* Surfaces — high-end deep black (not pure #000; #0a0a0a reads as premium) */
  --bg-deep: #0a0a0a;
  --bg-elev-1: #131316;
  --bg-elev-2: #1a1a1f;
  --bg-glass: rgba(255, 255, 255, 0.025);
  --bg-glass-strong: rgba(255, 255, 255, 0.05);

  /* Text — cool neutrals */
  --text-1: #fafafa;
  --text-2: #b4b4ba;
  --text-3: #75757d;
  --text-4: #48484e;

  /* Brand — teal/mint (vscode-ext icon.svg: #00d4aa) */
  --brand-50: #e6fcf7;
  --brand-200: #66e9cc;
  --brand-300: #1de9c0;
  --brand-400: #00d4aa;
  --brand-500: #00a886;
  --brand-600: #007a66;
  --brand-glow: rgba(0, 212, 170, 0.38);
  --brand-glow-soft: rgba(0, 212, 170, 0.14);
  --brand-glow-faint: rgba(0, 212, 170, 0.06);

  /* Crack layer (the kaleidoscopic green revealed by cursor) */
  --crack-1: #00d4aa;
  --crack-2: #1de9c0;
  --crack-3: #66e9cc;
  --crack-4: #007a66;
  --crack-5: #34d399;
  --crack-6: #00a886;
  --crack-7: #00ffd0;

  /* Semantic */
  --ok: #34d399;
  --err: #f87171;

  /* Hairlines */
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-2: rgba(255, 255, 255, 0.10);
  --hairline-3: rgba(255, 255, 255, 0.18);
  --hairline-brand: rgba(0, 212, 170, 0.32);

  /* Easing */
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --r-pill: 9999px;
  --r-card: 28px;
  --r-card-inner: 24px;
  --r-shell: 32px;

  /* Type */
  --f-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --f-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
code, pre { font-family: var(--f-mono); }
::selection { background: var(--brand-glow); color: var(--brand-50); }

/* Theme helper class shortcuts */
.bg-bg { background: var(--bg-deep); }
.text-text { color: var(--text-1); }
.font-sans { font-family: var(--f-sans); }
.font-serif { font-family: var(--f-serif); }
.font-mono { font-family: var(--f-mono); }
.antialiased { -webkit-font-smoothing: antialiased; }
.scroll-smooth { scroll-behavior: smooth; }

/* ============================================================
   Global background orbs (fixed)
   ============================================================ */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  will-change: transform;
}
.orb-1 {
  top: -10%;
  left: -10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 65%);
  animation: orb-drift 28s var(--ease-soft) infinite alternate;
}
.orb-2 {
  top: 30%;
  right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.30), transparent 65%);
  animation: orb-drift 36s var(--ease-soft) infinite alternate-reverse;
}
.orb-3 {
  bottom: -10%;
  left: 30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.18), transparent 65%);
  animation: orb-drift 44s var(--ease-soft) infinite alternate;
}
@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.08); }
}

/* ============================================================
   Purple mist layer (mouse pushes blobs away with momentum)
   - 6 个 blob 围住 viewport 4 边:4 角 + 上下边缘长条
   - 椭圆形状 + 高 blur 形成"飘"的散雾感
   - transform 由 JS spring 物理写入,这里只设 will-change
   ============================================================ */
.mist {
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  will-change: transform;
}
/* 四角 blob + 拉宽,自然覆盖 4 边 */
.mist-1 {
  top: -380px; left: -260px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.60), transparent 65%);
}
.mist-2 {
  top: -260px; right: -220px;
  width: 840px; height: 840px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.55), transparent 65%);
}
.mist-3 {
  bottom: -320px; left: -240px;
  width: 880px; height: 880px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.52), transparent 65%);
}
.mist-4 {
  bottom: -380px; right: -260px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.58), transparent 65%);
}
@media (prefers-reduced-motion: reduce) {
  .mist { transition: none !important; }
}

/* ============================================================
   Noise overlay (fixed, pointer-events none)
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.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 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ============================================================
   Mouse-following spotlight (subtle)
   ============================================================ */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 30%),
    rgba(251, 191, 36, 0.05),
    transparent 60%
  );
  transition: background 80ms linear;
}

/* ============================================================
   Custom cursor (desktop only)
   - 实际样式在下方"Cursor glass-shard crack field"块里定义
   - 这里留 placeholder,只放 hover:none 媒体查询(避免冲突)
   ============================================================ */
@media (hover: none) {
  body { cursor: auto; }
}
@media (hover: hover) {
  body.has-cursor, body.has-cursor * { cursor: none; }
  a, button { cursor: pointer; }
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 56px; }
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .section { padding: 128px 0; }
}
@media (min-width: 1024px) {
  .section { padding: 160px 0; }
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 80px; }
}

.section-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-top: 18px;
}
.section-title em { font-style: italic; color: var(--brand-300); }
.section-title .accent { color: var(--brand-300); }

.section-sub {
  margin-top: 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 640px;
}
.section-sub code {
  font-size: 0.9em;
  padding: 2px 7px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--brand-200);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 12px var(--brand-glow);
  animation: dot-pulse 2.4s var(--ease-fluid) infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.4; }
}

/* Reveal line (for big H1 / H2 word-level) */
.reveal-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0;
}
.reveal-line .line-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s var(--ease-fluid), opacity 0.9s var(--ease-fluid);
  will-change: transform, opacity;
}
.reveal-line.in .line-inner {
  transform: translateY(0);
  opacity: 1;
}
.reveal-line:nth-child(1) .line-inner { transition-delay: 0.04s; }
.reveal-line:nth-child(2) .line-inner { transition-delay: 0.18s; }
.reveal-line:nth-child(3) .line-inner { transition-delay: 0.32s; }

/* Plain reveal (blocks) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-fluid), transform 0.8s var(--ease-fluid);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Scale reveal (code window) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s var(--ease-fluid), transform 0.8s var(--ease-fluid);
  will-change: opacity, transform;
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Card reveal */
.reveal-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-fluid), transform 0.8s var(--ease-fluid);
  will-change: opacity, transform;
}
.reveal-card.in { opacity: 1; transform: translateY(0); }
.reveal-card.in .bezel-outer { transform: none; }

[data-reveal-delay] { transition-delay: var(--reveal-delay, 0s); }
[data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal-delay="300"] { transition-delay: 300ms; }
[data-reveal-delay="700"] { transition-delay: 700ms; }
[data-reveal-delay="900"] { transition-delay: 900ms; }
[data-reveal-delay="1100"] { transition-delay: 1100ms; }

/* ============================================================
   Floating Nav (Fluid Island)
   ============================================================ */
.floating-nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.floating-nav > * { pointer-events: auto; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: rgba(10, 10, 11, 0.72);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 40px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease-fluid), border-color 0.3s, background 0.3s;
}
.floating-nav.is-scrolled .nav-pill {
  background: rgba(8, 8, 9, 0.85);
  border-color: var(--hairline-3);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid var(--hairline);
  margin-right: 4px;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.8; }
.logo-img {
  display: block;
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.18));
  transition: filter 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-logo:hover .logo-img {
  filter: drop-shadow(0 0 16px rgba(0, 212, 170, 0.32));
  transform: translateY(-1px);
}
.logo-img--foot { height: 80px; }
.logo-img--hero {
  height: 60px;
  vertical-align: middle;
  margin-right: 6px;
  margin-bottom: 4px;
  display: inline-block;
  filter: drop-shadow(0 0 18px rgba(220, 38, 38, 0.22));
}
@media (max-width: 720px) {
  .logo-img { height: 30px; }
  .logo-img--foot { height: 56px; }
  .logo-img--hero { height: 42px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-pill);
  transition: color 0.3s, background 0.3s;
}
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-glass);
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::before { opacity: 1; }

.nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}
.nav-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--text-2);
  transition: color 0.3s, background 0.3s, transform 0.4s var(--ease-fluid);
}
.nav-icon-btn:hover {
  color: var(--text-1);
  background: var(--bg-glass-strong);
  transform: rotate(-8deg) scale(1.05);
}
@media (min-width: 640px) {
  .nav-icon-btn { display: inline-flex; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 18px;
  background: var(--brand-400);
  color: #050505;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: background 0.3s, transform 0.3s var(--ease-fluid);
}
.nav-cta:hover { background: var(--brand-300); }
.nav-cta .btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.18);
  color: #050505;
  transition: transform 0.4s var(--ease-fluid);
}
.nav-cta:hover .btn-icon-wrap { transform: translate(1px, -1px) rotate(0deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  position: relative;
  transition: background 0.4s var(--ease-fluid), color 0.4s var(--ease-fluid), border-color 0.4s var(--ease-fluid), transform 0.3s var(--ease-fluid);
  will-change: transform;
}
.btn-primary {
  background: var(--brand-400);
  color: #050505;
  box-shadow: 0 0 0 1px var(--brand-500), 0 8px 32px -8px var(--brand-glow);
}
.btn-primary:hover { background: var(--brand-300); }
.btn-primary--lg { padding: 16px 16px 16px 28px; font-size: 15px; }
.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-1);
  border: 1px solid var(--hairline-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--bg-glass-strong); border-color: var(--hairline-3); }
.btn-ghost--lg { padding: 15px 15px 15px 27px; font-size: 15px; }
.btn-ghost--inline { margin-top: 24px; }

.btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.18);
  color: inherit;
  transition: transform 0.5s var(--ease-fluid);
}
.btn-ghost .btn-icon-wrap { background: rgba(255, 255, 255, 0.06); }
.btn-primary:hover .btn-icon-wrap,
.btn-ghost:hover .btn-icon-wrap {
  transform: translate(2px, -2px);
}
.btn-primary:active { transform: scale(0.98); }
.btn-ghost:active { transform: scale(0.98); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) {
  .hero { padding-top: 160px; padding-bottom: 100px; }
}

/* Centered single-column hero (icon + headline + cta + code) */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.hero-inner > * { width: 100%; }
.hero-inner .hero-code { max-width: 720px; }

/* Big hero icon — Double-Bezel with rotating halo */
.hero-icon {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.hero-icon-bezel {
  position: relative;
  z-index: 2;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--hairline-2);
  border-radius: 36px;
  padding: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px -20px rgba(0, 212, 170, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.7s var(--ease-fluid);
}
.hero-icon-bezel::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-icon-bezel svg {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  filter: drop-shadow(0 8px 24px rgba(0, 212, 170, 0.25));
}
.hero-icon-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 170, 0.22);
  animation: ring-spin 36s linear infinite;
  pointer-events: none;
}
.hero-icon-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 170, 0.08);
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-text { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 8.4vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-top: 24px;
  color: var(--text-1);
}
.hero-title em {
  font-style: italic;
  color: var(--brand-300);
}
.hero-title .accent { color: var(--brand-400); }

.hero-sub {
  margin-top: 32px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub-zh {
  display: inline-block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--brand-300);
  margin-right: 8px;
  vertical-align: middle;
}
.hero-sub-en { color: var(--text-2); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-4);
}
.meta-dot--ok { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.meta-dot--brand { background: var(--brand-400); box-shadow: 0 0 8px var(--brand-glow); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 3;
}
.scroll-cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--text-3), transparent);
  animation: scroll-cue 2.4s var(--ease-fluid) infinite;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.2; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 0.8; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.2; }
}
@media (max-width: 768px) {
  .scroll-cue { display: none; }
}

/* ============================================================
   Code Window (Double-Bezel)
   ============================================================ */
.hero-code { position: relative; z-index: 2; }

.code-shell {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-shell);
  padding: 1px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.code-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.08), transparent 50%);
  pointer-events: none;
}
.code-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.015);
}
.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-4);
}
.dot-r { background: #f87171; }
.dot-y { background: #fbbf24; }
.dot-g { background: #34d399; }
.file-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}
.file-meta { margin-left: auto; }
.kbadge {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brand-300);
  padding: 3px 8px;
  border: 1px solid var(--hairline-brand);
  border-radius: var(--r-pill);
  background: rgba(0, 212, 170, 0.06);
}

.code-block {
  margin: 0;
  padding: 22px 22px 24px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre;
  overflow-x: auto;
  tab-size: 4;
}
.code-block--mini { font-size: 11.5px; padding: 0; }
.code-block--lg { font-size: 13px; padding: 28px 26px 32px; }
.code-block code { font-family: inherit; }
.code-block::-webkit-scrollbar { height: 6px; }
.code-block::-webkit-scrollbar-thumb { background: var(--hairline-2); border-radius: 3px; }
.code-block::-webkit-scrollbar-track { background: transparent; }

/* JHYY syntax */
.code-block .kw { color: var(--brand-300); }
.code-block .ty { color: #93c5fd; }
.code-block .str { color: #fda4af; }
.code-block .num { color: #c4b5fd; }
.code-block .cmt { color: var(--text-4); font-style: italic; }
.code-block .fn { color: var(--text-1); }
.code-block .op { color: var(--text-3); }
.code-block .punc { color: var(--text-3); }
.code-block .var { color: var(--text-1); }
.code-block .self { color: var(--brand-200); }
.code-block .attr { color: #67e8f9; }

.code-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-3);
  background: rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}
.status-led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: dot-pulse 2s var(--ease-fluid) infinite;
}
.status-out {
  margin-left: auto;
  color: var(--brand-200);
  font-weight: 500;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.copy-btn:hover { background: var(--bg-glass-strong); color: var(--text-1); border-color: var(--hairline-2); }
.copy-btn.copied { color: var(--ok); border-color: rgba(52, 211, 153, 0.3); }

/* ============================================================
   Principles marquee
   ============================================================ */
.principles {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-3);
}
.marquee-track > span { display: inline-block; }
.marquee-track .dot-sep { color: var(--brand-400); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Why JHYY (Bento)
   ============================================================ */
.section-why { padding-top: 0; }

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
  }
}

.bento-card--lg { grid-column: span 12; grid-row: span 2; }
.bento-card--sm { grid-column: span 12; }
.bento-card--wide { grid-column: span 12; }

@media (min-width: 768px) {
  .bento-card--lg { grid-column: span 7; grid-row: span 2; }
  .bento-card--sm { grid-column: span 5; }
  .bento-card--sm + .bento-card--sm { grid-column: span 5; }
  .bento-card--wide { grid-column: span 12; }
}

.bento-card {
  position: relative;
  display: flex;
}
.bezel-outer {
  position: relative;
  flex: 1;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  transition: background 0.6s var(--ease-fluid), transform 0.6s var(--ease-fluid);
  overflow: hidden;
}
.bento-card:hover .bezel-outer {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(255, 255, 255, 0.04) 50%, rgba(251, 191, 36, 0.2));
}
.bezel-inner {
  position: relative;
  height: 100%;
  padding: 28px;
  background: var(--bg-elev-1);
  border-radius: calc(var(--r-card) - 1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bezel-inner::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-fluid);
}
.bento-card:hover .bezel-inner::after { opacity: 1; }
.bezel-inner--row {
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 768px) {
  .bezel-inner--row {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }
  .bezel-inner--row .card-half { flex: 1; }
}

.card-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.card-num {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-300);
  letter-spacing: 0.04em;
}
.card-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin-bottom: 14px;
}

.card-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
}
.card-body code {
  font-size: 0.86em;
  padding: 1px 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--brand-200);
}
.card-snippet {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.card-visual {
  margin-top: auto;
  padding-top: 22px;
}
.visual-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.flow-node {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-fluid);
}
.flow-node--accent {
  color: var(--brand-300);
  border-color: var(--hairline-brand);
  background: rgba(251, 191, 36, 0.05);
}
.bento-card:hover .flow-node { transform: translateY(-1px); }
.flow-arrow {
  color: var(--text-4);
  font-size: 11px;
  font-family: var(--f-mono);
}

.phase-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pp {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--hairline-2);
  background: var(--bg-elev-2);
  color: var(--text-2);
}
.pp--done { color: var(--ok); border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }
.pp--active { color: var(--brand-300); border-color: var(--hairline-brand); background: rgba(0, 212, 170, 0.06); }
.pp--future { color: var(--text-3); }
.pp-arrow { color: var(--text-4); font-family: var(--f-mono); font-size: 11px; }

.doc-stamp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  position: relative;
}
.doc-stamp::before {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 10px; height: 10px;
  border: 1px solid var(--brand-400);
  border-radius: 2px;
  background: var(--brand-400);
  box-shadow: 0 0 8px var(--brand-glow);
  transform: rotate(45deg);
}
.doc-stamp-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.doc-stamp-line:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-stamp-line > span:first-child { color: var(--text-3); letter-spacing: 0.08em; }
.doc-stamp-line > span:last-child { color: var(--text-1); font-weight: 500; }

/* ============================================================
   Code Showcase
   ============================================================ */
.section-code { padding-top: 80px; }
@media (min-width: 768px) { .section-code { padding-top: 128px; } }

.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
}

.showcase-tabs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.showcase-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .showcase-tabs { flex-direction: column; gap: 6px; overflow-x: visible; }
}
.stab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  text-align: left;
  min-width: 180px;
  flex-shrink: 0;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-fluid);
  position: relative;
}
.stab::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 0;
  background: var(--brand-400);
  border-radius: 2px;
  transition: height 0.4s var(--ease-fluid);
}
.stab.active {
  background: var(--bg-glass-strong);
  border-color: var(--hairline-brand);
}
.stab.active::before { height: 60%; }
.stab:hover { background: var(--bg-glass-strong); }
.stab-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--brand-300);
  letter-spacing: 0.08em;
}
.stab-name {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
}
.stab-sub {
  font-size: 11px;
  color: var(--text-3);
}

.showcase-panel { position: relative; }
.code-shell--panel { height: 100%; }
.code-shell--panel .code-block { min-height: 380px; }

/* Showcase tab panels (one visible at a time) */
.panel-code { display: none; }
.panel-code.active { display: block; }

/* ============================================================
   Toolchain
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.tool-card { position: relative; display: flex; }
.tool-card .bezel-outer { flex: 1; }
.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.04));
  border: 1px solid var(--hairline-brand);
  color: var(--brand-300);
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease-fluid);
}
.tool-card:hover .tool-icon { transform: rotate(-6deg) scale(1.05); }
.tool-name {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 10px;
}
.tool-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
}
.tool-desc code {
  font-size: 0.84em;
  padding: 1px 5px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--brand-200);
}
.tool-desc strong { color: var(--text-1); font-weight: 500; }
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.tool-meta li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-meta li span { color: var(--text-4); }

/* ============================================================
   Roadmap Timeline
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 880px;
}
.tl-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  position: relative;
}
.tl-step:not(:last-child) { border-bottom: 1px solid var(--hairline); }

.tl-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--text-4);
  position: relative;
  z-index: 2;
}
.tl-dot--active {
  background: var(--brand-400);
  border-color: var(--brand-300);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18), 0 0 20px var(--brand-glow);
}
.tl-dot--future {
  border-style: dashed;
  border-color: var(--text-4);
}
.tl-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--hairline-2), transparent);
  margin-top: 6px;
}

.tl-body {}
.tl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tl-phase {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.tl-status {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding: 3px 9px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
}
.tl-status--done { color: var(--ok); border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }
.tl-status--active { color: var(--brand-300); border-color: var(--hairline-brand); background: rgba(0, 212, 170, 0.06); }
.tl-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin-bottom: 12px;
}
.tl-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 640px;
}
.tl-desc code {
  font-size: 0.86em;
  padding: 1px 5px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--brand-200);
}
.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tl-chips li {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  padding: 5px 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.tl-chips li code {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-200);
}

/* ============================================================
   Performance
   ============================================================ */
.perf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .perf-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .perf-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.perf-cell { position: relative; display: flex; }
.perf-cell .bezel-outer { flex: 1; }
.perf-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.perf-label code {
  text-transform: none;
  font-size: 1em;
  color: var(--brand-200);
  background: none;
  border: none;
  padding: 0;
}
.perf-value {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-300);
  margin-bottom: 18px;
}
.perf-foot {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-3);
  margin-top: auto;
}
.perf-foot code {
  font-size: 0.86em;
  padding: 1px 5px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--brand-200);
}

/* ============================================================
   About
   ============================================================ */
.section-about { padding-top: 0; }

.about-shell { max-width: 1080px; margin: 0 auto; }
.about-inner { align-items: center; }
@media (min-width: 768px) {
  .about-inner { padding: 40px; }
}
.about-left { display: flex; flex-direction: column; }
.about-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 18px 0 18px;
}
.about-body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 540px;
}
.about-body strong { color: var(--text-1); font-weight: 500; }

.about-right { width: 100%; }
.id-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 4px;
  position: relative;
}
.id-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), transparent 40%, transparent 60%, rgba(251, 191, 36, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-elev-1);
  border-radius: 14px;
  font-size: 13px;
  transition: background 0.3s;
}
.id-row:hover { background: var(--bg-elev-2); }
.id-row > span:first-child {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.id-row > span:last-child {
  font-family: var(--f-mono);
  color: var(--text-1);
  font-weight: 500;
}
.id-row--accent { background: rgba(0, 212, 170, 0.06); }
.id-row--accent > span:last-child { color: var(--brand-300); }

/* ============================================================
   Final CTA
   ============================================================ */
.section-cta { padding-bottom: 80px; }
@media (min-width: 768px) { .section-cta { padding-bottom: 128px; } }

.cta-shell { position: relative; }
.cta-inner {
  position: relative;
  padding: 64px 24px 56px;
  text-align: center;
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline-2);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .cta-inner { padding: 96px 56px 88px; }
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.18), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(217, 119, 6, 0.16), transparent 50%);
  z-index: -1;
}

.cta-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.cta-title em { font-style: italic; color: var(--brand-300); }
.cta-sub {
  margin-top: 22px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-sub code {
  font-size: 0.9em;
  padding: 1px 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--brand-200);
}
.section-cta .cta-row { justify-content: center; margin-top: 40px; }

.cta-install-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-2);
}
.cta-install-meta .cim-item strong {
  color: var(--brand-300);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cta-install-meta .cim-item a {
  color: var(--text-1);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.2s, color 0.2s;
}
.cta-install-meta .cim-item a:hover {
  border-bottom-color: var(--brand-400);
  color: var(--brand-300);
}
.cta-install-meta .cim-sep {
  color: var(--text-4);
}
.cta-install-meta .cim-dim {
  color: var(--text-3);
}
.cta-install-meta .cim-dim code {
  font-size: 12px;
  padding: 1px 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--brand-200);
}

/* ============================================================
   Docs preview (#docs placeholder landing)
   ============================================================ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
.docs-card { position: relative; }
.docs-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.docs-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 3px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.docs-tag-version {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--brand-300);
}
.docs-card-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-1);
  margin-bottom: 10px;
}
.docs-card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 18px;
}
.docs-card-body code {
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  color: var(--brand-200);
}
.docs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-1);
  border-bottom: 1px solid var(--hairline-2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.docs-link code {
  color: var(--brand-300);
}
.docs-link:hover {
  color: var(--brand-300);
  border-bottom-color: var(--brand-400);
  gap: 10px;
}
.docs-link-arrow {
  font-size: 13px;
  color: var(--brand-400);
}
.docs-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

.cta-install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  padding: 14px 18px 14px 22px;
  background: var(--bg-deep);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-2);
  max-width: 100%;
  overflow: hidden;
}
.ci-prompt { color: var(--brand-400); font-weight: 500; }
.ci-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ci-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  color: var(--text-3);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.ci-copy:hover { background: var(--bg-glass-strong); color: var(--text-1); }
.ci-copy.copied { color: var(--ok); }
@media (max-width: 640px) {
  .cta-install { font-size: 11px; padding: 10px 12px 10px 16px; gap: 8px; }
  .ci-line { white-space: normal; word-break: break-all; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--hairline);
  background: var(--bg-elev-1);
  position: relative;
  z-index: 2;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 56px;
}
@media (min-width: 768px) {
  .foot-grid {
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
    padding-top: 80px;
    padding-bottom: 72px;
  }
}

.foot-brand .foot-logo { padding-right: 0; border-right: 0; }
.foot-tag {
  margin-top: 18px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 280px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 640px) {
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
.foot-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foot-col a:hover { color: var(--brand-300); }

.foot-bar {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
}
.foot-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-copy {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-card, .reveal-scale, .reveal-line .line-inner {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Cursor glass-shard crack field
   - SVG 容器 size 跟随 document (走滚动 → 拖尾贴背景)
   - 每个 <g class="shard"> 含 2-3 个 polygon + 内部裂纹
   - 自带 glow filter,polygon 边缘 + 内亮线 = 玻璃碎裂感
   - 棱有角(3-5 顶点随机散布,无圆角)
   ============================================================ */

/* Disable old decoration — replaced by shards */
.orb,
.grain,
.spotlight,
.bg-crack,
.crack-edge,
.cursor-ring,
.cursor-trail {
  display: none !important;
}

.cracks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  display: block;
  will-change: transform;
}

.cracks-layer { will-change: opacity; }

.shard {
  pointer-events: none;
  animation: shard-fade var(--shard-life, 1500ms) cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes shard-fade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  100% { opacity: 0; }
}

.shard polygon {
  fill: none;
  stroke-linejoin: miter;
  stroke-miterlimit: 2;
  stroke-linecap: round;
}
/* body — main green edge,稍粗壮好看 */
.shard .s-body { stroke-width: 2.2; opacity: 1; }
/* inner fracture line */
.shard .s-line { stroke-width: 1.2; opacity: 0.6; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #e6fcf7;
  pointer-events: none;
  z-index: 999;
  transform: translate3d(-100px, -100px, 0);
  box-shadow:
    0 0 0 1px var(--brand-300),
    0 0 8px 1px rgba(29, 233, 192, 0.9),
    0 0 18px 2px rgba(0, 212, 170, 0.55);
  will-change: transform;
}
.cursor-dot.is-hover {
  background: #ffffff;
  box-shadow:
    0 0 0 1.5px var(--brand-200),
    0 0 12px 2px rgba(102, 233, 204, 1),
    0 0 28px 4px rgba(0, 212, 170, 0.7);
}

@media (hover: none) {
  .cracks, .cursor-dot { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) {
  body.has-cursor, body.has-cursor * { cursor: none; }
  a, button { cursor: pointer; }
}
/* Custom cursor visible (e8fa2b4 only removed wheel burst, not the whole effect) */

/* ============================================================
   ECOSYSTEM SECTION
   ============================================================ */
.section-ecosystem { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.eco-grid {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
@media (max-width: 960px) { .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .eco-grid { grid-template-columns: 1fr; } }

.eco-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  background: var(--bg-glass-weak);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;
}
.eco-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.06), rgba(0, 212, 170, 0));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.eco-card:hover {
  background: var(--bg-glass-strong);
  border-color: var(--hairline-3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -16px rgba(0, 212, 170, 0.35);
}
.eco-card:hover::before { opacity: 1; }
.eco-card:active {
  transform: translateY(0) scale(0.985);
  background: rgba(0, 212, 170, 0.05);
  border-color: var(--brand-300);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.35);
  transition-duration: 60ms;
}
.eco-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg-elev-2);
  color: var(--brand-200);
  border: 1px solid var(--hairline-2);
}
.eco-meta { flex: 1 1 auto; min-width: 0; }
.eco-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text-1);
  margin-bottom: 4px;
}
.eco-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.eco-desc code {
  font-size: 12px;
  padding: 1px 5px;
  background: var(--bg-elev-1);
  border-radius: 4px;
  border: 1px solid var(--hairline-2);
}
.eco-arrow {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--brand-200);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.eco-card:hover .eco-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   UNIVERSAL CLICK FEEDBACK (a / button / card)
   ============================================================ */
a, button {
  -webkit-tap-highlight-color: rgba(0, 212, 170, 0.18);
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.btn-primary:not(:disabled):active,
.btn-ghost:not(:disabled):active {
  transform: scale(0.97);
  filter: brightness(1.08);
  transition-duration: 60ms;
}
.nav-links a:active { color: var(--brand-200); }
.nav-links a:active::before { opacity: 1; transform: scaleX(1); }

.copy-btn:active,
.ci-copy:active {
  transform: scale(0.92);
  background: var(--bg-glass-strong);
}
.ci-copy.copied:active { transform: scale(0.92); }

.stab:active {
  background: var(--bg-glass-strong);
  color: var(--text-1);
}
.bento-card:active {
  transform: translateY(0) scale(0.995);
  transition-duration: 60ms;
}
.tool-card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 60ms;
}
.docs-link:active {
  background: var(--bg-glass-strong);
  color: var(--text-1);
}
.docs-link:active .docs-arrow {
  transform: translate(2px, -2px);
}
.id-row:active { background: var(--bg-elev-2); }
.foot-col a:active { color: var(--brand-300); }

/* Ripple flash for any clickable that hasn't got a custom :active */
a:not(.btn-primary):not(.btn-ghost):not(.bento-card):not(.tool-card):not(.eco-card):active,
button:not(.btn-primary):not(.btn-ghost):not(.stab):not(.ci-copy):not(.copy-btn):active {
  opacity: 0.7;
  transition-duration: 50ms;
}

/* ============================================================
   COMMUNITY HINT (no link, just text)
   ============================================================ */
.community-jump--hint {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline-2);
  user-select: none;
}

/* ============================================================
   FOOTER: QQ inline copy button
   ============================================================ */
.foot-text-strong { font-weight: 600; color: var(--text-1); margin-right: 4px; }
.ci-copy--foot {
  width: 22px; height: 22px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: transparent;
  border: 1px solid var(--hairline-2);
  color: var(--text-2);
  vertical-align: middle;
}
.ci-copy--foot svg { width: 11px; height: 11px; }
