/* ==========================================================================
   Avaritia Reforged — React Bits Inspired Editorial Dark/Light Design System
   ========================================================================== */

:root {
  color-scheme: dark;
  --font-sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;

  --bg-body: #120f17;
  --bg-alt: #0e0b13;
  --bg-card: #1b1722;
  --bg-elevated: #1b1722;
  --bg-hover: #373044;

  --border-primary: #2f293a;
  --border-subtle: rgba(255, 255, 255, 0.07);

  --color-primary: #a855f7;
  --color-accent: #b497cf;
  --pro-base: #a855f7;

  --text-primary: #f6f4f9;
  --text-secondary: #e5e1ec;
  --text-muted: rgba(246, 244, 249, 0.56);
  --text-dimmed: rgba(246, 244, 249, 0.38);
  --section-heading: #f4f4f5;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 120ms;
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.2s var(--ease-out);

  --surface-ghost: rgba(255, 255, 255, 0.07);
  --surface-ghost-hover: rgba(255, 255, 255, 0.12);
  --surface-ghost-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --surface-ghost-blur: blur(32px) saturate(1.3);
  --surface-ghost-track: rgba(255, 255, 255, 0.04);

  --ln-shell: rgba(28, 25, 34, 0.72);
  --ln-shell-edge: rgba(255, 255, 255, 0.08);
  --ln-shell-highlight: rgba(255, 255, 255, 0.07);
  --ln-shell-shadow: 0 30px 70px rgba(0, 0, 0, 0.36), 0 14px 32px rgba(0, 0, 0, 0.26);
  --ln-well: rgba(8, 6, 12, 0.36);
  --ln-well-edge: rgba(255, 255, 255, 0.055);
  --modal-bg: #17141f;
  --field-bg: #100d16;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg-body: #ffffff;
  --bg-alt: #fafafa;
  --bg-card: #ffffff;
  --bg-elevated: #f1f1f2;
  --bg-hover: #e9e9eb;

  --border-primary: #d1d1d4;
  --border-subtle: rgba(24, 24, 27, 0.08);

  --color-primary: #8f36e8;
  --color-accent: #7e3db8;

  --text-primary: #17151c;
  --text-secondary: #2f2f33;
  --text-muted: #5b5866;
  --text-dimmed: #8a8796;
  --section-heading: #18181b;

  --surface-ghost: rgba(24, 24, 27, 0.065);
  --surface-ghost-hover: rgba(24, 24, 27, 0.105);
  --surface-ghost-highlight: 0 1px 2px rgba(24, 24, 27, 0.05);
  --surface-ghost-track: rgba(24, 24, 27, 0.04);

  --ln-shell: rgba(242, 242, 245, 0.78);
  --ln-shell-edge: rgba(24, 24, 27, 0.07);
  --ln-shell-highlight: rgba(255, 255, 255, 0.95);
  --ln-shell-shadow: 0 30px 70px rgba(24, 24, 27, 0.1), 0 14px 32px rgba(24, 24, 27, 0.06);
  --ln-well: rgba(255, 255, 255, 0.74);
  --ln-well-edge: rgba(24, 24, 27, 0.06);
  --modal-bg: #ffffff;
  --field-bg: #f6f6f8;
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: var(--bg-body);
}

html[data-rb-landing-loading],
html[data-rb-landing-loading] body {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(168, 85, 247, 0.42);
  color: #ffffff;
}
:root[data-theme='light'] ::selection {
  background: rgba(143, 54, 232, 0.22);
  color: #18181b;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.prismatic-text {
  background: linear-gradient(90deg, #f472b6, #fbbf24, #34d399, #38bdf8, #c084fc, #f472b6);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShift 6s linear infinite;
}
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

.gw-canvas, .dg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   1. Cinematic Landing Loader
   ========================================================================== */
.ln-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-body);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.ln-loader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ln-loader-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  animation: ln-loader-pulse 1.6s ease-in-out infinite;
  opacity: 0.72;
}
@keyframes ln-loader-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

.landing-wrapper {
  min-height: 100dvh;
  position: relative;
  overflow-x: clip;
  transition: opacity 0.55s var(--ease-out);
}
.landing-wrapper.ln-loading { opacity: 0; }
.landing-wrapper.ln-loaded { opacity: 1; }
.landing-wrapper.ln-loading .lh-top,
.landing-wrapper.ln-loading .lh-stage,
.landing-wrapper.ln-loading .lh-window {
  animation-play-state: paused;
}

/* ==========================================================================
   2. Floating Glass Pill Navbar
   ========================================================================== */
.ln-navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  pointer-events: none;
}
.ln-navbar-inner {
  width: 100%;
  max-width: 1680px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 18px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  transition: max-width 0.5s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), padding 0.5s var(--ease-out);
  pointer-events: auto;
  position: relative;
}
.ln-navbar.ln-navbar-scrolled .ln-navbar-inner {
  max-width: 1276px;
  background: rgba(18, 15, 23, 0.52);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0.5px 0 rgba(255, 255, 255, 0.09);
}
:root[data-theme='light'] .ln-navbar.ln-navbar-scrolled .ln-navbar-inner {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(24, 24, 27, 0.08);
  box-shadow: 0 8px 28px rgba(24, 24, 27, 0.07);
}

.ln-navbar-left {
  display: flex;
  align-items: center;
}
.ln-navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.02em;
}
.ln-navbar-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.ln-navbar-divider {
  color: var(--text-dimmed);
  font-size: 17px;
  font-weight: 300;
  user-select: none;
  margin: 0 10px 0 16px;
}
.ln-navbar-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ln-navbar-link-highlight {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease-out), width 0.28s var(--ease-out), height 0.28s var(--ease-out), opacity 0.18s ease;
}
:root[data-theme='light'] .ln-navbar-link-highlight {
  background: rgba(24, 24, 27, 0.06);
  border-color: rgba(24, 24, 27, 0.06);
  box-shadow: none;
}
.ln-navbar-link {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 11px;
  border-radius: 10px;
  transition: color var(--transition-fast), transform var(--dur-press) var(--ease-out);
}
.ln-navbar-link:active { transform: scale(0.96); }
.ln-navbar-tag {
  display: inline-flex;
  align-items: center;
  height: 17px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}
:root[data-theme='light'] .ln-navbar-tag {
  background: rgba(24, 24, 27, 0.07);
}

