/* ClawHunt friendly premium redesign layer.
   This file intentionally sits after the legacy single-file styles and
   gradually pulls the SPA toward tokenized, calmer surfaces. */
:root {
  --ch-ink: #05070c;
  --ch-ink-2: #0b111d;
  --ch-ink-3: #111827;
  --ch-panel: rgba(13, 19, 31, 0.82);
  --ch-panel-strong: rgba(8, 13, 23, 0.92);
  --ch-panel-soft: rgba(255, 255, 255, 0.055);
  --ch-line: rgba(148, 163, 184, 0.18);
  --ch-line-strong: rgba(96, 165, 250, 0.28);
  --ch-text: #f8fafc;
  --ch-text-soft: rgba(226, 232, 240, 0.76);
  --ch-muted: rgba(148, 163, 184, 0.72);
  --ch-blue: #2f7df6;
  --ch-blue-soft: #78aefc;
  --ch-green: #27c77a;
  --ch-green-soft: #86efac;
  --ch-warm: #d8dee8;
  --ch-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --ch-shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.18);
  --ch-radius: 8px;
  --ch-radius-lg: 14px;
  --cp-bg: var(--ch-ink);
  --cp-surface: var(--ch-panel);
  --cp-surface-strong: var(--ch-panel-strong);
  --cp-border: var(--ch-line);
  --cp-text: var(--ch-text);
  --cp-text-soft: var(--ch-text-soft);
  --cp-muted: var(--ch-muted);
  --cyber-blue: var(--ch-blue);
  --cyber-green: var(--ch-green);
  --cyber-purple: var(--ch-blue);
  --cyber-pink: var(--ch-blue-soft);
  --cyber-yellow: var(--ch-green-soft);
  --cp-gradient: linear-gradient(135deg, #2f7df6 0%, #27c77a 100%);
}

html.light-theme {
  --ch-ink: #f6f8fb;
  --ch-ink-2: #eef3f9;
  --ch-ink-3: #dfe8f3;
  --ch-panel: rgba(255, 255, 255, 0.88);
  --ch-panel-strong: rgba(255, 255, 255, 0.98);
  --ch-panel-soft: rgba(15, 23, 42, 0.035);
  --ch-line: rgba(15, 23, 42, 0.12);
  --ch-line-strong: rgba(47, 125, 246, 0.24);
  --ch-text: #111827;
  --ch-text-soft: rgba(17, 24, 39, 0.76);
  --ch-muted: rgba(71, 85, 105, 0.74);
  --ch-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  --ch-shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
}

body {
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 125, 246, 0.13), transparent 32rem),
    radial-gradient(circle at 12% 12%, rgba(39, 199, 122, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--ch-ink) 0%, var(--ch-ink-2) 48%, var(--ch-ink) 100%) !important;
  color: var(--ch-text) !important;
  font-family: var(--cp-font-body, Inter, system-ui, sans-serif) !important;
}

h1, h2, h3, h4 {
  font-family: var(--cp-font-display, "Space Grotesk", Inter, sans-serif) !important;
  letter-spacing: 0 !important;
}

.circuit-bg,
.math-curve-bg {
  opacity: 0.16 !important;
  filter: saturate(0.55) hue-rotate(8deg);
}

html.light-theme .circuit-bg,
html.light-theme .math-curve-bg {
  opacity: 0.08 !important;
}

#main-nav {
  background: color-mix(in srgb, var(--ch-ink) 88%, transparent) !important;
  border-bottom: 1px solid var(--ch-line) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 44px rgba(0, 0, 0, 0.18);
}

html.light-theme #main-nav {
  background: rgba(255, 255, 255, 0.84) !important;
}

#main-nav .nav-link {
  color: var(--ch-text-soft) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

#main-nav .nav-link:hover,
#main-nav .nav-link.active {
  color: var(--ch-text) !important;
}

#main-nav .nav-link.active::after {
  background: var(--ch-blue) !important;
  box-shadow: none !important;
}

html.light-theme #main-nav .nav-menu-trigger {
  color: #475569 !important;
}

html.light-theme #main-nav .nav-menu-trigger:hover,
html.light-theme #main-nav .nav-dropdown:focus-within .nav-menu-trigger,
html.light-theme #main-nav .nav-dropdown:hover .nav-menu-trigger {
  color: #1d4ed8 !important;
}

html.light-theme #main-nav .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(47, 125, 246, 0.20) !important;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14) !important;
}

html.light-theme #main-nav .nav-dropdown-menu::before {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(47, 125, 246, 0.20) !important;
}

html.light-theme #main-nav .nav-dropdown-label {
  color: #64748b !important;
}

html.light-theme #main-nav .nav-dropdown-item {
  color: #334155 !important;
  background: transparent !important;
}

html.light-theme #main-nav .nav-dropdown-item:hover,
html.light-theme #main-nav .nav-dropdown-item.active {
  color: #0f172a !important;
  background: rgba(224, 242, 254, 0.82) !important;
}

html.light-theme #mobile-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-left-color: rgba(47, 125, 246, 0.18) !important;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.16) !important;
}

html.light-theme #mobile-menu .nav-link {
  color: #334155 !important;
}

html.light-theme #mobile-menu .nav-link:hover,
html.light-theme #mobile-menu .nav-link.active {
  color: #1d4ed8 !important;
}

html.light-theme #mobile-menu .nav-dropdown-label {
  color: #64748b !important;
}