.ln-navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ln-nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-ghost-track);
  box-shadow: var(--surface-ghost-highlight);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--dur-press) var(--ease-out);
}
.ln-nav-icon-btn:hover { background: var(--surface-ghost-hover); }
.ln-nav-icon-btn:active { transform: scale(0.96); }
:root[data-theme='light'] .ln-nav-icon-btn {
  background: #fff;
  border-color: var(--border-subtle);
  box-shadow: none;
}
:root[data-theme='light'] .ln-nav-icon-btn:hover { background: #f8f8f9; }

.ln-navbar-ghost {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-ghost-track);
  box-shadow: var(--surface-ghost-highlight);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--dur-press) var(--ease-out);
}
.ln-navbar-ghost:hover { background: var(--surface-ghost-hover); }
.ln-navbar-ghost:active { transform: scale(0.97); }
:root[data-theme='light'] .ln-navbar-ghost {
  background: #fff;
  border-color: var(--border-subtle);
  box-shadow: none;
}
:root[data-theme='light'] .ln-navbar-ghost:hover { background: #f8f8f9; }

.ln-navbar-pro {
  position: relative;
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--pro-base, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: background-color 700ms var(--ease-out), transform var(--dur-press) var(--ease-out), filter var(--transition-fast);
}
.ln-navbar-pro:hover { filter: brightness(1.08); }
.ln-navbar-pro:active { transform: scale(0.97); }

.ln-navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-ghost);
  box-shadow: var(--surface-ghost-highlight);
  cursor: pointer;
}
.ln-navbar-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.ln-navbar-hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.ln-navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.ln-navbar-hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.ln-navbar-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 8px);
  right: 8px;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 15, 23, 0.9);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  z-index: 1505;
}
.ln-navbar-mobile-menu.open { display: flex; }
:root[data-theme='light'] .ln-navbar-mobile-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(24, 24, 27, 0.09);
  box-shadow: 0 14px 36px rgba(24, 24, 27, 0.12);
}
.ln-navbar-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.ln-navbar-mobile-link:hover {
  background: var(--surface-ghost);
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .ln-navbar { padding: 0 14px; top: 14px; }
  .ln-navbar-links, .ln-navbar-divider, .ln-nav-desktop-only { display: none !important; }
  .ln-navbar-hamburger { display: flex; }
  .ln-navbar-inner { padding: 0 6px 0 12px; }
}

/* ==========================================================================
   3. Hero Section (1:1 React Bits Frame + DotGrid + Draggable Windows)
   ========================================================================== */
.lh {
  --lh-ink: #f6f4f9;
  --lh-muted: rgba(246, 244, 249, 0.6);
  --lh-faint: rgba(246, 244, 249, 0.38);
  --lh-hover: rgba(255, 255, 255, 0.06);
  --lh-primary: #f4f2f7;
  --lh-primary-hover: #ffffff;
  --lh-primary-ink: #141118;
  --lh-ghost: #221e29;
  --lh-ghost-hover: #2b2633;
  --lh-ghost-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  --lh-art: #120f17;
  --lh-window: rgba(24, 21, 30, 0.8);
  --lh-window-edge: rgba(255, 255, 255, 0.08);
  --lh-window-highlight: rgba(255, 255, 255, 0.07);
  --lh-window-shadow: 0 30px 70px rgba(0, 0, 0, 0.38), 0 14px 32px rgba(0, 0, 0, 0.28);
  --lh-well: rgba(8, 6, 12, 0.34);
  --lh-well-edge: rgba(255, 255, 255, 0.055);
  --lh-code-kw: rgba(246, 244, 249, 0.42);
  --lh-code-str: rgba(246, 244, 249, 0.62);
  --lh-row-active: rgba(255, 255, 255, 0.065);
  --lh-menu: rgba(40, 37, 47, 0.94);
  --lh-menu-edge: rgba(255, 255, 255, 0.12);
  --lh-menu-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65), 0 3px 10px rgba(0, 0, 0, 0.3);
  --lh-accent: #FF9FFC;
  --lh-left: 44px;
  --lh-right: 32px;
  position: relative;
  width: 100%;
  padding-bottom: 72px;
  overflow: hidden;
  color: var(--lh-ink);
}
:root[data-theme='light'] .lh {
  --lh-ink: #17151c;
  --lh-muted: #5b5866;
  --lh-faint: #9b98a4;
  --lh-hover: rgba(24, 24, 27, 0.045);
  --lh-primary: #18171c;
  --lh-primary-hover: #000000;
  --lh-primary-ink: #ffffff;
  --lh-ghost: #ffffff;
  --lh-ghost-hover: #fafafa;
  --lh-ghost-highlight: inset 0 0 0 1px rgba(24, 24, 27, 0.07), 0 1px 2px rgba(24, 24, 27, 0.04);
  --lh-art: #f5f5f5;
  --lh-window: rgba(242, 242, 245, 0.78);
  --lh-window-edge: rgba(24, 24, 27, 0.07);
  --lh-window-highlight: rgba(255, 255, 255, 0.95);
  --lh-window-shadow: 0 30px 70px rgba(24, 24, 27, 0.16), 0 14px 32px rgba(24, 24, 27, 0.1);
  --lh-well: rgba(255, 255, 255, 0.66);
  --lh-well-edge: rgba(24, 24, 27, 0.06);
  --lh-code-kw: rgba(23, 21, 28, 0.42);
  --lh-code-str: rgba(23, 21, 28, 0.62);
  --lh-row-active: rgba(24, 24, 27, 0.055);
  --lh-menu: rgba(248, 248, 250, 0.96);
  --lh-menu-edge: rgba(24, 24, 27, 0.1);
  --lh-menu-shadow: 0 18px 40px -14px rgba(24, 24, 27, 0.28), 0 3px 10px rgba(24, 24, 27, 0.08);
  --lh-fade: linear-gradient(to bottom, #000 0, #000 calc(100% - 340px), transparent 100%);
}
:root[data-theme='light'] .lh::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #f5f5f5;
  content: '';
  -webkit-mask-image: var(--lh-fade);
  mask-image: var(--lh-fade);
  pointer-events: none;
}