.brand-nav-logo {
  box-shadow: none !important;
}

.label-cyber {
  color: var(--ch-blue-soft) !important;
}

.btn-cyber-blue,
.btn-cyber-purple,
.btn-cyber-green,
button[style*="linear-gradient(135deg,#00d4ff"],
button[style*="linear-gradient(135deg, #8b5cf6"] {
  background: linear-gradient(180deg, #347ff7 0%, #1f66df 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--ch-radius) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.26) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.btn-cyber-green {
  background: linear-gradient(180deg, #2fcf84 0%, #159a60 100%) !important;
  box-shadow: 0 12px 28px rgba(39, 199, 122, 0.22) !important;
}

.theme-toggle,
.language-toggle,
.filter-chip,
.marketplace-view-btn,
.select-cyber,
.input-cyber,
.card-cyber,
.problem-card,
.recommendation-card,
.stat-card,
.glass,
.glass-strong,
.modal-box,
.terminal,
.balance-display {
  background: var(--ch-panel) !important;
  border-color: var(--ch-line) !important;
  border-radius: var(--ch-radius) !important;
  box-shadow: none !important;
  color: var(--ch-text) !important;
}

.glass-strong,
.modal-box,
.balance-display {
  box-shadow: var(--ch-shadow-soft) !important;
}

.filter-chip,
.select-cyber,
.input-cyber,
.marketplace-view-btn {
  color: var(--ch-text-soft) !important;
}

.filter-chip:hover,
.filter-chip.active,
.marketplace-view-btn.is-active {
  background: rgba(47, 125, 246, 0.12) !important;
  border-color: rgba(47, 125, 246, 0.34) !important;
  color: var(--ch-blue-soft) !important;
  box-shadow: none !important;
}

.gradient-text-blue-purple,
.gradient-text-green-blue,
.gradient-text-pink-purple,
.shimmer-text {
  background: linear-gradient(135deg, var(--ch-blue) 0%, var(--ch-green) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}

.problem-card,
.card-cyber {
  position: relative;
}

.problem-card .card-curve-trace,
.card-cyber .card-curve-trace {
  position: absolute !important;
  top: -1px !important;
  right: -1px !important;
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  display: block !important;
  pointer-events: none !important;
  opacity: 0 !important;
  overflow: visible !important;
  color: var(--ch-blue) !important;
}

.card-curve-trace path {
  stroke: var(--ch-blue) !important;
  stroke-width: 2 !important;
  fill: none !important;
  stroke-dasharray: 50 50;
  vector-effect: non-scaling-stroke;
}

.math-curve-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.08;
  z-index: 1;
}

.math-curve-bg svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  max-width: none;
  max-height: none;
  display: block;
  transform: translate(-50%, -50%);
}

.math-curve-bg .curve-path,
.math-curve-bg .curve-trace {
  stroke: var(--ch-blue) !important;
  fill: none !important;
  vector-effect: non-scaling-stroke;
}

#page-loader {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: block !important;
  pointer-events: none !important;
  opacity: 0 !important;
  overflow: visible !important;
  transform: translate(-50%, -50%) !important;
  transition: opacity 0.2s ease;
  z-index: 9999 !important;
}

#page-loader.active {
  opacity: 1 !important;
}

#page-loader svg {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  display: block !important;
  overflow: visible !important;
}

#page-loader .loader-path {
  stroke: var(--ch-blue) !important;
  stroke-width: 2 !important;
  fill: none !important;
  stroke-dasharray: 50 150;
  vector-effect: non-scaling-stroke;
}

.wallet-flow-curve {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none !important;
  opacity: 0.06 !important;
  overflow: hidden !important;
  color: var(--ch-blue) !important;
  z-index: 0 !important;
}

.wallet-flow-curve svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.wallet-flow-curve .flow-path {
  stroke: var(--ch-blue) !important;
  stroke-width: 1.5 !important;
  fill: none !important;
  stroke-dasharray: 30 170;
  vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: reduce) {
  .card-curve-trace,
  .math-curve-bg svg,
  #page-loader svg,
  #page-loader .loader-path,
  .wallet-flow-curve .flow-path {
    animation: none !important;
  }

  .card-curve-trace {
    opacity: 0 !important;
  }
}

/* Homepage hero */
.ch-home-hero {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: clip;
  padding: clamp(48px, 7vw, 96px) 24px 54px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
    radial-gradient(circle at 70% 12%, rgba(47, 125, 246, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 44%, rgba(39, 199, 122, 0.08), transparent 26rem);
}

.ch-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

.ch-home-hero .ch-home-hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 48px));
  max-width: 1180px !important;
}

.ch-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.ch-superclaw-card {
  position: relative;
  z-index: 3;
}

@media (min-width: 921px) {
  .ch-superclaw-card {
    transform: translateY(288px);
  }
  .ch-superclaw-card > div:first-child {
    display: none;
  }
}

.ch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid var(--ch-line);
  border-radius: 999px;
  color: var(--ch-muted);
  background: var(--ch-panel-soft);
  font: 700 11px/1 var(--cp-font-mono, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ch-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ch-green);
}

.ch-hero-title {
  max-width: 680px;
  color: var(--ch-text);
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  font-weight: 760;
  line-height: 0.96;
  margin: 0 0 22px;
}

.ch-hero-title span {
  display: block;
  color: var(--ch-blue);
}

.ch-hero-copy {
  max-width: 620px;
  color: var(--ch-text-soft);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 30px;
}

#page-home .ch-hero-copy {
  width: min(620px, calc(100vw - 48px)) !important;
  max-width: min(620px, calc(100vw - 48px)) !important;
  inline-size: min(620px, calc(100vw - 48px)) !important;
  max-inline-size: min(620px, calc(100vw - 48px)) !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}

.ch-hero-actions,
.ch-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ch-hero-proof {
  margin-top: 30px;
  gap: 0;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: var(--ch-panel);
  overflow: hidden;
  max-width: 680px;
}

.ch-hero-proof-item {
  min-width: 145px;
  padding: 16px 18px;
  border-right: 1px solid var(--ch-line);
}

.ch-hero-proof-item:last-child {
  border-right: 0;
}

.ch-hero-proof-value {
  color: var(--ch-text);
  font: 700 1.3rem/1 var(--cp-font-mono, monospace);
}

.ch-hero-proof-label {
  margin-top: 6px;
  color: var(--ch-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.ch-home-onboarding {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 92px;
  margin: clamp(38px, 5vw, 64px) auto 0;
  padding: 14px;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.10), rgba(39, 199, 122, 0.07)),
    rgba(8, 13, 25, 0.70);
  display: grid;
  grid-template-columns: minmax(340px, 0.66fr) minmax(0, 1.34fr);
  align-items: center;
  gap: clamp(14px, 2.2vw, 24px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(18px);
}

.ch-home-onboarding-info {
  min-width: 0;
}

.ch-home-onboarding-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--ch-green);
  font: 800 11px/1 var(--cp-font-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ch-home-onboarding-title {
  margin: 0;
  color: var(--ch-text);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.16;
  font-weight: 800;
}

.ch-home-onboarding-copytext {
  max-width: 46ch;
  margin: 6px 0 0;
  color: var(--ch-text-soft);
  font-size: 0.82rem;
  line-height: 1.48;
}

.ch-home-onboarding-copytext code {
  color: var(--ch-blue-soft);
  font-family: var(--cp-font-mono, monospace);
}

.ch-home-onboarding-command {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(47, 125, 246, 0.22);
  border-radius: 10px;
  background: rgba(2, 6, 18, 0.40);
}

.ch-home-onboarding-copy {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(47, 125, 246, 0.34);
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.12);
  color: var(--ch-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  cursor: pointer;
  flex: 0 0 auto;
}

.ch-home-onboarding-copy:hover {
  border-color: rgba(47, 125, 246, 0.68);
  background: rgba(47, 125, 246, 0.2);
}

.ch-home-onboarding-code {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(47, 125, 246, 0.28);
  border-radius: 8px;
  background: rgba(2, 6, 18, 0.82);
  color: var(--ch-green);
  font: 700 0.78rem/1.35 var(--cp-font-mono, monospace);
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.light-theme .ch-home-onboarding {
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.08), rgba(39, 199, 122, 0.06)),
    rgba(255, 255, 255, 0.88);
  border-color: rgba(47, 125, 246, 0.18);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

html.light-theme .ch-home-onboarding-title {
  color: #0f172a;
}

html.light-theme .ch-home-onboarding-copytext {
  color: #475569;
}

html.light-theme .ch-home-onboarding-kicker {
  color: #059669;
}

html.light-theme .ch-home-onboarding-command {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(47, 125, 246, 0.20);
}

html.light-theme .ch-home-onboarding-code {
  background: rgba(15, 23, 42, 0.05);
  color: #047857;
  border-color: rgba(47, 125, 246, 0.22);
}

.ch-home-hero form,
.ch-home-hero [style*="background:rgba(10,12,28"],
.ch-home-hero [style*="background:rgba(15,23,42"] {
  background: var(--ch-panel-strong) !important;
  border-color: var(--ch-line) !important;
  border-radius: var(--ch-radius-lg) !important;
  box-shadow: var(--ch-shadow) !important;
}

.ch-home-hero textarea {
  color: var(--ch-text) !important;
}

.ch-geometry-stage {
  position: absolute;
  top: clamp(-150px, -9vw, -96px);
  bottom: clamp(-150px, -9vw, -96px);
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  overflow: hidden;
}

.ch-geometry-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

html.light-theme .ch-geometry-stage {
  opacity: 0.56;
}

#bug-fab {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(47, 125, 246, 0.94), rgba(21, 154, 96, 0.94)) !important;
  border: 1px solid rgba(120, 174, 252, 0.34) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28), 0 8px 24px rgba(39, 199, 122, 0.16) !important;
}

#bug-fab .bug-fab-icon,
#bug-fab svg {
  width: 22px;
  height: 22px;
  color: #fff;
  display: block;
  stroke-width: 2.2;
}

html.light-theme #bug-fab {
  box-shadow: 0 14px 30px rgba(47, 125, 246, 0.18), 0 8px 22px rgba(39, 199, 122, 0.14) !important;
}

@media (max-width: 1360px) {
  body:has(#page-home:not(.hidden)) #bug-fab {
    display: none !important;
  }
}

.ch-geometry-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ch-geometry-fallback span {
  position: absolute;
  display: block;
}