.lh-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.lh-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease-out);
}
.lh-ghost[data-on] {
  opacity: 0.28;
  transition-duration: 1600ms;
}
.lh-ghost-spot {
  --ghost-radius: 360px;
  --ghost-cell: 24.6px;
  --ghost-mask: radial-gradient(circle var(--ghost-radius) at 50% 50%, #000 0, rgba(0,0,0,0.5) 50%, transparent 100%);
  position: absolute;
  top: 0; left: 0;
  width: calc(var(--ghost-radius) * 2);
  height: calc(var(--ghost-radius) * 2);
  overflow: hidden;
  will-change: transform;
  -webkit-mask-image: var(--ghost-mask);
  mask-image: var(--ghost-mask);
}
.lh-ghost-dots {
  position: absolute;
  top: 0; left: 0;
  width: calc(var(--ghost-radius) * 2 + var(--ghost-cell) * 2);
  height: calc(var(--ghost-radius) * 2 + var(--ghost-cell) * 2);
  background-image: radial-gradient(circle, var(--ghost-color, #6f4b8e) 1.45px, transparent 2.15px);
  background-size: var(--ghost-cell) var(--ghost-cell);
  will-change: transform;
}

.lh-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1728px;
  margin: 0 auto;
  padding: clamp(102px, 13vh, 146px) var(--lh-right) 0 var(--lh-left);
}

.lh-top {
  display: grid;
  column-gap: 64px;
  grid-template-areas:
    'chip chip'
    'title lede'
    'actions lede';
  grid-template-columns: minmax(0, 1fr) auto;
  animation: lh-rise 1050ms var(--ease-out) both;
}

.lh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-bottom: 24px;
  padding: 0 12px 0 4px;
  border-radius: 10px;
  background: var(--lh-ghost);
  box-shadow: var(--lh-ghost-highlight);
  color: var(--lh-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  grid-area: chip;
  justify-self: start;
  transition: background var(--transition-fast), transform var(--dur-press) var(--ease-out);
}
.lh-chip:hover { background: var(--lh-ghost-hover); }
.lh-chip:active { transform: scale(0.97); }
.lh-chip-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--lh-primary);
  color: var(--lh-primary-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
}
.lh-chip-roll {
  display: inline-grid;
  align-items: center;
  height: 20px;
  overflow: hidden;
  transition: width 460ms var(--ease-out);
}
.lh-chip-label {
  grid-area: 1 / 1;
  justify-self: start;
  line-height: 20px;
  white-space: nowrap;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(10px);
  transition: opacity 360ms var(--ease-out), filter 360ms var(--ease-out), transform 460ms var(--ease-out);
}
.lh-chip-label.is-in { opacity: 1; filter: none; transform: none; }
.lh-chip-label.is-out { transform: translateY(-10px); }
.lh-chip svg { color: var(--lh-muted); transition: transform 260ms var(--ease-out); }
.lh-chip:hover svg { transform: translateX(2px); }

.lh-title {
  margin: 0;
  color: var(--lh-ink);
  font-size: clamp(32px, 3vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.036em;
  grid-area: title;
}
.lh-lede {
  align-self: end;
  margin: 0 0 -0.2em;
  color: var(--lh-muted);
  font-size: clamp(14.5px, 1.05vw, 17px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  grid-area: lede;
}
.lh-lede span { display: block; white-space: nowrap; }

.lh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  grid-area: actions;
}
.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  border: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--dur-press) var(--ease-out);
}
.lh-btn:active { transform: scale(0.97); }
.lh-btn svg { transition: transform 260ms var(--ease-out); }
.lh-btn:hover svg { transform: translateX(2px); }
.lh-btn--primary {
  padding: 0 18px 0 22px;
  background: var(--lh-primary);
  color: var(--lh-primary-ink);
}
.lh-btn--primary:hover { background: var(--lh-primary-hover); }
.lh-btn--ghost {
  background: var(--lh-ghost);
  box-shadow: var(--lh-ghost-highlight);
  color: var(--lh-ink);
}
.lh-btn--ghost:hover { background: var(--lh-ghost-hover); }

/* Hero Stage & Draggable Glass Windows */
.lh-stage {
  position: relative;
  --lh-code-top: clamp(32px, calc(10vh - 54px), 68px);
  --lh-term-gap: clamp(16px, calc(14vh - 108px), 52px);
  --lh-stack-gap: clamp(16px, calc(18vh - 140px), 60px);
  height: clamp(560px, 56vw, 840px);
  margin-top: clamp(28px, calc(8vh - 38px), 48px);
  overflow: hidden;
  border-radius: 10px;
  isolation: isolate;
  animation: lh-rise 1200ms var(--ease-out) 120ms both;
}
.lh-art {
  position: absolute;
  inset: 0;
  background: var(--lh-art);
  transform: translate(calc(var(--lh-px, 0) * -12px), calc(var(--lh-py, 0) * -9px)) scale(1.03);
}
.lh-art-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: lh-fade 1400ms var(--ease-out) both;
}
.lh-stage::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  content: '';
  pointer-events: none;
}
:root[data-theme='light'] .lh-stage::after {
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.06);
}

.lh-window {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0 6px 6px;
  border-radius: 18px;
  background: var(--lh-window);
  box-shadow: var(--lh-window-shadow), inset 0 0 0 1px var(--lh-window-edge), inset 0 1px 0 var(--lh-window-highlight);
  transform: translate(
    calc(var(--wx, 0px) + var(--lh-px, 0) * var(--depth, 0) * 1px),
    calc(var(--wy, 0px) + var(--lh-py, 0) * var(--depth, 0) * 1px)
  );
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  animation: lh-window-in 1000ms var(--ease-out) both;
}
.lh-window-bar {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-top: 2px;
  color: var(--lh-faint);
  font-size: 12.5px;
  font-weight: 500;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.lh-window-bar:active { cursor: grabbing; }
.lh-window-action {
  position: absolute;
  top: 5px;
  right: 2px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lh-faint);
  cursor: pointer;
  place-items: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.lh-window-action:hover { background: var(--lh-hover); color: var(--lh-ink); }
.lh-well {
  position: relative;
  border-radius: 12px;
  background: var(--lh-well);
  box-shadow: inset 0 0 0 1px var(--lh-well-edge);
}
.lh-window-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-top: 6px;
  padding: 0 10px;
}

.lh-terminal {
  --depth: 10;
  top: calc(var(--lh-code-top) + var(--lh-term-gap));
  right: 4.5%;
  width: clamp(410px, 30vw, 510px);
  animation-delay: 640ms;
}
.lh-code {
  --depth: 14;
  top: var(--lh-code-top);
  left: 5.5%;
  width: clamp(500px, 46vw, 760px);
  animation-delay: 320ms;
}
.lh-presets {
  --depth: 22;
  top: calc(var(--lh-code-top) + var(--lh-term-gap) + 132px + var(--lh-stack-gap));
  right: 16%;
  z-index: 3;
  width: clamp(330px, 28vw, 490px);
  animation-delay: 480ms;
}