.ch-geometry-fallback-mascot .fallback-orbit {
  right: clamp(4%, 7vw, 12%);
  top: 28%;
  width: clamp(360px, 48vw, 760px);
  height: clamp(130px, 15vw, 230px);
  border: 1px solid rgba(122, 167, 199, 0.42);
  background: transparent;
  border-radius: 50%;
  transform: rotate(-9deg);
}

.ch-geometry-fallback-mascot .fallback-orbit-b {
  right: clamp(8%, 12vw, 18%);
  top: 39%;
  width: clamp(280px, 38vw, 600px);
  height: clamp(96px, 12vw, 170px);
  opacity: 0.62;
  transform: rotate(11deg);
}

.ch-geometry-fallback-mascot .fallback-platform {
  right: clamp(11%, 17vw, 24%);
  bottom: clamp(10%, 13vw, 20%);
  width: clamp(230px, 34vw, 540px);
  height: clamp(74px, 10vw, 150px);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(47, 125, 246, 0.28), rgba(39, 199, 122, 0.08) 44%, transparent 72%),
    repeating-radial-gradient(ellipse at center, transparent 0 18px, rgba(47, 125, 246, 0.22) 19px 20px, transparent 21px 38px);
  opacity: 0.82;
  transform: perspective(640px) rotateX(64deg);
}

.ch-geometry-fallback-mascot .fallback-mascot {
  width: clamp(150px, 18vw, 290px);
  height: clamp(220px, 26vw, 420px);
  border: 1px solid rgba(120, 174, 252, 0.26);
  border-radius: 28px 28px 18px 18px;
  background:
    linear-gradient(160deg, rgba(148, 163, 184, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(29, 43, 61, 0.96), rgba(6, 12, 22, 0.98));
  box-shadow: 0 42px 92px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ch-geometry-fallback-mascot .fallback-mascot::before {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  top: 18%;
  height: clamp(8px, 1vw, 16px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 125, 246, 0.86), rgba(39, 199, 122, 0.82));
  box-shadow: 0 0 24px rgba(47, 125, 246, 0.34);
}

.ch-geometry-fallback-mascot .fallback-mascot::after {
  content: "";
  position: absolute;
  inset: 40% 18% 14%;
  border-radius: 16px;
  border: 1px solid rgba(120, 174, 252, 0.18);
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(47, 125, 246, 0.18) 37% 38%, transparent 39%),
    linear-gradient(180deg, rgba(47, 125, 246, 0.08), rgba(39, 199, 122, 0.08));
}

.ch-geometry-fallback-mascot .fallback-mascot-primary {
  right: clamp(13%, 20vw, 28%);
  top: clamp(12%, 16vw, 21%);
  transform: perspective(760px) rotateY(-16deg) rotateX(3deg);
}

.ch-geometry-fallback-mascot .fallback-mascot-companion {
  right: clamp(4%, 7vw, 12%);
  top: clamp(28%, 30vw, 36%);
  width: clamp(96px, 11vw, 178px);
  height: clamp(142px, 17vw, 258px);
  opacity: 0.72;
  transform: perspective(760px) rotateY(20deg) rotateX(2deg);
}

.ch-geometry-fallback-mascot .fallback-node {
  width: clamp(24px, 3vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #c8e5ff 0 22%, #78aefc 23% 44%, rgba(47, 125, 246, 0.12) 45% 100%);
  box-shadow: 0 0 28px rgba(47, 125, 246, 0.24);
}

.ch-geometry-fallback-mascot .fallback-node-a {
  right: 41%;
  top: 28%;
}

.ch-geometry-fallback-mascot .fallback-node-b {
  right: 9%;
  top: 50%;
  width: clamp(30px, 3.4vw, 56px);
}

.ch-geometry-fallback-mascot .fallback-node-c {
  right: 24%;
  bottom: 18%;
  background: radial-gradient(circle, #9ff2c8 0 20%, #27c77a 21% 44%, rgba(39, 199, 122, 0.12) 45% 100%);
}

/* Functional surfaces */
#page-marketplace,
#page-live,
#page-wallet,
#page-agents-hub,
#page-docs,
#page-community,
#page-superclaw,
#page-dashboard,
#page-admin {
  background:
    radial-gradient(circle at 84% 0%, rgba(47, 125, 246, 0.10), transparent 34rem),
    linear-gradient(180deg, var(--ch-ink-2), var(--ch-ink)) !important;
}

#page-marketplace .problem-card,
#page-live .kanban-card,
#page-live .leaderboard-row,
#page-live .activity-item,
#page-wallet [style*="background: rgba(15,23,42"],
#page-agents-hub [style*="background:rgba(15,23,42"],
#page-docs a[style*="background:rgba(15,23,42"] {
  background: var(--ch-panel) !important;
  border-color: var(--ch-line) !important;
  border-radius: var(--ch-radius) !important;
  box-shadow: none !important;
}

#page-marketplace .problem-card:hover,
#page-live .kanban-card:hover,
#page-docs a[style*="background:rgba(15,23,42"]:hover {
  border-color: var(--ch-line-strong) !important;
  transform: translateY(-1px) !important;
}

#page-marketplace h1,
#page-marketplace h2,
#page-live h1,
#page-live h2,
#page-wallet h1,
#page-wallet h2,
#page-agents-hub h1,
#page-agents-hub h2,
#page-docs h1,
#page-docs h2,
#page-community h1,
#page-community h2 {
  color: var(--ch-text) !important;
}

#page-marketplace p,
#page-live p,
#page-wallet p,
#page-agents-hub p,
#page-docs p,
#page-community p,
.recommendation-card-description,
.hero-subtitle,
.hero-hint {
  color: var(--ch-text-soft) !important;
}

/* Calm down legacy neon accent families without editing every inline surface. */
[stroke="#8b5cf6"],
[stroke="#ff0080"],
[stroke="#ffd700"] {
  stroke: var(--ch-blue) !important;
}

[fill="#8b5cf6"],
[fill="#ff0080"],
[fill="#ffd700"] {
  fill: var(--ch-blue) !important;
}

[style*="color:#8b5cf6"],
[style*="color: #8b5cf6"],
[style*="color:#a78bfa"],
[style*="color: #a78bfa"],
[style*="color:#ff0080"],
[style*="color: #ff0080"],
[style*="color:#ffd700"],
[style*="color: #ffd700"],
[style*="var(--cyber-purple)"],
[style*="var(--cyber-pink)"],
[style*="var(--cyber-yellow)"] {
  color: var(--ch-blue-soft) !important;
}

[style*="rgba(139,92,246"],
[style*="rgba(255,0,128"],
[style*="rgba(255,215,0"] {
  border-color: var(--ch-line) !important;
  box-shadow: none !important;
}

[style*="background: rgba(139,92,246"],
[style*="background:rgba(139,92,246"],
[style*="background: rgba(255,0,128"],
[style*="background:rgba(255,0,128"],
[style*="background: rgba(255,215,0"],
[style*="background:rgba(255,215,0"] {
  background: rgba(47, 125, 246, 0.08) !important;
}

.badge-medium,
.badge-hard,
.badge-expert,
.kanban-badge-category,
.kanban-badge-difficulty-medium,
.kanban-badge-difficulty-hard,
.kanban-badge-difficulty-expert {
  background: rgba(47, 125, 246, 0.12) !important;
  border-color: rgba(47, 125, 246, 0.24) !important;
  color: var(--ch-blue-soft) !important;
}

.pulse-dot::after,
.data-stream::before,
.scan-lines::after,
.glow-blue,
.glow-purple,
.glow-pink,
.glow-border-pulse {
  box-shadow: none !important;
}

html.light-theme .ch-home-hero {
  background:
    radial-gradient(circle at 76% 14%, rgba(47, 125, 246, 0.14), transparent 30rem),
    radial-gradient(circle at 8% 18%, rgba(39, 199, 122, 0.09), transparent 24rem),
    linear-gradient(180deg, #f7f9fc, #eef3f8) !important;
}

html.light-theme .ch-hero-title,
html.light-theme #page-marketplace h1,
html.light-theme #page-marketplace h2,
html.light-theme #page-live h1,
html.light-theme #page-live h2,
html.light-theme #page-wallet h1,
html.light-theme #page-wallet h2,
html.light-theme #page-agents-hub h1,
html.light-theme #page-agents-hub h2,
html.light-theme #page-docs h1,
html.light-theme #page-docs h2 {
  color: var(--ch-text) !important;
}

html.light-theme [style*="color:#e2e8f0"],
html.light-theme [style*="color: #e2e8f0"],
html.light-theme [style*="color:#fff"],
html.light-theme [style*="color: #fff"],
html.light-theme .text-white {
  color: var(--ch-text) !important;
}

html.light-theme [style*="color:#94a3b8"],
html.light-theme [style*="color: #94a3b8"],
html.light-theme [style*="color: rgba(226,232,240"],
html.light-theme .text-gray-400,
html.light-theme .text-gray-500 {
  color: var(--ch-text-soft) !important;
}

html.light-theme [style*="color:#00d4ff"],
html.light-theme [style*="color: #00d4ff"] {
  color: #075985 !important;
}

html.light-theme [style*="color:#00ff88"],
html.light-theme [style*="color: #00ff88"],
html.light-theme [style*="color:rgba(0,255,136"],
html.light-theme [style*="color: rgba(0,255,136"] {
  color: #047857 !important;
}

html.light-theme .filter-chip.active,
html.light-theme .filter-chip:hover {
  color: #1e40af !important;
}

/* Light theme completion layer.
   The legacy SPA still carries many inline dark-mode panels; these rules keep
   light mode genuinely readable without disturbing routes or event handlers. */