/* Interactive Shader Tuner Code Block */
.lh-pre {
  margin: 0;
  padding: 15px 18px 16px 0;
  overflow: visible;
  color: var(--lh-ink);
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 0.8vw, 14.5px);
  line-height: 1.72;
  counter-reset: line;
}
.lh-line {
  position: relative;
  display: block;
  padding-left: 48px;
  white-space: pre;
}
.lh-line::before {
  position: absolute;
  left: 0;
  width: 30px;
  color: var(--lh-faint);
  content: counter(line);
  counter-increment: line;
  opacity: 0.55;
  text-align: right;
}
.lh-kw { color: var(--lh-code-kw); }
.lh-str { color: var(--lh-code-str); }
.lh-attr { color: var(--lh-muted); }
.lh-punc { color: var(--lh-faint); }
.lh-value { color: var(--lh-accent, #FF9FFC); transition: color 600ms var(--ease-out); }

.lh-scrub {
  position: relative;
  margin: 0;
  padding: 0 0.14em;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  transition: background 180ms var(--ease-out);
}
button.lh-scrub { cursor: pointer; }
.lh-scrub:hover, .lh-scrub[data-active], .lh-scrub[aria-expanded='true'] {
  background: var(--lh-hover);
  text-decoration-color: currentColor;
}

.lh-color { position: relative; display: inline-flex; }
.lh-color i {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-right: 0.38em;
  border-radius: 0.18em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  vertical-align: -0.04em;
}
.lh-swatches {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  z-index: 20;
  display: none;
  gap: 5px;
  padding: 7px;
  border-radius: 14px;
  background: var(--lh-menu);
  box-shadow: var(--lh-menu-shadow), inset 0 0 0 1px var(--lh-menu-edge);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}
.lh-swatches.open { display: flex; animation: lh-pop 180ms var(--ease-out) both; }
.lh-swatches button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.lh-swatches button[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--lh-menu), 0 0 0 3.5px var(--lh-ink);
}

/* Status Relic Strip inside Code Window */
.lh-relic-strip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lh-relic-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.lh-relic-dot:hover {
  background: var(--lh-hover);
  transform: translateY(-2px) scale(1.1);
}
.lh-relic-dot img { width: 20px; height: 20px; }
.lh-status-hint {
  font-size: 12px;
  color: var(--lh-faint);
  font-family: var(--font-mono);
}

/* Terminal Window */
.lh-term {
  position: relative;
  padding: 12px 16px 13px;
  overflow: hidden;
  color: var(--lh-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.78;
}
.lh-term-line { white-space: pre; }
.lh-term-prompt { color: var(--lh-faint); }
.lh-term-rest { color: transparent; }
.lh-term-out {
  color: var(--lh-muted);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.lh-term-out[data-shown] { opacity: 1; transform: none; }
.lh-term-ok { color: var(--lh-accent, #FF9FFC); transition: color 600ms var(--ease-out); }
.lh-caret {
  display: inline-block;
  width: 0.56em;
  height: 1.12em;
  margin-left: 1px;
  background: currentColor;
  opacity: 0.65;
  vertical-align: -0.22em;
}
.lh-caret--idle { margin-left: 8px; animation: lh-blink 1.1s steps(1) infinite; }
@keyframes lh-blink { 50% { opacity: 0; } }

/* Presets Window */
.lh-preset-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}
.lh-preset-thumb {
  position: absolute;
  top: 4px;
  right: 4px;
  left: 4px;
  height: 44px;
  transform: translateY(calc(var(--i, 0) * 46px));
  border-radius: 8px;
  background: var(--lh-row-active);
  box-shadow: inset 0 0 0 1px var(--lh-well-edge);
  pointer-events: none;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms var(--ease-out);
}
.lh-preset-thumb[data-hidden] { opacity: 0; }
.lh-preset {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 44px;
  align-items: center;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lh-muted);
  text-align: left;
  cursor: pointer;
  column-gap: 14px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  transition: color 200ms var(--ease-out);
}
.lh-preset:hover, .lh-preset[aria-checked='true'] { color: var(--lh-ink); }
.lh-preset-swatches { display: flex; }
.lh-preset-swatches i {
  width: 14px;
  height: 14px;
  margin-right: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lh-well);
}
.lh-preset-name { font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.lh-preset-hint { color: var(--lh-faint); font-family: var(--font-mono); font-size: 11px; }

.lh-studio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lh-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  transition: color var(--transition-fast);
}
.lh-studio:hover { color: var(--lh-ink); }

@keyframes lh-rise {
  from { opacity: 0; filter: blur(8px); transform: translateY(16px); }
}
@keyframes lh-window-in {
  from { opacity: 0; translate: 0 22px; }
}
@keyframes lh-fade { from { opacity: 0; } }
@keyframes lh-pop { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 1120px) {
  .lh-terminal { display: none; }
  .lh-top {
    grid-template-areas: 'chip' 'title' 'lede' 'actions';
    grid-template-columns: minmax(0, 1fr);
  }
  .lh-lede { margin: 16px 0 0; }
  .lh-lede span { display: inline; white-space: normal; }
  .lh-code { width: 62%; }
  .lh-presets {
    top: calc(var(--lh-code-top) + clamp(190px, 28vh, 260px));
    right: 4%;
    width: 44%;
  }
  .lh-preset-hint { display: none; }
}
@media (max-width: 768px) {
  .lh { --lh-left: 18px; --lh-right: 18px; padding-bottom: 48px; }
  .lh-inner { padding-top: 94px; }
  .lh-title { font-size: clamp(27px, 7.2vw, 34px); }
  .lh-title br { display: none; }
  .lh-actions { flex-direction: column; margin-top: 22px; }
  .lh-btn { width: 100%; height: 48px; }
  .lh-stage { height: auto; aspect-ratio: 4 / 5; margin-top: 28px; }
  .lh-code { display: none; }
  .lh-window { transform: none; }
  .lh-presets { top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; }
  .lh-presets .lh-window-status { display: none; }
  .lh-preset-list { display: grid; gap: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lh-preset-thumb {
    right: auto; bottom: 4px; width: calc((100% - 8px) / 5); height: auto;
    transform: translateX(calc(var(--i, 0) * 100%));
  }
  .lh-preset { display: flex; justify-content: center; height: 38px; padding: 0; }
  .lh-preset-swatches, .lh-preset-hint { display: none; }
  .lh-preset-name { font-size: 12px; }
}

/* ==========================================================================
   4. Shared Editorial Section Heading
   ========================================================================== */
.ln-sec-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.036em;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.ln-sec-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 58ch;
}
.ln-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* ==========================================================================
   5. Bento Features Section (12-Col Asymmetric, 1:1 React Bits)
   ========================================================================== */
.ln-features-section {
  position: relative;
  width: 100%;
  padding: 76px 0 96px;
  background: var(--bg-body);
  z-index: 4;
}
.ln-features-inner {
  max-width: 1324px;
  margin: 0 auto;
  padding: 0 24px;
}
.ln-features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.ln-features-card--span-5 { grid-column: span 5; }
.ln-features-card--span-4 { grid-column: span 4; }
.ln-features-card--span-3 { grid-column: span 3; }

.ln-features-card {
  padding: 5px;
  background: var(--surface-ghost-track);
  border: 1px solid transparent;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--surface-ghost-highlight);
  transition: background-color 0.3s ease, translate 0.3s var(--ease-out);
  overflow: hidden;
}
:root[data-theme='light'] .ln-features-card {
  background: #fff;
  border-color: var(--border-subtle);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .ln-features-card:hover {
    background-color: var(--surface-ghost);
    translate: 0 -2px;
  }
  :root[data-theme='light'] .ln-features-card:hover {
    background-color: #fafafa;
  }
}

.ln-features-card-visual {
  height: 176px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(9, 8, 11, 0.54);
}
:root[data-theme='light'] .ln-features-card-visual {
  background: #f5f5f7;
}
.ln-features-card-body { padding: 16px 17px 15px; }
.ln-features-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.ln-features-card-body p {
  font-size: 13px;
  line-height: 1.58;
  color: var(--text-muted);
  margin: 0;
}

/* 5.1 Infinite Item Marquee */
.ln-feat-marquee {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.ln-feat-marquee-track { overflow: hidden; width: 100%; }
.ln-feat-marquee-scroll {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.ln-feat-marquee-scroll--rev { animation: marqueeScrollRev 32s linear infinite; }
.ln-feat-marquee:hover .ln-feat-marquee-scroll { animation-play-state: paused; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollRev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.ln-feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-ghost-track);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  padding: 5px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform var(--dur-press) var(--ease-out);
}
.ln-feat-pill img { width: 15px; height: 15px; }
.ln-feat-pill:hover {
  background: var(--surface-ghost);
  box-shadow: var(--surface-ghost-highlight);
  color: var(--text-primary);
}
:root[data-theme='light'] .ln-feat-pill {
  background: #fff;
  border-color: rgba(24, 24, 27, 0.08);
}

/* 5.2 Magnetic Dock */
.ln-feat-tools {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
}
.ln-feat-dock {
  --dock-base: min(42px, calc((100cqi - 44px) / 5.82));
  display: flex;
  height: calc(var(--dock-base) * 1.6);
  align-items: flex-end;
  gap: 7px;
}
.ln-feat-dock-item {
  position: relative;
  display: grid;
  width: calc(var(--dock-base) * var(--s, 1));
  height: calc(var(--dock-base) * var(--s, 1));
  flex: none;
  border: 0;
  border-radius: calc(var(--dock-base) * 0.31 * var(--s, 1));
  background: #1f1a27;
  box-shadow: var(--surface-ghost-highlight), 0 8px 20px rgba(0, 0, 0, 0.35);
  place-items: center;
  cursor: pointer;
  transform: translateY(var(--lift, 0px));
}
:root[data-theme='light'] .ln-feat-dock-item {
  background: #fff;
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.08), inset 0 0 0 1px rgba(24, 24, 27, 0.07);
}
.ln-feat-dock-item img { width: 56%; height: 56%; }
.ln-feat-dock-title {
  position: absolute;
  top: 16px;
  left: 50%;
  height: 28px;
  overflow: hidden;
  border-radius: 9px;
  background: #2a2433;
  box-shadow: var(--surface-ghost-highlight), 0 6px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px) scale(0.96);
  transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out), width 300ms var(--ease-out);
}
:root[data-theme='light'] .ln-feat-dock-title {
  background: #18171c;
}
.ln-feat-dock-title[data-on] {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.ln-feat-dock-names {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  width: max-content;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, calc(var(--n, 0) * -28px));
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ln-feat-dock-name {
  height: 28px;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
  white-space: nowrap;
}

/* 5.3 Dual Counter-Rotating Orbit Rings */
.ln-feat-orbit {
  position: relative;
  width: 280px;
  height: 280px;
}
.ln-feat-orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #1f1a27;
  box-shadow: var(--surface-ghost-highlight), 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
:root[data-theme='light'] .ln-feat-orbit-center,
:root[data-theme='light'] .ln-feat-orbit-node {
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.08), inset 0 0 0 1px rgba(24, 24, 27, 0.07);
}
.ln-feat-orbit-center img { width: 30px; height: 30px; border-radius: 6px; }
.ln-feat-orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
:root[data-theme='light'] .ln-feat-orbit-ring { border-color: rgba(24, 24, 27, 0.08); }
.ln-feat-orbit-ring--1 {
  width: 140px; height: 140px;
  margin: -70px 0 0 -70px;
  animation: spinCW 22s linear infinite;
}
.ln-feat-orbit-ring--2 {
  width: 256px; height: 256px;
  margin: -128px 0 0 -128px;
  animation: spinCCW 34s linear infinite;
}
.ln-feat-orbit-node {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #1f1a27;
  box-shadow: var(--surface-ghost-highlight), 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ln-feat-orbit-node img { width: 20px; height: 20px; }
.ln-feat-orbit-ring--1 .ln-feat-orbit-node img { animation: spinCCW 22s linear infinite; }
.ln-feat-orbit-ring--2 .ln-feat-orbit-node img { animation: spinCW 34s linear infinite; }
.ln-feat-orbit-ring--1 .n-top { top: -19px; left: calc(50% - 19px); }
.ln-feat-orbit-ring--1 .n-right { right: -19px; top: calc(50% - 19px); }
.ln-feat-orbit-ring--1 .n-bottom { bottom: -19px; left: calc(50% - 19px); }
.ln-feat-orbit-ring--1 .n-left { left: -19px; top: calc(50% - 19px); }
.ln-feat-orbit-ring--2 .n-top { top: -19px; left: calc(50% - 19px); }
.ln-feat-orbit-ring--2 .n-tr { top: calc(14.65% - 19px); left: calc(85.35% - 19px); }
.ln-feat-orbit-ring--2 .n-right { top: calc(50% - 19px); left: calc(100% - 19px); }
.ln-feat-orbit-ring--2 .n-br { top: calc(85.35% - 19px); left: calc(85.35% - 19px); }
.ln-feat-orbit-ring--2 .n-bottom { top: calc(100% - 19px); left: calc(50% - 19px); }
.ln-feat-orbit-ring--2 .n-bl { top: calc(85.35% - 19px); left: calc(14.65% - 19px); }
.ln-feat-orbit-ring--2 .n-left { top: calc(50% - 19px); left: -19px; }
.ln-feat-orbit-ring--2 .n-tl { top: calc(14.65% - 19px); left: calc(14.65% - 19px); }
@keyframes spinCW { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinCCW { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* 5.4 Variant Rows (PC/PE Modes) */
.ln-feat-vrows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 14px;
}
.ln-feat-vrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--surface-ghost-highlight);
  flex: 1;
  opacity: 0.34;
  transition: opacity 0.4s ease, background 0.3s ease;
}
.ln-feat-vrow.active { opacity: 1; }
:root[data-theme='light'] .ln-feat-vrow {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.07);
}
.ln-feat-vrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lh-accent, #a855f7); flex-shrink: 0; }
.ln-feat-vrow-label { font-size: 12px; font-weight: 500; color: var(--text-primary); white-space: nowrap; min-width: 96px; }
.ln-feat-vrow-bars { display: flex; align-items: center; gap: 5px; flex: 1; }
.ln-feat-vrow-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
:root[data-theme='light'] .ln-feat-vrow-bar { background: rgba(24, 24, 27, 0.09); }