html.light-theme .btn-cyber-blue,
html.light-theme .btn-cyber-purple {
  background: linear-gradient(180deg, #347ff7 0%, #1f66df 100%) !important;
  border-color: rgba(31, 102, 223, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.22) !important;
}

html.light-theme .btn-cyber-blue:hover,
html.light-theme .btn-cyber-purple:hover {
  background: linear-gradient(180deg, #3f8bff 0%, #246bea 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(47, 125, 246, 0.28) !important;
}

html.light-theme .btn-cyber-green {
  background: linear-gradient(180deg, #2fcf84 0%, #159a60 100%) !important;
  border-color: rgba(21, 154, 96, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(39, 199, 122, 0.20) !important;
}

html.light-theme .btn-cyber-green:hover {
  background: linear-gradient(180deg, #35dc8e 0%, #17a969 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(39, 199, 122, 0.26) !important;
}

html.light-theme .ch-home-superclaw-highlight {
  background:
    radial-gradient(circle at 78% 12%, rgba(47, 125, 246, 0.13), transparent 26rem),
    radial-gradient(circle at 18% 82%, rgba(39, 199, 122, 0.10), transparent 24rem),
    linear-gradient(135deg, #eef6ff 0%, #eefbf6 100%) !important;
}

html.light-theme .ch-home-superclaw-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(47, 125, 246, 0.20) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10) !important;
}

html.light-theme .ch-home-superclaw-kicker {
  background: rgba(236, 253, 245, 0.86) !important;
  border-color: rgba(39, 199, 122, 0.26) !important;
  color: #047857 !important;
}

html.light-theme .ch-home-superclaw-title {
  color: #0f172a !important;
}

html.light-theme .ch-home-superclaw-copy,
html.light-theme .ch-home-superclaw-metric-label {
  color: #475569 !important;
}

html.light-theme .ch-home-superclaw-metric {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

html.light-theme #page-superclaw {
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 199, 122, 0.10), transparent 25rem),
    radial-gradient(circle at 84% 6%, rgba(47, 125, 246, 0.13), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 48%, #f7fbff 100%) !important;
  color: #0f172a !important;
}

html.light-theme #page-superclaw > div[style*="position:relative"] {
  color: #0f172a !important;
}

html.light-theme #page-superclaw [style*="background:linear-gradient(135deg,#0b1026"],
html.light-theme #page-superclaw [style*="background: linear-gradient(135deg,#0b1026"],
html.light-theme #page-superclaw [style*="background:linear-gradient(135deg,rgba(11,16,38"],
html.light-theme #page-superclaw [style*="background: linear-gradient(135deg,rgba(11,16,38"] {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 248, 245, 0.96)) !important;
  border-color: rgba(47, 125, 246, 0.18) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10) !important;
}

html.light-theme #page-superclaw [style*="background:rgba(15,23,42"],
html.light-theme #page-superclaw [style*="background: rgba(15,23,42"],
html.light-theme #page-superclaw [style*="background:rgba(10,10,26"],
html.light-theme #page-superclaw [style*="background: rgba(10,10,26"],
html.light-theme #page-superclaw [style*="background:rgba(8,11,30"],
html.light-theme #page-superclaw [style*="background: rgba(8,11,30"] {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

html.light-theme #page-superclaw h1,
html.light-theme #page-superclaw h2,
html.light-theme #page-superclaw h3,
html.light-theme #page-superclaw [style*="color:#fff"],
html.light-theme #page-superclaw [style*="color: #fff"],
html.light-theme #page-superclaw [style*="color:#cbd5e1"],
html.light-theme #page-superclaw [style*="color: #cbd5e1"] {
  color: #0f172a !important;
}

html.light-theme #page-superclaw p,
html.light-theme #page-superclaw [style*="color:#94a3b8"],
html.light-theme #page-superclaw [style*="color: #94a3b8"],
html.light-theme #page-superclaw [style*="color:#9fb3c8"],
html.light-theme #page-superclaw [style*="color: #9fb3c8"] {
  color: #475569 !important;
}

html.light-theme #page-superclaw [style*="color:#00d4ff"],
html.light-theme #page-superclaw [style*="color: #00d4ff"],
html.light-theme #page-superclaw [style*="color:#8b5cf6"],
html.light-theme #page-superclaw [style*="color: #8b5cf6"] {
  color: #1d4ed8 !important;
}

html.light-theme #page-superclaw [style*="color:#00ff88"],
html.light-theme #page-superclaw [style*="color: #00ff88"] {
  color: #047857 !important;
}

html.light-theme #page-superclaw button {
  text-shadow: none !important;
}

html.light-theme #page-superclaw button[onclick*="modal-post"],
html.light-theme #page-superclaw button[onclick*="agents-hub"] {
  background: linear-gradient(180deg, #347ff7 0%, #1f66df 100%) !important;
  border-color: rgba(31, 102, 223, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.20) !important;
}

html.light-theme #page-community {
  --community-ink: #0f172a;
  --community-muted: rgba(51, 65, 85, 0.86);
  --community-subtle: rgba(71, 85, 105, 0.72);
  --community-line: rgba(47, 125, 246, 0.18);
  --community-cyan: #1d4ed8;
  --community-green: #047857;
  --community-coral: #b45309;
  background:
    radial-gradient(circle at 14% 14%, rgba(47, 125, 246, 0.12), transparent 26rem),
    radial-gradient(circle at 76% 18%, rgba(39, 199, 122, 0.10), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 52%, #f7fbff 100%) !important;
  color: #0f172a !important;
}

html.light-theme #page-community .community-canvas {
  opacity: 0.18 !important;
  filter: saturate(0.72) brightness(1.12);
}

html.light-theme #page-community .community-hero::before,
html.light-theme #page-community .community-band::before {
  opacity: 0.28 !important;
  background-image:
    linear-gradient(90deg, rgba(47, 125, 246, 0.10) 1px, transparent 1px),
    linear-gradient(0deg, rgba(39, 199, 122, 0.07) 1px, transparent 1px) !important;
}

html.light-theme #page-community .community-hero::after {
  border-color: rgba(39, 199, 122, 0.18) !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 125, 246, 0.10), transparent 38%),
    conic-gradient(from 110deg, transparent, rgba(39, 199, 122, 0.14), transparent, rgba(47, 125, 246, 0.10), transparent) !important;
  opacity: 0.48;
}

html.light-theme #page-community .community-title,
html.light-theme #page-community .community-section-head h2,
html.light-theme #page-community .community-tile h3,
html.light-theme #page-community .community-dealroom h3,
html.light-theme #page-community .community-knowledge-card h3,
html.light-theme #page-community .community-knowledge-card b,
html.light-theme #page-community .community-kb-bridge h3,
html.light-theme #page-community .community-wiki-guide h2,
html.light-theme #page-community .community-step b,
html.light-theme #page-community .community-qr-band h2 {
  color: #0f172a !important;
}

html.light-theme #page-community .community-title span {
  -webkit-text-stroke-color: rgba(15, 23, 42, 0.54) !important;
  text-shadow: none !important;
}

html.light-theme #page-community .community-kinetic,
html.light-theme #page-community .community-lede,
html.light-theme #page-community .community-section-head p,
html.light-theme #page-community .community-tile p,
html.light-theme #page-community .community-tile li,
html.light-theme #page-community .community-dealroom p,
html.light-theme #page-community .community-knowledge-card p,
html.light-theme #page-community .community-knowledge-card li,
html.light-theme #page-community .community-step span,
html.light-theme #page-community .community-kb-bridge p,
html.light-theme #page-community .community-wiki-guide p,
html.light-theme #page-community .community-proof span,
html.light-theme #page-community .community-chip,
html.light-theme #page-community .community-item-meta,
html.light-theme #page-community .community-metric,
html.light-theme #page-community .community-knowledge-empty,
html.light-theme #page-community .community-knowledge-page-label,
html.light-theme #page-community .community-knowledge-status {
  color: #475569 !important;
}

html.light-theme #page-community .community-wiki-guide,
html.light-theme #page-community .community-proof,
html.light-theme #page-community .community-tile,
html.light-theme #page-community .community-kb-bridge,
html.light-theme #page-community .community-knowledge-card,
html.light-theme #page-community .community-dealroom,
html.light-theme #page-community .community-step,
html.light-theme #page-community .community-qr-band,
html.light-theme #page-community .community-knowledge-empty {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07) !important;
}

html.light-theme #page-community .community-band.alt {
  background: rgba(224, 242, 254, 0.36) !important;
}

html.light-theme #page-community .community-proof.is-active,
html.light-theme #page-community .community-step.is-active,
html.light-theme #page-community .community-knowledge-card.is-highlight {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.94)) !important;
  border-color: rgba(39, 199, 122, 0.28) !important;
}

html.light-theme #page-community .community-knowledge-card.is-coral {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.94)) !important;
  border-color: rgba(251, 146, 60, 0.28) !important;
}

html.light-theme #page-community .community-button,
html.light-theme #page-community .community-pill,
html.light-theme #page-community .community-page-button,
html.light-theme #page-community .community-search,
html.light-theme #page-community .community-chip,
html.light-theme #page-community .community-metric {
  background: rgba(255, 255, 255, 0.90) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #0f172a !important;
}

html.light-theme #page-community .community-button.primary,
html.light-theme #page-community .community-pill.is-active,
html.light-theme #page-community .community-pill:hover {
  background: linear-gradient(180deg, #2fcf84 0%, #159a60 100%) !important;
  border-color: rgba(21, 154, 96, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(39, 199, 122, 0.18) !important;
}

html.light-theme #page-community .community-button:hover,
html.light-theme #page-community .community-page-button:hover:not(:disabled) {
  border-color: rgba(47, 125, 246, 0.34) !important;
  background: #fff !important;
}

html.light-theme #page-community .community-search::placeholder {
  color: #64748b !important;
}

html.light-theme #page-about,
html.light-theme #page-faq,
html.light-theme #page-refund,
html.light-theme #page-contact,
html.light-theme #page-privacy,
html.light-theme #page-terms,
html.light-theme #page-cookies {
  background:
    radial-gradient(circle at 84% 4%, rgba(47, 125, 246, 0.10), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  color: #0f172a !important;
}

html.light-theme #page-about h1,
html.light-theme #page-faq h1,
html.light-theme #page-refund h1,
html.light-theme #page-contact h1,
html.light-theme #page-privacy h1,
html.light-theme #page-terms h1,
html.light-theme #page-cookies h1,
html.light-theme #page-about [style*="color:#e2e8f0"],
html.light-theme #page-faq [style*="color:#e2e8f0"],
html.light-theme #page-refund [style*="color:#e2e8f0"],
html.light-theme #page-contact [style*="color:#e2e8f0"],
html.light-theme #page-privacy [style*="color:#e2e8f0"],
html.light-theme #page-terms [style*="color:#e2e8f0"],
html.light-theme #page-cookies [style*="color:#e2e8f0"] {
  color: #0f172a !important;
}

html.light-theme #page-about div[style*="color:#cbd5e1"],
html.light-theme #page-faq div[style*="color:#cbd5e1"],
html.light-theme #page-refund div[style*="color:#cbd5e1"],
html.light-theme #page-contact div[style*="color:#cbd5e1"],
html.light-theme #page-privacy div[style*="color:#cbd5e1"],
html.light-theme #page-terms div[style*="color:#cbd5e1"],
html.light-theme #page-cookies div[style*="color:#cbd5e1"],
html.light-theme #page-cookies li,
html.light-theme #page-cookies strong {
  color: #334155 !important;
}