/* 5.5 Animated Console Card */
.ln-feat-aichat { width: 100%; height: 100%; padding: 10px; }
.ln-feat-aichat-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--surface-ghost-highlight);
  border-radius: 10px;
  overflow: hidden;
}
:root[data-theme='light'] .ln-feat-aichat-inner {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.07);
}
.ln-feat-aichat-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px; }
.ln-feat-aichat-dots { display: flex; gap: 5px; }
.ln-feat-aichat-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
:root[data-theme='light'] .ln-feat-aichat-dots span { background: rgba(24, 24, 27, 0.14); }
.ln-feat-aichat-title { font-size: 10.5px; color: var(--text-dimmed); font-family: var(--font-mono); }
.ln-feat-aichat-prompt-row {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 8px 0; padding: 8px 10px;
  border-radius: 7px;
  background: rgba(9, 8, 11, 0.45);
}
:root[data-theme='light'] .ln-feat-aichat-prompt-row { background: #f4f4f6; }
.ln-feat-aichat-chevron { font-size: 11px; color: var(--text-dimmed); font-family: var(--font-mono); }
.ln-feat-aichat-prompt { font-size: 11.5px; color: var(--text-secondary); font-family: var(--font-mono); white-space: nowrap; }
.ln-feat-aichat-cursor {
  width: 2px; height: 13px; background: var(--text-muted); border-radius: 1px;
  animation: lh-blink 0.8s ease-in-out infinite;
}
.ln-feat-aichat-code-block {
  display: flex; flex-direction: column; padding: 8px 12px; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
}
.ln-feat-aichat-code-line { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.ln-feat-aichat-code-line.shown { opacity: 1; transform: none; }
.ln-feat-aichat-ln { color: var(--text-dimmed); opacity: 0.45; width: 14px; text-align: right; }

/* 5.6 Live Stats Star Card */
.ln-feat-stars {
  width: 100%; height: 100%; padding: 16px 20px 0;
  display: flex; flex-direction: column;
}
.ln-feat-stars-label { font-size: 11.5px; color: var(--text-dimmed); letter-spacing: 0.02em; }
.ln-feat-stars-count {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  background: linear-gradient(to bottom, var(--text-primary) 28%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.65;
}
.ln-feat-stars-chart { flex: 1; min-height: 0; margin: 0 -20px; overflow: hidden; }
.ln-feat-stars-chart svg { width: 100%; height: 100%; display: block; }

@media (max-width: 1024px) {
  .ln-features-grid { grid-template-columns: repeat(2, 1fr); }
  .ln-features-card--span-5, .ln-features-card--span-4, .ln-features-card--span-3 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .ln-features-grid { grid-template-columns: 1fr; }
  .ln-features-section { padding: 56px 0 72px; }
  .ln-features-inner { padding: 0 16px; }
}

/* ==========================================================================
   6. Interactive Pixel Encyclopedia (#wiki — React Bits Dark-Well Aesthetic)
   ========================================================================== */
.ln-wiki-section {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 88px 0 104px;
  background: var(--bg-alt);
}
.ln-wiki-inner {
  max-width: 1324px;
  margin: 0 auto;
  padding: 0 24px;
}
.ln-wiki-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ln-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface-ghost-track);
  box-shadow: var(--surface-ghost-highlight);
}
:root[data-theme='light'] .ln-cat-pills {
  background: #f2f2f5;
  box-shadow: none;
}
.ln-cat-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--dur-press) var(--ease-out);
}
.ln-cat-btn:hover { color: var(--text-primary); }
.ln-cat-btn:active { transform: scale(0.97); }
.ln-cat-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.25);
}
:root[data-theme='light'] .ln-cat-btn.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 24, 27, 0.08);
}