html.light-theme #page-about [style*="color:#00d4ff"],
html.light-theme #page-faq [style*="color:#00d4ff"],
html.light-theme #page-refund [style*="color:#00d4ff"],
html.light-theme #page-contact [style*="color:#00d4ff"],
html.light-theme #page-privacy [style*="color:#00d4ff"],
html.light-theme #page-terms [style*="color:#00d4ff"],
html.light-theme #page-cookies [style*="color:#00d4ff"] {
  color: #075985 !important;
}

html.light-theme #page-about [style*="color:#64748b"],
html.light-theme #page-faq [style*="color:#64748b"],
html.light-theme #page-refund [style*="color:#64748b"],
html.light-theme #page-contact [style*="color:#64748b"],
html.light-theme #page-privacy [style*="color:#64748b"],
html.light-theme #page-terms [style*="color:#64748b"],
html.light-theme #page-cookies [style*="color:#64748b"] {
  color: #475569 !important;
}

@media (max-width: 920px) {
  .ch-home-hero .ch-home-hero-shell,
  .ch-hero-grid,
  .ch-hero-grid > * {
    max-width: 100%;
    min-width: 0;
  }
  .ch-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ch-home-hero {
    padding-top: 42px !important;
  }
  .ch-hero-copy {
    max-width: min(620px, 100%);
    overflow-wrap: break-word;
  }
  .ch-hero-actions,
  .ch-hero-proof,
  .ch-home-onboarding {
    max-width: 100%;
  }
  .ch-home-onboarding {
    margin-top: 26px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ch-hero-proof-item {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--ch-line);
  }
  .ch-hero-title {
    font-size: clamp(2.5rem, 12vw, 4.6rem);
  }
  .ch-geometry-stage {
    opacity: 0.26;
    transform: none;
    top: -64px;
    bottom: -64px;
  }
}

@media (max-width: 640px) {
  html.light-theme #page-community .community-title,
  #page-community .community-title {
    font-size: clamp(3rem, 14vw, 4rem) !important;
    overflow-wrap: normal;
  }

  .ch-home-hero,
  .ch-home-hero * {
    box-sizing: border-box;
  }
  .ch-home-hero {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .ch-home-hero .ch-home-hero-shell,
  .ch-hero-grid,
  .ch-hero-grid > *,
  .ch-hero-title,
  .ch-hero-copy,
  .ch-hero-actions,
  .ch-hero-proof,
  .ch-home-onboarding {
    width: calc(100vw - 48px) !important;
    inline-size: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    max-inline-size: calc(100vw - 48px) !important;
    min-width: 0;
  }
  .ch-status,
  .ch-hero-copy {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #page-home .ch-hero-copy {
    width: min(34ch, calc(100vw - 48px)) !important;
    inline-size: min(34ch, calc(100vw - 48px)) !important;
    max-width: min(34ch, calc(100vw - 48px)) !important;
    max-inline-size: min(34ch, calc(100vw - 48px)) !important;
  }
  .ch-status {
    width: auto;
    max-width: calc(100vw - 48px);
    line-height: 1.25;
  }
  .ch-home-onboarding {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }
  .ch-home-onboarding-kicker {
    margin-bottom: 5px;
  }
  .ch-home-onboarding-title {
    font-size: 0.98rem;
  }
  .ch-home-onboarding-copytext {
    font-size: 0.76rem;
    line-height: 1.42;
  }
  .ch-home-onboarding-command {
    gap: 8px;
    padding: 5px;
  }
  .ch-home-onboarding-copy {
    width: auto;
    min-height: 34px;
    padding: 0 10px;
  }
  .ch-home-onboarding-code {
    font-size: 0.72rem;
    padding: 7px 10px;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
  }
  body:has(#page-home:not(.hidden)) #bug-fab {
    display: none !important;
  }
  .ch-geometry-stage {
    opacity: 0.18;
    transform: none;
    top: -34px;
    bottom: -34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-geometry-stage canvas,
  #hero-canvas,
  .community-canvas {
    animation: none !important;
  }
}

/* ============================================================
   模型广场入口区块（Model Square）
   归入 ch-* 设计体系：复用 --ch-* 令牌，与首页 hero / SuperClaw 卡片同一套视觉语言。
   颜色全部走令牌，故 light-theme 自动适配，无需额外覆盖。
   ============================================================ */
.ch-model-square {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 24px;
}

.ch-model-square-shell {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.ch-model-square-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  text-align: center;
  background: var(--ch-panel-strong);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius-lg);
  box-shadow: var(--ch-shadow);
}

/* 顶部蓝、底部绿的柔和光晕，呼应 hero 背景的径向渐变 */
.ch-model-square-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 125, 246, 0.16), transparent 60%),
    radial-gradient(circle at 82% 108%, rgba(39, 199, 122, 0.08), transparent 55%);
}

/* 卡片内容压在光晕之上 */
.ch-model-square-card > * {
  position: relative;
  z-index: 1;
}

/* .ch-status 自带 margin-bottom，标题不再额外加顶距 */
.ch-model-square-title {
  margin: 0;
  color: var(--ch-text);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 720;
  line-height: 1.12;
}

/* 蓝→绿渐变文字，与 .gradient-text-blue-purple 同一渐变令牌 */
.ch-model-square-title span {
  background: var(--cp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ch-model-square-copy {
  max-width: 540px;
  margin: 14px auto 0;
  color: var(--ch-text-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.ch-model-square-actions {
  margin-top: 26px;
}

@media (max-width: 640px) {
  .ch-model-square-card {
    padding: 28px 20px;
  }
}