.ln-search-wrap {
  position: relative;
  min-width: 240px;
}
.ln-search-input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 36px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--field-bg);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.ln-search-input::placeholder { color: var(--text-dimmed); }
.ln-search-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.14);
}
.ln-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dimmed);
  pointer-events: none;
}
.ln-search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-ghost);
  color: var(--text-dimmed);
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
}

.ln-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.ln-item-card {
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--surface-ghost-track);
  box-shadow: var(--surface-ghost-highlight);
  cursor: pointer;
  transition: background-color 0.25s ease, translate 0.25s var(--ease-out);
}
:root[data-theme='light'] .ln-item-card {
  background: #fff;
  border-color: var(--border-subtle);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .ln-item-card:hover {
    background-color: var(--surface-ghost);
    translate: 0 -2px;
  }
  :root[data-theme='light'] .ln-item-card:hover {
    border-color: rgba(24, 24, 27, 0.16);
  }
}
.ln-item-well {
  padding: 15px 15px 13px;
  border-radius: 11px;
  background: rgba(9, 8, 11, 0.54);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
:root[data-theme='light'] .ln-item-well { background: #f7f7f9; }
.ln-item-top { display: flex; align-items: center; gap: 12px; }
.ln-item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease-out);
}
:root[data-theme='light'] .ln-item-icon {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.07);
}
.ln-item-card:hover .ln-item-icon { transform: scale(1.06); }
.ln-item-icon img { width: 34px; height: 34px; }
.ln-item-name { font-size: 14.5px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; line-height: 1.25; }
.ln-item-rarity {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
}
.r-mythic { background: rgba(244, 63, 94, 0.16); color: #fda4af; }
.r-exp { background: rgba(168, 85, 247, 0.18); color: #e2c9ff; }
.r-classic { background: rgba(251, 191, 36, 0.16); color: #fde68a; }
.r-machine { background: rgba(56, 189, 248, 0.16); color: #bae6fd; }
.r-mat { background: rgba(52, 211, 153, 0.15); color: #a7f3d0; }
:root[data-theme='light'] .r-mythic { background: #ffe4e6; color: #be123c; }
:root[data-theme='light'] .r-exp { background: #f3e8ff; color: #7e22ce; }
:root[data-theme='light'] .r-classic { background: #fef3c7; color: #b45309; }
:root[data-theme='light'] .r-machine { background: #e0f2fe; color: #0369a1; }
:root[data-theme='light'] .r-mat { background: #d1fae5; color: #047857; }

.ln-item-desc {
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ln-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 6px;
  font-size: 11.5px;
  color: var(--text-dimmed);
}
.ln-item-lore { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   7. Community Releases & Live 3-Col Highlight Wall
   ========================================================================== */
.ln-community-section {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 88px 0 80px;
  background: var(--bg-body);
}
.ln-community-inner {
  max-width: 1324px;
  margin: 0 auto;
  padding: 0 24px;
}
.ln-mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}
.ln-mod-shell {
  padding: 6px;
  border-radius: 18px;
  background: var(--surface-ghost-track);
  box-shadow: var(--surface-ghost-highlight);
  display: flex;
  flex-direction: column;
}
:root[data-theme='light'] .ln-mod-shell {
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}
.ln-mod-well {
  padding: 22px;
  border-radius: 13px;
  background: rgba(9, 8, 11, 0.56);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
:root[data-theme='light'] .ln-mod-well { background: #f8f8fa; }
.ln-mod-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ln-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-ghost);
  color: var(--text-secondary);
}
.ln-badge--accent { background: rgba(168, 85, 247, 0.22); color: #e2c9ff; }
:root[data-theme='light'] .ln-badge--accent { background: #f3e8ff; color: #7e22ce; }
.ln-mod-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.ln-mod-sub { font-size: 13.5px; color: var(--text-muted); margin-top: -6px; }
.ln-mod-summary { margin: 0; font-size: 13.5px; line-height: 1.68; color: var(--text-secondary); }
.ln-mod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ln-mod-tag {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-ghost-track);
  color: var(--text-muted);
}
.ln-mod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px 8px;
}
.ln-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.ln-like-btn:hover { background: var(--surface-ghost); }
.ln-like-btn.liked {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: #fda4af;
}
:root[data-theme='light'] .ln-like-btn.liked { color: #e11d48; }

/* 3-Column Infinite Vertical Scrolling Wall (1:1 React Bits Testimonials) */
.ln-test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: 460px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.ln-test-col { overflow: hidden; position: relative; height: 100%; }
.ln-test-col-scroll { display: flex; flex-direction: column; }
.ln-test-col-set { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; flex-shrink: 0; }
.ln-test-col-scroll--up { animation: testScrollUp 38s linear infinite; }
.ln-test-col-scroll--down { animation: testScrollDown 38s linear infinite; }
.ln-test-grid:hover .ln-test-col-scroll { animation-play-state: paused; }
@keyframes testScrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes testScrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

.ln-test-card {
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 16px;
  background: rgba(24, 20, 31, 0.58);
  box-shadow: var(--surface-ghost-highlight);
  flex-shrink: 0;
}
:root[data-theme='light'] .ln-test-card {
  background: #fff;
  border: 1px solid rgba(24, 24, 27, 0.08);
  box-shadow: none;
}
.ln-test-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 11px;
  background: rgba(9, 8, 11, 0.55);
}
:root[data-theme='light'] .ln-test-card-inner { background: #f7f7f8; }
.ln-test-card-head { display: flex; align-items: center; justify-content: space-between; }
.ln-test-card-head-left { display: flex; align-items: center; gap: 9px; }
.ln-test-avatar {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text-primary);
}
.ln-test-avatar img { width: 18px; height: 18px; }
.ln-test-handle { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.ln-test-text { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--text-secondary); }

@media (max-width: 820px) {
  .ln-test-grid { grid-template-columns: repeat(2, 1fr); height: 400px; }
  .ln-test-grid > :nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .ln-test-grid { grid-template-columns: 1fr; height: 340px; }
  .ln-test-grid > :nth-child(2) { display: none; }
}

/* ==========================================================================
   8. Sticky Accordion FAQ (1:1 React Bits)
   ========================================================================== */
.ln-faq-section {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 88px 0 96px;
  background: var(--bg-body);
}
.ln-faq-inner {
  max-width: 1324px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.prox-faq-aside { position: sticky; top: 116px; }
.prox-faq { display: flex; flex-direction: column; gap: 8px; }
.prox-faq-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  transition: background var(--transition-fast);
}
.prox-faq-item:hover { background: rgba(255, 255, 255, 0.045); }
.prox-faq-item.open { background: rgba(255, 255, 255, 0.058); }
:root[data-theme='light'] .prox-faq-item { background: #f6f6f8; }
:root[data-theme='light'] .prox-faq-item.open { background: #efefef; }

.prox-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.prox-faq-q:hover, .prox-faq-item.open .prox-faq-q { color: var(--text-primary); }
.prox-faq-icon {
  flex-shrink: 0;
  color: var(--text-dimmed);
  transition: transform 0.35s var(--ease-out), color var(--transition-fast);
}
.prox-faq-item.open .prox-faq-icon { transform: rotate(135deg); color: var(--text-primary); }
.prox-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease-out);
}
.prox-faq-item.open .prox-faq-panel { grid-template-rows: 1fr; }
.prox-faq-panel-inner { overflow: hidden; }
.prox-faq-a {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-muted);
  margin: 0 20px 20px;
  max-width: 62ch;
}
@media (max-width: 960px) {
  .ln-faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .prox-faq-aside { position: static; }
}

/* ==========================================================================
   9. Closing WebGL CTA + Signature Knockout-Mosaic Footer
   ========================================================================== */
.ln-footer {
  --footer-ink: #f4f0f8;
  --footer-muted: #96909f;
  --footer-card: #17141d;
  --footer-card-edge: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  width: 100%;
  overflow: clip;
  padding: 20px 0 42px;
  background: var(--bg-body);
  color: var(--footer-muted);
}
:root[data-theme='light'] .ln-footer {
  --footer-ink: #221d29;
  --footer-muted: #726c7c;
  --footer-card: #f6f6f7;
  --footer-card-edge: inset 0 0 0 1px rgba(24, 24, 27, 0.05);
}
.ln-footer-inner {
  max-width: 1324px;
  margin: 0 auto;
  padding: 0 24px;
}
.ln-footer-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--footer-card);
  box-shadow: var(--footer-card-edge);
  isolation: isolate;
}

.ln-cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 6px 0;
  padding: clamp(72px, 7vw, 100px) 24px clamp(104px, 10vw, 144px);
  border-radius: 18px;
  background: #0e0b13;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
:root[data-theme='light'] .ln-cta-card { background: #fff; }
.ln-cta-card::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  content: '';
  pointer-events: none;
}
:root[data-theme='light'] .ln-cta-card::after { box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.05); }
.ln-cta-bg {
  --ln-cta-fade: linear-gradient(to bottom, transparent 0, transparent 20%, rgba(0,0,0,0.45) 52%, #000 80%);
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: var(--ln-cta-fade);
  mask: var(--ln-cta-fade);
}
.ln-cta-bg > * { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(1.15); }
.ln-cta-headline {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.036em;
}
.ln-cta-sub {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.ln-cta-buttons { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ln-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s ease, background 0.2s ease, transform var(--dur-press) var(--ease-out);
}
.ln-cta-btn--primary { background: #fff; color: #120f17; }
:root[data-theme='light'] .ln-cta-btn--primary { background: #18181b; color: #fff; }
.ln-cta-btn--secondary {
  background: var(--surface-ghost);
  box-shadow: var(--surface-ghost-highlight);
  color: var(--text-primary);
  backdrop-filter: var(--surface-ghost-blur);
}
.ln-cta-btn:active { transform: scale(0.97); }
.ln-cta-btn--primary:hover { filter: brightness(0.9); }
.ln-cta-btn--secondary:hover { background: var(--surface-ghost-hover); }

.ln-footer-top {
  display: grid;
  padding: 40px 40px 0;
  column-gap: 48px;
  row-gap: 28px;
  grid-template-areas: 'brand nav' 'legal nav';
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
}
.ln-footer-brand { grid-area: brand; }
.ln-footer-brand p { margin: 12px 0 0; font-size: 13px; line-height: 1.55; max-width: 38ch; }
.ln-footer-nav {
  display: grid;
  font-size: 13px;
  column-gap: clamp(32px, 5vw, 72px);
  grid-area: nav;
  grid-template-columns: repeat(3, max-content);
}
.ln-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.ln-footer-col-title { color: var(--footer-ink); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.ln-footer-top a { color: inherit; transition: color 180ms ease; }
.ln-footer-top a:hover { color: var(--footer-ink); }
.ln-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: end;
  font-size: 12px;
  gap: 6px 14px;
  grid-area: legal;
}
.ln-footer-art {
  --footer-art-mask: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.45) calc(var(--art-fade, 90px) * 0.55), #000 var(--art-fade, 90px));
  position: relative;
  width: 100%;
  height: clamp(130px, 16vw, 240px);
  margin-top: clamp(32px, 4vw, 56px);
  overflow: hidden;
  -webkit-mask-image: var(--footer-art-mask);
  mask-image: var(--footer-art-mask);
}
.ln-footer-mosaic-canvas { display: block; width: 100%; height: 100%; }

@media (max-width: 720px) {
  .ln-footer-top {
    padding: 28px 20px 0;
    grid-template-areas: 'brand' 'nav' 'legal';
    grid-template-columns: 1fr;
  }
  .ln-footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
}

/* ==========================================================================
   10. Frosted Modals, Forms, Comments & Toast
   ========================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 6, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay.open { display: flex; animation: lh-fade 180ms ease both; }
.modal {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 22px;
  background: var(--ln-shell);
  box-shadow: var(--ln-shell-shadow), inset 0 0 0 1px var(--ln-shell-edge), inset 0 1px 0 var(--ln-shell-highlight);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
}
.modal-sm { max-width: 450px; }
.modal-body {
  background: var(--modal-bg);
  border-radius: 16px;
  padding: 22px;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.close-btn {
  width: 32px; height: 32px; border-radius: 10px; border: 0;
  background: var(--surface-ghost); color: var(--text-muted);
  font-size: 18px; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.close-btn:hover { background: var(--surface-ghost-hover); color: var(--text-primary); }

.m-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--field-bg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.m-box-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dimmed);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.pre-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.68; color: var(--text-secondary); }

.search-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px dashed rgba(168, 85, 247, 0.45);
  font-size: 13.5px;
}

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; }
.input, .textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--field-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13.5px;
}
.input:focus, .textarea:focus { outline: none; border-color: rgba(168, 85, 247, 0.6); }
.textarea { min-height: 84px; resize: vertical; }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--field-bg); margin-bottom: 16px; }
.tab {
  flex: 1; padding: 8px; border-radius: 9px; border: 0;
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.tab.active { background: var(--surface-ghost-hover); color: var(--text-primary); }

.comment-item {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface-ghost-track);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.admin-tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  font-weight: 600;
  margin-left: 6px;
}
:root[data-theme='light'] .admin-tag { background: #fef3c7; color: #b45309; }

.btn-danger-sm {
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}
.btn-gold-sm {
  border: 0;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #141118;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1d1926;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f6f4f9;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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